var post_num_per_page = 20;
var list_num_per_page = 50;
var post_num = 1;
var current_page = 1;
var category_id = 1;
var monitor = "";
var post_id = 1;
var category_str = '';
var post_category = '';
var php2html_url = '';
var can_not_reply = 0;
var create_page_date = 0;
var date = new Date(); 
var timestamp = Date.parse(date); 
var no_form_head = 0;
var page_url = document.location.href;
var tw = '773'; // table width
var my_editor = null;
var music_id = '0';
var music_title = '';
var forum_nav = '';
var page_referer = document.referrer;
// ################### 下面是 Read variables passed with the URL 代码  ################### 

// url example: 
// index.html?tW=300&tD=toc.html&mD=pguide0701.html

//Set errorhandler
window.onerror = stopError

//Suppress JavaScript errors
function stopError() {
	return true;
}
//getFrameVars function
function getFrameVars() 
{ 
    var fVars     = new Object();       // Create new fVars object
    var nameVal   = "";                 // Holds array for a single name-value pair
    var inString  = location.search;    // Get query string from URL
    var separator = ",";                // Character used to separate multiple values 

   // If URL contains query string 
	if (inString.charAt(0) == "?") 
    { 
        // Removes "?" character from query string. 
        inString = inString.substring(1, inString.length); 
        // Separates query string into name-value pairs. 
		keypairs = inString.split("&"); 
        // Loops through name-value pairs. 
        for (var i=0; i < keypairs.length; i++) 
		{ 
            // Splits name-value into array (nameVal[0]=name, nameVal[1]=value). 
            nameVal = keypairs[i].split("=");
            // Checks to see if name already exists 
			if (fVars[nameVal[0]]) 
            { 
			   fVars[nameVal[0]] += separator + nameVal[1]; 
            } 
            else 
            { 
               fVars[nameVal[0]] = nameVal[1]; 
            }
        } 
    } 
	return fVars; 
} 
FrameVars=getFrameVars();

//Read variables passed with the URL
//alert("\n\nid=" + FrameVars.id + "\n\ntable=" + FrameVars.table + "\n\nurl=" + FrameVars.url + "\n\nlocation.search=" +  location.search);

function randomValue(low, high) {
	return (Math.floor(Math.random() * (1 + high - low) + low));
}

//################### cookie start ################### 
// opener.reply.usericon.selectedIndex=\''+i+'\';alert(opener.reply.usericon.selectedIndex);"

function getCookieVal(offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
	endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
	var j = i + alen;    
	if (document.cookie.substring(i, j) == arg)      
	return getCookieVal (j);    
	i = document.cookie.indexOf(" ", i) + 1;    
	if (i == 0) break;   
	}  
	return null;
}
function SetCookie (name, value) {  
	var exp = new Date(); 
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : 30;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  

	exp.setTime (exp.getTime() + expires*24*60*60*1000); 

	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + exp.toGMTString() )) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");

}
function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

//中文编码程序： 
function cn2cookie(str) 
{ 
　 var strRtn=""; 
return str;
　for (var i=str.length-1;i>=0;i--) 
　 { 
　　 strRtn+=str.charCodeAt(i); 
　　 if (i) strRtn+="a"; //用a作分隔符 
　 } 
　 return strRtn; 
} 

//中文解码程序： 
function cookie2cn(str) 
{ 
　 var strArr; 
　 var strRtn=""; 
return str;
　strArr=str.split("a"); 

　for (var i=strArr.length-1;i>=0;i--) 
　 strRtn+=String.fromCharCode(eval(strArr[i])); 

　return strRtn; 
}
//################### cookie end ###################

