var ipBanners = null; var loadBannersOk = false; var isIE5, isIE55, isIE6; var isNN6, isNN7; var isOpera; ua = navigator.userAgent; if( ua.indexOf( "Opera" ) != -1 ){ isOpera = true; } else if( ua.indexOf( "MSIE" ) != -1 ){ vers = ua.substring( ua.indexOf( "MSIE" ) + 5, ua.indexOf( ";", ua.indexOf( "MSIE" ) ) ); if( vers == "6.0" ){ isIE6 = true; } else if( vers == "5.5" ){ isIE55 = true; } else if( vers == "5.0" ){ isIE5 = true; } } else if( ua.indexOf( "Netscape" ) != -1 ){ vers = ua.substring( ua.lastIndexOf( "/" ) + 1, ua.lastIndexOf( "/" ) + 4 ); if( ( vers == "7.0" ) || ( vers == "7.1" ) ){ isNN7 = true; } else if( ( vers == "6.0" ) || ( vers == "6.1" ) || ( vers == "6.2" ) ){ isNN6 = true; } } else if( ua.indexOf( "Mozilla" ) != -1 ){ vers = ua.substring( ua.indexOf( "rv:" ) + 3, ua.indexOf( "rv:" ) + 5 ); if( vers == "1." ){ isNN7 = true; } else if( ( vers == "0." ) ){ isNN6 = true; } } //--------------------------------------------------------------------------------------------------------- // bannerName : unique name // bannerWidth : width in pixels // bannerHeight : height in pixels //--------------------------------------------------------------------------------------------------------- function bannerChanger( bannerName, bannerWidth, bannerHeight ){ this.name = bannerName; this.width = bannerWidth; this.height = bannerHeight; this.pause = new Array(); this.bannersLength = 0; this.currentBanner = 0; this.bannerObjs = new Array(); this.URLs = new Array(); this.imageURLs = new Array(); this.targets = new Array(); this.needToChange = false; this.mouseOver = false; this.timeoutID = null; this.image = null; this.notRun = 1; // methods this.addBanner = addBanner; this.closeBanners = closeBanners; // register banner changer if( ipBanners == null ){ ipBanners = new Array(); } ipBanners[ ipBanners.length ] = this; this.bannerIndex = ipBanners.length - 1; } function addBanner( imageURL, link, target, pause ){ this.bannersLength++; this.bannerObjs[ this.bannerObjs.length ] = null; this.imageURLs[ this.imageURLs.length ] = imageURL; this.URLs[ this.URLs.length ] = link; this.targets[ this.targets.length ] = target; this.pause[ this.pause.length ] = pause; } function closeBanners(){ this.currentBanner = Math.round( Math.random() * ( this.bannerObjs.length - 1 ) ); document.writeln( "