﻿if (top.location != location) top.location.href = location.href;
//应用前请修改以下2个参数
//DomainUrl变量修改为你的主域域名，比如你的域名是www.uudog.com，那么你的主域域名就是uudog.com
//AuthUrl变量修改为任意一个装有筛选器的站点的域名即可，建议单独建一个站点安装一个筛选器，然后AuthUrl填入这个新建站点域名
var DomainUrl = "6t1t.com";
var AuthUrl = "wma.6t1t.com";
var Server = "http://wma.6t1t.com/";

SetCookie("uuauth", "ok", null, "/", DomainUrl, false);

document.write("<script language='javascript' src='http:\/\/" + AuthUrl + "\/getuuauthcode\/'><\/script>");

function SetCookie(name, value)
{
	var expdate = new Date();
	var argv = SetCookie.arguments;
	var argc = SetCookie.arguments.length;
	var expires = (argc > 2) ? argv[2] : null;
	var path = (argc > 3) ? argv[3] : null;
	var domain = (argc > 4) ? argv[4] : null;
	var secure = (argc > 5) ? argv[5] : false;
	if(expires!=null) expdate.setTime(expdate.getTime() + ( expires * 1000 ));
	document.cookie = name + "=" + escape (value) +((expires == null) ? "" : ("; expires="+ expdate.toGMTString()))+((path == null) ? "" : ("; path=" + path)) +((domain == null) ? "" : ("; domain=" + domain))+((secure == true) ? "; secure" : "");
}
var AuthCode;
try{
	AuthCode = UUAuthCode;
	//alert("检测成功\r\n" + UUAuthCode);
}catch(e){
	//alert("检测失败，请检查您的浏览器是否支持cookie\r\n" + e.message);
}


var doc_1 = "#playermenu .titlebar div";
  
$(function(){

	$(doc_1).click(function(){
	
			$(doc_1).attr("class","n");
			$(this).attr("class","y");
		
			$("#playermenu .contents").hide();
			$("#playermenu_" + $(this).attr("id").split("_")[1]).show();
	 
	});
 
	
 
 
});
var rateTimer=false,s_signin=false;
var hideRateTimer;
//rate
function showRatePanel(){
	if (rateTimer==true){
		clearTimeout(hideRateTimer);
		rateTimer=false;
	}else{
		document.getElementById("rate-panel").style.display="block";
	}
}

function hideRatePanel(){
	rateTimer=true;
	hideRateTimer=setTimeout("hideRate()",0);
}

function keepShowingRate(){
	if (rateTimer==true){
		clearTimeout(hideRateTimer);
		rateTimer=false;
	}	
}

function hideRate(){
	document.getElementById("rate-panel").style.display="none";
	rateTimer=false;
}


function showtext(){
	document.getElementById('lrc_1').className="geci_r on";
	document.getElementById('lrc_2').className="geci_r off";
	document.getElementById('songword').style.display='';
	document.getElementById('songlrc1').style.display='none'
}
function showlrc(){
	document.getElementById('lrc_1').className='geci_r off';
	document.getElementById('lrc_2').className='geci_r on';
	document.getElementById('songword').style.display='none';
	document.getElementById('songlrc1').style.display=''
}



//播放页广告

function PToTel(MusicName){ document.write("<iframe src=\"\/server\/230_30.html?s="+MusicName+"\" allowtransparency=\"no\" width=\"250px\" height=\"28px\" scrolling=\"no\" frameborder=\"0\"><\/iframe>");}


function Ptxt(id,MusicName){ document.write("<a href=\"\/lingsheng\/"+id+".html\" target=\"_blank\">"+MusicName+"手机铃声<\/a>");}


function PRgg(MusicName){ document.write("<iframe name=\"lyricp\" width=\"300\" height=\"300\" src=\"\/server\/300_300.html?s="+MusicName+"\" frameborder=\"no\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>");}

function ling(MusicName){ document.write("<iframe name=\"lyricp\" width=\"280\" height=\"300\" src=\"\/server\/300_300.html?s="+MusicName+"\" frameborder=\"no\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>");}


function Pl(id,nid){ document.write("<iframe name=\"comment\" id=\"comment\" src=\"/user/pl.asp?type=1&id="+id+"&nclassid="+nid+"\" width=\"100%\" height=\"200\" frameBorder=\"0\" scrolling=\"no\" align=\"center\"></iframe>");}
