function popup() {
	//alert("Go!")
	document.getElementById("popup").style.display = "block";


}
function popupResume(){
	document.getElementById("popup2").style.display = "block";
}
function closeResume(){
	document.getElementById("popup2").style.display = "none";
}
function closePop() {
	document.getElementById("popup").style.display = "none";
}


function ShowDir(bar){
	Reset()

	document.getElementById(bar).style.display = "block";

}

function Reset() {
	document.getElementById("DirNorth").style.display = "none";
	document.getElementById("DirSouth").style.display = "none";
	document.getElementById("DirEast").style.display = "none";

}
  

function nextpage(bath) {	
	selectImage(bath)
}

function LoadPrev() {
	oImage = parseInt(oImage) - 1
	if (oImage < 1) { oImage = 1}
	selectImage(oImage)
}

function LoadNext() {
	oImage = parseInt(oImage) + 1
	if (oImage > (IArray.length - 1)) { oImage = (IArray.length - 1)}
	selectImage(oImage)
}

var IBar, OldBar
OldBar = "";

function LoadImageBar(bar) {
  if (is_gecko) 
  {
	Ibar = document.getElementById("Set" + bar);
  }
  else if (is_nav4)
  {
	Ibar = eval("Set" + bar);
  }
  else if (is_ie5up)
  {
	Ibar = eval("document.all.Set" + bar);
  }
  else
  {
   return;
  }


  if (Ibar != OldBar) {
	Ibar.style.display = "block"
	  
	if (OldBar != "") {
	  OldBar.style.display = ""
	} 
	OldBar = Ibar;
	//alert(Ibar.innerHTML)\
	}
	
}

function Launch(image){
    sURL = IArray[oImage][2]
	var ClientScreenWidth = window.screen.width;
	var ClientScreenHeight = window.screen.height;
	var WindowTop = (ClientScreenHeight/2) - 300;
	var WindowLeft = (ClientScreenWidth/2) - 300;
	oString = "height=600,width=600,top=" + WindowTop + ",left=" + WindowLeft + ",directories=no,status=no,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=yes"
	window.open(sURL,"x",oString);
}
var oImage;

function selectImage(image, part) {
	oImage = image
	if (image == "") { oImage = 1}
   // alert(oImage)
	document.getElementById("ImageFrame").src = IArray[oImage][1]
	document.getElementById("ImageFrame").alt = IArray[oImage][3]

}

function UpdateOrder(bar) {
	
  if (is_gecko) 
  {
	oAmount = parseFloat(document.getElementById("amount").value) * parseFloat(bar);
	oTax = parseFloat(document.getElementById("tax").value) * parseFloat(bar);
	//document.getElementById("amount").value = oAmount
	document.getElementById("tax").value = oTax
  }
  else if (is_nav4)
  {
  
  }
  else if (is_ie5up)
  {
	oAmount = parseFloat(document.getElementById("amount").value) * parseFloat(bar);
	oTax = parseFloat(document.getElementById("tax").value) * parseFloat(bar);
	//document.getElementById("amount").value = oAmount
	document.getElementById("tax").value = oTax
  }
  else
  {
   return;
  }
	//alert(oAmount);
	//alert(oTax);
}