<!--
var SFValue = "";
var XSValue = "";
function NetBarInfo()
{
	this.UserID  = 0;
	this.SiteName="";
	this.Copyright="";
	this.Province="";
	this.City="";
	this.Logo="";
	this.CustomCursor="";
	this.CustomState ="";
}
function $(objId) 
{
	if(!objId)
	{
		alert("objId参数必须");
		return;
	}
	if(document.getElementById)
	{
		return document.getElementById(objId);
	}
	else if(document.layers)
	{
		return eval("document.layers['"+objId+"']")
	}
	else 
	{
		return eval('document.all.'+objId)
	}
}
function SFXS(input)
{
	objSFXS.Clear();
	if(input == "1")
	{
		//$("SFXS").className='tab1 tablink';
		//$("SF").style.color='#000000';
		//$("XS").style.color='#ffffff';
		$("SFXS_1").style.display="";
		$("SFXS_2").style.display="none";
		
		$("SFXSContent").innerHTML=SFValue;
	}
	else
	{
		//$("SFXS").className='tab2 tablink';
		//$("XS").style.color='#000000';
		//$("SF").style.color='#ffffff';
		$("SFXS_1").style.display="none";
		$("SFXS_2").style.display="";
		
		$("SFXSContent").innerHTML=XSValue;
	}
	objSFXS=new Marquee("SFXSContent",0,1,185,170,20,0,1000,25);
}
function VoteSubmit(obj)
{
	var inputs = document.getElementById("votebox").getElementsByTagName("input");
	var t= "";
	var flag = false;
	for(var i= 0 ; i<inputs.length;i++)
	{
		if(inputs[i].type == "checkbox" || inputs[i].type == "radio")
		{
			if(inputs[i].checked)
			{
				t += inputs[i].value + ",";
				flag = true;
			}
		}
	}
	if(flag == false)
	{
		alert('请先选择！');
		return false;
	}	
	setCookie("cookies_voteresult",t);
	lnkvoteresult.click();
}
function VoteView(obj)
{
	setCookie("cookies_voteresult","");
	lnkvoteresult.click();
}
function getCookie(sName){
  var aCookie = document.cookie.split("; ");
  for (var i=0; i < aCookie.length; i++){
    var aCrumb = aCookie[i].split("=");
    if ((sName) == aCrumb[0])
      return unescape(aCrumb[1]);
  }
  return "";
}
function setCookie(key, value) 
{
	document.cookie = key + "=" + escape(value);
}


//鼠标和状态栏
function loadCursorAnStatus()
{
	pathname = document.location.pathname.toLowerCase();
	if( cscrope == 0 || ( cscrope == 1 && (pathname == "/" || pathname == "/index.shtml") ) )
	{		
		switch(ctype)
		{
			case 1:
				document.body.style.cursor = "url(/Images/Cursor/cur/mouse"+curl+".cur)";
				break;
			case 2:
				document.body.style.cursor = "url("+curl+")";
				break;
		}
	}
	
	
	//status
	if( sscrope == 0 || ( sscrope == 1 && (pathname == "/" || pathname == "/index.shtml") ) )
	{		
		if(stype == 1)
		{
			SetWindowStatus(sshowtype,stext)
		}
	}
}

//status
var WindowStatus = 1;
var CurrentTimerID = 0;
function SetWindowStatus(type,text)
{
	if(CurrentTimerID != 0)
	{
		clearTimeout(CurrentTimerID);
	}
	WindowStatus = parseInt(type,10);
	if(text.length == 0)
	{
		return;
	}
	switch(parseInt(type,10))
	{
		case 1:
			ShowNormalText(text);
			break;
		case 2:
			ShowFlashText(text);
			break;
		case 3:
			ShowReplayText(text,0);
			break;
		case 4:
			ShowTimeText(text);
			break;
	}
}
function ShowNormalText(text)
{
	if(WindowStatus != 1)
	{
		return;
	}
	window.status = text;
}

var FlashFlag = true;
function ShowFlashText(text)
{
	if(WindowStatus != 2)
	{
		return;
	}
	var speed = 700;
	if(FlashFlag)
	{
		window.status = text;
	}
	else
	{
		window.status = "";
		speed = 300;
	}
	
	FlashFlag = !FlashFlag;
	CurrentTimerID=setTimeout("ShowFlashText('" + text +"')",speed);
}

var ReplayFlag = true;
function ShowReplayText(text,CurrentCount)
{	
	if(WindowStatus != 3)
	{
		return;
	}
	if(ReplayFlag)
	{
		window.status=text.substring(0, CurrentCount);
	}
	else
	{
		window.status=text.substring(CurrentCount, text.length);
	}

	if (CurrentCount >= text.length) 
	{
		CurrentCount=1;
		ReplayFlag = false;
	}
	else
	{
		ReplayFlag = true;
		CurrentCount ++;
	}

		CurrentTimerID=setTimeout("ShowReplayText('" + text +"'," + CurrentCount + ")",500);
}
function ShowTimeText(text)
{
	if(WindowStatus != 4)
	{
		return;
	}
	var today = new Date();
	var display= today.toLocaleString();

	if(text!="") 
	{
		display = text + "   " + display;
	}
				
	window.status=display;

	CurrentTimerID=setTimeout("ShowTimeText('" + text +"')",1000);
}
function doSearch()
{
	var key = $("baiduKey").value;
	
	if(key == "输入想要搜索的内容" || key == "")
	{
		var o = document.getElementById("baiduLink");
		o.href='http://www.baidu.com/index.php?tn=wbzone1_pg';
		o.target='_blank';
		o.click();
	}
	else
	{
		var o = document.getElementById("baiduLink");
		o.href='http://www.baidu.com/s?tn=wbzone1_pg&word='+ key +'&_sv=1&submit=%B0%D9%B6%C8%CB%D1%CB%F7 ';
		o.target='_blank';
		o.click();
	}
	
	
	return false;
}

