if (window.clientInformation.appVersion.indexOf("MSIE 6.0")!=-1 && window.clientInformation.appVersion.length==47){
	var fullsc = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
	if (fullsc.clientHeight<600 || fullsc.clientWidth<800) {
		self.moveTo(0,0);
		self.resizeTo(screen.availWidth,screen.availHeight);
	}
}

function banner(){
	document.write('<IFRAME name="banner" marginWidth="0" frameSpacing="0" marginHeight="0" src="http://www.zhezhe.net/zhezhecss/gd1.html" frameBorder="0" width="960" height="90" scrolling="no"></iframe>');
}

function banner_play(){
document.write('<div style="width:728px;height:90px;text-align:center;"><IFRAME name="banner_play" marginWidth="0" frameSpacing="0" marginHeight="0" src="/inset/html/banner_play.htm" frameBorder="0" width="728" height="90" scrolling="no"></iframe></div>');
}

function banner_flash(){
	//document.write('<div style="width:775px;height:90px;margin-top:7px;text-align:center;"><IFRAME name="f_728" marginWidth="0" frameSpacing="0" marginHeight="0" src="/inset/html/775_90.htm" frameBorder="0" width="728" height="90" scrolling="no"></iframe></div>');
}
function r_ba(){
	document.write('<IFRAME name="r_ba" marginWidth="0" frameSpacing="0" marginHeight="0" src="/inset/html/160_600.htm" frameBorder="0" width="160" height="600" scrolling="no"></iframe>');
}
function history(){
	var Game_history=getCookie("history");
	var i,tmp_s;
	var li='';
	if (Game_history!=null){
		var history_s=Game_history.split("￥");
		for (i=0;i<history_s.length && i<20;i++){
			if(history_s[i].indexOf('$')!=-1){
				tmp_s=history_s[i].split('$')
				//tmp_s[0]=tmp_s[0].replace('/play/','/flash/');
				if (li.indexOf(tmp_s[0])==-1){
					li+='<li class="history"><h4><a href="'+tmp_s[0]+'" title="'+tmp_s[1]+'">'+tmp_s[1]+'</a></h4></li>';
				}
			}
		}
		if (li!=''){
			document.write('<div class="tag"><div class="title">玩过的游戏></div><ul>'+li+'</ul></div>');
		}
	}
}
function _copy(){window.clipboardData.setData("text",location.href);alert("网址已复制好，粘贴发给好朋友一起玩吧^_^");}
function getCookie(name){var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));if(arr != null)return unescape(arr[2]);return null;}
function SetCookie(name,value){var Days = 365;var exp   = new Date();exp.setTime(exp.getTime() + Days*24*60*60*1000);document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString() + ";path=/";}
function getOs(){
	var agt=window.navigator.userAgent.toLowerCase();
	if(agt.indexOf("msie")>=0)return 0;
	if(agt.indexOf("firefox")>=0)return 1;
	if(agt.indexOf("opera")>=0)return 3;
	if(agt.indexOf("camino")>=0)return 4;
	if(agt.indexOf("gecko/")>=0)return 5;
	return 0;
}
function replay(){
		var _swfobj;
		var strMovieUrl
		if(getOs()==0){
			_swfobj = document.getElementById('swfobj2') || document.getElementById('swfobj');
			strMovieUrl = _swfobj.Movie;
		}else{
			_swfobj = document.getElementById("frmobj");
			strMovieUrl = _swfobj.src;
		}
	if(_swfobj.PercentLoaded()==100){
		if(getOs()==0){
			_swfobj.movie = " ";
			_swfobj.movie = strMovieUrl;
		}else{
			_swfobj.src = " ";
			_swfobj.src = strMovieUrl;
		}
	}
}

