// browser detection var isGecko; var ipaMenuNew = new Array (); var otherHeight = 220; var count; //var highlightTXT; ua = navigator.userAgent; if (ua.indexOf ("Gecko") != -1) { isGecko = true; } // obj MainMenu function MainMenuLM (name, id) { // parse which item in the submenu should be highlighted var url = new String(document.location); var locL0; var endHltTXT; if ((locL0 = url.indexOf("&l0=")) != -1) { if ((endHltTXT = url.indexOf("&",locL0+1)) == -1) { endHltTXT = url.length; } // if highlightTXT = url.substring(locL0+4,endHltTXT); highlightTXT = replace(highlightTXT,"++","&"); highlightTXT = replace(highlightTXT,"%20"," "); } // if - else this.name = name; this.id = id; this.items = new Array(); this.addMenuItem = addMainMenuItemLM; this.noMoreItems = endItemLM; this.returnMainMenuItem = retItemLM; this.height = 23; document.writeln("
| "); //document.write(" |
| ");
document.write(" ");
// if the item is selected load the different arrow image
if ((highlightTXT != "") && (name.indexOf(highlightTXT) != -1)) {
document.write(" ");
document.write(" ");
} else {
document.write(" ");
} // if - else
document.write(" | ");
// the text
document.write("");
} else {
document.write("'>");
} // if - else
document.write(" ");
document.write("");
document.write(name);
document.write("");
document.write(" ");
document.write(" |
";
puscica += "";
document.write ("| " + link + " | "); document.write ("" + puscica + " | "); document.writeln (""); this.UIObj = document.getElementById (id); } // shared functions function locateYLM (obj) { var curtop = 0; if (obj.offsetParent) { while (obj.offsetParent) { // alert("id = "+obj.id+" ; obj.offsetTop = "+obj.offsetTop); curtop += obj.offsetTop; obj = obj.offsetParent; } } else if (obj.y) { curtop += obj.y; } return curtop; } function locateXLM (obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft; obj = obj.offsetParent; } } else if (obj.x) { curleft += obj.x; } return curleft } function showSubMenuLM (objName) { getObj = objName; htmlObj = document.getElementById (getObj); if (htmlObj) { jsObj = eval(objName); while (jsObj.parent) { htmlObj = document.getElementById (jsObj.id); htmlObj.style.visibility = "visible"; jsObj = jsObj.parent; if (jsObj.parent) jsObj = jsObj.parent; } } } function hideSubMenuLM (objName) { getObj = objName; htmlObj = document.getElementById (getObj); if (htmlObj) { jsObj = eval(objName); while (jsObj.parent) { htmlObj = document.getElementById (jsObj.id); htmlObj.style.visibility = "hidden"; jsObj = jsObj.parent; if (jsObj.parent) jsObj = jsObj.parent; } } } function highlightMainMenuLM (objName, showArrow) { var obj = document.getElementById (objName); if (showArrow) { obj.style.backgroundColor = "#A5BAD5"; obj.style.color = "#ffffff"; obj = document.getElementById (objName+"Gif"); if (obj) { //obj.src = obj.alternate.src; } obj = document.getElementById (objName + "pshow_image"); obj.style.display = "none"; obj = document.getElementById (objName + "phide_image"); obj.style.display = ""; } else { obj.style.backgroundColor = "#CB3906"; obj.style.color = "#ffffff"; obj = document.getElementById (objName+"Gif"); if (obj) { //obj.src = obj.alternate.src; } obj = document.getElementById (objName + "pshow_image"); } // if - else obj = document.getElementById (objName + "pshow_text"); obj.style.display = "none"; obj = document.getElementById (objName + "phide_text"); obj.style.display = ""; obj.style.color = "#ffffff"; } function normalMainMenuLM (objName, currentName) { var obj = document.getElementById (objName); if (!((highlightTXT != "") && (currentName.indexOf(highlightTXT) != -1))) { obj.style.backgroundColor = "#F8F8F7"; obj.style.color = "#000000"; obj = document.getElementById (objName+"Gif"); if (obj) { //obj.src = obj.original.src; } obj = document.getElementById (objName + "phide_image"); obj.style.display = "none"; obj = document.getElementById (objName + "phide_text"); obj.style.display = "none"; obj = document.getElementById (objName + "pshow_image"); obj.style.display = ""; obj = document.getElementById (objName + "pshow_text"); obj.style.display = ""; } else { obj.style.backgroundColor = "#CB3906"; obj = document.getElementById (objName + "phide_image"); obj.style.display = "none"; obj = document.getElementById (objName + "pshow_image"); obj.style.display = ""; } // if - else } function highlightSubMenuLM (objName) { var obj = document.getElementById (objName); var objTD = document.getElementById (objName+"TD"); obj.style.backgroundColor = "#A5BAD5"; obj.style.color = "#ffffff"; objTD.style.color = "#ffffff"; obj = document.getElementById (objName+"Gif"); if (obj) { obj.src = obj.alternate.src; } } function normalSubMenuLM (objName) { var obj = document.getElementById (objName); var objTD = document.getElementById (objName+"TD"); obj.style.backgroundColor = "#F8F8F7"; obj.style.color = "#000000"; objTD.style.color = "#000000"; obj = document.getElementById (objName+"Gif"); if (obj) { obj.src = obj.original.src; } } function preloadImgLM (obj, activeGif, inactiveGif) { obj.alternate = new Image(); obj.alternate.src = activeGif; obj.original = new Image(); obj.original.src = inactiveGif; } function reCalcLM () { var k; for (i=0;i