
function songClip1()
{
	var textobj=window.document.all.songclipurl_play1;
	textobj.select();
	if (document.all){         
		therange=textobj.createTextRange()         
		therange.execCommand("Copy")         
		window.alert("地址已复制，可直接粘贴发送给您的QQ好友 :)");      
	}
}
function songClip2()
{
	var textobj=window.document.all.songclipurl_play2;
	textobj.select();
	if (document.all){         
		therange=textobj.createTextRange()         
		therange.execCommand("Copy")         
		window.alert("地址已复制，可直接粘贴发送给您的QQ好友 :)");      
	}
}

function vote(str){
var httpUrl="../admin/vote.asp?id="+str;
var obj_xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	obj_xmlhttp.open("post",httpUrl,false);
	obj_xmlhttp.send();
	if (obj_xmlhttp.readyState==4){
	 var errmsg=obj_xmlhttp.getResponseHeader("errmesage");

		alert(errmsg);
	}
}



//全屏播放的代码
function FullPlay(sUrl) {
	if(document.getElementById("flashgame").readystate==4){
		window.open("FullPlay.htm?"+sUrl,"52G","fullscreen");
		window.close()
	}
	else{
		alert("请等动画下载完毕再全屏播放，Thanks：）");
	}
}
function FullPlay1(sUrl) {
	window.open("FullPlay.htm?"+sUrl,"52G","fullscreen");
	window.close()
}
function GameScale(width){
	switch(width){
	case '800':
		document.getElementById('flashgame').width=650;
		document.getElementById('flashgame').height=430;
		break;
	case '1024':
		document.getElementById('flashgame').width=750;
		document.getElementById('flashgame').height=563;
		break;
	}
}
var screenWidth = location.search.split('?')[1]

function Cang_qq()
{
	window.open('http://shuqian.qq.com/post?from=3&title=' + encodeURIComponent(document.title) + '&uri=' + encodeURIComponent(document.location.href) + '&jumpback=2&noui=1','favit','width=770,height=500,left=200,top=180,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');
}