hs.graphicsDir = 'lib/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.wrapperClassName = 'dark borderless floating-caption';
hs.fadeInOut = true;
hs.dimmingOpacity = .75;

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: .6,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});

$(document).ready( function () {

	$(".diaporama img").hide();
 	window.onload = function () {
		$(".diaporama img").show();
		$(".loading").hide();
		$('.diaporama').cycle( 
		{
			fx:     'fade', 
			speed:  'slow', 
			timeout: 6000,  
			pause:	1, 
			next:   '#next', 
			prev:   '#prev' 
		});
		$('.diaporama').before('<div id="nav">').cycle({
			fx:     'fade', 
			speed:  'slow', 
			timeout: 6000, 
			pager:  '#nav',
			pause:  1,
			before: function(){$(this).css("background", "transparent");},
			after: function(){$(this).css("background", "transparent");}
		});
	};


	$('.categorieProduit2').hide();
	$('#boutonActus a:last').click();
	
	var sousmenu = getUrlVars()["sousmenu"];
 
if(sousmenu=='actus'){
	$('.categorieProduit2').hide();		
	$('#boutonActu').click();
}	
});
