$(document).ready(
	function() {

		// BEGIN superfish menu config
		$("#menu_main_ul").superfish({
			hoverClass: 'sfhover',			// the class applied to hovered list items
			pathLevels: 1,					// the number of levels of submenus that remain open or are restored using pathClass
		    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: 'fast',					// 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 superfish menu config
		
		// BEGIN lightbox config
		$("a.lightbox").lightbox({
			fitToScreen: true,
			imageClickClose: false
		});
		// END lightbox config
		
		// BEGIN homepage spotlight config
		$("#spotlight").cycle({
			fx: 'fade',
			timeout: 6000
		});
		// END homepage spotlight config
		
		// BEGIN adding masthead frame
		$("#masthead").append('<div id="masthead_frame"></div>');
		// END adding masthead frame
		
	}
);