// Set the BaseURL to the url of your camera
// Example: var BaseURL = "http://172.21.1.122/";

var BaseURL = "http://70.91.79.226:8888/";

// The two following lines are for AXIS 2400/2400+:

var Camera = ""; // If you use an AXIS 2400/2400+, comment away this line by inserting "//"
// var Camera = "n"; // Change n to the Video source used in the AXIS 2400/2400+ and remove "//"

// Go to the camera used and remove the "//" in front of the ImageResolution to be used.
// Note that only one can be enabled.

// AXIS 2100
// var ImageResolution = "320x240";var DisplayWidth = "320";var DisplayHeight = "240";
// var ImageResolution = "640x480";var DisplayWidth = "640";var DisplayHeight = "480";

// AXIS 2120/2400/2400+/2401/2401+/2420 PAL
// var ImageResolution = "352x288";var DisplayWidth = "352";var DisplayHeight = "288";
// var ImageResolution = "704x576";var DisplayWidth = "704";var DisplayHeight = "576";

// AXIS 2120/2400/2400+/2401/2401+/2420 NTSC
// var ImageResolution = "352x240";var DisplayWidth = "352";var DisplayHeight = "240";
var ImageResolution = "704x480";var DisplayWidth = "143";var DisplayHeight = "91";


// No changes required below this point
var File1 = "axis-cgi/mjpg/video.cgi?resolution=" + ImageResolution;
if (Camera != "") {File += "&camera=" + Camera;}
var output1 = "";
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k"))
{
// If Internet Explorer for Windows then use ActiveX
output1 = "<OBJECT ID=\"CamImage\" WIDTH="
output1 += DisplayWidth;
output1 += " HEIGHT=";
output1 += DisplayHeight;
output1 += " CLASSID=CLSID:917623D1-D8E5-11D2-BE8B-00104B06BDE3 ";
output1 += "CODEBASE=\"";
output1 += BaseURL;
output1 += "activex/AxisCamControl.cab#Version=1,0,2,15\">";
output1 += "<PARAM NAME=\"URL\" VALUE=\"";
output1 += BaseURL;
output1 += File;
output1 += "\"> <BR><B>Axis ActiveX Camera Control</B><BR>";
output1 += "The AXIS ActiveX Camera Control, which enables you ";
output1 += "to view live image streams in Microsoft Internet";
output1 += " Explorer, could not be registered on your computer.";
output1 += "<BR></OBJECT>";
}
else
{
// If not IE for Windows use the browser itself to display
output1 = "<IMG SRC=\"";
output1 += BaseURL;
output1 += File;
output1 += "&dummy=garb\" HEIGHT=\"";
// The above dummy cgi-parameter helps some versions of NS
output1 += DisplayHeight;
output1 += "\" WIDTH=\"";
output1 += DisplayWidth;
output1 += "\" ALT=\"Moving Image Stream\">";
}

