<!--

if (!cam) { cam = "southgreen"; }

rnd.today=new Date(); rnd.seed=rnd.today.getTime();

function rnd() {
  rnd.seed = (rnd.seed*9301+49297) % 233280;
  return rnd.seed/(233280.0);
}

function rand(i) {
  return Math.ceil(rnd() * i);
}

//var BaseURL = "http://128.175.60.37/";
var BaseURL = "http://128.175.68.75/";
if (!DisplayWidth) { var DisplayWidth = "352"; }
if (!DisplayHeight) { var DisplayHeight = "240"; } // Resolution 352x240:
var File = "cam/webcam.php?cam=" + cam + "&r=" + rand(65536);
var CabFile = "cam/AMC.cab#Version=5,6,2,11";

var output = "";
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k"))
{
// If Internet Explorer for Windows then use ActiveX
output = "<OBJECT ID=\"CamImage\" WIDTH=" + DisplayWidth;
output += " HEIGHT=" + DisplayHeight;
output += " CLASSID=CLSID:DE625294-70E6-45ED-B895-CFFA13AEB044";
output += "CODEBASE=\"" + BaseURL + CabFile + "\">";
output += "<PARAM NAME=\"MediaURL\" VALUE=\"" + BaseURL + File + "\">";
output += "<param name=\"MediaType\" value=\"mjpeg\">";
output += "<BR><B>Axis ActiveX Camera Control</B><BR>";
output += "The AXIS ActiveX Camera Control, which enables you ";
output += "to view live image streams in Microsoft Internet";
output += " Explorer, could not be registered on your computer.";
output += " Try using Safari or Firefox to view the image stream.";
output += "<BR>";
output += "</OBJECT>";
}
else
{

// If not IE for Windows use the browser itself to display
output = "<IMG SRC=\"";
output += BaseURL;
output += File + "\"";
output += " HEIGHT=\"";
// The above dummy cgi-parameter helps some versions of NS
output += DisplayHeight;
output += "\" WIDTH=\"";
output += DisplayWidth + "\"";
output += " ALT=\"Moving Image Stream\">";
}
document.write(output);

//-->


