﻿_REGFromType="S67"


google_color_border="DFAF68"
google_color_bg = "F9EEDA"
google_color_link = "CC6600"

function musicpinglun(id,subject,singer){
var text="<a target=_blank href=http://music.5ilog.com/music/song.aspx/"+id+".htm>"+subject+" "+singer+"</a><BR>"
open("http://w1.5ilog.com/cgi-bin/bbs/sys2/mybbs_lunqu_new.aspx?id=0x67a00&subject="
+encodeURIComponent(subject+"歌曲评论")+"&tag="+encodeURIComponent(subject+" "+singer)+"&text="+encodeURIComponent(text))


}

function shurugeci(id,subject,singer){
var text="<a target=_blank href=http://music.5ilog.com/music/song.aspx/"+id+".htm>"+subject+" "+singer+"</a><BR>"
open("http://w1.5ilog.com/cgi-bin/bbs/sys2/mybbs_lunqu_new.aspx?id=0x67a00&subject="
+encodeURIComponent(subject+"歌词录入")+"&tag="+encodeURIComponent(subject+" "+singer)+"&text="+encodeURIComponent(text))

}


function daohang(){

document.write('<a style="color:red" href=/music/meinvlist.aspx/1.htm>明星美女</a>'
,' <a href=/music/meinvlist.aspx/2.htm>明星帅哥</a>'
,'　<a href=/music/singerlist.aspx/1.htm>港台女星</a>'
,' <a href=/music/singerlist.aspx/2.htm>港台男星</a>'
,' <a href=/music/singerlist.aspx/3.htm>港台组合</a>'
,' 　<a href=/music/singerlist.aspx/4.htm>大陆女星</a>'
,' <a href=/music/singerlist.aspx/5.htm>大陆男星</a>'
,' <a href=/music/singerlist.aspx/6.htm>大陆组合</a>'
,' <a href=/music/singerlist.aspx/7.htm>欧美</a>'
,' <a href=/music/singerlist.aspx/8.htm>日本</a>'
,' <a href=/music/singerlist.aspx/9.htm>韩国</a>'
,' 　<a href=/music/singerlist.aspx/10.htm>影视</a>'
,' <a href=/music/singerlist.aspx/11.htm>音乐舞曲</a>'
,' <a href=/music/singerlist.aspx/12.htm>其他</a>'
,' <a target=_blank href=http://www.5ilog.com/cgi-bin/club/luntanframe.aspx?id=0x67000>交流论坛</a>'
,' <a href=/music/zhuanjilist.aspx>最新专辑</a>')

}

function formtishi(){
document.write('<div id=searchtishi style="display:none">'
,' <DL>'
,' <LI>下划线(_)匹配单一字符<BR>'
,' <LI>百份号(%)匹配任意字符'
,' <LI>系统会自动在结尾加上%,除非结尾加上[<BR>'
,' </Dl>'
,' <DL>举例：<BR>'
,' <LI>输入:情；情开头的歌曲。<BR>'
,' <LI>输入:%情；包含情的歌曲。<BR>'
,' <LI>输入:_情；第二字是情的歌曲。<BR>'
,' <LI>输入:情[；名字一个字,情,的歌曲。<BR>'
,' </Dl>'
,' </div>')

if (location.host=="music.5ilog.com")
document.write("<img src=http://js.5ilog.com/qq/img/bbs/38.gif><a target=_blank href=http://www.5isanguo.com/r.aspx/C21.htm><font color=red><B>我爱三国</b></font><BR>无须下载，即点即玩！</a>")
//' <iframe frameborder="0" marginheight="0" marginwidth="0" border="0" id="alimamaifrm" name="alimamaifrm" scrolling="no" height="60px" width="250px" style="width:250px;height:60px" src="http://p.alimama.com/code.php?t=2&i=mm_10025518_127549_116556&w=250&h=60&sz=13&bgc=FFFFFF&bdc=E6E6E6&tc=0000FF&lc=008000&dc=000000"></iframe>')


}


