var params = {
	//Functionality

					slideshow               :   1,		//Slideshow on/off

					autoplay				:	0,		//Slideshow starts playing automatically

					start_slide             :   1,		//Start slide (0 is random)

					random					: 	0,		//Randomize slide order (Ignores start slide)

					slide_interval          :   3000,	//Length between transitions

					transition              :   6, 		//0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left

					transition_speed		:	2000,	//Speed of transition

					new_window				:	1,		//Image links open in new window/tab

					pause_hover             :   0,		//Pause slideshow on hover

					keyboard_nav            :   1,		//Keyboard navigation on/off

					performance				:	1,		//0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)

					image_protect			:	1,		//Disables image dragging and right click with Javascript

					image_path				:	'img/', //Default image path



					//Size & Position

					min_width		        :   300,		//Min width allowed (in pixels)

					min_height		        :   300,		//Min height allowed (in pixels)

					vertical_center         :   0,		//Vertically center background

					horizontal_center       :   0,		//Horizontally center background

					fit_portrait         	:   0,		//Portrait images will not exceed browser height

					fit_landscape			:   0,		//Landscape images will not exceed browser width

					

					//Components

					navigation              :   1,		//Slideshow controls on/off

					thumbnail_navigation    :   1,		//Thumbnail navigation

					slide_counter           :   1,		//Display slide numbers

					slide_captions          :   1,		//Slide caption (Pull from "title" in slides array)

					slides 					:  	[		//Slideshow Images

												 		{image : 'portfolio/BOOK-INTRO.jpg', thumb : 'thumbs/2012-THUMB0.jpg', title : 'Home book', url : ''},

														{image : 'portfolio/2012-BOOK-WEB1.jpg', thumb : 'thumbs/2012-THUMB1.jpg',  title : 'LE MUSÉE D\'UN CHIFFRE :: DA print', url : ''},

														{image : 'portfolio/2012-BOOK-WEB2.jpg', thumb : 'thumbs/2012-THUMB2.jpg',  title : 'NYC :: DA print', url : ''},

														{image : 'portfolio/2012-BOOK-WEB3.jpg', thumb : 'thumbs/2012-THUMB3.jpg',  title : 'VCIEL :: DA print & montage vidéo', url : ''},

														{image : 'portfolio/2012-BOOK-WEB4.jpg', thumb : 'thumbs/2012-THUMB4.jpg',  title : 'COMETTS :: DA print', url : ''},

														{image : 'portfolio/2012-BOOK-WEB5.jpg', thumb : 'thumbs/2012-THUMB5.jpg',  title : 'ECOLOTRI :: DA print', url : ''},

														{image : 'portfolio/2012-BOOK-WEB6.jpg', thumb : 'thumbs/2012-THUMB6.jpg',  title : 'GUNFIRE IN A JUKE JOINT :: DA print & digitale', url : ''},

														{image : 'portfolio/2012-BOOK-WEB7.jpg', thumb : 'thumbs/2012-THUMB7.jpg',  title : 'MUSÉE DES CONFLUENCES :: DA digitale', 
														url : 'http://www.museedesconfluences.fr/musee/expositions/expositions_virtuelles/cultures_monde/'},

														{image : 'portfolio/2012-BOOK-WEB8.jpg', thumb : 'thumbs/2012-THUMB8.jpg',  title : 'LA TRIBUTERRE :: DA print', url : ''},

														{image : 'portfolio/2012-BOOK-WEB9.jpg', thumb : 'thumbs/2012-THUMB9.jpg', title : 'TUTTI FRUTTI :: DA digitale', url : ''},

														{image : 'portfolio/2012-BOOK-WEB10.jpg', thumb : 'thumbs/2012-THUMB10.jpg',  title : 'ALPE D\'HUEZ :: DA digitale', url : ''},

														{image : 'portfolio/2012-BOOK-WEB11.jpg', thumb : 'thumbs/2012-THUMB11.jpg',  title : 'ALPE D\'HUEZ • Coupe du monde Ski Cross :: DA digitale', url : ''},

														{image : 'portfolio/2012-BOOK-WEB12.jpg', thumb : 'thumbs/2012-THUMB12.jpg',  title : 'AVSF :: DA digitale', url : ''},
														
														{image : 'portfolio/2012-BOOK-WEB13.jpg', thumb : 'thumbs/2012-THUMB13.jpg',  title : 'PELLET :: DA digitale', url : ''},
														
														{image : 'portfolio/2012-BOOK-WEB14.jpg', thumb : 'thumbs/2012-THUMB14.jpg',  title : 'IOMA :: DA digitale', url : ''},
														
														{image : 'portfolio/2012-BOOK-WEB15.jpg', thumb : 'thumbs/2012-THUMB15.jpg',  title : 'MERIBEL :: DA digitale', url : ''},


												]

												

				}
	
	
	
function jumpto(id){
	document.location.href = "?id="+id;
}

function genereThumbnails(){
	var ret = '<ul>';
	for(i=0; i<params.slides.length;i++){
		ret += '<li><a href="javascript:jumpto('+(i+1)+');"><img src="'+params.slides[i].thumb+'" width="25" height="25" /></a></li>';
	}
	ret += '</ul>';
	jQuery("#thumbnails").html(ret);
}

jQuery.extend({
  getUrlVars: function(){
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
      hash = hashes[i].split('=');
      vars.push(hash[0]);
      vars[hash[0]] = hash[1];
    }
    return vars;
  },
  getUrlVar: function(name){
    return jQuery.getUrlVars()[name];
  }
});


