
/* -=-=-=-=-=-=-[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]-=-=-=-=-=-=-=- */

var siteContainerID = "outer";									// ID of outermost element of site

/* -=-=-=-=-=-=-[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 = "headRollMenu";						  // ID of element containing top menu options
var tmoIDprefix = "tmo_";											  // prefix for top menu option IDs

var dropContainer = "mainNav";					    		  // 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 = 1;  						  // number of pixels to the right of the top menu item where drop menu appears
// You'll think the drops need to be a pixel
// lower until you try it.  Go on, I know you
// don't believe me.  Try it.
var dropMenuVerticalOffset = (IE) ? 35 : 35;    // Y location of drop relative to top of menu button (IE : Non-IE)



/* -=-=-=-=-=-=-[DO NOT EDIT BELOW HERE]-=-=-=-=-=-=-=- */

function getDropInfo(){
// Create event listeners for drop menus
// "var" intentionally not used so vars become global
	drops = getElementsByClassName(MM_findObj(dropContainer), "div", dropMenuClass);  // Create array of all drops
    if ( drops && drops.length > 0 && drops[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 + padding compensation set above
	    drops[0].style.display="none";
	    drops[0].style.visibility="visible";

	    maxDropPos = MM_findObj(siteContainerID).offsetWidth - dropMenuWidth;  // Furthest left that a drop menu should appear to avoid spilling over right edge of site
	}
}


///////////////////////////////////////////////////////////////////////////////

jQuery(getDropInfo);

///////////////////////////////////////////////////////////////////////////////




















