<!-- 

with (navigator) {
  if(appName=="Netscape") {
    // easy check
    if(appVersion.substring(0,1) < "5" ) {
      window.location.replace("browserAlert.html");
    }

//    if( userAgent.indexOf("Netscape6/6.2") == -1 &&
//        userAgent.indexOf("rv:0.9.8") == -1 &&
//        userAgent.indexOf("rv:0.9.9") == -1 &&
//	userAgent.indexOf("rv:1.0") == -1 &&
//        // if you're running it, you should know enough to have
//        // a recent version... Viva Linux!
//        userAgent.indexOf("Galeon") == -1 &&
//        userAgent.indexOf("SkipStone") == -1) {
//       window.location.replace("browserAlert.html");
//    }

  }
}
//--> 

is = new BrowserCheck();

function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.p = navigator.platform
	this.ie = (this.b=="ie" && this.v>=4 && this.p=="Win32")
	this.ns = (this.b=="ns" && this.v>=4)
	
	//this.v = parseInt(navigator.appVersion)
	this.three = (this.v < 4)
	//var b = navigator.appName
	//if (b=="Netscape") this.b = "ns"
}

if (is.three) {
		hasFlash = "plugin";
} else {

  flash5Installed = false;		
	
	if (navigator.plugins) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]
		&& navigator.mimeTypes["application/x-shockwave-flash"] 
		&& navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {		
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));

			flash5Installed = flashVersion >= 5;
		}
	}
	
  var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
  var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;

  if(isIE && isWin){
  	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
  	document.write('on error resume next \n');
  	document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');	
  	document.write('</SCR' + 'IPT\> \n');
  }	
	
	if (flash5Installed) {
		hasFlash = "plugin";
	} else {
		hasFlash = "plugin";
	}
}


function getAttr(height,width){

if (is.ns) {
         // Center on the main window.
         dialogleft = window.screenX + ((window.outerWidth - width) / 2);
         dialogtop = window.screenY + ((window.outerHeight - height) / 2);
         var attr = "screenX=" + dialogleft + ",screenY=" + dialogtop + ",width=" + width + ",height=" + height;
      } else if (isIE){
         // The best we can do is center in screen.
         dialogleft = (screen.width - width) / 2;
         dialogtop = (screen.height - height) / 2;
         var attr = "left=" + dialogleft + ",top=" + dialogtop + ",width=" + width + ",height=" + height;
      } else {
      	 var attr = "width=" + width + ",height=" + height;
      }
      return (attr);
}


function OpenWindow(height,width,link){
	attr = getAttr(height,width);
	dialog = window.open(link,'nexWin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,' + attr);
	dialog.opener = this;
}

<!-- 

	var x = 0;
	var dest = 0;
	var distance = 0;
	var step = 0;
	var destination = 0;
	var xPos = 0;

function scrollit(destination) {
		step = 5;
		dest = destination;

		if (x<dest) {
			while (x<dest) {
				step += (step / 20);
				x += step;
				scroll(x,0);
			} 
			scroll(dest,0);
			x = dest;
		}

    	if (x > dest)  {
			while (x>dest) {
				step += (step / 20);
                if(x >= (0+step))
				  {
				    x -= step; 
					scroll(x,0);
                  }
				    else { break;  }
			} 

			if(dest >= 0) { scroll(dest,0); }
			x = dest;
		}

		if (x<1) {x=1}
}
//--> 



function swapImg(towhat, gotolink) {
	imgChange = new Image();
	imgChange.src = towhat;
	var linkChange = new String(gotolink);
	linkChange=gotolink;
	document.images.targetimage.src = imgChange.src;
	document.links[13].href = linkChange;
	if (x<250) {
		scrollit(x+305);
		}
}
