Cufon.replace('h1');
Cufon.replace('h2.blog-title');
Cufon.replace('h2.post-title');
Cufon.replace('h3.post-title');



	$(function(){
	
			
		
		$("a img").fadeTo("fast", .9); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	
		$("a img").hover(function(){
			$(this).fadeTo("fast", 0.5); // This should set the opacity to 100% on hover
		},function(){
	   		$(this).fadeTo("fast", .9); // This should set the opacity back to 60% on mouseout
		});
		
		
	    
	
				
			$('#slider').nivoSlider({
				effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
				slices:12,
				animSpeed:500,
				pauseTime:4000,
				startSlide:0, //Set starting Slide (0 index)
				directionNav:false, //Next & Prev
				directionNavHide:true, //Only show on hover
				controlNav:true, //1,2,3...
				controlNavThumbs:false, //Use thumbnails for Control Nav
		      	controlNavThumbsFromRel:false, //Use image rel for thumbs
				controlNavThumbsSearch: '.jpg', //Replace this with...
				keyboardNav:true, //Use left & right arrows
				pauseOnHover:true, //Stop animation while hovering
				manualAdvance:false //Force manual transitions
			});
			
			function mycarousel_initCallback(carousel) {
		
			    $('#prevScroll').bind('click', function() {
			        carousel.prev();
			        return false;
			        aler("prev");
			    });
			
			    $('#nextScroll').bind('click', function() {
			        carousel.next();
			        return false;
			    });
			};
			
			// Ride the carousel...
		    $("#listeProjets").jcarousel({
		        scroll: 4,
		        wrap: 'circular',
		        initCallback: mycarousel_initCallback,
		        // This tells jCarousel NOT to autobuild prev/next buttons
		        buttonNextHTML: null,
		        buttonPrevHTML: null
		    });
			
				
	});