function _WMGG300(){
_WQQGG("_QQ300x300")
return
	var r=Math.random()
	if (r<0.3){
		_W('<iframe  marginheight=0 marginwidth=0 scrolling="no" frameborder="0" width="300" height="300" src="http://mmscode1.3bu.com/mmscode/jieri/10111609086109337863.htm?id=10111609086109337863&webownerId=10871&childid=10000"></iframe>')
	}else if (r<1){
		_W('<iframe  marginheight=0 marginwidth=0 scrolling="no" frameborder="0" width="300" height="300" src="http://mmscode1.3bu.com/mmscode/jieri/10111607459229319363.htm?id=10111607459229319363&webownerId=10871&childid=10000"></iframe>')
  /*}else if (r<0.6){
		_W('<iframe src="http://union.popwan.com/spread/iframe/show.aspx?siteid=1570&id=59" height="200" width="200" border="0" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"></iframe>')
  }else if (r<1){
		_W('<iframe src="http://union.popwan.com/spread/iframe/show.aspx?siteid=1570&id=43" height="200" width="200" border="0" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"></iframe>')
		*/
	}else{
		_WQQGG("_QQ300x300")
	}
}

//点歌
function _diange(name,mmid){
/*if (mmid){
	window.open('http://dg.mmforce.com/song1.jsp?songid=' + mmid
	+ '&userid=2020&aid=111','','top=50,left=220,width=550,height=335,scrollbars=no,resizable=no,center=yes');	
	return
}*/
name=name.replace(/\s/g,"")
if (Math.random()<-0.5)
	//newin('http://u.x-push.net/dg/300x300S/index.asp?vip=4422&uid=&bid=&song='
	newin('http://www.91ivr.com/sendx10.html?seo=10183&musicname='
		+name,null,330,310)
		
else
		newin('http://u.x-push.net/dg/300x300S/index.asp?vip=4422&uid=&bid=&song='
		+name,null,330,310)
	//newin('http://ivrsend.7town.com/Tnivr/mpn.aspx?style=_3&mn='+escape(name)
	//	+'&uid=16764&a=&b=&c=&d=&e=&f=&g=')
}

function _WMDianGe300(songname){
_WMGG300()
return ""

if (Math.random()<-0.5){
	var s='<IFRAME id=iframe name=iframe marginWidth=0 marginHeight=0 src="http://www.91ivr.com/sendx2.html?seo=10183&musicname='
		+songname+'" frameBorder=0 width=300 scrolling=no height=300></IFRAME>'
	
		_W(s)
}else{
	var s=('<iframe src="http://u.x-push.net/dg/300x300S/index.asp?vip=4422&uid=&bid=&song='
		+escape(songname)+'" frameborder=0 scrolling=0 width=300 height=300 align=center></iframe>')
		_W(s)

	//_W('<iframe width=300 height=300 src="http://ivrsend.7town.com/Tnivr/mpn.aspx?style=_3&mn='
	//	+escape(songname)+'&uid=16764&a=&b=&c=&d=&e=&f=&g=" frameborder=no marginwidth=0 marginheight=0 scrolling=no align="center"></iframe>')
	
	
}
}

//sms
function _sendSMSName(name){
if (Math.random()<10.5){
	var url='http://u.x-push.net/tl/360x180/index.asp?vip=4422&uid=&bid=&song='
	+escape(name)
	newin(url,"",380,200)
}else{
	newin("http://mmscode1.3bu.com/mmscode/MusicSingleRing/11141157006848837608.htm?songname="
		+name+"&a=&b=&c=&d=&e=&f=&webownerId=10871&serviceId=100001"
	//newin("http://www.7town.com/TnSend/P3001.htm?uid=16764&mn="+name+"&a=&b=&c=&d=&e=&f="
		,null,320,320)
}
}

function _WMSMS260x30(name){
if (Math.random()<-0.5){
_W('<iframe name="town" src="http://www.7town.com/TnSend/P2601.htm?uid=16764&mn='
	+escape(name)+'&a=&b=&c=&d=&e=&f=" width="260" height="30" border="0" frameborder="0" scrolling="no"></iframe>')

//document.write('<iframe name="" src="http://u.x-push.net/tl/225x28/index.asp?vip=4422&uid=&bid=&song='
//	+escape(name)+'" frameborder="0" scrolling="0" width="225" height="28" align="center"></iframe>')

//	_W('<iframe width="260" height="48" src="http://code.5k3g.com/NewSend2/SendRing_5.aspx?songname='
//		+escape(name)+'&singer=&uid=12085&style=1" frameborder=no marginwidth=0 marginheight=0 scrolling=no></iframe>')
}else
_W("<iframe  marginheight =0 marginwidth =0  scrolling='no' frameborder='0' width='230' height='30' src='http://mmscode1.3bu.com/mmscode/MusicSingleRing/11141157006848837608.htm?songname="
+name+"&a=&b=&c=&d=&e=&f=&webownerId=10871&serviceId=100001'></iframe>")
}


