function FullPlay(sUrl) {
	if(document.getElementById("flashgame").readystate==4){
		if(sUrl.substr(sUrl.length-4,4).toLowerCase()==".swf")
			sUrl = sUrl.substr(0,sUrl.length-4);
		window.open("/FullPlay.htm?"+sUrl,"gametingt","fullscreen");
		window.opener =null;
		window.close();
	}
	else{
		alert("请等下载完毕再全屏播放，Thanks：）");
	}
}
function FullPlay2(sUrl) {
	if(sUrl.substr(sUrl.length-4,4).toLowerCase()==".swf")
		sUrl = sUrl.substr(0,sUrl.length-4);
	window.open("/FullPlay.htm?"+sUrl,"gametingt","fullscreen");
	window.opener =null;
	window.close();
}
function FullPlay1(sUrl) {
	if(sUrl.substr(sUrl.length-4,4).toLowerCase()==".swf")
		sUrl = sUrl.substr(0,sUrl.length-4);
	window.open("FullPlay.htm?"+sUrl,"gametingt","fullscreen");
	window.opener =null;
	window.close()
}
function GameScale(width){
	switch(width){
	case '800':
		document.getElementById('flashgame').width=600;
		document.getElementById('flashgame').height=475;
		break;
	case '1024':
		document.getElementById('flashgame').width=600;
		document.getElementById('flashgame').height=475;
		break;
	case '1280':
		document.getElementById('flashgame').width=600;
		document.getElementById('flashgame').height=475;
		break;
	default:
		document.getElementById('flashgame').width=600;
		document.getElementById('flashgame').height=475;
		break;
	}
}
var screenWidth = location.search.split('?')[1]
