  function starttodo() {
    window.setInterval("displaylogo()",200);
  }
  
  function displaylogo() {
    mylogo.style.pixelLeft  = document.body.scrollLeft+document.body.clientWidth-mylogo.style.pixelWidth-120;
    mylogo.style.pixelTop   = document.body.scrollTop+document.body.clientHeight-mylogo.style.pixelHeight-40;
    menuarea.style.pixelTop = document.body.scrollTop;
  }

  // 加入书签
  function add_to_fav() {
    var bookmarkurl="http://www.donimage.com"
    var bookmarktitle="愚夫之宝"
    window.external.AddFavorite(bookmarkurl,bookmarktitle);
  }

  function ErrorProc() {
    return true;
  }
  
  function jumpto(page) {
    self.location=page;
  }

  function WebICQ() {
    var leftpos = (screen.availWidth - 200)-40;
    resiz = (navigator.appName=="Netscape") ? 0 : 1;
    window.open("http://www.icq.com/icq2go/flicq.html");
    // window.open("http://lite.icq.com/icqlite/web/0,,,00.html", "TOFI","width=177,height=446,top=40,left="+leftpos+",directories=no,location=no,menubar=no,scrollbars=no,status=no,titlebar=no,toolbar=no,resizable="+resiz+"");
  }

  function WebMSN() {
    var leftpos = (screen.availWidth - 200)-40;
    resiz = (navigator.appName=="Netscape") ? 0 : 1;
    window.open("http://webmessenger.msn.com/");
  }

  document.write("<a href='index.php' target=_top><img id=mylogo style='position:absolute;top:20;left:0;' src=images/rchan.gif width=102 height=32 border=0></a>");

  window.onError=ErrorProc;
  // if(self!=top) top.location=self.location;
  window.name="Richard";
  starttodo();
  document.onclick = checkMenu;

document.write("<div align='center'><center>");
document.write("<TABLE id=menuarea border=0 style='background-color:#000000; color:black;' cellspacing=0 cellpadding=0 width=100% _bordercolorlight=#FFFFFF>");
document.write("<TR><TD style='font: 10pt;'>【导航菜单】<! img src=images/bg.gif width=15 height=15></TD><TD>");
document.write("<TABLE ID=menuBar ONSELECTSTART='return false' ONCLICK='processClick()' ONMOUSEOVER='doHighlight(event.toElement)' ONMOUSEOUT='doCheckOut()' ONKEYDOWN='processKey()' style='cursor:hand;'>");
document.write("<TR>");
document.write("<TD NOWRAP CLASS=root>我的主页<TABLE CELLSPACING=0 CELLPADDING=0>");
document.write("<TR><TD NOWRAP OnClick='javascript:jumpto(\"under_construction.html\")'>关于愚夫</TD></TR>");
// document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"pintu1.php\"'>我的拼图</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:add_to_fav();'>加入书签</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"index.php\"'>返回首页</TD></TR>");
// document.write("<TR><TD NOWRAP OnClick='javascript:close();'>关闭窗口</TD></TR>");
document.write("</TABLE></TD>");
document.write("<TD NOWRAP CLASS=root>专栏索引<TABLE CELLSPACING=0 CELLPADDING=0>");
// document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"myNews.html\"'>愚夫新闻</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"articles.html\"'>靓文推介</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"photo.html\"'>行行摄摄</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"outside.html\"'>我在他乡的日子</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"loveinbeijing.php\"'>爱在北京爱心活动</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"digitals.php\"'>数码生活</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"tools.php\"'>常用工具</TD></TR>");
document.write("</TABLE></TD>");
document.write("<TD NOWRAP CLASS=root>常用网址<TABLE CELLSPACING=0 CELLPADDING=0>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://news.sina.com.cn\")'>新浪新闻</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.google.com\")'>Google.com</TD></TR>");

