
  // Set the BaseURL to the url of your camera
  // Example:  var BaseURL = 'http://172.21.1.122/';
  // Since this file is located inside the unit itself, no base url is specified here
  var BaseURL = "http://netcam2.postbulletin.com/";

  // DisplayWidth & DisplayHeight specifies the displayed width & Height of the image.
  // You may change these numbers, the effect will be a stretch or a shrink of the image
  var DisplayWidth = "600";
  var DisplayHeight = "460";

  // This is the path to the image generating file inside the camera itself



  var File = "axis-cgi/mjpg/video.cgi?resolution=640x480&compression=0";

  // No changes required below this point

var output = "";

  output = '<APPLET ID="Player" ARCHIVE=AxisCamApplet.zip CODEBASE="';
  output += BaseURL;
  output += 'java/"';
  output += ' CODE=AxisCamApplet.class HEIGHT=';
  output += DisplayHeight;
  output += ' WIDTH=';
  output += DisplayWidth;
  output += '>';
  output += '<PARAM NAME="StreamLocation" VALUE="/';
  output += File;
  output += '&showlength=1">';
  output += '</APPLET>'

  document.onstop=stopit;
  function stopit() {
    document.applets[0].stop();
  }

document.write(output);
document.Player.ToolbarConfiguration = "play,+snapshot,+fullscreen"
document.Player.UIMode = "MDConfig";
document.Player.MotionConfigURL = "/axis-cgi/operator/param.cgi?ImageSource=0"
document.Player.MotionDataURL = "/axis-cgi/motion/motiondata.cgi";


