<!--

function ShowJayPic(newpic) 
  {
  current = newpic;
  ShowingImage = new Image();
  ShowingImage.src = JayArray[current].PicVal;
  document.all.JaySpot.innerHTML = '<a href=javascript:JayPicRemote("'+ JayArray[current].PicLg +'");><img name="PicShowing" src=' + JayArray[current].PicVal + ' height=240 border=0></a>';
  SelectionBox = document.JayForm.JayDropdown;
  SelectionBox.options[newpic].selected = true;
  }

function PreviousJayPic() 
  {
  current--;
  if(current<0) current = PicVar - 1;
  ShowJayPic(current);
  }

function RandomJayPic() 
  {
  current = Math.floor(Math.random()*PicVar);
  ShowJayPic(current);
  }

function NextJayPic() 
  {
  TotalImages = document.JayForm.JayDropdown.options.length;
  current++;
  if (current>=PicVar) current = 0;
  ShowJayPic(current);
  }

function JayPicRemote(newpic) 
  {
  OpenWindow = window.open(newpic, "remote", "resizable=1, scrollbars=1, toolbar=0");
  }

// -->