var over_submenu = new Array(); var id1 = 1; while(eval("window.submenu"+id1+"_1_text")) { document.write("
"); id1++; } var menuNum = id1 - 1; ;function activate(id) { over_submenu[id] = true; deactivateAll(); //setImageSrc("image"+id, eval("window.image"+id+"_highlight_src")); showSubMenu(id); } ;function deactivate(id) { over_submenu[id] = false; deactivateAllDelay(); } ;function deactivateAllDelay() { setTimeout("deactivateAll()",hide_delay); } ;function deactivateAll() { var id = 1; while( id <= menuNum ) { if(!over_submenu[id]) { hideSubMenu(id); //setImageSrc("image"+id, eval("window.image"+id+"_src")); } id++; } } /*;function setImageSrc(theImageName,theImageSrc) { if(document.images) { document.images[theImageName].src=theImageSrc; } } */ ;function link(url, target) { if(target == "_self") { window.location.href=url; } else { window.open(url, target); } } ;function showSubMenu(id) { var theImageName = "image" + id; var theImage; if(document.images) { theImage = document.images[theImageName]; } if( document.getElementById ) var theSubMenu = document.getElementById("submenu"+id); else var theSubMenu = eval("submenu"+id); theSubMenu.style.top = getCoordinates(theImage).y + theImage.height - 1; theSubMenu.style.left = getCoordinates(theImage).x + submenu_x; theSubMenu.style.visibility = 'visible'; } ;function getCoordinates(obj) { var newObj = new Object(); newObj.x = obj.offsetLeft; newObj.y = obj.offsetTop; theParent = obj.offsetParent; while(theParent != null) { newObj.y += theParent.offsetTop; newObj.x += theParent.offsetLeft; theParent = theParent.offsetParent; } return newObj; } ;function setItemColor(theItemName,theItemBgColor,theItemColor) { if(document.all) { document.all[theItemName].style.backgroundColor=theItemBgColor; document.all[theItemName].style.color=theItemColor; } else if( document.getElementById ) { document.getElementById(theItemName).style.backgroundColor=theItemBgColor; document.getElementById(theItemName).style.color=theItemColor; } } ;function hideSubMenu(id) { if( document.all ) var theSubMenu = eval("submenu"+id); else if( document.getElementById ) var theSubMenu = document.getElementById("submenu"+id); theSubMenu.style.visibility='hidden'; }