// ---------------------------------------------------------------------- // *RADICAL* SCROLLING TITLE BAR FUNCTION! // original code by some guy who ran a crap porn site. // USAGE: scroll_title(); // NOTES: call it in the onLoad function (i think) // WORKS: who gives a rats arse? var txt=document.title; var friction=50; var refresco=200; function scroll_title() { document.title=txt; txt=txt.substring(1,txt.length)+txt.charAt(0); refresco=setTimeout("scroll_title()",friction); } // ---------------------------------------------------------------------- // SIMPLE FULLSCREEN RESIZE FUNCTION: // USAGE: make_fullscreen(); // NOTES: call it in the onLoad function (i think) // WORKS: no idea. function make_fullscreen() { self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight); } // ---------------------------------------------------------------------- // FIXES NETSCAPE RESIZE CRAP: // original code by taylor@wired.com // USAGE: WM_netscapeCssFix(); // NOTES: call it from within the preload function (i think) // WORKS: all problematic Netscapes i guess function WM_netscapeCssFix() { // This part was inspired by Matthew_Baird@wayfarer.com // It gets around another unfortunate bug whereby Netscape // fires a resize event when the scrollbars pop up. This // checks to make sure that the window's available size // has actually changed. if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) { document.location = document.location; } } function WM_netscapeCssFixCheckIn() { // This function checks to make sure the version of Netscape // in use contains the bug; if so, it records the window's // width and height and sets all resize events to be handled // by the WM_netscapeCssFix() function. if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) ==4)) { if (typeof document.WM == 'undefined'){ document.WM = new Object; } if (typeof document.WM.WM_scaleFont == 'undefined') { document.WM.WM_netscapeCssFix = new Object; document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth; document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight; } window.onresize = WM_netscapeCssFix; } } WM_netscapeCssFixCheckIn() // ---------------------------------------------------------------------- // CRAP FROM DREAMWEAVER: function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0; function its() { var n = navigator; var ua = ' ' + n.userAgent.toLowerCase(); var pl = n.platform.toLowerCase(); var an = n.appName.toLowerCase(); // browser version this.version = n.appVersion; this.nn = ua.indexOf('mozilla') > 0; // 'compatible' versions of mozilla aren't navigator if(ua.indexOf('compatible') > 0) { this.nn = false; } this.opera = ua.indexOf('opera') > 0; this.ie = ua.indexOf('msie') > 0; this.major = parseInt( this.version ); this.minor = parseFloat( this.version ); // platform this.mac = ua.indexOf('mac') > 0; this.win = ua.indexOf('win') > 0; // workaround for IE5 which reports itself as version 4.0 if(this.ie) { if(ua.indexOf("msie 5") > 1) { var msieIndex = navigator.appVersion.indexOf("MSIE") + 5; this.major = parseFloat(navigator.appVersion.substr(msieIndex,3)); } } return this; } function browserNaming() { its = new its(); // is it a DOM-enabled browser? if (!document.getElementById) { browserNew = false; } else { browserNew = true; } // need the name, too if (its.opera) { browserName = "Opera"; } else if (its.ie) { browserName = "IE"; } else { browserName = "NS"; } // and the number browserNameLong = browserName + its.major; } // ---------------------------------------------------------------------- // THAT'S ALL FOR NOW...