<!--
browserType = navigator.appName;		
newImage = new Image();
document.onstop = document_onstop;


function startstop_onclick()
{
	if (startstop.value == "Stop")
	{
		stopLoad();
	}
	else
	{
		startstop.value = "Stop";
		newImage.onload=loadNewImage;
		loadNewImage();
	}
}

function document_onstop()
{
	stopLoad();
}
 function stopLoad()
{
	newImage.onload="";	
	startstop.value = "Start";
	window.status = "Live video stopped ...";
}

function loadNewImage()
{
    uniq = new Date();
    uniq = uniq.getTime();
    document.images.webcam32.src=newImage.src;
    newImage.src="http://62.31.11.143:8888/video/pull?"+uniq;
    window.status = "Displaying live video ...";    
}
function initialImage()
{
	uniq = new Date();
	uniq = uniq.getTime();
	newImage.onload=loadNewImage;
	newImage.src="http://62.31.11.143:8888/video/pull?"+uniq;
    document.images.webcam32.onload="";

}

if (browserType == "Netscape")
{
	document.write('<IMG SRC="http://62.31.11.143:8888/video/push" width=160 height=120>');
}
else
{
	document.write('<IMG SRC="http://62.31.11.143:8888/video/pull" name=webcam32 onload="initialImage()" width=160 height=120>');
}
//-->