//----------- Browser Detection -----------var oldTimer = true;if (parseInt(navigator.appVersion) >= 4) {  oldTimer = false;  var browserVar = navigator.platform;  var isWin = browserVar.indexOf("Win") != -1;  var isMac = browserVar.indexOf("Mac") != -1;  if (document.layers) {    var n4 = true;  } else if (document.getElementById && !(document.all)) {    var ns = true;  } else if (document.getElementById && document.all) {    var ie = true;  } else if(document.all) {    var i4 = true;  }}//----------- OpenWindow -----------function getAttr(height,width){if (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 (ie){         // 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){	attr = getAttr(height,width);	dialog = window.open('dp.html','DP','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,' + attr);	dialog.opener = this;}/*function OpenPiece(height,width,turl){	attr = getAttr(height,width);	dialog = window.open(turl,'visit','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,' + attr);	dialog.opener = this;}*/function OpenPiece(height,width,turl,tstate){	attr = getAttr(height,width);	dialog = window.open(turl,'visit','toolbar='+tstate+',location='+tstate+',directories=0,status='+tstate+',menubar=0,scrollbars='+tstate+',resizable='+tstate+',' + attr);	dialog.opener = this;}function OpenGlow(turl){	attr = getAttr(600,800);	dialog = window.open(turl,'visit','toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,' + attr);	dialog.opener = this;}//----------- FlashDetect -----------hasFlashCheck = null;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.three = (this.v < 4)}if (is.three) {	//this.location.href = 'noFlash.html';} else {  flash6Installed = false;	  flash7Installed = 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));			flash6Installed = flashVersion == 6;			flash7Installed = flashVersion == 7;		}	}	  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('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');	  	document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');	  	document.write('</SCR' + 'IPT\> \n');  }			if ((flash6Installed)||(flash7Installed)) {		hasFlash = "plugin";		hasFlashCheck = "plugin";	} else {		hasFlash = "no";		hasFlashCheck = "no";			}}function checkResults(){	if (hasFlashCheck == "no"){		showLayer('getFlash');		hideLayer('enter');	}	}