function _WMSMS350(name){
var r=Math.random()
if (r<-0.5){
//_W('<iframe name="7town" src="http://www.7town.com/TnSend/mpn.aspx?style=_468_300&uid=16764&mn='
//	+escape(name)+'&dy=2&a=&b=&c=&d=&e=&f=" width="468" height="300" border="0" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>')
	_W('<iframe width="350" height="350" src="http://code.5k3g.com/NewSend2/sendring_1.aspx?songname='
		+escape(name)+'&singer=&uid=12085" frameborder=no marginwidth=0 marginheight=0 scrolling=no></iframe>')
}else 
document.write("<iframe marginheight=0 marginwidth=0  scrolling='no' frameborder='0' width='350' height='350' src='http://mmscode1.3bu.com/mmscode/MusicSingleRing/11061026313665694384.htm?songname="
	+name+"&a=&b=&c=&d=&e=&f=&webownerId=10871&serviceId=100001'></iframe>")
/*else
	document.write('<iframe src="http://u.x-push.net/tl/300x300T/index_beta_vip_4422_uid__bid__song_'
		+encodeURI(name.substring(0,7).replace("/","／").replace(/_/g,"-"))
		+'.html" frameborder=0 scrolling=0 width=300 height=300 align=center></iframe>')
		*/
}



function _WMGG300x250(){
_WQQGG("_QQ300x250","google")
//_W('<div id=gg300x250>'+_GetWMGG300x250()+"</div>")
}
function _GetWMGG300x250(){
	return _GetGGBad("300x300")
	return '<IFRAME src="http://union.poco.cn/ad_board.htx&style=750200&user_id=36341698&site_id=580" frameBorder=0 width=300 scrolling=no height=200></IFRAME>'
}



function _sendSMS(id){
window.open("/music/sms.aspx/"+id+".htm")
return
}

function sendSMS(){
	_sendSMSName(GetCurObj().songid)
}
function diange(){
	var o=GetCurObj()
	_diange(o.subject,o.id_mm)
}

function WritePubtools(){
_W('<a target=_blank href=http://w0.5ilog.com/cgi-bin/myqq/?go=music>我的音乐盒<img border=0 align=absmiddle src=http://js.5ilog.com/qq/img/dot/box.gif></a> ')
}

function _GetBuyZhuanjiHTML(zhuanji){
	return ""
	zhuanji=zhuanji?"'"+zhuanji+"'":""
	return '<a target=_self href="javascript:_BuyZhuanji('+zhuanji+')"><img src=http://js.5ilog.com/qq/img/dot/disk.gif border=0>购买该专辑，支持你喜爱的歌手！</a>'
}

function _BuyZhuanji(zhuanji){
if (zhuanji==null){
	var o=GetCurObj()
	zhuanji=o.zhuanji
}
	window.open("http://www.joyo.com/search/search.asp?source=sliang732&searchType=2&searchWord="
		+zhuanji)
}



        


function validsearch(theForm){
if ((theForm.s.value=="") && (theForm.a.value=='')){
	alert("歌曲与歌手名称必须至少输入一个！")
	theForm.s.focus()
	return false
}

var s=document.location+""
if (s.indexOf("song.aspx")>=0) theForm.target="_blank"

return true
}

function GetMediaplay(notstart,onlyone){
	return _GetMediaplay(url,notstart,onlyone)
}

function _GetMediaplay(url,notstart,onlyone){
var info ="<object classid='clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6' id='mediaPlayerObj' width='100%' height='45' border='0'>"	+
		"    <param name='url' value='"+_decode(url)+"'>"	+
		"    <param name='rate' value='1'>"	+
		"    <param name='balance' value='0'>"	+
		"    <param name='currentPosition' value='0'>"	+
		"    <param name='playCount' value='"+(onlyone?1:1000)+"'>"	+
		"    <param name='autoStart' value='"+(notstart?0:1)+"'>"	+
		"    <param name='defaultFrame' VALUE=''>"	+
		"    <param name='volume' value='70'>"	+
		"    <param name='currentMarker' value='0'>"	+
		"    <param name='invokeURLs' value='-1'>"	+
		"    <param name='stretchToFit' value='0'>"	+
		"    <param name='windowlessVideo' value='0'>"	+
		"    <param name='enabled' value='-1'>"	+
		"    <param name='uiMode' value='Full'>"	+ 
		"    <param name='enableContextMenu' value='0'>"	+
		"    <param name='fullScreen' value='0'>"	+
		"    <param name='enableErrorDialogs' value='0'>"	+
		"  </object>"
return info
}


