$(document).ready(function(){
	
	// Creating a flickr slider. This is 
	// how you would probably use the plugin.
	
	$('#flickrSlider').jqFlick({
		photosetID: '72057594094235226',
		width:600,
		height:400,
		captions:true,
		autoAdvance:true
	});

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

	$('select').change(function(){
		
		var options = {};
		
		switch(this.value){
			case '1':
				options = {
					photosetID: '72057594094235226',
					width:600,
					height:420,
					captions:true,
					autoAdvance:true
				};
				break;
			case '2':
				options = {
					photosetID:'72157626316312568',
					width:600,
					height:420,
					captions:true,
					autoAdvance:true
				};
				break;
			case '3':
				options = {
					photosetID:'72157594492778265',
					width:600,
					height:420
				}
		}

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