document.write("<link href='http://www.51t.com/css/top1.css' type=text/css rel='stylesheet'>");
document.write("<table width='760' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#ffffff'>");
document.write("  <tr>");
document.write("    <td width='4'><img src='http://www.51t.com/js/images/1.gif' width='4' height='70'></td>");
document.write("    <td width='110'><img src='http://www.51t.com/js/images/logo.gif' width='110' height='66'></td>");
document.write("    <td width='641'><table width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.write("      <tr>");
document.write("        <td colspan='7' align='right' style='padding-right:12px'><a href='http://www.51t.com/' class='lm1' target='_blank'>首页</a> ┊ <a href='http://www.51t.com/newzj/' class='lm1' target='_blank'>最新专辑</a> ┊ <a href='http://www.51t.com/music/top100.htm' class='lm1' target='_blank'>新歌TOP100</a>┊ <a href='http://www.51t.com/music/top500.htm' class='lm1' target='_blank'>歌曲TOP500</a>┊ <a href='http://www.51t.com/dayup/' class='lm1' target='_blank'>网友推荐</a>  ┊  <a href='http://post.51t.com/s/?p=448' target='_blank' class='lm1'>错误报告</a> ┊ <a target='_top' href='http://www.51t.com' onclick='addMeToAddFavorite();return false;' class='lm1'>加入收藏夹</a></td>");
document.write("        </tr>");
document.write("      <tr>");
document.write("        <td height='53' target='_blank'><a href='http://www.51t.com/gs/1' target='_blank'>华人男歌手</a><br />");
document.write("<a href='http://www.51t.com/gs/2' target='_blank'>华人女歌手</a><br />");
document.write("<a href='http://www.51t.com/gs/7 target='_blank''>华人组合</a></td>");
document.write("        <td class='tdtop'><a href='http://www.51t.com/gs/22' target='_blank'>日本男歌手<br />");
document.write("<a href='http://www.51t.com/gs/23' target='_blank'>日本女歌手<br />");
document.write("<a href='http://www.51t.com/gs/24' target='_blank'>日本组合</a></td>");
document.write("        <td class='tdtop'><a href='http://www.51t.com/gs/25' target='_blank'>韩国男歌手<br />");
document.write("<a href='http://www.51t.com/gs/26' target='_blank'>韩国女歌手<br />");
document.write("<a href='http://www.51t.com/gs/27' target='_blank'>韩国组合</a></td>");
document.write("        <td class='tdtop'><a href='http://www.51t.com/gs/28' target='_blank'>欧美男歌手<br />");
document.write("<a href='http://www.51t.com/gs/29' target='_blank'>欧美女歌手<br />");
document.write("<a href='http://www.51t.com/gs/30' target='_blank'>欧美组合</a></td>");
document.write("        <td class='tdtop'><a href='http://www.51t.com/gs/15' target='_blank'>动漫游戏</a><br />");
document.write("<a href='http://www.51t.com/gs/34' target='_blank'>欧美影视</a><br />");
document.write("<a href='http://www.51t.com/gs/35' target='_blank'>欧美杂辑</a></td>");
document.write("        <td class='tdtop'><a href='http://www.51t.com/gs/32' target='_blank'>港台影视</a><br />");
document.write("<a href='http://www.51t.com/gs/31' target='_blank'>大陆影视</a><br />");
document.write("<a href='http://www.51t.com/gs/33' target='_blank'>日韩影视</a></td>");
document.write("        <td class='tdtop'><a href='http://www.51t.com/gs/11' target='_blank'>轻音乐区</a><br />");
document.write("<a href='http://www.51t.com/gs/14' target='_blank'>合辑其它</a><br />");
document.write("<a href='http://www.51t.com/gs/12' target='_blank'>劲爆舞曲</a></td>");
document.write("      </tr>");
document.write("    </table></td>");
document.write("    <td width='5'><img src='http://www.51t.com/js/images/4.gif' width='4' height='70'></td>");
document.write("  </tr>");
document.write("</table>");
//document.write("<table width='760' border='0' align='center' cellpadding='0' cellspacing='0' background='http://www.51t.com/js/images/top_bg.gif'>");
//document.write("<form name='search' method='get' action='http://user.51t.com/so.asp' target='_top' onsubmit='return doSearch();'>");
//document.write("<tr>");
//document.write("    <td width='13' align='left'><img src='http://www.51t.com/js/images/11.gif' width='13' height='38'></td>");
//document.write("    <td width='154'><input name='q' size='22' class='input' value=''></td>");
//document.write("    <td width='86' align='left'><select name='stype'>");
//document.write("<option value='music' selected>歌曲名称</option>");
//document.write("<option value='special'>专辑名称</option>");
//document.write("<option value='singer'>歌手姓名</option>");
//document.write("</select></td>");
//document.write("    <td width='55'><input name='image' type='image'  title='点击搜索' src='http://www.51t.com/js/images/so.gif' border='0' /></td>");
//document.write("    <td width='440'><iframe scrolling='no' topmargin='0' width='440' height='20' marginwidth='0' marginheight='0' frameborder='0' align='center' src='http://user.51t.com/login.asp'></iframe></td>");
//document.write("    <td width='12' align='right'><img src='http://www.51t.com/js/images/33.gif' width='10' height='38'></td>");
//document.write("  </tr></form>");
//document.write("</table>");
function doSearch()
{
	var objForm = document.all.search;
	if (checkSearchForm(objForm))
		objForm.submit();
	return false;
}

function checkSearchForm(frm)
{
	var skey = trim(frm.q.value);
	if (skey=="")
	{
		alert('请输入你要找的歌名或专辑名! \n\n输入歌手就可以找到该歌手的所有歌曲或专辑 如:周杰伦\n\n输入 歌手 歌曲名 搜索结果更准确 如：周杰伦 夜曲\n\n如果需要同时搜索多首歌,请输入 歌名1+歌名2... 如：花田错+求佛+霍元甲');
		frm.q.focus();
		return false;
	}
	return true;
}

function trim(val)
{
	var str = val+"";
	if ( str.length == 0 ) 
		return str;		
	var re = /^\s*/;
	str = str.replace(re,'');
	re = /\s*$/;
	return str.replace(re,'');
}

function addMeToAddFavorite()
{
	window.external.AddFavorite('http://www.51t.com','网友最喜欢的免费MP3音乐网');
}


///////////////////////////////
var imgheight
var imgleft
document.ns = navigator.appName == "Netscape"
window.screen.width>800 ? imgheight=110:imgheight=110
window.screen.width>800 ? imgleft=5:imgleft=5
function myload()
{
	if (navigator.appName == "Netscape")
	{
		document.myleft.pageY=pageYOffset+window.innerHeight-imgheight;
		document.myleft.pageX=imgleft;
		leftmove();
	}
	else
	{
		myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		myleft.style.left=imgleft;
		leftmove();
	}
}
function leftmove()
{
	if(document.ns)
	{
		document.myleft.top=pageYOffset+window.innerHeight-imgheight
		document.myleft.left=imgleft;
		setTimeout("leftmove();",80)
	}
	else
	{
		myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
		myleft.style.left=imgleft;
		setTimeout("leftmove();",80)
	}
}
