var dyn = (document.all || document.layers || document.getElementById) ? true : false;var ie = (navigator.appName.indexOf('Microsoft') != -1) ? true : false;var ie4 = (ie && document.all && !document.getElementById) ? true : false;var ie5 = (ie && document.getElementById && navigator.userAgent.indexOf('MSIE 6.0') == -1) ? true : false;var ie6 = (ie && document.getElementById && !ie5) ? true : false;var ie4Min = (ie4 || ie5 || ie6) ? true : false;var ie5Min = (ie5 || ie6) ? true : false;var ie6Min = ie6;var ns = (navigator.appName.indexOf('Netscape') != -1) ? true : false;var ns4 = (ns && document.layers) ? true : false;var ns6 = (ns && document.getElementById) ? true : false;var ns4Min = (ns4 || ns6) ? true : false;var ns6Min = ns6;function getLayerObj(LAYERID) {if (ie4) return document.all[LAYERID];else if (ns4) {var tempLayerObj = null;var tempParentObj = (arguments.length == 1) ? document : arguments[1];for (var tempLayerLoop in tempParentObj.layers) {var tempObj = tempParentObj.layers[tempLayerLoop];var tempConstructor = tempObj.constructor + '';if (tempConstructor.indexOf('function Layer()') != -1) {if (tempLayerLoop == LAYERID) return tempObj;else if (tempObj.document.layers.length > 0) tempLayerObj = getLayerObj(LAYERID,tempObj);}}return tempLayerObj;}else if (dyn) return document.getElementById(LAYERID);}function hideLayer(LAYEROBJ) {if (ns4) LAYEROBJ.visibility = 'hide';else if (dyn) LAYEROBJ.style.visibility = 'hidden';}function showLayer(LAYEROBJ) {if (ns4) LAYEROBJ.visibility = 'show';else if (dyn) LAYEROBJ.style.visibility = 'visible';}function setLayerHTML(LAYEROBJ,STR) {if (navigator.userAgent.indexOf('MSIE 5.0') && navigator.userAgent.indexOf('Mac') != -1) STR += '\n';if (ns4) {LAYEROBJ.document.open();LAYEROBJ.document.write(STR);LAYEROBJ.document.close();}else if (dyn) LAYEROBJ.innerHTML = STR;}function moveLayerTo(LAYEROBJ,LEFT,TOP) {if (ns4) {if (isBlank(LEFT)) LEFT = getLayerLeft(LAYEROBJ);if (isBlank(TOP)) TOP = getLayerTop(LAYEROBJ);LAYEROBJ.moveTo(LEFT,TOP);}else if (dyn) {if (!isBlank(LEFT)) LAYEROBJ.style.left = LEFT + 'px';if (!isBlank(TOP)) LAYEROBJ.style.top = TOP + 'px';}}function getWinWidth() {if (ie4Min) return document.body.clientWidth;else if (ns4Min) return window.innerWidth;}function isBlank(STR) {if (dyn) {if (STR == null) STR = ''; STR += '';STR = STR.replace(/^\s+|\s+$/g,'');return (STR == '') ? true : false;}}
