function Arrays(n) { this.length = n; for (var i = 0; i<=n; i++) { this[i] = new Image(); } return this; } function OverImage(num) { if (on[num].src != "") { document.images['Image' + num].src = on[num].src; } return true; } function OutImage(num) { if (off[num].src != "") { document.images['Image' + num].src = off[num].src; } return true; } function displayWin(nmb,URL,width,height,sb) { this.width = width+40; this.height = height+40; var Win = window.open(URL,nmb,"top=10,left=10,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+sb+",resizable=yes,width="+this.width+",height="+this.height); } function detectBrowser() { this.lang = 'undefined'; this.height = 500; with (navigator) { if(userAgent.indexOf('Opera')>=0) { this.lang = userAgent.substring(userAgent.indexOf("[") + 1, userAgent.indexOf("]")); this.height = window.innerHeight; } else {if(userAgent.indexOf('MSIE')>=0) { this.lang = browserLanguage; this.height = window.document.body.clientHeight; } else {if(appName.indexOf('Netscape')>=0) { this.lang = userAgent.substring(userAgent.indexOf("[") + 1, userAgent.indexOf("]")); this.height = window.innerHeight; }}} } }