	hs.graphicsDir = 'lib/highslide/graphics/';	
	hs.align = 'center';	
	hs.transitions = ['expand', 'crossfade'];	
	hs.wrapperClassName = 'dark borderless floating-caption';	
	hs.fadeInOut = true;	
	hs.dimmingOpacity = .75;			
	
function slide_produit(objet , compteur_inverse)
{
	compteur_inverse--;
	var objet_suivant = $(objet).next();
	/*$(objet).animate({"left": "-=156px"}, 1);
	$(objet).animate({"z-index": compteur_inverse}, 1);*/
	$(objet).css("top", "-156px");
	$(objet).css("z-index", compteur_inverse);
	$(objet).show(); 
	$(objet).animate({"top": "+=156px"}, 200);
	if(compteur_inverse)
	{
	setTimeout(function() {
		  slide_produit(objet_suivant , compteur_inverse); 
		}, 200 ); 
	}	
}

function change_couleur(couleur1, couleur2, compteur)
{
	compteur--;
	if(compteur % 2)
	$(".clignote").css("background", couleur1);
	else
	$(".clignote").css("background", couleur2);

	if(compteur)
	{
		setTimeout(function() { 
		  change_couleur(couleur1, couleur2, compteur); 
		}, 400 );
	}

	}

$(document).ready(function() 
{	
	$('.listeproduit').hide();
	$('.diaporama img').hide();
	$(".formlivreor").hide();
	$('.message_mail').hide();
	$('.navigationcom').hide();
	
	$(".on").show();


	window.onload = function () {
	
		$(".cache").hide();
		$(".deroule").addClass('partenaireplus');	
		//$('.hidding:first').show();	
		
		$(".deroule").click(function(){
			var displaycache = $(this).next('.cache').css("display");
			if(displaycache == "none")
			{
				$(".cache").slideUp('slow');	
				$(".deroule").removeClass('partenairemoins');	
				$(".deroule").addClass('partenaireplus');	
				$(this).next(".cache").slideDown('slow');
				$(this).removeClass('partenaireplus');	
				$(this).addClass('partenairemoins');	
			}
			else{
				$(this).next(".cache").slideUp('slow');	
				$(this).removeClass('partenairemoins');					
				$(this).addClass('partenaireplus');					
			}
		});	
		
		// var display = $(".deroule").next('.cache').css("display");
		// if(display == "none")
		// {
			// $(".cache").removeClass('partenairemoins');
			// $(".cache").addClass('partenaireplus');
		// }
		// else{
			// $(".cache").removeClass('partenaireplus');		
			// $(".cache").addClass('partenairemoins');		
		// }
		
		
		var un_produit = $('.listeproduit').slice(0,1);
		
		slide_produit(un_produit , 20);
		/*
		$('.listeproduit').animate({"left": "-=156px"}, 1);
		$('.listeproduit').show();
		$('.listeproduit').animate({"left": "+=156px"}, 1500);
		*/

	//	change_couleur("#7F9215", "#687554", 100);

		$('.message_mail').fadeTo(1,0,'');
		$('.message_mail').fadeTo(3000,0.8,'');
		$('.message_mail').click(function(){
			$('.message_mail').fadeTo(3000,0,'');
			$('.message_mail').hide(3000);
			$(".formlivreor").hide(500);
		});
	
		$("#formlivreor").toggle(function(){
			$(".formlivreor").show(500);
		},function(){
			$(".formlivreor").hide(500);
		});

	   $('.diaporama').cycle(
		{
			fx:     'fade', 
			speed:   1000, 
			timeout: 3000,
		});
		$('.diaporamacom').cycle({ 
			fx:   'shuffle', 
			shuffle: { 
			left:  925,
			top: 50,
			}, 
		//	fx: 	'curtainX',
			next:   '#nextcom', 
			prev:   '#prevcom',
			timeout: 0, 
			speed:   500,
			before: function(){	$('.navigationcom').show();},
		});

		$('.diaporama img').show();

	}

});

