var BaseURL = "http://camera1.clicc.ucla.edu/";

 // DisplayWidth & DisplayHeight specifies the displayed width & Height of the image.
 // You may change these numbers, the effect will be a strech or a shrink of the image
 var DisplayWidth = "352";
 var DisplayHeight = "240";

 // This is the filepath to the video generating file inside the camera itself
 var File = "cgi-bin/jpg/image.cgi";

  // Force an immediate image load
 var theTimer = setTimeout("reloadImage()",1);
 function reloadImage() {
  theDate = new Date();
  var url = BaseURL;
  url += File;
  url += "?dummy=";
  url += theDate.getTime().toString(10);
  // The above dummy cgi-parameter enforce a bypass of the browser image cache.
  // Here we actually load the image
  document.theImage.src = url;

  // Reload the image every 10 seconds (10000 ms)
  //theTimer = setTimeout("reloadImage()",5000);   
}
document.write("<IMG NAME=\"theImage\" SRC=\"\" HEIGHT=\"240\" WIDTH=\"352\" ALT=\"Please wait; loading image. Press reload if you don\'t see an image after a few moments.\">");
