// Set the BaseURL to the URL of your camera
var BaseURL = "http://83.13.235.54:550/";

// 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 = "140px";
var DisplayHeight = "114.5px";
//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&clock=0&date=0&text=0";
// No changes required below this point

// JS UPDATED IMAGE
// 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('<img name="theImage" src="" style="height:' + DisplayHeight + '; ');
document.write('width:' + DisplayWidth + ';" alt="Okno na Rynek" title="Okno na Rynek" />');
*/
// STATIC IMAGE
var output = "";
  theDate = new Date();
  output  = '<img src="';
  output += BaseURL;
  output += File;
  output += '&dummy=' + theDate.getTime().toString(10);
  output += '" style="height:';
  output += DisplayHeight;
  output += '; width:';
  output += DisplayWidth;
  output += ';" alt="Okno na Rynek" title="Okno na Rynek" />';
document.write(output);