function lrcClass(tt)	//LRC歌词处理 类
{

  this.gsh="歌手:~1~\n曲名:~2~\n专辑:~3~\n编者:~4~";
  this.inr = [];		//行
  this.oTime = 0;		//余补时间
  this.hailang;
  this.dts = -1;		//当前行显示的s
  this.dte = -1;		//当前行显示的e
  this.dlt = -1;		//当前行
  this.ddh;		//当前行数据
  this.fjh;
  this.haohaiplay=mediaPlayerObj
  this.oceanx=0; //0为使用 Media Player 控件，1为使用 Real Player 控件

//以上几个属性是为了判断是否还在上次显示的时间范围，以减少循环次数


  if(/\[offset\:(\-?\d+)\]/i.test(tt))		//取offset余补时间
    this.oTime = RegExp.$1/1000;
  tt = tt.replace(/\[\:\][^$\n]*(\n|$)/g,"$1");		//去掉注解
  tt = tt.replace(/\[[^\[\]\:]*\]/g,"");
  tt = tt.replace(/\[[^\[\]]*[^\[\]\d]+[^\[\]]*\:[^\[\]]*\]/g,"");
  tt = tt.replace(/\[[^\[\]]*\:[^\[\]]*[^\[\]\d\.]+[^\[\]]*\]/g,"");
  tt = tt.replace(/<[^<>]*[^<>\d]+[^<>]*\:[^<>]*>/g,"");
  tt = tt.replace(/<[^<>]*\:[^<>]*[^<>\d\.]+[^<>]*>/g,"");		//去掉除时间标签的其它标签

  while(/\[[^\[\]]+\:[^\[\]]+\]/.test(tt))
  {
    tt = tt.replace(/((\[[^\[\]]+\:[^\[\]]+\])+[^\[\r\n]*)[^\[]*/,"\n");
    var zzzt = RegExp.$1;
    /^(.+\])([^\]]*)$/.exec(zzzt);
    var ltxt = RegExp.$2;
    var eft = RegExp.$1.slice(1,-1).split("][");
    for(var ii=0; ii<eft.length; ii++)
    {
      var sf = eft[ii].split(":");
      var tse = parseInt(sf[0],10) * 60 + parseFloat(sf[1]);
      var sso = { t:[] , w:[] , n:ltxt }
      sso.t[0] = tse-this.oTime; //绝对时间坐标,n文字
      this.inr[this.inr.length] = sso;
    }
  }
  this.inr = this.inr.sort( function(a,b){return a.t[0]-b.t[0];} );


  for(var ii=0; ii<this.inr.length; ii++)
  {
    while(/<[^<>]+\:[^<>]+>/.test(this.inr[ii].n))
    {
      this.inr[ii].n = this.inr[ii].n.replace(/<(\d+)\:([\d\.]+)>/,"%=%");
      var tse = parseInt(RegExp.$1,10) * 60 + parseFloat(RegExp.$2);
      this.inr[ii].t[this.inr[ii].t.length] = tse-this.oTime;
    }
  }
  if (tt)
  	this.print("");
  else{
  	var o=GetCurObj()
  	var tmpstr=""
  	if (o) tmpstr=o.songid+",'"+o.subject+"','"+o.singer+"'"
  	else tmpstr="songid,subject,singer"
  	this.print("暂无歌词<BR><BR><a style='color:white' href=javascript:shurugeci("+tmpstr+")>我来添加歌词</a>",true);
  }
  lrcwt1.innerText = "";
  lrcwt2.innerText = "";
  lrcwt3.innerText = "";
  lrcwt4.innerText = "";
  lrcwt5.innerText = "";
  lrcwt6.innerText = "";
  lrcwt7.innerText = "";
  lrcwt8.innerText = "";
  lrcwt9.innerText = "";
  
  if (self.gecitext)
  	gecitext.innerHTML=this.GetText()
}

