var isNav, isIE; var coll = ""; var styleObj = ""; if (parseInt(navigator.appVersion) >= 4) { if (navigator.appName == "Netscape") { isNav = true; } else { isIE = true; coll = "all."; styleObj = ".style"; } } function getObjHeight(obj) { if (isNav) { return obj.clip.height; } else { return obj.clientHeight; } } function getObjWidth(obj) { if (isNav) { return obj.clip.width; } else { return obj.clientWidth; } } function getInsideWindowWidth() { if (isNav) { return window.innerWidth; } else { return document.body.clientWidth; } } function getInsideWindowHeight() { if (isNav) { return window.innerHeight; } else { return document.body.clientHeight; } } function shiftTo(obj, x, y) { if (isNav) { obj.moveTo(x,y); } else { obj.pixelLeft = x; obj.pixelTop = y; } } function centerIt() { var obj_loading = eval("document." + coll + "loading" + styleObj); var contentObj_loading = eval("document." + coll + "loading"); var x_loading = Math.round((getInsideWindowWidth()/2)-(getObjWidth(contentObj_loading)/2)); var y_loading = Math.round((getInsideWindowHeight()/2)-(getObjHeight(contentObj_loading)/2)); shiftTo(obj_loading, x_loading, y_loading); var obj = eval("document." + coll + "fixieren" + styleObj); var contentObj = eval("document." + coll + "fixieren"); var x = Math.round((getInsideWindowWidth()/2)-(getObjWidth(contentObj)/2)); var y = Math.round((getInsideWindowHeight()/2)-(getObjHeight(contentObj)/2)); shiftTo(obj, x, y); if (document.layers) {ns = 1; ie = 0;} else {ns = 0; ie = 1;} if(ns){ document.layers.loading.visibility = "hide"; document.layers.fixieren.visibility = "show"; } else{ document.all.loading.style.visibility = "hidden"; document.all.fixieren.style.visibility = "visible"; } } function handleResize() { if (isNav) { location.reload(); } else { centerIt(); } } function setPointer(theRow, thePointerColor, theNormalBgColor) { var theCells = null; if (thePointerColor == '' || typeof(theRow.style) == 'undefined') { return false; } if (typeof(document.getElementsByTagName) != 'undefined') { theCells = theRow.getElementsByTagName('td'); } else if (typeof(theRow.cells) != 'undefined') { theCells = theRow.cells; } else { return false; } var rowCellsCnt = theCells.length; var currentColor = null; var newColor = null; // Opera does not return valid values with "getAttribute" if (typeof(window.opera) == 'undefined' && typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') { currentColor = theCells[0].getAttribute('bgcolor'); newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase()) ? theNormalBgColor : thePointerColor; for (var c = 0; c < rowCellsCnt; c++) { theCells[c].setAttribute('bgcolor', newColor, 0); } // end for } else { currentColor = theCells[0].style.backgroundColor; newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase()) ? theNormalBgColor : thePointerColor; for (var c = 0; c < rowCellsCnt; c++) { theCells[c].style.backgroundColor = newColor; } } return true; } // end of the 'setPointer()' function