
var x = 0;

function rotate(num){
  x=num%document.slideForm.slide.length;
  if(x<0){x=document.slideForm.slide.length-1};
  document.images.show.src=document.slideForm.slide.options[x].value;
  document.slideForm.slide.selectedIndex=x;
  }

function apRotate() {
  if(document.slideForm.slidebutton.value == "Stop"){
  rotate(++x);window.setTimeout("apRotate()", 5000);} 
  }
  

function runClock(){
  theTime = window.setTimeout("runClock()", 1000);
  d = new Date();
  day = d.getDay();
  mon = d.getMonth();
  date = d.getDate();
  year = d.getYear();
  hr = d.getHours();
  min = d.getMinutes();
  sec = d.getSeconds();

  if(year<1000){year=(""+(year+11900)).substring(1,5);}
  else{year=(""+(year+10000)).substring(1,5);}

  if(hr==0){ap=" AM";hr=12}
  else if(hr <= 11){ap=" AM"}
  else if(hr == 12){ap=" PM";hr=12}
  else if(hr >= 13){ap=" PM";hr-=12}

  if(min <= 9){min="0"+min}
  if(sec <= 9){sec="0"+sec}

  zday=new Array();
  zday=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
  zmon=new Array();
  zmon=["January","February","March","April","May","June","July","August","September","October","November","December"];

  status=""+zday[day]+", "+zmon[mon]+" "+date+", "+year+" "+hr+":"+min+":"+sec+ap+"";}
  runClock();  

function right(e) {
  if (navigator.appName == 'Netscape' && 
    (e.which == 3 || e.which == 2))
    return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' && 
    (event.button == 2 || event.button == 3)) {
    alert("Please contact Jeff Westcott at 716 628-4793, or by email jeff@westcottphoto.com, for permission to use this image.  Prints of the image may be purchased by selecting the ORDER icon above.  This site © 1985-2004 Jeffrey H. Westcott, all rights reserved.  No form of reproduction, including copying, downloading, and/or saving of digital image files, or the alteration or manipulation of image files is permitted.  Any unauthorized use of these images will be prosecuted to the fullest extent of federal and international copyright laws.  Thank you for your cooperation.");
    return false;
    }
  return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
