var OnClickId = 0;
var idk = location.href.indexOf('id=');
if(idk != -1)
{
	OnClickId = location.href.substring(idk+3,location.href.length)
}
var cilckobj='';

function clicklist(sCMSAddr, sSomsFileId,num)
{
		var sRetValue;
	if(sCMSAddr == "-1" && sSomsFileId != "-1")
	{
		sUrl = "http://" + sSOMSIp + "/soms/web/jwzt/vod/test/player.jsp?fileId=" + sSomsFileId + "&cmsUrl=http://" + sCMSIp + "/cms/system/vod/soms/VodClickCount.jsp&newsId=" + g_nNewsID;
		if(isDebug != 0)
		{
			alert(sUrl);
		}
		//sRetValue = window.showModalDialog(sUrl,"","toolbar=0;status=0;dialogWidth=460px;dialogheight=365px");
		document.all("playerframe").src = sUrl;
		document.all("playerdiv").style.display = "";
	}
	else
	{
		if(isDebug != 0)
		{
			alert(sCMSAddr);
		}
		window.open(sCMSAddr, null, 'height=1,width=1, status=no,toolbar=no,menubar=no,location=no,top=0,left=0');
		sRetValue = window.showModalDialog(sCMSAddr,"","toolbar=0;status=0;dialogWidth=460px;dialogheight=365px");
		//document.all("playerframe").src = sCMSAddr;
		//document.all("playerdiv").style.display = "";
	}
	return sRetValue;
}

function getAbsLeft(e){var l=e.offsetLeft; while(e=e.offsetParent) l += e.offsetLeft; return l;}

function getAbsTop(e) {var t=e.offsetTop;  while(e=e.offsetParent) t += e.offsetTop;  return t;}

function onloadset()
{
	playerdiv.style.top = getAbsTop(playerimg)+2;
	playerdiv.style.left = getAbsLeft(playerimg)+22;
	if(typeof(document.all.mov1) == "undefined")document.all.vodclick.style.display="none";
}

