jQuery(document).ready(function(){
	

	
	// Paste your Flickr API key here (see the tutorial on how to generate one)
	var apiKey = 'c8cc4140330312ad92e57a6bd375fe56';
	
	// Creating a flickr slider. This is 
	// how you would probably use the plugin.
		
	jQuery('#flickrSlider12').jqFlick({   //Alpine/Snowboard On-Snow Demo & Ski-Ride Fest
		photosetID: '72157629113673667', 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});
	
	jQuery('#flickrSlider11').jqFlick({   //Nordic Demo
		photosetID: '72157629334835395', 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});

	jQuery('#flickrSlider10').jqFlick({   //Uphill Downhill Challenge
		photosetID: '72157629334084451', 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});

	jQuery('#flickrSlider9').jqFlick({   //Office Booyz and Girlz
		photosetID: '72157629331452009', 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});

	jQuery('#flickrSlider8').jqFlick({   //SIA Awards
		photosetID: '72157629330865925', 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});


	jQuery('#flickrSlider7').jqFlick({   //2012 SIA Snow Show Backcountry Experience
		photosetID: '72157629321792407', 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});
	
	
	jQuery('#flickrSlider6').jqFlick({   //Project RECLAIM
		photosetID: '72157629330168973', 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});
	
	jQuery('#flickrSlider5').jqFlick({
		photosetID: '72157629055681329', 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});
	
	
	
	jQuery('#flickrSlider4').jqFlick({
		photosetID: '72157629208303179', //pancake breakfast
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});
	
	
	jQuery('#flickrSlider3').jqFlick({
		photosetID: '72157629148296631', //Saturday
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});
	
	jQuery('#flickrSlider2').jqFlick({
		photosetID: '72157629148220141', //Friday 
		width:336,
		height:500,
		captions:false,
		autoAdvance:true,
		apiKey:apiKey
	});
	
	jQuery('#flickrSlider').jqFlick({
		photosetID: '72157629113673667', //move in
		width:500,
		height:500,
		captions:true,
		autoAdvance:true,
		apiKey:apiKey
	});

	// Creating different flickr sliders,
	// depending on the select element value.

	jQuery('select').change(function(){
		
		var options = {};
	
		switch(this.value){
			case '7':
				options = {
					photosetID: '72157629039385127', //move in
					width:500,
					height:500,
					captions:true,
					autoAdvance:true,
					apiKey:apiKey
				};
				break;
			case '2':
				options = {
					photosetID:'72157629055225469', //day 1
					width:500,
					height:500,
					captions:true,
					autoAdvance:true,
					apiKey:apiKey
				};
				break;
			case '3':
				options = {
					photosetID:'72157629055681329',//Fashion and Trends
					width:500,
					height:500,
					apiKey:apiKey
				};
				break;
				
			case '4':
				options = {
					photosetID:'72157629067495669', //Day 2
					width:500,
					height:500,
					apiKey:apiKey
				};
				break;
					case '5':
				options = {
					photosetID:'72157629082136837', //Day 3
					width:500,
					height:500,
					apiKey:apiKey
				};
				break;
					case '6':
				options = {
					photosetID:'72157629098060421', //Day 4
					width:500,
					height:500,
					apiKey:apiKey
				};
				break;
				
							case '1':
				options = {
					photosetID:'72157629113673667', //on snow demo
					width:500,
					height:500,
					apiKey:apiKey
				};
				break;
				
		}

		jQuery('#flickrSlider').jqFlick(options);
	});
	
});