document.write("<TR><TD NOWRAP><SPAN CLASS=more>4</SPAN>门户站点<TABLE CELLSPACING=0 CELLPADDING=0>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.163.com\")'>网易</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://home.sina.com.cn\")'>新浪网</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://cn.yahoo.com\")'>中文YAHOO</TD></TR>");
document.write("</TABLE></TD></TR>");

document.write("<TR><TD NOWRAP><SPAN CLASS=more>4</SPAN>电子邮局<TABLE CELLSPACING=0 CELLPADDING=0>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://mail.rchan.net\")'>Richard的私有邮局</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.126.com\")'>126电子邮局</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.163.net\")'>163电子邮局</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://freemail.netease.com\")'>网易邮局</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://mail.sina.com.cn\")'>新浪邮局</TD></TR>");
// document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.371.net\")'>371电子邮局</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.hotmail.com\")'>Hotmail邮局</TD></TR>");
// document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.21cn.com\")'>21cn电子邮局</TD></TR>");
// document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.cmmail.com\")'>润讯邮局</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://login.sohu.com\")'>搜狐邮局</TD></TR>");
document.write("</TABLE></TD></TR>");

document.write("<TR><TD NOWRAP><SPAN CLASS=more>4</SPAN>软件下载<TABLE CELLSPACING=0 CELLPADDING=0>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.greendown.cn\")'>绿色软件下载</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.crsky.com\")'>霏凡软件站</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://download.pchome.net\")'>PcHome</TD></TR>");
document.write("</TABLE></TD></TR>");

document.write("<TR><TD NOWRAP><SPAN CLASS=more>4</SPAN>常用论坛<TABLE CELLSPACING=0 CELLPADDING=0>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://bbs.fengniao.com/forum/forumdisplay.php?f=12\")'>蜂鸟·人像版</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://bbs.fengniao.com/forum/forumdisplay.php?f=15\")'>蜂鸟·旅游版</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://bbs.fengniao.com/forum/forumdisplay.php?f=8\")'>蜂鸟·活动版</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.canonfans.com/forumdisplay.php?forumid=10\")'>佳友在线·影人影语</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.cameraunion.net/\")'>色影无忌</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.tianya.cn\")'>天涯社区</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.swcool.com/bbs\")'>形色主义</TD></TR>");
document.write("</TABLE></TD></TR>");
document.write("</TABLE></TD>");

document.write("<TD NOWRAP CLASS=root>常用工具<TABLE CELLSPACING=0 CELLPADDING=0>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.iciba.com/index.php\")'>金山词霸在线版</TD></TR>");
// document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.ip138.com/ips.asp\")'>IP地址查询</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"tool_ip.php\"'>IP地址查询</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://cgi.news.sina.com.cn/cgi-bin/figureWeather/search.cgi\")'>城市天气预报</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.china.org.cn/worldclock/worldclock.htm\")'>世界时间</TD></TR>");
// document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"\")'></TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:WebICQ();'>打开Web ICQ</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:WebMSN();'>打开Web MSN</TD></TR>");
// document.write("<TR><TD NOWRAP OnClick='javascript:self.location=\"upload.php\"'>上传文件给我 <img src=\"images/New.gif\" width=28 height=11></TD></TR>");
document.write("</TABLE></TD>");

document.write("<TD NOWRAP CLASS=root>留言/联络<TABLE CELLSPACING=0 CELLPADDING=0>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.donimage.com/blog\")'>愚夫日记</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.donimage.com/bbs\")'>愚夫论坛</TD></TR>");
document.write("<TR><TD NOWRAP OnClick='javascript:window.open(\"http://www.donimage.com/blog/index.php?job=guestbook\")'>留言簿</TD></TR>");
document.write("</TABLE></TD>");

// 填充右边界
// document.write("<TD WIDTH=100% class=clear>&nbsp;</TD>");
document.write("</TR>");
document.write("</TABLE></TD></TR></TABLE>");
document.write("</center></div>");
