 /* global variables */
var openNavId = null; // remembers which subNavId is open
var menuTimer = 0; // used to timeout the time delayed close event
var mouseOffset = 25; // the amount away from the mouse the popup will appear (x for top navigations, y for left navigation)

/* style class names */
style_topNavBack = "topNavBack" // used on top level nav object
style_topNavBack_over = "topNavBack_over";


/* navigation mouse events */

function subNavOut() {
menuTimer=setTimeout("closeNavs()",1000);
}


/* div container actions */

function showSubNav(thisDivId){
clearTimeout(menuTimer); // stop the timer that is going to close the navigation device
if (openNavId != thisDivId) {
closeNavs();

document.getElementById(thisDivId).style.visibility = "visible";

openNavId = thisDivId;
}
}

function closeNavs() {
if (openNavId != null) {
document.getElementById(openNavId).style.visibility = "hidden";
openNavId = null;
}
} 