var bV=parseInt(navigator.appVersion); var NS4=(document.layers) ? true : false; var IE4=((document.all)&&(bV>=4))?true:false; var ver4 = (NS4 || IE4) ? true : false; var curExpandEl = null; var isExpanded = false; var menus = new Array(); var LAYER_LEFT = 180; var LAYER_TOP = 10; var IMG_PATH = "/images/"; var FLAG_LAYER = "layer"; var FLAG_ITEM = ""; function initFlag(layer,item){ FLAG_LAYER = layer; FLAG_ITEM = item; } function menu(name,link,code,img){ this.name = name; this.link = link; this.code = code; this.img = img; this.bars = new Array(); this.addMenuBar = addMenuBar; } function addMenuBar(m){ this.bars[this.bars.length] = m; } function addMenu(m){ menus[menus.length] = m; } function initMenu(oMenu){ with(document){ write(''); //alert(menus.length); for(var i=0;i'); write(''); write(''); //memu bar write(''); write(''); write(''); } write('
'); write(''); write(''); write('
'); write('
'); write(''); //alert(m.bars.length); for(var j=0;j'); write(''); write(''); write(''); write(''); write(''); } write('
'); write(''+bar.name+''); write('
'); write('
'); } initIt(oMenu); } function getLink(link,name){ if(link==null) link = "#"; else if(name!=null){ var link_index = link.indexOf("?"); if(link_index>-1) link += "&menu="+name; else link += "?menu="+name; } return link; } function createLayer(code,info,w,h){ with(document){ write('
'); write(''); write('') write(''); write(''); write('
'+info+'
'); write('
'); } } function showLayer(code,state,left,top,map) { //v6.0 var oDiv = document.all(FLAG_LAYER+code); //alert(oDiv); if(state == "show"){ var position; if(map!=null) position = getPosition(map); else position = getPosition(code); //alert("The div element is at (" + position.left + "," + position.top + ")\n" ); if(left == null)left = LAYER_LEFT; if(top == null)top = LAYER_TOP; oDiv.style.left = position.left+left; oDiv.style.top = position.top+top; oDiv.style.visibility = "visible"; }else oDiv.style.visibility = "hidden"; } function position(left,top){ this.left = left; this.top = top; } function getPosition(code){ var oElement = document.all(FLAG_ITEM+code); var left = oElement.offsetLeft; var top = oElement.offsetTop; while(oElement.offsetParent){ left += oElement.offsetParent.offsetLeft; top += oElement.offsetParent.offsetTop; oElement = oElement.offsetParent; } return new position(left,top); } function showPosition(code) { var position = getPosition(code); alert("The TD element is at (" + position.left + "," + position.top + ")\n" ); } function getIndex(el) { ind = null; for (i=0; i0) tempColl(i).style.display = "none"; } } } function isDivExpand(el) { var e = eval(el + "Child"); return e.style.display == "block"; } function expandIt(el,link) { if (!ver4) return; if (IE4) {expandIE(el,link)} else {expandNS(el,link)} } function expandIE(el,link) { whichEl = eval(el + "Child"); if (whichEl.style.display == "none") { whichEl.style.display = "block"; } else { whichEl.style.display = "none"; } if(curExpandEl!=null && curExpandEl.id.indexOf(el)==-1){ curExpandEl.style.display = "none"; } curExpandEl = whichEl; if(link!=null && link!="#") window.location.href = window.location.protocol+link; } function expandNS(el) { whichEl = eval("document." + el + "Child"); whichIm = eval("document." + el + "Parent.document.images['imEx']"); if (whichEl.visibility == "hide") { whichEl.visibility = "show"; whichIm.src = "bullet-minus.gif"; } else { whichEl.visibility = "hide"; whichIm.src = "bullet-plus.gif"; } arrange(); } function showAll() { for (i=firstInd; i"); if (NS4) { write(".parent {position:absolute; visibility:hidden}"); write(".child {position:absolute; visibility:hidden}"); write(".regular {position:absolute; visibility:hidden}") } else { write(".child {display:none}") } write(""); }