lrcClass.prototype.GetText = function(){
var s=""
  for(var ii=0; ii<this.inr.length; ii++) {
  	var t=this.inr[ii].n
  	if (t.indexOf(".com")<0)
      		s+=t+"<BR>"
  }
  return s
}


lrcClass.prototype.run = function()
{
  try {
    if(this.oceanx==0)
      this.runing(this.haohaiplay.controls.currentPosition, this.haohaiplay.currentMedia.duration);
    else
      this.runing(this.haohaiplay.GetPosition()/1000, this.haohaiplay.GetLength()/1000);
  } catch(hh){}
}

lrcClass.prototype.runing = function(tme, plen)
{
  if(tme<this.dts || tme>=this.dte)
  {
    var ii;
    for(ii=this.inr.length-1; ii>=0 && this.inr[ii].t[0]>tme; ii--){}
    if(ii<0) ii=0;//return;
    this.ddh = this.inr[ii].t;
    this.fjh = this.inr[ii].w;
    this.dts = this.inr[ii].t[0];
    this.dte = (ii<this.inr.length-1)?this.inr[ii+1].t[0]:plen;

    lrcwt1.innerText = this.retxt(ii-3);
    lrcwt2.innerText = this.retxt(ii-2);
    lrcwt3.innerText = this.retxt(ii-1);
    lrcwt4.innerText = this.retxt(ii+1);
    lrcwt5.innerText = this.retxt(ii+2);
	lrcwt6.innerText = this.retxt(ii+3);
	lrcwt7.innerText = this.retxt(ii+4);
	lrcwt8.innerText = this.retxt(ii+5);
	lrcwt9.innerText = this.retxt(ii+6);
    this.print(this.retxt(ii));
    if(this.dlt==ii-1)
    {
      clearTimeout(this.hailang);
      this.golrcoll(0);
    }
    this.dlt = ii;
  }
}

lrcClass.prototype.retxt = function(i)
{
  return (i<0 || i>=this.inr.length)?"":this.inr[i].n;
}

lrcClass.prototype.print = function(txt,notitle)
{
  lrcbox.innerHTML = txt;
  if (notitle) return
  
  if (!self._oldtitle) {
  	_oldtitle=document.title
  }
  document.title=txt+" "+_oldtitle
}

lrcClass.prototype.golrcoll = function(s){
  var i=curfontsize.value
  if (i=="full") i=2
  if (i) i=(parseInt(i)+1)*3
   else i=3
  lrcoll.style.top = 25-(s++)*i;
  lrcwt1.filters.alpha.opacity = 90-s*18;
  lrcwt9.filters.alpha.opacity = s*18+10;
  if(s<=5)
    this.hailang = setTimeout("_lrcobj.golrcoll("+s+")",120);
}


function GetlrcDisHTML(notstart,onlyone){
var s='<select id=curfontsize onchange="changesize(this.value)"><option value="">歌词字体小<option value="1">歌词字体中<option value="2">歌词字体大<option value="full">满屏显示</select>'
+'<div id=fontsize class=fontsize><div id=musicgeci class="music-geci">'
+'<div onclick="fulltishi.childNodes(0).style.border=\'\';fulltishi.style.color=\'#000000\'" id=fulltishi style="text-align:left;font-size:12px;">'
+'<span style="cursor:pointer" onclick="changesize(\'\');curfontsize.selectedIndex=0">退出全屏</span> '
+'<span style="cursor:pointer">按F11键全屏效果更佳 点此隐藏该行提示</span></div><div class="lrcollbox">'
+'<table border=0 id="lrcoll" cellspacing="0" cellpadding="0">'
+'  <tr><td nowrap id="lrcwt1"></td></tr>'
+'  <tr><td nowrap id="lrcwt2"></td></tr>'
+'  <tr><td nowrap id="lrcwt3"></td></tr>'
+'  <tr><td nowrap class="kong"><span id="lrcbox" style="width:0;"></span></td></tr>'
for (var i=4;i<=9;i++){
	s+='<tr><td nowrap align="center" id="lrcwt'+i+'"></td></tr>'
}
return s+'</table></div>'+GetMediaplay(notstart,onlyone)+"</div></div>"
}

