function preload(a) {
  var preload_temp = new Array;
  for (i = 0; i < a.length; i++) {
    preload_temp[i]     = new Image;
    preload_temp[i].src = a[i];
  }
}

function turn_off(image) {
  document.images[image].src = (images_path + image + ".gif");
  window.status = "";
}

function turn_on(image, status) {
  document.images[image].src = (images_path + image + "2.gif");
  window.status = status;
}

function out(image) {
  document.images[image].src = (images_path + image + ".gif");
  window.status = "";
}

function over(image, status) {
  hideall();
  document.images[image].src = (images_path + image + "2.gif");
  window.status = status;
}

function popup(url, name, width, height, other) {
	var popup_x  = (screen.width  - width) / 2;
	var popup_y  = (screen.height - height) / 2;
	popwin = window.open(url, name, "width=" + width + ",height=" + height + ",left=" + popup_x + ",top=" + popup_y + "," + other);
}

function popNetTraderCards(code) {
	if(code == "") {
		var url = "http://ntcards.quamnet.com/";
	}
	else {
		var url = "http://ntcards.quamnet.com/fcgi-bin/ntcards.fpl?par8=" + code;
	}
	var popup_x  = (screen.width  - 570) / 2;
	var popup_y  = (screen.height - 480) / 2;
	var cardWin = window.open(url, "NetTraderCards", "width=570,height=480,left=" + popup_x + ",top=" + popup_y + ",scrollbars=yes,resizable=yes,status=yes,location=no,menubar=no,toolbar=no,directories=no");
    if (!cardWin.opener) {
		cardWin.opener=self;
	}
}

var imgSwap = new Array(1);
	imgSwap = new Image();
	imgSwap.src = "images/menu_0t.gif";

function navRollOver(img){
	if (img == "swap"){
		document.imgSwap.src = "images/menu_0t.gif";
	}
	else{
		document.imgSwap.src = rollover_images[img];
	}
}