function PFix(PDate, PFile, PTitle, PDesc) { // Allows you to use variables for the array instead of numbers.
   this.PDate = PDate
   this.PFile = PFile 
   this.PTitle = PTitle 
   this.PDesc = PDesc
  } 
  
  
  
function AFix(AType,AName,AFile,ACamper,ACounselor,ANote)
 {
   this.AType = AType
   this.AName = AName
   this.AFile = AFile
   this.ACamper = ACamper
   this.ACounselor = ACounselor
   this.ANote = ANote
 }  
 
 function LoadPictureList() { // Loads initial list of pictures on web page.
   for (loop=0; loop < MainVar; loop++)  {
     document.write("<option value=" + PictureList[loop].PFile + ">" + PictureList[loop].PTitle + "</option>");
   }
 } 
 
function LoadAwardList() { // Loads initial list of pictures on web page.
  for (loop=0; loop < MainVar; loop++)  {
    document.write("<option value=" + AwardList[loop].AFile + ">" + AwardList[loop].AName + "</option>");
  }
}


function ShowPic(newpic) { // Shows the photo and text on the page.
  current = newpic;
  SelectionBox = document.pic_form.PictureList;
  SelectionBox.options[current].selected = true;
  document.getElementById("PictureDisplay").innerHTML = "<img border='0' src='" + PictureList[current].PFile + "' width='480'>";
  document.getElementById("PictureDescription").innerHTML = '<p class="center">' + PictureList[current].PDesc + "</p>";
  document.getElementById("PictureDate").innerHTML = '<p align="center"><font size="2"><b>Picture Date :</b>' + PictureList[current].PDate;
}

function ShowAward(newpic)
 {
   current = newpic;
   SelectionBox = document.pic_form.AwardList;
   SelectionBox.options[current].selected = true;
   document.getElementById("picture_display").innerHTML = "<img class='award' border='0' src='" + AwardList[current].AFile + "' width='500'>";
   document.getElementById("award_type").innerHTML = "<p class='award_type'>" + AwardList[current].AType + "</p>";
   if (AwardList[current].AName == 'Poochy' || AwardList[current].AName == 'Belinda')
    {
      document.getElementById("award_name").innerHTML = "<p class='award_name'>&nbsp;</p>";
    }
   else
    {  
     document.getElementById("award_name").innerHTML = "<p class='award_name'>" + AwardList[current].AName + "</p>";
    }
   
   document.getElementById("award_camper").innerHTML = "<p class='award_camper'>" + AwardList[current].ACamper + "</p>";
   document.getElementById("award_counselor").innerHTML = "<p class='award_counselor'>" + AwardList[current].ACounselor + "</p>";
   document.getElementById("award_note").innerHTML = "<p class='award_note'>" + AwardList[current].ANote + "</p>";
 }
