// JavaScript Document
var mySlider;	// A reference to the SliderWall instance.
var err;
// Initialize the slider.
$(document).ready(function() {
						   
	if ($(".colonne-gauche").height()>$(".colonne-droite").height())
	{
		$(".colonne-droite").height($(".colonne-gauche").height());
	}
	else
	{
		$(".colonne-gauche").height($(".colonne-droite").height());
	}

	try {
		// imageSlideshow is the id of the <div> tag that will contain the SliderWall instance.
		$("#imageSlideshow").sliderWallThumbs({
			// general options
			cssClassSuffix: "",
			domainKeys: ["51ccb53738c6022f7d70937a652c151a"],
			imageAlign: "middleCenter", /* topLeft, topCenter, topRight, middleLeft, middleCenter, middleRight, bottomLeft, bottomCenter, bottomRight */
			imageScaleMode: "scaleCrop", /* scale, scaleCrop, crop, stretch */
			loopContent: false,
			rssFeed: null,
			selectableContent: true,
			
			// slideshow options
			autoSlideShow: true,
			slideShowSpeed: 6,
			
			// timer control options
			showTimer: true,
			autoHideTimer: true,
			timerPosition: "belowControlBar", /* aboveControlBar, belowControlBar */
			
			// control bar options
			autoHideControlBar: false,
			controlsHideDelay: 5,
			controlsShowHideSpeed: 0.2,
			showControlBar: true,
			
			// navigation options
			autoHideNavButtons: false,
			showNavigationButtons: true,
			
			// text options
			autoHideText: false,
			
			// interaction options
			useGestures: true,
			useKeyboard: true,
			useMouseScroll: true,
			pauseOnMouseOver: false,
			disableAutohideOnMouseOver: false,
			
			// transitions
			transitionType: {
				optimizeForIpad: false,  /* If set to true, it would use only the Alpha and Slide effects. */
				random: false,
				transitions: [
					/*
					Possible transitions: Alpha, AlphaBars, BrightSquares, Disc, FlipBars, Iris, LensGlare, None, Slide, SquareFade, SquareLight, Stripes, Waves, WaveScale, Wavy
					Possible tween types: Back, Bounce, Circ, Cubic, Elastic, Expo (default), Quad, Quart, Quint, Sine
					Possible easing types: easeIn, easeOut, easeInOut
					*/
					{
						name: "Slide",
						duration: 0.75,
						tweenType: "Back",
						easing: "easeInOut",
						direction: "horizontal"
					}
				]
			},
			
			// callback functions
			init: null,
			contentLoadStart: null,
			contentLoadComplete: null,
			contentLoadError: null,
			contentShow: null,
			contentHide: null,
			slideClick: null,
			slideshowStart: null,
			slideshowStop: null,
			pageChange: null
		});
		
		// This is how you get a reference to the SliderWall object to call 
		// SliderWall methods (mySlider.next(), mySlider.getSelectedIndex()).
		mySlider = $("#imageSlideshow").data("sliderWall");
		
	} catch(err) { $("#mainNoHTML5").show(); }
});
