<!-- start script video -->

function video(imagepath,width,height,resolution,port,thumb,ptz){
	var use_spush = 0;
	var use_activex = 0;
	var width_height = 'width="' + width + '" height="' + height + '"';

	if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC")&&(navigator.platform != "Mac68k")) {
		use_activex = 1;
	} else {
		use_spush = 1;
	}

	if (thumb == "yes"){
		var height = 146;
		var width = 194;
	}

	if (use_activex){
		DrawAMC(resolution,port,"AXIS 232D", height, width, imagepath, "745395C8-D0E1-4227-8586-624CA9A10A8D", "AMC.cab", "3,0,20,1", "no", "no", "yes", "1", "", "no", "no");
		document.write("<br>");
	}

	if (use_spush) {
		var output = "";
		output += '<img SRC="' + imagepath + '?compression=60&resolution='+ resolution + '"';
		output += ' WIDTH="' + width + '" HEIGHT="' + height + '"';
		output += ' ALT="Press Reload if no image is displayed" BORDER="0" ISMAP>';
		output += '<br>';
		document.write(output);
	}
}



function DrawAMC(resolution,port,prodName, height, width, imagepath, CLSID_AMC, cab, ver_AMC, ShowAMCToolbar, ptzgui, useWithCam, camnbr, UseRel, UseMotion, UseAudio)
{

  document.write('<OBJECT ID="AxisCamControl" CLASSID="CLSID:917623D1-D8E5-11D2-BE8B-00104B06BDE3" height="' + height + '" width="' + width + '" border="0" CODEBASE="http://laterrasse.ath.cx:10023/activex/AxisCamControl.cab#Version=2,23,0,0">');
  document.write("<PARAM NAME=DisplaySoundPanel VALUE=0>");
  document.write("<PARAM NAME=URL VALUE=\"http:\/\/laterrasse.ath.cx:10023/axis-cgi/mjpg/video.cgi?camera=&resolution=352x288\">");
  document.write("</OBJECT>");

}

<!-- end script video -->
//-->
