var isCSS, isW3C, isIE4, isNN4, isIE6CSS; function initDHTMLAPI( ) { if (document.images) { isCSS = (document.body && document.body.style) ? true : false; isW3C = (isCSS && document.getElementById) ? true : false; isIE4 = (isCSS && document.all) ? true : false; isNN4 = (document.layers) ? true : false; isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ? true : false; } } function getInsideWindowWidth( ) { if (window.innerWidth) { return window.innerWidth; } else if (isIE6CSS) { // measure the html element's clientWidth return document.body.parentElement.clientWidth; } else if (document.body && document.body.clientWidth) { return document.body.clientWidth; } return 0; } function getInsideWindowHeight( ) { if (window.innerHeight) { return window.innerHeight; } else if (isIE6CSS) { // measure the html element's clientHeight return document.body.parentElement.clientHeight; } else if (document.body && document.body.clientHeight) { return document.body.clientHeight; } return 0; } function findPos(coord, obj) { var curleft = 0; if (obj.offsetParent){ while (obj.offsetParent){ if (coord == 'x') {curleft += obj.offsetLeft} else {curleft += obj.offsetTop} obj = obj.offsetParent; } } else if (obj.coord) curleft += obj.coord; return curleft; } function getElementStyle(elem, IEStyleProp, CSSStyleProp) { if (elem.currentStyle) { return elem.currentStyle[IEStyleProp]; } else if (window.getComputedStyle) { var compStyle = window.getComputedStyle(elem, ""); return compStyle.getPropertyValue(CSSStyleProp); } return ""; } function playSound(id) { if (document.getElementById(id)) if (document.all && document.getElementById(id).FileName) { document.getElementById(id).Play( ); } } function setDivClass(div, className){ try { if (div.attributes['collapsed'].value != "false") div.className = className;} catch (e) {div.className = className; } } function setParentMenuVisibility(allowHide, menuID){ var menus = document.getElementsByTagName('menu'); for(var j=0; j