
		
	$(window).load(function() {
	
        $('.nivoSlider').nivoSlider({
		
    
		
		
		
			effect: 'random', // Specify sets like: 'fold,fade,sliceDown'
			directionNav: true, // Next & Prev navigation
			directionNavHide: false, // Only show on hover
			pauseTime: 4000,
			animSpeed: 500,
			controlNav: true, // 1,2,3... navigation
			keyboardNav: true, // Use left & right arrows
			pauseOnHover: true, // Stop animation while hovering
			manualAdvance: false, // Force manual transitions
			captionOpacity: 0.7 // Universal caption opacity
		});
	

		
	});

	$(".sidebar").ready(function(){
	

		
		$("#menu-menu-lat > li").addClass("parents");
	});
/* 	
	$(".main").ready(function(){
	
		var sideBarHeight = $(".sidebar").height();
		
		$(this).height(sideBarHeight);
		
	
	}); */
	

	
	$(document).ready(function(){

		
		$('a[rel="colorbox"]').colorbox({href:$(this).attr("href"),width:'70%',height:'70%',maxHeight: '80%'});	

		//Mettre une colorbox sur les images du billet (pour les voir en taille reelle)
		$(".entry-content").find('img').click(function(){
			
			var parentTag = $(this).parent().get(0).tagName;
			
				
			
				if($(this).parent("a").attr("class") != "colorbox cboxElement" && parentTag != "A"){
					$(this).colorbox({href:$(this).attr("src"),width:'70%',height:'70%',maxHeight: '80%' });
				}

		});

		$("img").ready(function(){
			$(".colorbox").colorbox({rel:'groupe',width:'70%',height:'70%',maxHeight: '80%',onOpen: function(){
			
			}});
		});				
		
		//Pointer en mouseover
		$(".entry-content").find('img').mouseover(function(){
			if($(this).parent("a").attr("class") != "thickbox"){
				$(this).css("cursor","pointer");
			}
		});
		
		//Cursor auto en mouseout
		$(".entry-content").find('img').mouseout(function(){
			if($(this).parent("a").attr("class") != "thickbox"){
				$(this).css("cursor","auto");
			}
		});		
		
		$(".commentlist").hide();
		
		$(".voir_commentaires").click(function(){
			$(".commentlist").show();
			return false;
		});
		
	});
		

	

