)+''")>''+names.replace(/ /g,'' '')+'' (''+type+'')</a></li>'';
}
tmp+="</ul>";
$("list").innerHTML=tmp;
$("msg").style.display="none";
play(getTagValue(items[0], "type"),getTagValue(items[0], "link"));
}
function play(obj,url){
initLrc();
$("guanxin").style.display="none";
$("msg").style.display="block";
AJAXCALL("inc/songurl.asp?type=url2&keyword="+url+"&attach="+obj,"gotoplay","isXML=true");
AJAXCALL("inc/lyrics.asp?song="+names,"getlrc","isXML=true");
}
var tl;
function getlrc(doc){
tl="";
var items=getElementsByClass(doc,"item");
var tmp="<div id=LrcDiv class=LrcDiv>";
for(var i=0;i<items.length;i++){
tmp+=''<div class=div id=T_''+getTagValue(items[i], ''time'')+'' onclick=To(\''''+getTagValue(items[i], ''time'')+''\'')>''+getTagValue(items[i], ''lrc'')+''</div>'';
tl+=getTagValue(items[i], ''time'')+"|";
}
tmp+="</div>";
$("lrc").innerHTML=tmp;
}
function gotoplay(docs){
var type=getTagValue(docs, "type");
var link=getTagValue(docs, "link");
if(type=="rm" || type=="ra" || type=="ram" || type=="rmvb" || type=="mpga" || type=="mp4" || type=="3gp")
$("players").innerHTML=realplayer(link);
else
$("players").innerHTML=mdplayer(link);
var link3=cuturl(link);
$("msg").style.display="none";
$("wmaurl").innerHTML="歌曲出处: <a href="+link.replace(/ /g," ")+" target=''_blank'' title=''点右键另存:"+names.replace(/ /g," ")+"''>"+link3.replace(/ /g," ")+"</a>";
setTimeout(guanxin,1000);
playobj();
}
function initLrc(){
clearTimeout(lrcT);
rorw="";
$("players").innerHTML="";
$("lrc").innerHTML="";
St=0;
Cs=0;
}
function playobj(){
if($("MPlaye