   function ChangeBio(control) {

      self.location = 'eStore,wciProcess,Ingalls' + control.value + '.html';
      return true;
      }


var intCurActorPic = 1;
var strFileName = 'ingalls';  /* Base file name of album character */
var strBasePath = 'Gallery/'; /* Base path of photos */

actorpics = new makeArrayImplicit("Ingalls1","Ingalls2","Ingalls3","Ingalls4","Ingalls5","Ingalls6","Ingalls7","Ingalls8","Ingalls9","Ingalls10","Ingalls11");
actorpics[1] = new makeArrayImplicit("MelissaGilbert1.jpg","LauraIngalls_dansing.jpg","LauraIngalls_young.jpg");
actorpics[2] = new makeArrayImplicit("CharlesIngalls1.jpg","CharlesIngalls2.jpg","CharlesIngalls_withchildren.jpg");
actorpics[3] = new makeArrayImplicit("CarolineIngalls1.jpg","family1.jpg","IngallsAtWeeding.jpg");
actorpics[4] = new makeArrayImplicit("MaryIngalls_young.jpg","MaryIngalls_young2.jpg","MaryIngalls1.jpg");
actorpics[5] = new makeArrayImplicit("nellie1.jpg");
actorpics[6] = new makeArrayImplicit("Carrie1.jpg");
actorpics[7] = new makeArrayImplicit("AlmonzoWilder.jpg");
actorpics[8] = new makeArrayImplicit("JonathanGarvey1.jpg","JonathanGarvey2.jpg");
actorpics[9] = new makeArrayImplicit("FriendFamily1.jpg");
actorpics[10] = new makeArrayImplicit("HarrietOleson1.jpg");
actorpics[11] = new makeArrayImplicit("OrphanAlbert_young.jpg","Albert1.jpg");

function makeArrayImplicit() {
   var Count;
   this.length=makeArrayImplicit.arguments.length;
   for (Count=1;Count<makeArrayImplicit.arguments.length+1;Count++)
      this[Count]=makeArrayImplicit.arguments[Count-1];
   return(this);
}

function ChangePicture(dir) {
   var intCurActor;
   var doc = document.all;
   var url = new String(document.location);
   var pos1;

   url = url.toLowerCase();
   pos1 = url.indexOf(strFileName,1);
   pos2 = url.indexOf('.htm',pos1);
   if (pos1 > 0 && pos2 > 0) {
      intCurActor = url.substring(pos1+strFileName.length,pos2);
      if (dir==1) 
         if (intCurActorPic==actorpics[intCurActor].length)
            intCurActorPic=1;
         else 
            intCurActorPic+=1;
      else
         if (dir==-1)
            if (intCurActorPic==1)
               intCurActorPic=actorpics[intCurActor].length;
            else
               intCurActorPic-=1;
      document.imgCurActor.src=strBasePath + actorpics[intCurActor][intCurActorPic];
      doc.txtCurActorPic.value=intCurActorPic;
      doc.txtTotalActorPic.value=actorpics[intCurActor].length;
      }
   else {
      alert('The URL supplied does not seem to be valid for our photo album');
   }
}

function InitAlbum() {
   var intCurActor;
   var doc = document.all;
   var url = new String(document.location);
   var pos1;

   url = url.toLowerCase();
   pos1 = url.indexOf(strFileName,1);
   pos2 = url.indexOf('.htm',pos1);
   if (pos1 > 0 && pos2 > 0) {
      intCurActor = url.substring(pos1+strFileName.length,pos2);
      intCurActorPic=1;
      doc.txtCurActorPic.value=intCurActorPic;
      doc.txtTotalActorPic.value=actorpics[intCurActor].length;
   } else {
     alert('The URL supplied does not seem to be valid for our photo album');
   }
}


