//=====edit by cyp2=====//
document.write("<style type=text/css>#master {LEFT: -100px; POSITION: absolute; TOP: 25px; VISIBILITY: visible; WIDTH: 200px; Z-INDEX: 2}#menu1 {LEFT: 100px; POSITION: absolute; TOP: 25px; VISIBILITY: visible; WIDTH: 18px; Z-INDEX: 5}#top {LEFT: 0px; POSITION: absolute; TOP: 25px; VISIBILITY: visible; WIDTH: 100px; Z-INDEX: 5}#screen {LEFT: 0px; POSITION: absolute; TOP: 31px; VISIBILITY: visible; WIDTH: 100px; Z-INDEX: 5}#screenlinks {LEFT: 0px; POSITION: absolute; TOP: 31px; VISIBILITY: visible; WIDTH: 100px; Z-INDEX: 5}</style>")
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0

if(ie)
{
document.write('<style type="text/css">')
document.write("#screen	{filter:Alpha(Opacity=30);}")
document.write("</style>")
}

if(ns)
{
document.write('<style type="text/css">')
document.write("#master	{clip:rect(0,150,250,0);}")
document.write("</style>")
}

var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0

var master = new Object("element")
master.curLeft = -100;	master.curTop = 10;master.gapLeft = 0;master.gapTop = 0;master.timer = null;

function moveAlong(layerName, paceLeft, paceTop, fromLeft, fromTop){
clearTimeout(eval(layerName).timer)

if(eval(layerName).curLeft != fromLeft)
{
     if((Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft)) < paceLeft){eval(layerName).curLeft = fromLeft}
else if(eval(layerName).curLeft < fromLeft){eval(layerName).curLeft = eval(layerName).curLeft + paceLeft}
else if(eval(layerName).curLeft > fromLeft){eval(layerName).curLeft = eval(layerName).curLeft - paceLeft}
if(ie){document.all[layerName].style.left = eval(layerName).curLeft}
if(ns){document[layerName].left = eval(layerName).curLeft}
}
if(eval(layerName).curTop != fromTop)
{
     if((Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop)) < paceTop){eval(layerName).curTop = fromTop}
else if(eval(layerName).curTop < fromTop){eval(layerName).curTop = eval(layerName).curTop + paceTop}
else if(eval(layerName).curTop > fromTop){eval(layerName).curTop = eval(layerName).curTop - paceTop}
if(ie){document.all[layerName].style.top = eval(layerName).curTop}
if(ns){document[layerName].top = eval(layerName).curTop}
}
eval(layerName).timer=setTimeout('moveAlong("'+layerName+'",'+paceLeft+','+paceTop+','+fromLeft+','+fromTop+')',30)
}

function setPace(layerName, fromLeft, fromTop, motionSpeed)
{
eval(layerName).gapLeft = (Math.max(eval(layerName).curLeft, fromLeft) - Math.min(eval(layerName).curLeft, fromLeft))/motionSpeed
eval(layerName).gapTop = (Math.max(eval(layerName).curTop, fromTop) - Math.min(eval(layerName).curTop, fromTop))/motionSpeed
moveAlong(layerName, eval(layerName).gapLeft, eval(layerName).gapTop, fromLeft, fromTop)
}

var expandState = 0
function expand()
{
if(expandState == 0){setPace("master", 0, 10, 10); if(ie){document.menutop.src = "Script/menub.gif"}; expandState = 1;}
else{setPace("master", -100, 10, 10); if(ie){document.menutop.src = "Script/menu.gif"}; expandState = 0;}
}
//下面的插件名自己改，中间不要回车，都是自动换行的
document.write("<div id=master><div id=menu1 onmouseover=\"javascript:expand()\"><table border=0 cellpadding=0 cellspacing=0 width=18><tbody><tr><td width=\"100%\"><a href=\"javascript:expand()\" onFocus=this.blur()><img alt=点击这里展开/关闭快捷菜单 border=0 height=90 name=menutop src=\"Script/menu.gif\" width=18></a></td></tr></tbody></table></div><div id=top><table border=0 cellpadding=0 cellspacing=0 width=100><tbody><tr><td width=\"100%\"><img border=0 height=6 src=\"Script/menuc.gif\"  width=100></td> </tr></tbody></table></div><div id=screen onmouseout=\"javascript:expand()\"><table border=0 cellpadding=5 cellspacing=0 width=100><tbody><tr><td bgcolor=#336666 width=\"100%\"><table bgcolor=#ecf6f5 border=0 cellpadding=0 cellspacing=0 width=\"100%\" height=331><tbody><tr><td width=\"100%\"><table border=0 cellpadding=5 cellspacing=1 width=\"100%\"><tbody><tr> <td bgcolor=#ecf6f5 width=\"100%\"><br><br><br><br><br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div><div id=screenlinks ><table border=0 cellpadding=6 cellspacing=0 width=100><tbody><tr><td style=\"FILTER: alpha(opacity=90)\" width=\"100%\"><table bgcolor=#336666 border=0 cellpadding=0 cellspacing=0 width=\"100%\" ><tbody> <tr><td width=\"100%\"><table border=0 cellpadding=6 cellspacing=1 width=\"100%\"><tbody><tr><td bgcolor=#ecf6f5 width=\"100%\" align=\"center\"><font color=999900><b>功能菜单列</font></b><br><br><a href=\"\" target=\"\"><font color=red>同学录首页</a><br><a href=\"chat.asp\" target=\"\"><font color=red>聊 天 室</font></a><br><a href=\"UserSMS.asp?action=inbox\" target=\"\">我的短信</a><br><a href=\"clasky_diarys.asp\" target=\"\">天天日记</a><br><a href=\"mydglist.asp\" target=\"\">我的歌曲</a><br><a href=\"ontest.asp\" target\"\">在线测试</a><br><a href=\"MyModify.asp\" target=\"\">修改资料</a><br><a href=\"bbs.asp\" target=\"\"><font color=red>水校论坛</a></font><br><a href=\"star.asp\" target=\"\">缘分星座</a><br><a href=\"play.asp\" target=\"\">玩  场</a><br><a href=\"Bt_down.asp\" target=\"\">B T 下载</a><br><a href=\"scindex.asp\" target=\"\">收 藏 夹</a><br><a href=\"music/index.htm\" target=\"_blank\">音 乐 盒</a><br><a href=\"http://www.hmxf.com/book/index.asp?user=d2b\" target=\"_blank\"><font color=blue>过客留言</font></a><br><a href=\"Login.asp?Action=logout\" target=\"\"><font color=red>退出登陆</a></font><br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div></div>");
//edit by cyp2
if(ie){var sidemenu = document.all.master;}
if(ns){var sidemenu = document.master;}

function FixY()
{
if(ie){sidemenu.style.top = document.body.scrollTop+10}
if(ns){sidemenu.top = window.pageYOffset+10}
}
setInterval("FixY()",100);