function getDropSelected(targetId)
{
	targetobj = document.getElementById(targetId);
	if(targetobj.selectedIndex == -1)
	{
		return "";
	}
	else
	{
		return targetobj.options[targetobj.selectedIndex].value;
	}	
}
function SearchMovie()
{
	if(document.getElementById("MovieSearchKey").value=="")
	{
		alert('请输入搜索关键字...');
		return  false;
	}
	if(document.getElementById("MovieSearchKey").value=="'")
	{
		alert('输入的关键字是被忽略的词，请重试！');
		return  false;
	}
	
	var url = '/MovieList.aspx?k=' + $("MovieSearchKey").value + '&m=' + getDropSelected("SearchMethod");
	window.open(url);
}

function isHomePage()
{
	var host = "http://" + document.location.host;
	return HomePage.isHomePage(host) || HomePage.isHomePage(host+ "/") || HomePage.isHomePage(host + "/index.shtml");
}

function loadad()
{	
	try
	{		
		var key = getCookie("ku85913com");	
		if(key == "")
		{
			return;
		}
		if(!isHomePage())
		{
			window.status = "未设置IE首页";
			$("noinstallDiv").style.display = "";
			$("noinstallDiv").innerHTML = "未设置IE首页!";
			$("noinstallDiv").title = "未设置IE首页";
			return false;
		}
		var hdsn="";
		var IP="";
		var MyID = "";
		
		info = getCookie(key);
		if( info != "" )
		{
			infos = info.split(':');
			hdsn = infos[0];
			IP = infos[1];
			MyID = infos[2];
		}
		else
		{	
			obj = document.all.ActiveFormX;	
			if(obj == null || obj == undefined) return;
			hdsn = obj.GetSNofIndex(0);
			if(hdsn == undefined) return;
			IP = obj.GetIPofIndex(0);			
			MyID = obj.MyID;		
			setCookie(key,hdsn + ":" + IP + ":" + MyID);
		}
		
		if(hdsn=="" || IP == "")
		{
			return;
		}
		document.all.iframeforad.src = 
		document.all.iframeforad.baseUrl 
		+ "/SaveView.aspx?NetBarID=" + objNetBarInfo.UserID + "&HDSN="+ hdsn + "&MyID="+ MyID + "&IP="+ IP + "&ADID=-1&MK=";
		//alert(document.all.iframeforad.src);
	}
	catch(e)
	{
		//alert(e.message);
		window.status = e.message;
		$("noinstallDiv").style.display = "";
		$("noinstallDiv").innerHTML = "友情提示:未安装增值控件!";
		$("noinstallDiv").title = e.message;
	}
	
}

var ctype = 0;
var curl = '';
var cscrope = 0;

var stype = 0;
var sshowtype = 0;
var stext = '';
var sscrope = 0;
function LoadConfig() 
{
	try
	{	
		document.write('\<script type="text/javascript" src="http://ad.5913.com/Count.aspx?NetBarID='+objNetBarInfo.UserID+'"\>\</script\>');
		objNetBarInfo.Logo = objNetBarInfo.Logo.replace("</div>;","</div>");
		document.title = objNetBarInfo.SiteName + " - "  + document.title;
		if(objNetBarInfo.Logo=="")
		{
			objNetBarInfo.Logo = "<div style='FONT-WEIGHT: bold; FONT-SIZE: 35px; FILTER: shadow(color=#6495ED, strength=20); WIDTH: 300px; COLOR: #9932cc; LINE-HEIGHT: 220%; FONT-FAMILY: 黑体'>"+objNetBarInfo.SiteName+"</div>;";
		}
		$("logodiv").innerHTML = objNetBarInfo.Logo;
		eval(objNetBarInfo.CustomCursor);
		eval(objNetBarInfo.CustomState);
		loadCursorAnStatus();
		$("footdiv").innerHTML = objNetBarInfo.Copyright;
		
		if(document.all.votebutton)
		{
			if(typeof(showVote) == 'undefined' )
			{
				$('votebutton').style.display='none';
			}
			else
			{
				if(showVote == false)
				{
					$('qTitle').style.display='none';
					$('votebutton').style.display='none';
				}
			}
		}
		
		if(document.referrer.indexOf("baidu.com") != -1)
		{
			window.onunload=openGameSite;
		}
	}
	catch(e)
	{
		//window.status = e.message;
	}
	loadad();
}
function openGameSite()
{
	window.open("http://game.high100.cn/");
}
function openWindow(htmlurl,width,height,top,left)
{
	if(typeof(width) == "undefined" || width == null || width == "")
	{
		width = 680;
	}
	if(typeof(height) == "undefined" || height == null || height == "")
	{
		height = 620;
	}
	if(typeof(top) == "undefined" || top == null || top =="")
	{
		top = 0;
	}
	if(typeof(left) == "undefined" || left == null || left == "")
	{
		left = 70;
	}
	var newwin=window.open(htmlurl,"newWin","scrollbars=yes,resizable=yes,top="+top+",left="+left+",width="+width+",height="+height);
	return false;
}
-->