var AllItems = new Array();
var AllPrices = new Array();
AllItems[1]="Molecule Spoke Hoops";           AllPrices[1]="420.00";
AllItems[2]="Smithson Hexagon Necklace";      AllPrices[2]="480.00";
AllItems[3]="Pearl Orbital Necklace";         AllPrices[3]="1200.00";
AllItems[4]="Space Cluster Necklace";         AllPrices[4]="780.00";
AllItems[5]="Orbital Earrings";               AllPrices[5]="420.00";
AllItems[6]="Lava Stone Dark Moon Necklace";  AllPrices[6]="1200.00";
AllItems[7]="Long Aerial Necklace";           AllPrices[7]="2250.00";
AllItems[8]="Meteor Bracelet";                AllPrices[8]="740.00";
AllItems[9]="Pearl Planetary Earrings";       AllPrices[9]="420.00";
AllItems[10]="Long Pearl Orbital Necklace";   AllPrices[10]="1180.00";
AllItems[11]="Planetary Solid Gold Necklace"; AllPrices[11]="1800.00";
AllItems[12]="Galileo Pendant Necklace";      AllPrices[12]="960.00";

p1 = new Image(); p1.src = "softscience/background1.jpg";
p2 = new Image(); p2.src = "softscience/background2.jpg";

t = new Array();
i = new Array();

contactOff = new Image(); contactOff.src = "../contact.gif";
contactOn  = new Image(); contactOn.src = "../contact2.gif";
design1a = new Image(); design1a.src = "../design1a.gif";
design2a = new Image(); design2a.src = "../design2a.gif";
design1b = new Image(); design1b.src = "../design1b.gif";
design2b = new Image(); design2b.src = "../design2b.gif";

for (var c=1; c <= 12; c++) {
   i[c] = new Image();
   t[c] = new Image();
   if (c < 10) {
      i[c].src = "softscience/0" + c.toString() +".jpg";
      t[c].src = "softscience/0" + c.toString() +"t.jpg";
   } else {
      i[c].src = "softscience/" + c.toString() +".jpg";
      t[c].src = "softscience/" + c.toString() +"t.jpg";
   }
}
function CloseAll() {
   document.getElementById('paypal').style.display = "none";
   document.getElementById('paypal2').style.display = "none";
   document.getElementById('backgrnd2').style.display = "none"; 
   for(var i=1; i<=12; i++) {
      document.getElementById('item' + i.toString()).style.display = "none";
      document.getElementById('item' + i.toString() + 't').style.display = "none";
   }
}

function checkPrices() {
   var m = document.form2.opt1.options[document.form2.opt1.selectedIndex].value;

   if (document.getElementById('item4').style.display == "block") {
      document.getElementById('paypal2').style.display = "block";
      if(m == 'Type1') {
         document.form1.item_name.value = "Space Cluster Necklace - Red";
      } else if(m == 'Type2') {
         document.form1.item_name.value = "Tribal Hoop Earrings - Black";
      } else {
         document.form1.item_name.value = "Tribal Hoop Earrings - Type 3";
      }
   }
}

function swapInput(i) {
   document.form1.item_name.value = AllItems[i];
   document.form1.amount.value = AllPrices[i];
}

function Highlight(imageID, newImage){
   document.images[imageID].src = eval(newImage + ".src")
}

function wstatus(m){
   window.status = m;
   return true;
}

function HidePaypal() {
   document.getElementById('paypal').style.display = "none";
}