﻿function GetnowDate()
{
	Day=new Array(7);
	Day[0]="日"; Day[1]="一";
	Day[2]="二"; Day[3]="三";
	Day[4]="四"; Day[5]="五";
	Day[6]="六";
	
	today=new Date();
	month=today.getMonth()+1;
	day=today.getDate();
	year=today.getFullYear();
	weekly=today.getDay();	
	mydate=year+"年"+month+"月"+day+"日 　星期"+Day[weekly];
	document.write(mydate);
}
function Show(s)
{
	s.style.visibility="visible";
}

function Hide(s)
{
	s.style.visibility="hidden";
}

        //弹出框
        function popwin(url,name,width,height)
        {
	        if(width=='')
		        width='800';
	        if(height=='')
		        height='600'
	        var features='width='+width+',height='+height+',scrollbars=1 resizable=yes';
	        window.open(url,name,features);
        }
        function hidead()
        {
             showad = false;
             document.getElementById("img").style.display="none";
        }
        function changePos() {
            width = document.body.clientWidth;
            height = document.body.clientHeight;
            Hoffset = img.offsetHeight;
            Woffset = img.offsetWidth;
            img.style.left = xPos + document.body.scrollLeft+"px";
            img.style.top = yPos + document.body.scrollTop+"px";
            if (yon)
            {
                yPos = yPos + step;
            }
            else
            {
                yPos = yPos - step;
            }
            if (yPos < 0) 
            {
                yon = 1;
                yPos = 0;
            }
            if (yPos >= (height - Hoffset)) {
                yon = 0;
                yPos = (height - Hoffset);
            }
            if (xon) {
                xPos = xPos + step;
            }
            else {
                xPos = xPos - step;
            }
            if (xPos < 0) {
                xon = 1;
                xPos = 0;
            }
            if (xPos >= (width - Woffset)) {
                xon = 0;
                xPos = (width - Woffset);
            }
        }
        function www_helpor_net() {
        
            img.visibility = "visible";
            interval = setInterval('changePos()', delay);
        }


//function AddImg(s)
//{
//	s.className = "Nag_Tab_Li_Over";
//}
//function DelImg(s)
//{
//	s.className = "Nag_Tab_Li";
//}

//    function menuFix() {
//        var sfEls = document.getElementById("leftTopbody").getElementsByTagName("li");
//        for (var i=0; i<sfEls.length; i++) {
//          sfEls[i].onmouseover=function() {
//          this.className+=(this.className.length>0? " ": "") + "sfhover";
//          //alert(this.tagName + this.className);
//          }
//          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"),"");
//          }
//        }
//    }

