// Set the BaseURL to the URL of your camera
var BaseURL = "http://axis.fi.tartu.ee/";

// 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 = "176";
var DisplayHeight = "144";

// This is the path to the image generating file inside the camera itself
var File = "axis-cgi/jpg/image.cgi?resolution=QCIF&camera=1";

// Force an immediate image load

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
	url = "/images/robootika_33.jpg";	
	document.theImage.src = url;
}
document.write('<img name="theImage" src="/images/robootika_33.jpg" height="' + DisplayHeight + '"');
document.write('width="' + DisplayWidth + '" alt="Live image">');