function changesize(v){
 if (v!="full"){
 	fontsize.className="fontsize"+v
 	musicgeci.style.width=""
 	musicgeci.style.height=""
 	mediaPlayerObj.style.display=""
 	document.body.style.overflow =""
 	fulltishi.style.color=""
 	fulltishi.childNodes(0).style.border=""
 	return
 }
 fontsize.className="fontsize2"
 mediaPlayerObj.style.display="none"
 musicgeci.style.pixelWidth=window.screen.availWidth+130
 musicgeci.style.pixelHeight=window.screen.availHeight+50
 musicgeci.scrollIntoView()
 document.body.style.overflow ="hidden"
 fulltishi.style.color="#808080"
 fulltishi.childNodes(0).style.border="1px solid #808080"
 fulltishi.childNodes(0).title="退出全屏"
}


function play(m){
if (_StartWith(m,"<!--")){
	m=m.substring(4,m.length-7)
}
  if (self._lrcobj) clearTimeout(_lrcobj.interval)
  _lrcobj = new lrcClass(m);
  if (m) _lrcobj.interval=setInterval("_lrcobj.run();",100);

}

function _decode(s){

	if (!s) return ""
	var d=document.domain.toLowerCase()	
	var h=_EndWith(d,"5iyinyue.com")?"5iyinyue":"5ilog"
	if (/^\d+$/.test(s))
		//s="/cgi-bin/music/link.aspx?id="+s
		s="http://s."+h+".com/cgi-bin/music/link.aspx?id="+s
	if (QueryString.linktype) return s+"&linktype="+QueryString.linktype
	
	return s
}


function GetCurObj(){
	if (!self.mlist) return null
	var i=mlist.selectedIndex
	if (i<0) {i=0;mlist.options[i].selected=true}
	return mlist.options[i]
}
function QQLink(){
	var o=GetCurObj()
	_QQLink('M',o.songid,o.subject+" "+o.singer)
}
function CopyLink(){
	var o=GetCurObj()
	_CopyLink("http://music.5ilog.com/music/song.aspx/"+o.songid+".htm",o.subject+" "+o.singer)
}

function startplay(){

var o=GetCurObj()
for (var i=0;i<songsubject.length;i++)
		songsubject[i].innerText=o.subject
for (var i=0;i<singerlink.length;i++)
	singerlink[i].innerHTML="<a href=/music/singer.aspx/"+o.singerid+".htm>"+o.singer+"</a>"
var zhuanjihtml=""
if (o.zhuanjiid!="0") zhuanjihtml="<a href=/music/zhuanji.aspx/"+o.zhuanjiid+".htm>《"+o.zhuanji+"》</a>"
	else zhuanjihtml=o.zhuanji
for (var i=0;i<zhuanji.length;i++)
	zhuanji[i].innerHTML=zhuanjihtml
lrcdown.innerHTML="<a href='/music/lrc.aspx/"+o.songid+"/"+o.subject+".lrc'>LRC歌词下载</a>"
var s=document.getElementById("lrc"+o.songid)
s=s.innerHTML


mediaPlayerObj.url=_decode(o.value)
mediaPlayerObj.controls.Play();
play(s)

}

function init(){
	mediaPlayerObj.attachEvent ('playStateChange', playStateChange);
	startplay()

}

function playnext(){
var i=mlist.selectedIndex
if (i==mlist.options.length-1) i=0
	else i++
mlist.selectedIndex=i

startplay()

if (self._tuijianList)
	_tuijianList.innerHTML=_GetSongList(12)
if (self.gg300x250)
	gg300x250.innerHTML=_GetWMGG300x250()

}


function playpre(){
var i=mlist.selectedIndex
if (i==0) i=mlist.options.length-1
	else i--
mlist.selectedIndex=i

startplay()
}

function playStateChange(NewState){
  switch (NewState){
	   case 8: //media end
	   	//当前结束了，列表播放下一首
		if (mlist.selectedIndex==mlist.options.length-1){
			//到结尾了
		   	if (!iscyl.checked) return //不循环
		}
		//继续下一首
		setTimeout("playnext()",100)

		break;
	 default:
		break;
   }
}

function _Selzhuanji(theForm,zhuanjiid){
var a=ToArray(theForm.ids)
zhuanjiid=zhuanjiid+""
for (var i=0;i<a.length;i++)
  if (a[i].getAttribute("zhuanjiid")==zhuanjiid)
  	a[i].checked=true
}


