﻿///////////////////////////////////////////////////////////////Global Variables For Use With Dynamic FlyOut Menus/////////////////////////////////////////////////////////////var timerID = null;var timerOn = false;var timecount = 400;///////////////////////////////////////////////////////////////Shows Dynamic Sub Menu, Need The TD ID To Get The Correct X,Y Lccation Of TD Tag//So We Can Place The Dynamic Sub Menu Div Element In The Correct Position/////////////////////////////////////////////////////////////function ShowDynamicMenu(tdID, divSubMenuName) {    var offsetTrail = document.getElementById(tdID);    var offsetLeft = 0;    var offsetTop = 0;    while (offsetTrail) {        offsetLeft += offsetTrail.offsetLeft;        offsetTop += offsetTrail.offsetTop;        offsetTrail = offsetTrail.offsetParent;    }    if (navigator.userAgent.indexOf("Mac") != -1 &&         typeof document.body.leftMargin != "undefined") {        offsetLeft += document.body.leftMargin;        offsetTop += document.body.topMargin;    }    //Set Position/Visibility Of Dynamic Menu	document.getElementById(divSubMenuName).style.visibility = "visible";	document.getElementById(divSubMenuName).style.display = 'block';   document.getElementById(divSubMenuName).style.position = 'absolute';	document.getElementById(divSubMenuName).style.left = offsetLeft + 100 + "px";		document.getElementById(divSubMenuName).style.top = offsetTop + "px";}///////////////////////////////////////////////////////////////Set The CSS Style Of The Static MousedOver TD Cell/////////////////////////////////////////////////////////////function StopTime(tdCell) {//	document.getElementById(tdCell).style.cursor = "pointer";	document.getElementById(tdCell).style.backgroundColor = "#003478";	document.getElementById(tdCell).style.color = "#FFFFFF";	if (timerOn) {    	clearTimeout(timerID);        timerID = null;        timerOn = false;	}}///////////////////////////////////////////////////////////////Sets Static Menu Items Style When MousedOut/////////////////////////////////////////////////////////////function SetStaticMenuStyleOff(tdCell){    tdCell.style.backgroundColor = "#AF0028";}///////////////////////////////////////////////////////////////Sets Static Menu Items Style When MousedOver/////////////////////////////////////////////////////////////function SetStaticMenuStyleOn(tdCell){	tdCell.style.cursor = "pointer";    tdCell.style.backgroundColor = "#000000";}///////////////////////////////////////////////////////////////Sets Dynamic MenuItems Style When MousedOver/////////////////////////////////////////////////////////////function DynamicMenuItemStyleHover(tdCell) {	tdCell.style.cursor = "pointer";    tdCell.style.backgroundColor = "#009B3a";}/////////////////////////////////////////////////////////////
//Adds Hand Pointer To Moused Over Images
/////////////////////////////////////////////////////////////
function MakePointer(id) {
	id.style.cursor = "pointer";
}
///////////////////////////////////////////////////////////////Sets Dynamic MenuItems Style When MousedOut/////////////////////////////////////////////////////////////function DynamicMenuItemStyle(tdCell) {    tdCell.style.backgroundColor = "#003478";}///////////////////////////////////////////////////////////////Set The CSS Style Of The Static MousedOut TD Cell/////////////////////////////////////////////////////////////function StartTime(tdCell) {	//document.getElementById(tdCell).style.backgroundColor = "#FFFFFF";//	document.getElementById(tdCell).style.color = "#003478";		if (timerOn == false) {         timerID=setTimeout( "HideAllDynamicMenus()" , timecount);         timerOn = true;	}	document.getElementById(tdCell).style.backgroundColor = "#FFFFFF";	document.getElementById(tdCell).style.color = "#003478";}/////////////////////////////////////////////////////////////// Navigates To Supplied URL/////////////////////////////////////////////////////////////function NavigateURL(URL) {	window.location = URL;}///////////////////////////////////////////////////////////////Hides All Dynamic Menus/////////////////////////////////////////////////////////////function HideAllDynamicMenus() {	HideDynamicMenu('divCourier');}///////////////////////////////////////////////////////////////Hides Single Dynamic Menu, Used By Function HideAllDynamicMenus()/////////////////////////////////////////////////////////////function HideDynamicMenu(divDynamicMenu) {    if (document.getElementById(divDynamicMenu).style.display != "none")    {        document.getElementById(divDynamicMenu).style.display = "none"    }}