var loading = null; function Is() { agent = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); this.ns = ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1))); this.ns4 = (this.ns && (this.major == 4)); this.ns6 = (this.ns && (this.major >= 5)); this.ie = (agent.indexOf("msie") != -1); this.ie3 = (this.ie && (this.major < 4)); this.ie4 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") == -1)); this.ie5 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") != -1)); this.ie55 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.5") != -1)); this.ie6 = (this.ie && (agent.indexOf("msie 6.0")!=-1) ); } var is = new Is(); crossBrwDiv(); function layerObject(id,position,left,top,visibility) { if (is.ie5|| is.ie55||is.ie6|| is.ns6) { this.obj = document.getElementById(id).style; this.obj.position = position; this.obj.left = left; this.obj.top = top; this.obj.visibility = visibility; return this.obj; } } function layerSetup() { loading=new layerObject('loadingMessage','absolute',page_width/2-160,page_height/2-180,'hidden'); } function crossBrwDiv() { if(is.ns6) { page_width=innerWidth; page_height=innerHeight; layerSetup(); } else if(is.ie5 || is.ie55 ||is.ie6) { page_width=document.body.clientWidth; page_height=document.body.clientHeight; layerSetup(); } } /********************************************************************************** ChangeText * Copyright (C) 2001 Thomas Brattli * This script was released at DHTMLCentral.com * Visit for more great scripts! * This may be used and changed freely as long as this msg is intact! * We will also appreciate any links you could give us. * * Made by Thomas Brattli * * Script date: 08/02/2001 (keep this date to check versions) *********************************************************************************/ function lib_bwcheck(){ //Browsercheck (needed) this.ver=navigator.appVersion this.agent=navigator.userAgent this.dom=document.getElementById?1:0 this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } var bw=lib_bwcheck() if(document.layers){ //NS4 resize fix... scrX= innerWidth; scrY= innerHeight; onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} } } //ChangeText object constructor. function makeChangeTextObj(obj){ this.css = bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0; this.writeref = bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0; this.writeIt = b_writeIt; } function b_writeIt(text){ if (bw.ns4){ this.writeref.write(text) this.writeref.close() } else this.writeref.innerHTML = text } //The mouoseover function. Calls the writeIt method to write the text to the div. function changeText(msg){ if(bw.bw) oMessage.writeIt(msg) } //The init function. Calls the object constructor and initiates some properties. function changeTextInit(){ //Fixing the browsercheck for opera... this can be removed if the browsercheck has been updated!! bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false if (bw.opera5) bw.ns6 = 0 oMessage = new makeChangeTextObj('loadingMsg') //Setting the style properties of the text layer. //Both layers are hidden by default to prevent users from mousing over them and creating errors while the page loads. oMessage.css.visibility= "visible" } //If the browser is ok, the init function is called on pageload. if (bw.bw) onload = changeTextInit