/* Example:
jQuery(document).ready(function($) {
	alert('jQuery + screen.js is loaded and ready to go!');
});
*/

/* Drop-down menu using superfish. */
jQuery(document).ready(function($) {
	$('.nav').supersubs({
		minWidth: 		9,						// Required em unit.
		maxWidth: 		20,						// Required em unit.
		extraWidth: 	0						// Extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values.
    }).superfish({
		hoverClass:		'nav-hover',			// The class applied to hovered list items.
	//	pathClass:		'overideThisToUse',		// The class you have applied to list items that lead to the current page.
		pathLevels:		1,						// The number of levels of submenus that remain open or are restored using pathclass.
		delay:			400,					// The delay in milliseconds that the mouse can remain outside a submenu.
		animation:		{opacity:'show'},		// An object equivalent to the first parameter of jQuery's .animate() method.
		speed:			'normal',				// Speed of the animation, equivalent to the second parameter of jQuery's .animate() method.
		autoArrows:		false,					// If true, arrow mark-up is generated automatically, which equals clean source code at the expense of initialisation performance.	
		disableHI:		false					// Set to true to disable hoverintent dectection.
	//	onInit:			function(){},			// Callback function fires once superfish is initialised - 'this' is the containing UL.
	//	onBeforeShow:	function(){},			// Callback function fires just before the revealing animation begins - 'this' is the UL about to open.
	//	onShow:			function(){},			// Callback function fires once the revealing animation is completed - 'this' is the opened UL.
	//	onHide:			function(){}			// Callback function fires after a sub-menu has closed - 'this' is the UL that just closed.
	});
});