// 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(""); } function addMainMenuItemLM (name, id, activeGif, inactiveGif, link, mainlink) { var ix = this.items.length; this.items[ ix ] = new MainMenuItemLM (this, ix, name, id, activeGif, inactiveGif, link, mainlink); } function endItemLM () { //document.writeln(""); document.writeln("
"); //document.write("
"); document.writeln(""); for (i=0; i"); document.write(""); // the bullet document.write(""); document.write(""); // the text document.write(""); document.write(""); document.write("
"); document.write("
"); // if the item is selected load the different arrow image if ((highlightTXT != "") && (name.indexOf(highlightTXT) != -1)) { document.write(""); } else { document.write(""); } // if - else document.write("
"); document.write("
"); } else { document.write("'>"); } // if - else document.write("
"); document.write(""); document.write(name); document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("
"); document.write("
"); document.write(""); //document.write(" align='middle'>"); //document.write(name); //document.write(""); //if (link) document.write(""); document.writeln(" "); if ((highlightTXT != "") && (name.indexOf(highlightTXT) != -1)) { highlightMainMenuLM("uiobj" + id, false); } // if this.UIObj = document.getElementById ("uiobj" + id); } /** * Replaces all occuraces of one string with another. * @param _str the string that is about to be replaced. * @param _what what needs to be replaced. * @param _repl the replacement. * @return the new string with replaced substrings. */ function replace(_str, _what, _repl) { var start = 0; var where = -1; while ((where = _str.indexOf(_what,start)) != -1) { _str = _str.substring(0,where)+_repl+ _str.substring(where+_what.length,_str.length); start = where + 1; } // while return _str; } // replace /** * Chooses and display the menu item. * @param _documentPath the path of the document. */ function displayItemLM(_documentPath) { window.location = _documentPath; } // displayItem function addSubMenuLM (id, openDirection) { this.subMenu = new SubMenuLM (this, id, openDirection); return this.subMenu; } // obj SubMenu function SubMenuLM (parent, id, openDirection) { this.parent = parent; this.name = id; this.id = id; this.openDirecton = openDirection; if (openDirection == "horizontal") { this.locX = this.parent.locX + this.parent.parent.myWidth - 1; } else this.locX = this.parent.locX + 139; if (openDirection == "vertical") this.locY = this.parent.locY + this.parent.parent.height - 20; else this.locY = this.parent.locY - 1; count = Math.floor((window.screen.availHeight - otherHeight - 260) / 19); if (count < 8) count = 8; this.items = new Array(); this.addSubMenuItem = addSubMenuItemLM; this.noMoreItems = endSubMenuItemLM; this.returnSubMenuItem = retItemLM; document.write ("
"); document.write (""); } function addSubMenuItemLM (name, id, menuHref, menuTarget, elNumber) { var ix = this.items.length; this.items[ ix ] = new SubMenuItemLM (this, ix, name, id, menuHref, menuTarget, elNumber); } function endSubMenuItemLM () { document.writeln ("
"); document.writeln (""); document.writeln ("
"); for (i=0; i"); } else { myWindow = "\"" + menuHref + "\", "; if (!menuTarget) { myWindow += "\"_top\""; } else { myWindow += "\"" + menuTarget + "\""; } link = name; puscica += " "; puscica += "
"; myCursor = " cursor: pointer;"; if ((elNumber % count) == 0) { stil = ""; if (elNumber >= count) { document.write (""); stil = "style='"; stil += "border-left: 1px solid;"; stil += " border-left-color: #E8E8E8;"; stil += "' "; } if (elNumber < count) document.writeln (""); document.write(""); document.write (""); } document.write (""); } document.write (""); document.write (""); 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
" + puscica + "