if(pp == "pig_play"){
	document.write('<div style="text-align:center;color:red;width:760px;margin:10px auto 0px auto;font-size:14px;font-weight:bold;">如果您觉得好玩.请把本站网站 www.yxcity.com 告诉您的朋友,大家一起玩游戏!</div>');
}
document.write('<div id="copyright" class="center">\
<a href="/help/about.htm" target="_blank">关于本站</a> - \
<a href="/help/declare.htm" target="_blank">版权声明</a> - \
<a href="/html/map.htm" target="_blank">网站地图</a> - \
<a href="/help/contact.htm" target="_blank">广告合作</a> - \
<a href="/help/contact.htm" target="_blank">留言反馈</a> - \
<a href="/help/" target="_blank">帮助</a>\
<span id="hp1" style="behavior:url(#default#homepage)"></span>');
var d=window.navigator.userAgent.indexOf("MSIE")!=-1;
if(d){
	if (!hp1.isHomePage('http://www.yxcity.com/?hp') && !hp1.isHomePage('http://www.yxcity.com/?hp')) document.write(' - <a href="http://www.yxcity.com" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.yxcity.com/?hp\');return(false);" style="behavior: url(#default#homepage);color:red;"><strong>每次上网自动访问本站</strong></a>');
}
document.write('<br /><span class="tahoma">Copyright &copy;2009 yxcity.com All Rights Reserved 京ICP备05021396号</span>');
if(pp != "pig_index") document.write('<br /><a href="/?bottom"><img src="/images/gotohome.gif" /></a>');
document.write('</div>');
document.write('<script type="text/JavaScript" src="/javascript/jquery-1.2.pack.js"></script>');
document.write('<script type="text/JavaScript" src="/javascript/view_pic.js"></script>');
document.write('<script type="text/javascript" src="/view.php?id='+id+'"></script>');
var dlht=document.location.href.toLowerCase();
if(dlht.indexOf("fav")>0 || dlht.indexOf("hp")>0) setCookie('addfav', 'addfavcookies', '/');
function bookmark(){
	if(document.cookie=="") return;
	if(getCookie("addfav")=="addfavcookies") return;
	var dr= document.referrer;
	if(dr && !/(yxcity|f1717)/i.test(dr.toLowerCase())){
		if(confirm('是否收藏游戏城市')){
			window.external.addFavorite('http://www.yxcity.com/?Fav', '游戏城市');
			//getreq('/count/addfav.php?action=yes');
		}else{
			//getreq('/count/addfav.php?action=no');
		}
	}
	setCookie('addfav', 'addfavcookies', '/');
}
window.setTimeout(bookmark,2000);

jx={getHTTPObject:function(){var A=false;if(typeof ActiveXObject!="undefined"){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}}else{if(window.XMLHttpRequest){try{A=new XMLHttpRequest()}catch(C){A=false}}}return A},load:function(url,callback,format,method,opt){var http=this.init();if(!http||!url){return }if(http.overrideMimeType){http.overrideMimeType("text/xml")}if(!method){method="GET"}if(!format){format="text"}if(!opt){opt={}}format=format.toLowerCase();method=method.toUpperCase();var now="uid="+new Date().getTime();if(method!="GET"){url+=(url.indexOf("?")+1)?"&":"?";url+=now;}var parameters=null;if(method=="POST"){var parts=url.split("?");url=parts[0];parameters=parts[1]}http.open(method,url,true);if(method=="POST"){http.setRequestHeader("Content-type","application/x-www-form-urlencoded");http.setRequestHeader("Content-length",parameters.length);http.setRequestHeader("Connection","close")}var ths=this;if(opt.handler){http.onreadystatechange=function(){opt.handler(http)}}else{http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var result="";if(http.responseText){result=http.responseText}if(format.charAt(0)=="j"){result=result.replace(/[\n\r]/g,"");result=eval("("+result+")")}else{if(format.charAt(0)=="x"){result=http.responseXML}}if(callback){callback(result)}}else{if(opt.loadingIndicator){document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator)}if(opt.loading){document.getElementById(opt.loading).style.display="none"}if(error){error(http.status)}}}}}http.send(parameters)},bind:function(A){var C={"url":"","onSuccess":false,"onError":false,"format":"text","method":"GET","update":"","loading":"","loadingIndicator":""};for(var B in C){if(A[B]){C[B]=A[B]}}if(!C.url){return }var D=false;if(C.loadingIndicator){D=document.createElement("div");D.setAttribute("style","position:absolute;top:0px;left:0px;");D.setAttribute("class","loading-indicator");D.innerHTML=C.loadingIndicator;document.getElementsByTagName("body")[0].appendChild(D);this.opt.loadingIndicator=D}if(C.loading){document.getElementById(C.loading).style.display="block"}this.load(C.url,function(E){if(C.onSuccess){C.onSuccess(E)}if(C.update){document.getElementById(C.update).innerHTML=E}if(D){document.getElementsByTagName("body")[0].removeChild(D)}if(C.loading){document.getElementById(C.loading).style.display="none"}},C.format,C.method,C)},init:function(){return this.getHTTPObject()}}

function Tab(Xname,Cname,Lenght,j) {
	for(i=0;i<Lenght;i++){
		eval("getObj('"+Xname+i+"').className='n2'");
	}
	eval("getObj('"+Xname+j+"').className='n1'");
	if (j==0) scriptname = 'all';
	else if (j == 12) scriptname = 'new';
	else if (j == 13) scriptname = 'hot';
	else scriptname = j;
	url = '/html/t_'+scriptname+'.html';
	setTimeout("load_index_commend('"+url+"')", 100);
}

function load_index_commend(url) {
	  jx.load(
			  url,function(data)
		{
		document.getElementById('h_c').innerHTML=data;
		},'text','get'
	      );
}