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


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) {
		domStyle = findDOM(objectID,1);
		domStyle.visibility='visible';
	}
	return;
}

function hideMenu(objectID) {
	if (isAll || isID) {
		domStyle = findDOM(objectID,1);
		domStyle.visibility='hidden';
	}
	return;
}

