window.addEventListener("load", function () {onload (); onload = null}, false); Node.prototype.addEvent = function (event, aktion) { if (this.attachEvent) { this.attachEvent (event, aktion); } else { this.addEventListener (event.substr (2), aktion, false); } }; window.addEvent = Node.prototype.addEvent; if (top==self) { window.close (); } // wird sowieso ausgeführt // window.addEvent ("onload", onload); function onload () { progress (true); window.loaded = true; } var _progress = 0; function progress (show) { var progressbar = document.getElementById ("progressbar"); var status = document.getElementById ("status"); if (!show) { _progress = 0; progressbar.style.width = 0; progressbar.style.visibility = "hidden"; status.style.visibility = "visible"; return; } if (!_progress) { if (show==2) return; if (show) { progressbar.style.visibility = "visible"; status.style.visibility = "hidden"; } } _progress = _progress + ((100 - _progress) / 70); progressbar.style.width = _progress + "%"; setTimeout ("progress (2)", 100); } function setStatus (text) { progress (false); var status = document.getElementById ("status"); if (text) { status.innerHTML = " " + text + " "; } } var moveleft = 0; var movewidth; var movetimeout; function move (stop) { var status = document.getElementById ("status"); clearTimeout (movetimeout); if (stop) { status.style.left = 0; moveleft = 0; return; } moveleft -= 5; if (moveleft > (document.body.offsetWidth - status.offsetWidth)) { movetimeout = setTimeout( "move ()", 50 ); status.style.left = moveleft; } }