$(document).ready(function(){

	// BEGIN configuring superfish menu
	$("#nav").superfish({
		hoverClass: 'sfhover',			// the class applied to hovered list items
		delay: 100,						// the delay in milliseconds that the mouse can remain outside a submenu without it closing 
		animation: {opacity:'show'},	// an object equivalent to first parameter of jQuery's .animate() method
		speed: 100,						// speed of the animation. Equivalent to second parameter of jQuery's .animate() method 
		autoArrows:	false,				// if true, arrow mark-up generated automatically = cleaner source code at expense of initialisation performance
		dropShadows: false				// disable drop shadows
	});
	// END configuring superfish menu

	/*
	// BEGIN homepage slideshow
	$("#homepage_photo1_link").click(function () { 
		$("#homepage_photo1").fadeIn();
		$("#homepage_photo2").fadeOut();
		$("#homepage_photo3").fadeOut();
		$("#homepage_photo4").fadeOut();
		return false;
    });

	$("#homepage_photo2_link").click(function () { 
		$("#homepage_photo1").fadeOut();
		$("#homepage_photo2").fadeIn();
		$("#homepage_photo3").fadeOut();
		$("#homepage_photo4").fadeOut();
		return false;
    });

	$("#homepage_photo3_link").click(function () { 
		$("#homepage_photo1").fadeOut();
		$("#homepage_photo2").fadeOut();
		$("#homepage_photo3").fadeIn();
		$("#homepage_photo4").fadeOut();
		return false;
    });

	$("#homepage_photo4_link").click(function () { 
		$("#homepage_photo1").fadeOut();
		$("#homepage_photo2").fadeOut();
		$("#homepage_photo3").fadeOut();
		$("#homepage_photo4").fadeIn();
		return false;
    });
	// END homepage slideshow
	*/

	$('#homepage_photo')
	.before('<div id="home_slideshow_nav">')
	.cycle({ 
		fx: 'fade',
		speed: 750,
		timeout: 7500,
		pager: '#home_slideshow_nav'
	});

});
