jQuery('img.captify').captify();
jQuery("#effet img").hide();
jQuery("#effet img").bind("load", function (){ 
	jQuery(this).stop(true, true).fadeIn(300); 
	jQuery('img.captify').captify();
});

jQuery("body").ready( function (){ 
	jQuery("#gros_titre").fadeOut(4000); 
});




jQuery('img.captify').captify();
jQuery("body").ready(function(){
	jQuery('img.captify').captify();

    jQuery(".classement a").mousedown(function () {
    	jQuery("#contenu").hide();
    	jQuery("#contenu").show();
    	jQuery(".blocc").html('<img src="http://www.bizzarricocquio.com/wp-content/themes/TID/wait16trans.gif" width="16" height="16" />');
    	jQuery("#contenu").load(jQuery(this).attr("href") + " #contenu", function(){
    		jQuery("#contenu").show();
    		
    		jQuery("#contenu").stop(true, true).fadeIn(3000); 
			jQuery('img.captify').captify();
			jQuery('a.top').click(function(){
    			jQuery('html, body').animate({scrollTop: '0px'}, 300);
			    return false;
			});
		});
	});

jQuery('a.top').click(function(){
     jQuery('html, body').animate({scrollTop: '0px'}, 800);
     return false;
});

	
});



$(document).ready(function(){	
	$("#slider").easySlider({
		auto: true,
		continuous: true,
		controlsShow:		false
		
	});
		$("#slider2").easySlider({
		auto: true,
		continuous: true,
		nextId: "slider1next",
		prevId: "slider1prev"
		
	});
});


	$(document).ready(function () {
 
	//Set your isotope area
	var $container = $('#content_iso'),
	filters = {};
 
	//Set our items to be filtered, .post will work if you're using the post_class(); function
	$container.isotope({
		itemSelector : '.post'
		
	});
 
 $(".date_red").css('color','red');
 
 
 
 
 
 
 
	//Set the buttons to filter the content
	$('.filters a').click(function(){
		var $this = $(this);
		
		
$(".filters a").css('color','black');
$(this).css('color','red');

		
		
		//$(this).css('color','red');
		// don't proceed if already selected
		if ( $this.hasClass('selected') ) {
		return;
		}
 
	var $optionSet = $this.parents('.option-set');
	//change selected class
	$optionSet.find('.selected').removeClass('.selected');
	$this.addClass('.selected');
 
	//store filter value in object
	var group = $optionSet.attr('data-filter-group');
	filters[ group ] = $this.attr('data-filter-value');
 
	//convert object into array
	var isoFilters = [];
	for ( var prop in filters ) {
	isoFilters.push( filters[ prop ] )
	}
	var selector = isoFilters.join('');
	$container.isotope({ filter: selector });
 
	return false;
	});
 
});
	
	
		$(document).ready(function () {
 
	//Set your isotope area
	var $container = $('#content_iso2'),
	filters = {};
 
	//Set our items to be filtered, .post will work if you're using the post_class(); function
	$container.isotope({
		itemSelector : '.presse'
		
	});
 
	//Set the buttons to filter the content
	$('.filters a').click(function(){
		var $this = $(this);
		
		// don't proceed if already selected
		if ( $this.hasClass('selected') ) {
		return;
	}
 
	var $optionSet = $this.parents('.option-set');
	//change selected class
	$optionSet.find('.selected').removeClass('.selected');
	$this.addClass('.selected');
 
	//store filter value in object
	var group = $optionSet.attr('data-filter-group');
	filters[ group ] = $this.attr('data-filter-value');
 
	//convert object into array
	var isoFilters = [];
	for ( var prop in filters ) {
	isoFilters.push( filters[ prop ] )
	}
	var selector = isoFilters.join('');
	$container.isotope({ filter: selector });
 
	return false;
	});
 
});

	
	
	
$(document).ready(function() {
	$('#contenu').isotope({
	  itemSelector : '.post',
	  layoutMode : 'fitRows'
	  			    });

});


$(document).ready(function() {  
 // check where the shoppingcart-div is  
 var offset = $('#main-nav').offset();  

 $(window).scroll(function () {  
   var scrollTop = $(window).scrollTop(); // check the visible top of the browser  

   if (offset.top<scrollTop+15) $('#main-nav').addClass('fixed');  
   else $('#main-nav').removeClass('fixed');
  });  
});  

$(document).ready(function() {  
 // check where the shoppingcart-div is  
 var offset = $('#liste_categories').offset();  

 $(window).scroll(function () {  
   var scrollTop = $(window).scrollTop(); // check the visible top of the browser  

   if (offset.top<scrollTop+60) $('#liste_categories').addClass('fixed2');  
   else $('#liste_categories').removeClass('fixed2');
  });  
}); 

$(document).ready(function() {  
 // check where the shoppingcart-div is  
 var offset = $('#liste_categories_presse').offset();  

 $(window).scroll(function () {  
   var scrollTop = $(window).scrollTop(); // check the visible top of the browser  

   if (offset.top<scrollTop+60) $('#liste_categories_presse').addClass('fixed2');  
   else $('#liste_categories_presse').removeClass('fixed2');
  });  
}); 










