document.createElement('header');document.createElement('section');document.createElement('article');document.createElement('aside');document.createElement('nav');document.createElement('footer');
$(document).ready(function(){	
	$('#datepicker').datepicker();
	
	var lastNavi = null;
	$('.navi ul li a').click(function(){
		slideClick = 0;
		if(this != lastNavi)
			$(lastNavi).css({'background':'none','color':'#333333'});
		$(this).css({'background':'#333333','color':'#ffffff'});
		lastNavi = this;
	});	
	
	$('#allportfolio ul li').mouseenter(function(){
		$('img',this).animate({'opacity':'1.0', 'filter':'alpha(opacity=100)'}, 400);
		$(this).mouseleave(function(){
			$('img',this).animate({'opacity':'0.6', 'filter':'alpha(opacity=60)'}, 100);
		});
	});
	
	$('.diaporama_controls .btns .next,.diaporama_controls .btns .prev,.hidePresentation').live('click',function(){
		$('.text').fadeOut(600);
		$('.hidePresentation').fadeOut(200)
		$('.showPresentation').fadeIn(600);
	});
	
	$('.showPresentation').live('click',function(){
		$('.showPresentation').fadeOut(200);
		$('.hidePresentation').fadeIn(600);
		$('.text').fadeIn(600);		
	});
		
		
	//BOUTONS SUIVANT PREV MODULE
	$('.btns-module .next').mouseenter(function(){
		$(this).animate({'opacity':'1.0', 'filter':'alpha(opacity=100)'}, 300);
	}).mouseleave(function(){
		$(this).animate({'opacity':'0.3', 'filter':'alpha(opacity=30)'}, 100);
	});	
	$('.btns-module .prev').mouseenter(function(){
		$(this).animate({'opacity':'1.0', 'filter':'alpha(opacity=100)'}, 300);
	}).mouseleave(function(){
		$(this).animate({'opacity':'0.3', 'filter':'alpha(opacity=30)'}, 100);
	});
	
	
	var plus = false;
	$('#plus').live('click', function(){
		if(!plus){
			$('article').animate({width:'1000px'},600);
			$('#navrubon li a').animate({width:'1000px'},600);
			$('#plus').html('');
			$('.suite').fadeIn(800);
			plus = true;
		}
	});
	
	$("a[rel=light]").colorbox();
	$("a[rel=iframe]").colorbox({iframe:true});
});
