jQuery(function($){
	$("#nextslide").hover(
	  function () {
	    $('.rc').fadeTo(300, 0.6);
	  }, 
	  function () {
	    $('.rc').fadeTo(300, 0.2);
	  }
	);

	$("#prevslide").hover(
	  function () {
	    $('.lc').fadeTo(300, 0.6);
	  }, 
	  function () {
	    $('.lc').fadeTo(300, 0.2);
	  }
	);
	
	//fade out on mouse idle
/*	var timer;
	var fout = false;
	$(document).mousemove(function() {
	    if (timer) {
	        clearTimeout(timer);
	        timer = 0;
	    }
		if (fout) {
			fout = false;
			$('.rc').fadeIn(function(){
				console.log($('.rc').css('opacity'));
			});
			$('.lc').fadeIn();
			$('#navl').fadeIn();
			$('#d').fadeIn();
			
		}
	    timer = setTimeout(function() {
	        $('.rc').fadeOut('slow');
	        $('.lc').fadeOut('slow');
	        $('#navl').fadeOut('slow');
			$('#d').fadeOut('slow');
			fout = true;
	    }, 3000)
	})
*/
	var options = {
	
		//Functionality
		transition_speed		:	1000,	//Speed of transition
		keyboard_nav            :   1,		//Keyboard navigation on/off
		image_protect			:	1,		//Disables image dragging and right click with Javascript
		image_path				:	'../img/', //Default image path

		//Size & Position
		min_width		        :   0,		//Min width allowed (in pixels)
		min_height		        :   0,		//Min height allowed (in pixels)
		vertical_center         :   1,		//Vertically center background
		horizontal_center       :   1,		//Horizontally center background
		fit_portrait         	:   1,		//Portrait images will not exceed browser height
		fit_landscape			:   0,		//Landscape images will not exceed browser width
		
		//Components
		navigation              :   1,		//Slideshow controls on/off
		slides 					:  	{		//These names should match the ID of the link that the they go with in index.html (lines 75+)
									
										"ketel": [{image : 'img/ketel1.jpg'}, {image : 'img/ketel2.jpg'}],		
										"mulberry": [{image : 'img/mulberry_01.jpg'}, {image : 'img/mulberry_02.jpg'}, {image : 'img/mulberry_03.jpg'}],
										"theusamistake": [{image : 'img/USA_mistake.jpg'}],
										"81": [{image : 'img/+81.jpg'}],
										"wired": [{image : 'img/wired_01.jpg'}, {image : 'img/wired_02.jpg'}, {image : 'img/wired_03.jpg'}],
										"thebulk": [{image : 'img/thebulk_01.jpg'}, {image : 'img/thebulk_02.jpg'}, {image : 'img/thebulk_03.jpg'}, {image : 'img/thebulk_04.jpg'}, {image : 'img/thebulk_05.jpg'}, {image : 'img/thebulk_06.jpg'}],
										"red": [{image : 'img/red_01.jpg'}, {image : 'img/red_02.jpg'}, {image : 'img/red_03.jpg'}],
										"discover": [{image : 'img/discover.jpg'}],
										"cr": [{image : 'img/creative_review_01.jpg'}, {image : 'img/creative_review_02.jpg'}],
										"dockers": [{image : 'img/dockers_01.jpg'}, {image : 'img/dockers_02.jpg'}],
										"dft": [{image : 'img/dft.jpg'}],
										"ls": [{image : 'img/CollapsedInLove_1500px.jpg'}, {image : 'img/lovestudies_02.jpg'}, {image : 'img/lovestudies_01.jpg'}],
										"ww": [{image : 'img/wired_web_01.jpg'}, {image : 'img/wired_web_02.jpg'}],
										"ybma": [{image : 'img/youblowmeaway_01.jpg'}, {image : 'img/youblowmeaway_02.jpg'}],
										"crs": [{image : 'img/creative_review_subs.jpg'}],
										"wywh": [{image : 'img/wishyouwerehere_01.jpg'}, {image : 'img/wishyouwerehere_02.jpg'}],
										"ap": [{image : 'img/acceptandproceed.jpg'}],
										"economist": [{image : 'img/economist.jpg'}],
										"mh100": [{image : 'img/maxim_hot100.jpg'}],
										"gt": [{image : 'img/goodtype.jpg'}],
										"typefaces": [{image : 'img/typefaces_01.jpg'}, {image : 'img/typefaces_02.jpg'}],
										"lgaga": [{image : 'img/none.gif'}],
										"blank": [{image : 'img/none.jpg'}]
									}
									
	};
	
	$.supersized(options); 
	
});
