



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"
}


	
  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');
  }	
	
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 OpenWindowOne(height,width,itemNo){
	attr = getAttr(height,width);
	dialog = window.open('fish.php?itemNo='+ itemNo,'nexWin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,' + attr);
	dialog.opener = this;
}

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

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

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

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