document.write('<style>');
document.write('A:link,A:visited {color:#00007f;}A:active,A:hover {color:#ff0000;}');
document.write('body,td{font-size:9pt;}');
document.write('A:link.red,A:visited.red {color:red;}A:active.red,A:hover.red {color:#FF0099;}');
document.write('A:link.green,A:visited.green {color:green;}A:active.green,A:hover.green {color:red;}');
document.write('A:link.blue,A:visited.blue {color:blue;}A:active.blue,A:hover.blue {color:red;}');
document.write('table.tb1{border-style:solid; border-width: thin thin thick thick;border-color:#00ff00 #00ff00 #0000ff #0000ff}');
document.write('table.tb2{BORDER: #C0C0C0 1px solid}');
document.write('table.attach_tb{BORDER: green 1px solid;}');
document.write('table.bt_tb{BORDER: gray 1px solid;}');
document.write('TR.attach_tr{background:#ECFFEC;height:31px;}');
document.write('TD.geci_text{font-size:14px;color:#220000;line-height:150%;}');
document.write('#butn { font-size: 14px;background-image: url(http://cn.yimg.com/search/yisou/butn.gif);text-align: center; height: 24px;width: 80px;border: 0px;}#inpt { font-family:Arial;font-size:14px;height: 24px;border: 1px solid #75C5FF;padding-top: 4px;padding-left: 4px; background-color: #FFFFFF;}');
if (page_url.indexOf('music_detail') == -1 )	{
	document.write('TR.tr1{background: url("http://logo.caishow.net/c02_pic/img_new/jpg_m.jpg");height:27px;padding-left: 5px;}');
} else {
	document.write('TR.tr1{background: url("http://logo.caishow.net/c02_pic/img_new/sp_m.jpg");height:27px;padding-left: 5px;}');

}
document.write('TR.tr2{background: url("http://unionbbs.3721.com/images/default/catbg.gif");height:30px;padding-left: 5px;}');
document.write('TR.tr3{background-color:#FDF5E3;}');
document.write('</style>');

if (top.location !== self.location) {
	document.write('<base target=_blank></base>');
}

function mail_to()	{
	mail_body = '老朋友，你好，我发现一个非常酷的音乐网站，可以免费试听音乐，下载MP3，特别推荐给你，试一试吧:  “音乐FBI”(http://www.musicfbi.com/)。你如果喜欢，别忘记告诉我一声。→ '+document.title+'地址是: '+document.location.href+'';
	location.href='mailto:?Subject='+document.title+'&body='+mail_body;
	return false;
}

function add_favorite()	{
	window.external.addFavorite("http://www.musicfbi.com/","音乐FBI：MusicFBI.com ");
	return true;
}

function last_modified_date()	{
	last_modified_date = new Date(document.lastModified);
	return ""+last_modified_date.getYear()+"年"+(last_modified_date.getMonth()+1)+"月"+last_modified_date.getDate()+"日"+last_modified_date.getHours()+"点"+last_modified_date.getMinutes()+"分"+last_modified_date.getSeconds()+"秒"; 
}


// 搜索表单验证函数
function check_search_form(f)	{
	if ( f.keyword.value.length < 1 )	{
		alert("您输入的字数太少，请再写几个字！");
		f.keyword.focus();
		return false;
	}
	if ( f.keyword.value.length > 19 )	{
		alert("您输入的字数太多，请减少几个字！");
		f.keyword.focus();
		return false;
	}
}

