//in your page, create an array of DIVs like this: allMenus = new Array("1","2","3")
//visibility:visible, hidden
//9/21/2005

var allMenus = new Array(
	"worldMenu",
	"productsMenu",
	"trainingMenu",
	"supportMenu",
	"partnersMenu",
	"companyMenu"
)

function maybeShow(objectID,whatToDo){
	//alert(object.onmouseover);
	var menuDelay=0.3; 
	this.timer=setTimeout(("showHideLayers('"+objectID+"','"+whatToDo+"')"),1000*menuDelay);
}



	
function showHideLayers(objectID,whatToDo){
	//alert(object.onmouseout);

//either hide it or show it
if(whatToDo=="hide"){
	hideMenu(objectID)
	}else{
	//else, open it, and close everything else
	for (i=0; i<allMenus.length;i++){
		if (objectID == allMenus[i]) 
		{
			showMenu(objectID) 
			}else{
			hideMenu(allMenus[i]) 
			}
		}
	}
}


function showMenu(objectID) {
	if (isAll || isID) {
		var domStyle = findDOM(objectID,1);
		//domStyle.visibility='visible';
		domStyle.display='block'; //use this to fix an IE printing bug w/visibility
	}
	return;
}

function hideMenu(objectID) {
	if (isAll || isID) {
		var domStyle = findDOM(objectID,1);
		//domStyle.visibility='hidden';
		domStyle.display='none'; //use this to fix an IE printing bug
	}
	return;
}
