document.write("<style>#master{LEFT:-100px;POSITION:absolute;}#menu{LEFT:100px;POSITION:absolute; TOP:115px; Z-INDEX:5}#screen{POSITION:absolute; TOP:31px; Z-INDEX:5}#screenlinks{POSITION:absolute; TOP:30px; VISIBILITY:visible; Z-INDEX:5}</style>")
document.write('<style>#screen{filter:Alpha(Opacity=30)</style>')

var master = new Object("element")
master.curLeft = -100;
master.curTop = 10;

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}
document.all[layerName].style.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}
document.all[layerName].style.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);
document.menutop.src = "/images/menu.gif"; expandState = 1;}
else{
setPace("master", -100, 10, 10); 
document.menutop.src = "/images/menu.gif"; expandState = 0;}
}
document.write("<div id=master><div id=menu onmouseover=javascript:expand()>");
document.write("<table border=0 cellpadding=0 cellspacing=0 width=18><tbody><tr><td width=100%><img name=menutop src=/images/menu.gif></td></tr></tbody></table>");
document.write("</div><div id=top><table border=0 cellpadding=0 cellspacing=0 width=100><tbody><tr><td width=100%><img border=0 height=6 src=images/top.gif width=100></td></tr></tbody></table></div><div id=screen onmouseout=javascript:expand()>");
document.write("<table border=0 cellpadding=5 cellspacing=0 width=100><tbody><tr><td class=a2 width=100%><table class=a2 border=0 cellpadding=0 cellspacing=0 width=100% height=320><tbody><tr><td width=100%>");
document.write("<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 >");
document.write("<table border=0 cellpadding=6 cellspacing=0 width=100><tbody><tr><td style=FILTER: alpha(opacity=90) width=100%><table bgcolor=000000 border=0 cellpadding=0 cellspacing=0 width=100% ><tbody> <tr><td width=100%>");
document.write("<table border=0 cellpadding=6 cellspacing=1 width=100%><tbody><tr><td class=a3 width=100% align=center>");
document.write("<font color=#0099CC> <font face=Wingdings>1</font>会员登陆</font><br>");
document.write("├<a href=/Login.asp>会员登陆</a><br>");
document.write("<font color=#0099CC><font face=Wingdings>1</font> Diy管理</font><br>");
document.write(" ├ <a href='http://www.kkcool.com/diyaspx/diy.asp' target=_blank>图  片</a>  <br>");
document.write(" ├ <a href='#'>铃  声</a>  <br>");
document.write("<font color=#0099CC> <font face=Wingdings>1</font>我的收藏</font><br>");
document.write(" ├ <a href=/Favorite.asp?protype=2>图  片</a>  <br>");
document.write(" ├ <a href=/Favorite.asp?protype=1>铃  声</a>  <br>");
document.write(" ├ <a href=/Favorite.asp?protype=3>游  戏</a>  <br>");
document.write(" ├ <a href=/Favorite.asp?protype=4>短  语</a>  <br>");
document.write(" ├ <a href=/Favorite.asp?protype=5>笑  话</a>  <br>");
document.write("<font color=#0099CC> <font face=Wingdings>1</font>会员服务</font><br>");
document.write("├<a href='/sso/SendMessage_MISC.asp' target=_blank >自写短信</a><br>");
document.write("├<a href=/MyNotes.asp target=_bland>无线便签</a><br>");
document.write("├<a href=/ModiMember.asp target=_bland>个人资料</a><br>");
document.write("├<a href=/ClearOrder.asp target=_bland>退订服务</a><br>");
document.write("├<a href=/RegisterCard.asp target=_bland>我的酷币</a><br>");
document.write("├<a href=/UserSms.asp target=_bland>系统消息</a><br>");
document.write("├<a href=/MyQuestion.asp target=_bland>我有问题</a><br>├<a href=/logout.asp>退出登陆</a><br></td></tr></tbody></table>");
document.write("</td></tr></tbody></table></td></tr></tbody></table></div></div>");
var sidemenu = document.all.master;

function yuzi(){
sidemenu.style.top = document.body.scrollTop+2
}
setInterval("yuzi()",100);