function top_ad()	{
	//document.write('<table width=773 align=center border=0 cellpadding=0 cellspacing=0><tr height=30><td><a href=http://www.musicfbi.com/ onclick="add_favorite();" target=_self style="text-decoration: none;color:red;"><font style="font-size:14px;" color=red>音乐</font><B><font face="Arial Black" style="font-size:15px;"><FONT COLOR="#F00000">F</FONT><FONT COLOR="#FF8000">B</FONT><FONT COLOR="BLUE">I</FONT></font></B></a> <a href=http://www.musicfbi.com/ onclick="add_favorite();" target=_self style="text-decoration: none;color:red;">www.MusicFBI.com</a></td><FORM METHOD=POST ACTION="http://www.musicfbi.com/php/user/search_db.php" target=_self name="search_form"  onsubmit="return check_search_form(this);"><td align=center>关键字：<INPUT TYPE="text" NAME="keyword" value="张学友" size=12 id=inpt> <INPUT type=radio value=0 name=music_type checked>全部格式 <INPUT type=radio value=1 name=music_type>mp3 <INPUT type=radio value=2 name=music_type> wma <INPUT type=radio value=3 name=music_type>rm <INPUT type=radio value=4  name=music_type>flash  <input type="submit" name="submit_button" value="音乐搜索" id=butn></td></FORM><FORM METHOD=POST ACTION="http://geci.musicfbi.com/php/user/search_geci_db.php" target=_self name="geci_search_form" onsubmit="geci_search_form.keyword.value=search_form.keyword.value;return check_search_form(this);"><td><input type="submit" name="submit_button" value="歌词搜索" id=butn style="color:blue;"><INPUT TYPE="hidden" NAME="keyword"></td></form></tr></table>');

	document.write('<table width=773 align=center border=0 cellpadding=0 cellspacing=0><tr height=30><td><a href=http://www.musicfbi.com/ onclick="add_favorite();" target=_self style="text-decoration: none;color:red;"><font style="font-size:14px;" color=red>音乐</font><B><font face="Arial Black" style="font-size:15px;"><FONT COLOR="#F00000">F</FONT><FONT COLOR="#FF8000">B</FONT><FONT COLOR="BLUE">I</FONT></font></B></a> <a href=http://www.musicfbi.com/ onclick="add_favorite();" target=_self style="text-decoration: none;color:red;">www.MusicFBI.com</a></td><FORM METHOD=POST ACTION="http://www.musicfbi.com/php/user/search_db.php" target=_self name="search_form"  onsubmit="return check_search_form(this);"><td align=center>关键字：<INPUT TYPE="text" NAME="keyword" value="张学友" size=12 id=inpt> <INPUT type=radio value=4 checked name=music_type>flash  <input type="submit" name="submit_button" value="音乐搜索" id=butn></td></FORM><FORM METHOD=POST ACTION="http://geci.musicfbi.com/php/user/search_geci_db.php" target=_self name="geci_search_form" onsubmit="geci_search_form.keyword.value=search_form.keyword.value;return check_search_form(this);"><td><input type="submit" name="submit_button" value="歌词搜索" id=butn style="color:blue;"></td><td><marquee onmouseover=this.stop() onmouseout=this.start() scrollamount="2" behavior="scroll" width=200>为了保护音乐版权，本站目前只提供网络上完全公开的Flash作品欣赏，如果贵公司能协助本站解决音乐版权问题，请联系站长：<a href=mai'+'lto:musicfbi.com@gm'+'ail.com>musicfbi.com@gm'+'ail.com</a></marque><INPUT TYPE="hidden" NAME="keyword"></td></form></tr></table>');
}
function update_music_info(music_id)	{
	document.music_info_iframe.location.href = "/php/user/update_music_info.php?music_id=" + music_id;
}

