<!--[708,5,8] published at 2009-09-23 16:39:32 from #187 by 2834-->
var enterChatRoom = function(id) {
	var _url = "http://search.show.sina.com.cn/ec.php?id=" + id + "&callback=HyperAction&e=" + Math.random();

	var _head = document.getElementsByTagName("head")[0];
	var snode = document.createElement("script");
	snode.setAttribute("type", "text/javascript");
	snode.setAttribute("language", "javascript");
	snode.setAttribute("src", _url);
	snode.onload = function() {
		_head.removeChild(snode);
	}
	if(navigator.appName == "Microsoft Internet Explorer") {
		snode.onreadystatechange = function() {
			if(snode.readyState == "complete" || snode.readyState == "loaded") {
				_head.removeChild(snode);
			}
		}
	}
	_head.appendChild(snode);
}
var enterChatRoom2 = function(sid) {
	var _url = "http://search.show.sina.com.cn/ec.php?sid=" + sid + "&callback=HyperAction&e=" + Math.random();

	var _head = document.getElementsByTagName("head")[0];
	var snode = document.createElement("script");
	snode.setAttribute("type", "text/javascript");
	snode.setAttribute("language", "javascript");
	snode.setAttribute("src", _url);
	snode.onload = function() {
		_head.removeChild(snode);
	}
	if(navigator.appName == "Microsoft Internet Explorer") {
		snode.onreadystatechange = function() {
			if(snode.readyState == "complete" || snode.readyState == "loaded") {
				_head.removeChild(snode);
			}
		}
	}
	_head.appendChild(snode);
}
	function IsInstallUC()
	{
		try{//支持
			var xmlhttp=new ActiveXObject("HZP.HZPlayer.1");
			return true;

		}catch(e){//不支持

			//alert("您的浏览器不支持或没有安装客户端");
			return false;
		}
		return false;
	}

	function HyperAction(httpstr)
	{
		var bRet = IsInstallUC();
		if (bRet == true)
		{
			window.location.href=httpstr;

		}
		else
		{
			if(confirm("您的浏览器不支持或没有安装客户端,请先安装客户端!\n是否现在下载?"))
		{
			window.open("http://show.sina.com.cn/down.html");

		}
		}
	}