// JavaScript Document

function sw(new_file,letter)
{
thing = new Image();					// create image object
thing.name = new_file;					// set name property name
// change the img to the new file
document.images[new_file].src = "images/" + new_file + letter + ".gif";
return true;
}

function pre_load()
{
   var pic_array = new Array();
   for(var loop=1; loop<=3; loop++)
   {
      pic_array[loop] = new Image();
      pic_array[loop].src = ("data/merch/shirt0" + loop + ".jpg");
   }
}

function picture_box(file)
{
 thepicturebox = window.open(file,'thepicturebox','height=500,width=540,scrollbars=no,location=0,resizable=no,status=no,border=no,toolbar=no');
}

function cf() { document.f.message.focus(); }

function insert(bannerimage) {
var address = "http://www.axiomtozeal.com";
var linkcode = "<a href=\""+address+"\"><img src=\""+address+"/data/banners/axiom_to_zeal_banner_"+bannerimage+"\" title=\"Axiom to Zeal [in love with music]\" alt=\"Axiom to Zeal [in love with music]\" border=\"0\"></a>";
document.banners.code.value = linkcode; }

function add_price(price) {
document.orderForm.amount.value=(eval(document.orderForm.amount.value)+eval(price))+'.00';
}
function sub_price(price) {
document.orderForm.amount.value=(eval(document.orderForm.amount.value)-eval(price))+'.00';
}

function switchImage(imgName, imgSrc)
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = "data/merch/"+imgSrc;
    }
  }
}
