var BaseURL = "http://cam1.latinschool.org/";
var BaseURL = "http://cam1.latinschool.org/";
// DisplayWidth & DisplayHeight specifies the displayed width & height of the image.
// You may change these numbers, the effect will be a stretched or a shrunk image
var DisplayWidth = "352";
var DisplayHeight = "240";
// This is the path to the image generating file inside the camera itself
var File = "axis-cgi/jpg/image.cgi?resolution=CIF&camera=1";
// Force an immediate image load
var theTimer = setTimeout('reloadImage()', 1);
function reloadImage()
{
theDate = new Date();
var url = BaseURL;
url += File;
url += '&dummy=' + theDate.getTime().toString(10);
// The dummy above enforces a bypass of the browser image cache
// Here we load the image
document.theImage.src = url;
// Reload the image every ten seconds (10000 ms)
theTimer = setTimeout('reloadImage()', 10000);
}
document.write('');

