function vidstat(vid) {
	var xmlHttpReq = false;
	if (window.XMLHttpRequest)
		xmlHttpReq = new XMLHttpRequest();
	// IE
	else if (window.ActiveXObject)
		xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpReq.open("POST", "vidstat.php", true);
	xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlHttpReq.onreadystatechange = function() {
		if (xmlHttpReq.readyState==4) {
			if (xmlHttpReq.status==200) {
			}
       	}
	}
	xmlHttpReq.send("vid="+vid);
}
vidt=[];
function getUpdate(typ,pr1,pr2,swf) {
	if (vidt[swf]==undefined) {
		vidt[swf]=[];
		vidt[swf]['send']=0;
	}
	if (typ=='load' && pr1==0 && vidt[swf]['send']==0) {
		vidt[swf]['send']=1;
		var s=swf.split('|');
		vidstat(s[0]);
	}
}
