
/* -=-=-=-=-=-=-[DO NOT EDIT THIS FIRST SECTION]-=-=-=-=-=-=-=- */

/* -=-=-=-=-=-=-[Determine browser name, version & O/S]-=-=-=-=-=-=-=- */
var BV = parseFloat(navigator.appVersion.indexOf("MSIE")>0?navigator.appVersion.split(";")[1].substr(6):navigator.appVersion);
var BN = navigator.appName;
var nua = navigator.userAgent;
var IsMac=(nua.indexOf('Mac')!=-1);
var IE=(BN.indexOf('Explorer')!=-1);


/* -=-=-=-=-=-=-[EDIT BELOW HERE]-=-=-=-=-=-=-=- */

	// Value ignored for purposes of maxDropPos as hard-coded lower down
	var siteContainerID = "outer";					// ID of outermost element of site


			/**************************************************************************************************************
			
				Quick Jump Menu (Calendar Drop)
			
			**************************************************************************************************************/
			var qjTimerID=null; 			/* timeout */
			var qjHideDelay=200; /* Milliseconds before menu auto-hides */
			
			/**************************************************************************************************************
			  If stickyQuickMenu = 0: Quick Picks menu will close following a delay of (qjHideDelay)ms following mouseOut.
			  If stickyQuickMenu = 1: Quick Picks menu will remain open until button is clicked again.
			**************************************************************************************************************/
			var stickyQuickMenu = 0;



/* -=-=-=-=-=-=-[Drop Menu Configuration]-=-=-=-=-=-=-=- */

var baseClass = 'base';  											  // default class of topMenuOption (tmo)
var overClass = 'over';  											  // hovered class of topMenuOption (tmo)
var activeClass = 'active';

var menuHideDelay=1000;												  // time after mouseOut that drop menu remains visible
var timerID=null;															  // initialize timerID

var tmoContainer = "outer";						  // ID of element containing top menu options
var tmoIDprefix = "tmo_";											  // prefix for top menu option IDs

var dropContainer = "mainMenu";					    		  // ID of element containing drop menus
var dropIDprefix = "dropMenu_";								  // prefix for drop menu IDs
var dropMenuClass = "dropMenu";  							  // class of drop menus

var offset = "+"; 														  // Options: + or -
var dropMenuHorizontalOffset = 0;  						  // number of pixels to the right of the top menu item where drop menu appears
var dropMenuVerticalOffset = (IE) ? 45 : 45;    // Y location of drop relative to top of menu button (IE : Non-IE)
/* -=-=-=-=-=-=-[DO NOT EDIT BELOW HERE]-=-=-=-=-=-=-=- */

function getDropInfo(){
	// "var" intentionally not used so vars become global
	drops = getElementsByClassName(MM_findObj(dropContainer), "div", dropMenuClass);  // Create array of all drops

	if(drops.length > 0){
		// Can't get width while drop is set to display: none so having to do some jiggery-pokery-CSSiness
		drops[0].style.visibility="hidden";
		drops[0].style.display="block";
		dropMenuWidth = drops[0].offsetWidth;  // Get width of first, and therefore all drops
		drops[0].style.display="none";
		drops[0].style.visibility="visible";
	
		maxDropPos = (IE) ? eval(document.getElementById(tmoContainer).offsetWidth - dropMenuWidth) : eval(document.getElementById(dropContainer).offsetWidth - dropMenuWidth);  // Furthest left that a drop menu should appear to avoid spilling over right edge of site
//		maxDropPos = (IE) ? eval(document.getElementById(tmoContainer).offsetWidth - dropMenuWidth) : eval(706 - dropMenuWidth);  // Furthest left that a drop menu should appear to avoid spilling over right edge of site
//		maxDropPos = (IE) ? eval(935 - dropMenuWidth) : eval(529 - dropMenuWidth);  // Furthest left that a drop menu should appear to avoid spilling over right edge of site
	}
}
