// // if (!MenuSetAClass) var MenuSetAClass = ""; if (!MenuSetHead) var MenuSetHead = ""; if (!MenuSetTail) var MenuSetTail = ""; if (!MenuAClassAy) var MenuAClassAy = new Array( "", "", "", "", "", "", "" ); if (!MenuMainAy) var MenuMainAy = new Array( "width:100%; background-color:#dddddd;", "width:100%; background-color:#dddddd;", "width:100%; background-color:#dddddd;", "width:100%; background-color:#dddddd;", "width:100%; background-color:#dddddd;", "width:100%; background-color:#dddddd;", "width:100%; background-color:#dddddd;" ); if (!MenuSubAy) var MenuSubAy = new Array( "width:100%; margin-top:1px;", "width:100%; margin-top:1px;", "width:100%; margin-top:1px;", "width:100%; margin-top:1px;", "width:100%; margin-top:1px;", "width:100%; margin-top:1px;", "width:100%; margin-top:1px;" ); if (!MenuItemAy) var MenuItemAy = new Array( "width:100%; background-color:#f0f0f0;", "width:100%; background-color:#f0f0f0;", "width:100%; background-color:#f0f0f0;", "width:100%; background-color:#f0f0f0;", "width:100%; background-color:#f0f0f0;", "width:100%; background-color:#f0f0f0;", "width:100%; background-color:#f0f0f0;" ); if (!MenuDescAy) var MenuDescAy = new Array( "width:100%; color:#888888;", "width:100%; color:#888888;", "width:100%; color:#888888;", "width:100%; color:#888888;", "width:100%; color:#888888;", "width:100%; color:#888888;", "width:100%; color:#888888;" ); if (!MenuIconAy) var MenuIconAy = new Array( ".", ".", ".", ".", ".", ".", "." ); if (!MenuIcon0Ay) var MenuIcon0Ay = new Array( "◆", "◆", "◆", "◆", "◆", "◆", "◆" ); if (!MenuIcon1Ay) var MenuIcon1Ay = new Array( "▽", "▽", "▽", "▽", "▽", "▽", "▽" ); if (!MenuHeadWidth) var MenuHeadWidth = 16; var MenuOpen = "", MenuIsRoot = 1; // // function MenuCreate_(cDivMenu, cXmlData, cMenuOpen, cisRoot) { MenuOpen = cMenuOpen; MenuIsRoot = cisRoot; var xmlData = (typeof(cXmlData) == "string") ? document.getElementById(cXmlData) : cXmlData; var childAy = xmlData.childNodes, len = childAy.length; for (var i=0; i"+node.getAttribute("caption")+""; cHREF = node.getAttribute("href"); if (window.MenuPrepareAhref_) cHREF = MenuPrepareAhref_(cHREF); cTarget = node.getAttribute("target"); if (!cTarget) cTarget = "_self"; cDesc = node.getAttribute("desc"); if (!cDesc) cDesc = ""; cWidth = node.getAttribute("width"); cFields = node.getAttribute("fields"); cMenuHeadWidth = MenuHeadWidth * ((MenuIsRoot) ? n : n-1); isopen = node.getAttribute("isopen") && node.getAttribute("isopen")!="0"; if (MenuOpen == "all") isopen = 1; else if (MenuOpen == "1") { isopen = 1; MenuOpen = ""; } else if (MenuOpen.indexOf(":"+cID+":") != -1) isopen = 1; cIsOpen = (isopen) ? "" : "none"; cIsClose = (isopen) ? "none" : ""; isChild = 0; childAy2 = node.childNodes; len2 = childAy2.length; for (var i2=0; i2"+cFieldsAy2[0]+""; } cFieldStr += ""; } if (isChild) { s1 = s2 = ""; if (cHREF) s2 = ""; if (MenuIsRoot || n) { ret += ""+((cFieldStr) ? "" : "")+"
"; ret += ""; ret += "" ret += ""; ret += ""; ret += ""; ret += "
"+ s2 + cCaption +"
"+((cDesc) ? ""+ cDesc +"" : "")+"
"+cFieldStr+"
"; } else cIsOpen = ""; ret += ""; } else { if (!cHREF) cHREF = "javascript:;"; s1 = "
"; ret += ""+((cFieldStr) ? "" : "")+""; } } return ret; } // // function MenuShowHide_(cMenuID) { var div = document.getElementById(cMenuID); div.style.display = (div.style.display == "none") ? "" : "none"; } // // function MenuShowItem_(cDivMenu, cMenuID) { if (!cDivMenu || !cMenuID) return; var div = document.getElementById("menu_"+cMenuID); if (div) while (div.getAttribute("id") != cDivMenu && div) { if (div.getAttribute("id")) { div.style.display = ""; cMenuID = div.getAttribute("id"); cMenuID = cMenuID.substr(5); if (document.getElementById("menu0_"+cMenuID)) document.getElementById("menu0_"+cMenuID).style.display = "none"; if (document.getElementById("menu1_"+cMenuID)) document.getElementById("menu1_"+cMenuID).style.display = ""; } div = div.parentNode; } } // // function PathMenuCreate_(cXmlData, mi, ni) { var xmlData = (typeof(cXmlData) == "string") ? document.getElementById(cXmlData) : cXmlData; var childAy = xmlData.childNodes, len = childAy.length; for (var i=0; i"; if (cID==mi) ret = cCaption; else if (cID==ni) ret = s1 + cCaption +""; if (isChild) if (cID != ni) { s = doPathMenuCreate_(node, mi, ni, n+1); if (s) ret += ((ret) ? " > " : "")+ s; } } return ret; } // // function MenuSetCreate_(cXmlData, mi) { var xmlData = (typeof(cXmlData) == "string") ? document.getElementById(cXmlData) : cXmlData; var childAy = xmlData.childNodes, len = childAy.length; for (var i=0; i"+MenuSetHead+cCaption2+MenuSetTail+""; } return ret; } ret = doMenuSetCreate_(node, mi); if (ret) return ret; } return ret; }