var isExpanded = false; var imgOpened = new Image(9,9); imgOpened.src = 'images/minus.gif'; var imgClosed = new Image(9,9); imgClosed.src = 'images/plus.gif'; /** * Do reloads the frame if the window has been resized under Netscape4+ * * @access private */ function reDo() { if (innerWidth != origWidth || innerHeight != origHeight) location.reload(true); } // end of the 'reDo()' function /** * Positioned element resize bug under NS4+ */ if (isNS4) { var origWidth = innerWidth; var origHeight = innerHeight; onresize = reDo; } /** * Specific stuffs for IE4 */ function doDocumentOnMouseOver() { var eSrc = window.event.srcElement ; if (eSrc.className == 'item') { window.event.srcElement.className = 'highlight'; } } // end of the 'doDocumentOnMouseOver()' function function doDocumentOnMouseOut() { var eSrc = window.event.srcElement ; if (eSrc.className == 'highlight') { window.event.srcElement.className = 'item'; } } // end of the 'doDocumentOnMouseOut()' function if (isIE4) { document.onmouseover = doDocumentOnMouseOver ; document.onmouseout = doDocumentOnMouseOut ; } /** * Gets the id of the first collapsible room * * @param string the name of the first collapsible room * * @return integer the index number corresponding to this room * * @access public */ function nsGetIndex(el) { var ind = null; var layersCnt = document.layers.length; for (var i = 0; i < layersCnt; i++) { var whichEl = document.layers[i]; if (whichEl.id == el) { ind = i; break; } } return ind; } // end of the 'nsGetIndex()' function /** * Positions layers under NS4+ * * @access public */ function nsArrangeList() { if (firstInd != null) { var nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height; var layersCnt = document.layers.length; for (var i = firstInd + 1; i < layersCnt; i++) { var whichEl = document.layers[i]; if (whichEl.visibility != 'hide') { whichEl.pageY = nextY; nextY += whichEl.document.height; } } } } // end of the 'nsArrangeList()' function /** * Expand databases at startup * * @access public */ function nsShowAll() { var layersCnt = document.layers.length; for (i = firstInd; i < layersCnt; i++) { whichEl = document.layers[i]; whichEl.visibility = 'show'; } } // end of the 'nsShowAll()' function /** * Collapses databases at startup * * @access public */ function initIt() { if (!capable) return; if (isDOM) { var tempColl = document.getElementsByTagName('DIV'); var tempCollCnt = tempColl.length; for (var i = 0; i < tempCollCnt; i++) { if (tempColl[i].className == 'child') tempColl[i].style.display = 'none'; } } // end of the DOM case else if (isIE4) { tempColl = document.all.tags('DIV'); var tempCollCnt = tempColl.length; for (var i = 0; i < tempCollCnt; i++) { if (tempColl(i).className == 'child') tempColl(i).style.display = 'none'; } } // end of the IE4 case else if (isNS4) { var layersCnt = document.layers.length; for (var i=0; i tags as // style information unless it was written with the one call //r to write(). if (isDOM) { var lstyle = '