document.write("<STYLE TYPE='text/css'>");document.write('#share_top{font-family:Arial, Helvetica, sans-serif;font-size:12px;width:expression(document.body.clientWidth>778?"100%":"778px");height:19px;padding-top:3px;margin-bottom:7px;background-color:#e0e0e0; color:#666666;}');document.write("#share_top a{color:#666666;text-decoration:none;}");document.write("#share_top a:hover { background-color:#003399; color:#ffffff; text-decoration:none;}");document.write("#share_top_l{padding-left:10px; float:left; text-align:left;}");document.write("#share_top_r{padding-right:10px; float:right; text-align:left;}");document.write("</STYLE>");document.writeln('<div id="share_top">');document.writeln('<div id="share_top_l">');var value=getCookie("uname");var uid=getCookie("UID");var sTop="";if(top==parent){sTop=" target=_parent"}var website="http://"+window.location.host;var login=website+"/logon.jsp";var register=website+"/register.jsp";var out="/logout.jsp";if(website=="http://zt.duxiu.com"){out="http://mylib.duxiu.com/logout.jsp";login="http://mylib.duxiu.com/a/login.action";register="http://mylib.duxiu.com/a/register.action"}document.writeln('<a href="http://www.duxiu.com">读秀</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://mylib.duxiu.com">我的图书馆</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://zt.duxiu.com"'+sTop+'>专题图书馆</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://bbs.duxiu.com/cate/51.htm">文献互助</a>');document.writeln("</div>");document.writeln('<div id="share_top_r">');if(value!=""&&value!="null"&&value!=null&&value!="undefined"){document.writeln("<a href='http://mylib.duxiu.com/a/ls.action?uid="+uid+"' "+sTop+">进入"+value+"的图书馆</a>");document.writeln("&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='"+out+"'>退出</a>")}else{document.writeln("<a href='"+login+"'>登录</a>");document.writeln("&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href='"+register+"'>注册</a>")}document.writeln("</div>");document.writeln("</div>")