// Roll-Up sub-nav Functions for TOP navigation


// VARIBALES //
//////////////
var delay = "0.5";
var timerID = "0";

// DEFINITIONS ///
/////////////////
delay = delay*1000; //set delay in seconds

//Detect Object Type
if (document.layers){

//Netscape 4 specific code
pre = 'document.';
post = '';
}
if (document.getElementById){

//Netscape 6 specific code
pre = 'document.getElementById("';
post = '").style';
}
if (document.all){

//IE4+ specific code
pre = 'document.all.';
post = '.style';
}

/// FUNCTIONS ///
////////////////
function show(id) {
	eval(pre + id + post).visibility = 'visible';
}
function hide(id) {
	eval(pre + id + post).visibility = 'hidden';
}

function showNav(id)	{
	clearTimeout(timerID);
	show(id);
}

function hideNav(id)	{
	timerID = setTimeout("hide('" + id + "')",delay);

}