/*
 * Functions d'initialistion du slideshows 
 * Functions imageLoader();
 */ 
$(document).ready(function(){
	
	init_slideshow();
	
})
 
init_slideshow = function(){
   
   $('#sldshows').cycle({						
	fx:'fade',
	timeout:10000,
	before:onBefore,
	after:onAfter,
	cleartype:1,
	cleartypeNoBg:true,
	prev:'#prev', 
	next:'#next'
  })
  
}

function onBefore(){
	
  if($.browser.msie && $.browser.version < 9){
  
	$('.caption').hide();
  
  }else{
	
	$('.caption').fadeTo(500, 0);
	
  }
	
}

function onAfter(){
	
  if($.browser.msie && $.browser.version < 9 ){
  
	$('.caption').show();
  
  } else {
  
	$('.caption').fadeTo(1000, 1);
  
  }
	
}