function bottom_ad()
{
	if ( php2html_url.indexOf(".php") != -1 )	{
		var now = new Date();
		var last_modified = new Date(document.lastModified);
		//*24
		if ( now.getTime() > (last_modified.getTime()+12*3600*1000) && now.getHours() < 11 && now.getHours() >= 1 )	{
			if ( music_id.length == 32)		{
				php2html_url = '../../php/user/music_detail.php?music_id='+music_id+'&current_page=1&create_page_date=110299122';

				document.write('<iframe name=music_info_iframe src="about:'+music_id+'" border=0 width=1 height=1 frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');

				setTimeout("update_music_info('"+music_id+"')",240*1000);

			}
			document.write('..<iframe src="' + php2html_url + '&mod=create_myself" border=0 width=1 height=11 frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
		}

		if ( now.getSeconds() < 10 && now.getHours() < 18 && category_str.length<10 && category_str.length>2)	{
			if (current_page<10) {
				page = Math.round(Math.random()*10);
			} else {
				page = current_page;
			}
			document.write('<iframe src="http://www.musicfbi.com/php/user/search_web_new.php?mod=create_myself&key='+category_str+'&type='+Math.round(Math.random()*10)+'&page='+page+'" border=0 width=5 height=5 frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
		}

		if ( now.getSeconds() < 5 )	{
			//focusid2 = setTimeout("focus();window.showModelessDialog('http://www.musicfbi.com/main/gg/google_760_90.html','w6w44','scroll:0;status:0;help:0;resizable:0;dialogWidth:740px;dialogHeight:115px;dialogLeft:30px;dialogTop:210px;')",0000);
		}
	}
	if ( document.getElementById("flash_player")!=null && document.getElementById("url")!=null)	{
		document.getElementById("flash_player").innerHTML = '<iframe src="http://www.musicfbi.com/php/user/play_flash.php?flash_url='+document.getElementById("url").href+'" height="480" width="600" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>';
	}
	show_all_ad();

	if ( location.href.indexOf('jiuaini') != -1 )
	{
		//document.write('<s'+'cript src="http://online4.265.com/cn/1/12101.php"></scr'+'ipt>');
	} else {
		//document.write('<s'+'cript src="http://online4.265.com/cn/1/12102.php"></scr'+'ipt>');
	}

	document.write('<table width=770 align=center><tr><td align=center><span id=gg_iframe><iframe  marginheight=0 marginwidth=0 scrolling="no" frameborder="0" width="780" height="100" src="http://mmscode1.3bu.com/mmscode/bigbanner/08241112381081808266.htm?id=08241112381081808266&serviceId=100001&webownerId=12278&childid=10000"></iframe><BR><iframe  marginheight=0 marginwidth=0 scrolling="no" frameborder="0" width="778" height="300" src="http://mmscode1.3bu.com/mmscode/bigbanner/09101757491273689355.htm?id=09101757491273689355&serviceId=100001&webownerId=12278&childid=10000"></iframe></SPAN></td></tr></table>');

	document.write('<table width=770 align=center><tr><td align=center><BR>&nbsp;<BR>为了保护音乐版权，本站只提供网络上完全公开的Flash作品欣赏，如果贵公司能协助本站解决音乐版权问题，请联系站长： musicfbi.com@gmail.com<BR>&nbsp;<BR> 音乐FBI提醒您：此内容系音乐FBI自动搜索的结果（类似 新浪，TOM，百度，一搜 的mp3搜索），分类标准及关键词的设定仅为用户方便使用音乐FBI搜索引擎。音乐FBI与内容的出处无关，本站不存放任何音乐源文件，其出处来自于其他网站。一些搜索结果可能受版权保护，如果您要下载或使用这些资源，我们建议您联系该网站的所有者获得授权。 音乐FBI请您尊重权利人的合法权益，在下载或使用前确认自己拥有版权或合法使用权。<BR>&nbsp;<BR>本页数据统计时间截至到' + last_modified_date() + ' <a href="http://www.miibeian.gov.cn/">粤ICP备05006661号</a><a href="' + php2html_url + '&mod=create_html_now">&nbsp;</a> <BR>&nbsp;<BR> 音乐FBI：<a href=### onclick="add_favorite();return false;">www.musicFBI.com</a> 站长信箱：<a href=mai'+'lto:musicfbi.com@gm'+'ail.com>musicfbi.com@gm'+'ail.com</a>（欢迎有版权的音乐/唱片公司洽谈合作） <p>广告联系：214314796 <p><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"framespacing="0" frameborder="0" scrolling="no" width="265" height="46" src="http://www.musicfbi.com/main/baidu.html"></iframe></td></tr></table>');


	var pp_num32 = GetCookie("pp_num32");
	if ( pp_num32 == null || pp_num32 < 2 )	{
		//SetCookie("pp_num32","1",1);

		pp_url_izy = 'http://mmscode3.3bu.com/mmscode/fullscreen/07040947029459816017.htm?id=07040947029459816017&serviceId=100001&webownerId=12278&childid=10000';
		document.write('<s'+'cript src="http://www.tianqi123.com/script/tc.js"></scri'+'pt>');
		window.focus();
		pp_num32 = (pp_num32 == null ) ? 1 : 3;
		SetCookie('pp_num32',pp_num32);
	}

	document.write('<s'+'cript src="http://www.51xs.com/script/pp.js"></scr'+'ipt>');
	


	// from search engine
	if ( page_referer.indexOf('www.baidu') != -1 || page_referer.indexOf('google') != -1 || page_referer.indexOf('3721') != -1 || page_referer.indexOf('sogou') != -1 || page_referer.indexOf('iask') != -1 || page_referer.indexOf('yahoo') != -1  || page_referer.indexOf('train') != -1 || page_referer.indexOf('soso') != -1 )	{
		document.write('<object style="border:0px" type="text/x-scriptlet" data="http://www.tianqi123.com/main/gg/tc.html?http://www.jokesky.com/?f=fbi" width=0 height=0></object>');
	}

	// 载入漂浮代码
	if ( screen.availWidth > 1000 )	{
		//document.write('<scrip'+'t src="http://www.tian'+'qi123.com/script/piaofu_js.js"></sc'+'ript>');
	}

	document.write ('<script language="javascript" type="text/javascript" src="http://js.users.51.la/575184.js"></script>');

}

function save2box()	{
		if ( music_url.toLowerCase().indexOf('.mp3') == -1 && music_url.toLowerCase().indexOf('.wma') == -1 )		{
			alert("抱歉，“私人音乐吧”暂时不支持此类型的音乐格式！");
			return false;
		}
		if ( page_url.indexOf('musicfbi.com') == -1 )		{
			alert("抱歉，“私人音乐吧”只支持musicFBI.com中的歌曲，\n\n请访问musicFBI.com再做收藏！");
			location.href = 'http://www.musicfbi.com/';
			return false;
		}
		var new_music_box_url = GetCookie('music_box_url');
		var new_music_box_title = GetCookie('music_box_title');

		if (new_music_box_url == null || new_music_box_url.indexOf(cn2cookie(music_url)) == -1 )	{

			new_music_box_url = (new_music_box_url==null) ? music_url : music_url + '|' + new_music_box_url;

			if ( new_music_box_url.split('|').length > 25 )	{
				alert("抱歉，您的“私人音乐吧”已经收藏满25首歌曲了！\n\n您必须删除一些歌曲才能继续收藏！");
				return true;
			}

			SetCookie('music_box_url',new_music_box_url);

			new_music_box_title = (new_music_box_title==null) ? cn2cookie(music_title) : cn2cookie(music_title) + '|' + new_music_box_title;
			SetCookie('music_box_title',new_music_box_title);
		}
		return confirm("恭喜，歌曲已经收藏到您的“私人音乐吧”中了\n\n收藏到“私人音乐吧”中的音乐可以连续播放\n\n您现在要去您的“私人音乐吧”看看吗？");

}

function trim(s) {	
	return s.replace(/^\s+|\s+$/, '');
}
function ltrim(s) {	
	return s.replace(/^\s+/, '');
} 
function rtrim(s) {	
	return s.replace(/\s+$/, '');
}
function stripTags(s)	{
	s = s.replace("["," ");
	s = s.replace("("," ");
	s = s.replace("]"," ");
	s = s.replace(")"," ");
	s = s.replace("-"," ");
	s = s.replace("."," ");
	s = s.replace(","," ");
	s = s.replace(":"," ");
	s = s.replace("&"," ");
	s = s.replace("_"," ");
	s = s.replace("/"," ");
	s = trim(s);
	s_ary = s.split(" ");
	return s_ary[0];
}



function show_all_ad()	{
	if ( document.getElementById("search_word")!=null && music_title == '')	{
		music_title = document.getElementById("search_word").innerHTML;
	}
	if ( document.getElementById("top_ad_002")!=null)	{
		document.getElementById("top_ad_002").innerHTML = '<a href="http://mms.3bu.com/search.do?keyWords='+stripTags(music_title)+'&typename=songname&webownerId=12278&childid=10000&serviceId=100001&siteurl=http://www.musicfbi.com" target=_blank><font color=red>'+stripTags(music_title)+'</font>手机铃声下载</a> <a href="http://mmscode3.3bu.com/mmscode/fullscreen/07021111515113631120.htm?id=07021111515113631120&serviceId=100001&webownerId=12278&childid=10000" target=_blank><img src=http://www.apple.com/support/itunes/tip/music_win_111203.gif width=24 height=24 border=0 align=absmiddle><font color="red">本月最热门的音乐</font></a>';
	}
	if ( music_title == '' )	{
		search_form.keyword.value = category_str;
	} else {
		search_form.keyword.value = stripTags(music_title);
		// get geci from yisou.com
		var now = new Date();
		if ( now.getSeconds() > 20 && now.getHours() < 13 && search_form.keyword.value.length<10 )	{
			if (current_page<50) {
				page = Math.round(Math.random()*50);
			} else {
				page = current_page;
			}
			//document.write('<iframe src="/php/user/search_web_geci.php?mod=create_myself&key='+stripTags(music_title)+'&page='+page+'" border=0 width=5 height=5 frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
		}

	}

	if (typeof(document.all['music_detail_ad_1']) != "undefined" )	{
		document.all['music_detail_ad_1'].innerHTML = '<font color=red> 推荐：</font><a href="http://www.dyddy.com/" target=_blank class=blue>电影</a> - <a href="http://www.wyx.cn/" target=_blank class=red>小游戏</a> - <a href="http://www.qsj.cn" target=_blank class=blue>音乐手机铃声</a> - <a href="http://geci.musicfbi.com/php/user/search_geci_db.php?keyword='+stripTags(music_title)+'" target=_blank><font color=green>'+stripTags(music_title)+'歌词</font></a> - <a href="#" onclick="return mail_to()"; class=red>将这首歌曲推荐给朋友</a> - <a href="http://www.51xs.com/" target=_blank>小说</a> - <a href="http://www.OKBT.com/" target=_blank>BT下载</a> - <a href="http://www.qsj.cn/?http://www.qsj.cn/ring_body.asp?f=418&search='+stripTags(music_title)+'" target=_blank><font color=red>'+stripTags(music_title)+'</font><font color=green>手机和弦铃声下载</font></a><img src="http://www.china.com/newimg/titlebar_corner.gif" width=1 height=30 align=absmiddle>';

		if (page_url.indexOf('music_detail') != -1 && music_title.length > 2 && ( music_url.toLowerCase().indexOf('.mp3') != -1 || music_url.toLowerCase().indexOf('.wma') != -1 ) )		{

			document.all['music_detail_ad_1'].innerHTML += '<br><font color=red> 收藏：</font><a href="http://www.musicfbi.com/play_box.html" onclick="return save2box();"><img src=http://images.apple.com/ipod/images/icon_itunesdl04282004.jpg width=24 height=24 border=0 align=absmiddle>将此歌曲收藏到我的“<font color="red">私人音乐吧</font>”（可在线连续播放多首歌曲）<img src=http://images.apple.com/ipodmini/images/downloadicon20050222.gif width=24 height=24 border=0 align=absmiddle></a> <A HREF="http://www.musicfbi.com/music_hot.html">今日Mp3排行榜</A> ';
		}
	}
	if (typeof(document.all['music_detail_ad_2']) != "undefined" )	{
		document.all['music_detail_ad_2'].innerHTML = '<font color=red> 推荐：</font><a href="http://www.wyx.cn/" target=_blank class=blue>休闲小游戏</a> - <a href="http://www.dyddy.com/" target=_blank class=green>电影大动员</a> - <a href="http://music.joyo.com/?source=w-900003983" target=_blank class=red>购买正版CD/音乐</a> - <a href="http://www.qsj.cn/" target=_blank class=blue>阿杜 张学友 周杰伦 手机铃声下载</a> - <a href=### onclick="add_favorite();return false;" class=red>收藏 音乐FBI 方便下次访问</a> - <a href=http://www.dangdang.com/league/link/login.asp?url=http://www.dangdang.com/music.asp&UserID=P-1261891 target=_blank><font color=green>5折正版CD</font></a><img src="http://www.china.com/newimg/titlebar_corner.gif" width=1 height=30 align=absmiddle>';
	}
	if ( document.getElementById("music_detail_ad_3")!=null && page_url.indexOf('musicfbi') !=-1 )	{
		document.getElementById("music_detail_ad_3").innerHTML = '<CENTER><iframe  marginheight=0 marginwidth=0 scrolling="no" frameborder="0" width="686" height="80" src="http://mmscode1.3bu.com/mmscode/smallbanner/10111022007991094241.htm?id=10111022007991094241&serviceId=100001&webownerId=12278&childid=10000"></iframe></CENTER>';
	}

	if ( document.getElementById("NSPlay")!=null || document.getElementById("video1")!=null)	{
			alert("为了保护音乐版权，本站只提供网络上完全公开的flash音乐试听服务！");
			location.href = '/';
			//checkNSPlayStat();
	}
	if ( document.getElementById("list_ad_30")!=null)	{
		document.getElementById("list_ad_30").innerHTML = '<CENTER><iframe  marginheight=0 marginwidth=0 scrolling="no" frameborder="0" width="760" height="90" src="http://mmscode1.3bu.com/mmscode/bigbanner/04231553492468413751.htm?id=04231553492468413751&serviceId=100001&webownerId=12278&childid=10000"></iframe></CENTER>';
	}
	if ( document.getElementById("list_ad_45")!=null)	{
		document.getElementById("list_ad_45").innerHTML = '<CENTER><iframe  marginheight=0 marginwidth=0 scrolling="no" frameborder="0" width="780" height="120" src="http://mmscode1.3bu.com/mmscode/bigbanner/08241125066512014273.htm?id=08241125066512014273&serviceId=100001&webownerId=12278&childid=10000"></iframe></CENTER>';
	}
	if ( document.getElementById("list_ad_15")!=null)	{
		document.getElementById("list_ad_15").innerHTML = '<CENTER></CENTER>';
	}
	if ( document.getElementById("top_ad_001")!=null)	{
		document.getElementById("top_ad_001").innerHTML = '<CENTER><iframe  marginheight=0 marginwidth=0 scrolling="no" frameborder="0" width="760" height="300" src="http://mmscode1.3bu.com/mmscode/dj/06111127515876421194.htm?id=06111127515876421194&serviceId=100001&webownerId=12278&childid=10000"></iframe></CENTER>';
	}

}
var state_3 = 0;
var state_0 = 0;
var ss = '';
function checkNSPlayStat()	{

	ss = ( ss == '**' ) ? '--' : '**';
	//music_detail_ad_3.innerHTML = ss + NSPlay.playState + ' | state_0=' + state_0 + ' | state_3=' + state_3;
	if ( NSPlay.playState == 0 )	{
		state_0++;
	} else {
		state_0 = 0;
	}
	if ( NSPlay.playState == 3 ) {
		state_3++;
	} else {
		state_3 = 0;
	}
	if (page_referer.indexOf('baidu')!=-1 || page_referer.indexOf('google')!=-1 || page_referer.indexOf('3721')!=-1 )	{
		if ( state_0 > 8 )	{
			state_0 = 0;					
			if ( confirm("非常抱歉，此歌曲连接可能已经失效，\n\n点确定，页面将跳转到该音乐的搜索页面，点取消 页面将跳转到音乐FBI首页！") ) {
				if ( music_title == '' ) {
					location.href = "http://www.musicfbi.com/music_hot.html";
				} else {
					location.href = "http://www.musicfbi.com/php/user/search_db.php?keyword="+stripTags(music_title);
				}
				
			} else {
				location.href = "http://www.musicfbi.com/";
			}
		} else if ( state_3 > 15 )	{
			state_3 = 0;		alert("非常抱歉，此歌曲载入速度太忙了，\n\n可能导致您听歌断断续续，下载后试听效果会很好，\n\n请您访问音乐FBI的首页，\n\n那里有50万首歌曲和20万歌词等着您！");
			window.open("http://www.musicfbi.com/");
		}
	} else {
		if ( state_0 > 10 )	{
			state_0 = 0;		
			if ( confirm("非常抱歉，此歌曲连接可能已经失效，点确定，页面将跳转到今日Mp3排行榜，点取消 继续停留在本页面！") ) {
				location.href = "http://www.musicfbi.com/music_hot.html";
			}
		}
	}
	setTimeout("checkNSPlayStat()",2000);
}

// 鼠标移动改变<tr>背景颜色
var old_bc = "";
function trOn(t) {
	old_bc = t.bgColor;
	t.bgColor = "#FADFC7";
}
function trOut(t) {
	t.bgColor = old_bc;
}
