 function menuFix() {
         var sfEls = document.getElementById("nav_main_menu").getElementsByTagName("li");
         for (var i=0; i<sfEls.length; i++) {
                 sfEls[i].onmouseover=function() {
                this.className+=(this.className.length>0? " ": "") + "sfhover";
                 }
                 sfEls[i].onMouseDown=function() {
                 this.className+=(this.className.length>0? " ": "") + "sfhover";
                 }
                 sfEls[i].onMouseUp=function() {
                 this.className+=(this.className.length>0? " ": "") + "sfhover";
                 }
                 sfEls[i].onmouseout=function() {
                 this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
                 }
         }
 }

 function showdate()
 {
         result="";
         nowday=new Date();
         year=nowday.getYear();
         if (year<2000 )
                 year=year+1900;
         month=nowday.getMonth()+1;
         date=nowday.getDate();
         result=year+"年"+month+"月"+date+"日";
         day=nowday.getDay();
         temp="<font color=#FFFFFF> ";
         if (day==1) {
                 temp=temp+"星期一";
                 }
         else if (day==2){
                 temp=temp+"星期二";
                 }
         else if (day==3){
                 temp=temp+"星期三";
                 }
         else if (day==4){
                 temp=temp+"星期四";
                 }
         else if (day==5){
                 temp=temp+"星期五";
                 }
         else if (day==6){
                 temp=temp+"星期六";
                 }
         else if (day==7){
                 temp=temp+"星期天";
                 }
         result=result+temp+"</font>";
         return result;
 }