function GetSongHTML(o){
 return "<a target=_blank href=/music/song.aspx/"+o.id+".htm>"+o.s+"</a>"
}
function GetSingerHTML(o){
	return "<a target=_blank href=/music/singer.aspx/"+o.sid+".htm>"+o.singer+"</a>"
}
function _GetSongList(n){
if (!_SongAry) return ""
var a=_GetRandAry(_SongAry.length)
var s="<table class=listtab cellspacing=1><tr class=bgtitle><td colspan=2 align=center><B>热门推荐</b></td></tr>"

var ids=""
for (var i=Math.min(_SongAry.length,n)-1;i>=0;i--){
	var o=_SongAry[a[i]];
	s+="<tr><td>"+GetSongHTML(o)+"</td><td>"
		+GetSingerHTML(o)+"</td></tr>"
	if (ids=="") ids=o.id
		else ids+=","+o.id
}
s+="<tr><td colspan=3 align=center><a target=_blank href=/music/mlist.aspx/"
+ids+".htm>播放列表</a></td></tr></table>"

return s

}



function wsinger(){
return ""
var s=location.pathname
if(s.indexOf("singer.aspx")>0){
	s=s.substring(s.lastIndexOf("/")+1)
	s=s.substring(0,s.indexOf("."))
	switch (s){
		case "5":
			return '<iframe width="773" height="1130" src="http://code.5k3g.com/subject/S.H.E/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "9":
			return '<iframe width="778" height="1840" src="http://code.5k3g.com/subject/twins/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "19":
			return '<iframe width="758" height="1790" src="http://code.5k3g.com/subject/CaiYiLin/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "22":
			return '<iframe width="1024" height="1250" src="http://code.5k3g.com/subject/chenhuilin/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "27":
			return '<iframe width="758" height="1400" src="http://code.5k3g.com/subject/chenYiXun/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "74":
			return '<iframe width="760" height="2090" src="http://code.5k3g.com/subject/liangyongqi/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "76":
			return '<iframe width="778" height="1210" src="http://code.5k3g.com/subject/LinJunJie/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "77":
			return '<iframe width="760" height="1100" src="http://code.5k3g.com/subject/linyilian/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "79":
			return '<iframe width="778" height="1710" src="http://code.5k3g.com/subject//LiuDeHua/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "81":
			return '<iframe width="760" height="1050" src="http://code.5k3g.com/subject/LiuRuoying/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "96":
			return '<iframe width="777" height="1327" src="http://code.5k3g.com/subject/PangWeiBo/Pwb.htm?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "100":
			return '<iframe width="760" height="1135" src="http://code.5k3g.com/subject/renxianqi/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "101":
			return '<iframe width="852" height="1230" src="http://code.5k3g.com/subject/RongZuE/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "109":
			return '<iframe width="778" height="1125" src="http://code.5k3g.com/subject/ZhangGuoRong/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "114":
			return '<iframe width="740" height="990" src="http://code.5k3g.com/subject/WangFei/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "116":
			return '<iframe width="760" height="1200" src="http://code.5k3g.com/subject/wanglihong/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "130":
			return '<iframe width="778" height="1200" src="http://code.5k3g.com/subject/XiaoYaXuan/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "133":
			return '<iframe width="760" height="1435" src="http://code.5k3g.com/subject/XIETINGFENG/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "161":
			return '<iframe width="760" height="1510" src="http://code.5k3g.com/subject/ZhangShaoHan/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "172":
			return '<iframe width="760" height="1600" src="http://code.5k3g.com/subject/zhengxiuwen/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "176":
			return '<iframe width="760" height="1350" src="http://code.5k3g.com/subject/zhouzhuanxiong/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "178":
			return '<iframe width="760" height="1740" src="http://code.5k3g.com/subject//zhoujielun/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "1525":
			return '<iframe width="760" height="1250" src="http://code.5k3g.com/subject/linzhixuan/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "1560":
			return '<iframe width="760" height="1270" src="http://code.5k3g.com/subject/naying/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "1995":
			return '<iframe width="817" height="1743" src="http://code.5k3g.com/subject/ZhangJie/zhangjie.htm?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
		case "2905":
			return '<iframe width="778" height="1125" src="http://code.5k3g.com/subject/ZhangGuoRong/?style=1&uid=12085" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>'
	}
}
return ""
}