 mydate = new Date();
    myhour = mydate.getHours();
    if(myhour<6)            
      welcomestring="这么早?";
    else if(myhour<8)
      welcomestring="脖子妞妞,屁股妞妞";
    else if(myhour<14)
      welcomestring="饱食终日,无所事事";
    else
      welcomestring="长夜漫漫,无心睡眠";

function MM_displayStatusMsg(msgStr) { 
  status=msgStr;
  document.MM_returnValue = true;
}
  document.onmouseover = doDocumentOnMouseOver ;
  document.onmouseout = doDocumentOnMouseOut ;

  function doDocumentOnMouseOver() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "item") {
      window.event.srcElement.className = "highlight";
    }
  }

  function doDocumentOnMouseOut() {
    var eSrc = window.event.srcElement ;
    if (eSrc.className == "highlight") {
      window.event.srcElement.className = "item";
    }
  }


var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4) ? true : false;

function expandIt(){return}
function expandAll(){return}

isExpanded = false;

function getIndex(el) {
	ind = null;
	for (i=0; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.id == el) {
			ind = i;
			break;
		}
	}
	return ind;
}

function arrange() {
	nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
	for (i=firstInd+1; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.visibility != "hide") {
			whichEl.pageY = nextY;
			nextY += whichEl.document.height;
		}
	}
}

function initIt(){
	if (NS4) {
		for (i=0; i<document.layers.length; i++) {
			whichEl = document.layers[i];
			if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
		}
		arrange();
	}
	else {
		tempColl = document.all.tags("DIV");
		for (i=0; i<tempColl.length; i++) {
			if (tempColl(i).className == "child") tempColl(i).style.display = "none";
		}
	}
}

function expandIt(el) {
	if (!ver4) return;
	if (IE4) {expandIE(el)} else {expandNS(el)}
}

function expandIE(el) { 
	whichEl = eval(el + "Child");

        whichIm = eval(el+"Img");

	if (whichEl.style.display == "none") {
		whichEl.style.display = "block";
		whichIm.src = "./../image/minus.gif";		
	}
	else {
		whichEl.style.display = "none";
		whichIm.src = "./../image/add.gif";
	}
    window.event.cancelBubble = true ;
}

function expandNS(el) {
	whichEl = eval("document." + el + "Child");
	whichIm = eval("document." + el + "Parent.document.images['imEx']");
	if (whichEl.visibility == "hide") {
		whichEl.visibility = "show";
		whichIm.src = "./../image/minus.gif";
	}
	else {
		whichEl.visibility = "hide";
		whichIm.src = "./../image/add.gif";
	}
	arrange();
}

function showAll() {
	for (i=firstInd; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		whichEl.visibility = "show";
	}
}

function expandAll(isBot) {
	newSrc = (isExpanded) ? "./../image/add.gif" : "./../image/minus.gif";

	if (NS4) {
		for (i=firstInd; i<document.layers.length; i++) {
			whichEl = document.layers[i];
			if (whichEl.id.indexOf("Parent") != -1) {
				whichEl.document.images["imEx"].src = newSrc;
			}
			if (whichEl.id.indexOf("Child") != -1) {
				whichEl.visibility = (isExpanded) ? "hide" : "show";
			}
		}

		arrange();
		if (isBot && isExpanded) scrollTo(0,document.layers[firstInd].pageY);
	}
	else {
		divColl = document.all.tags("DIV");
		for (i=0; i<divColl.length; i++) {
			if (divColl(i).className == "child") {
				divColl(i).style.display = (isExpanded) ? "none" : "block";
			}
		}
		imColl = document.images.item("imEx");
		for (i=0; i<imColl.length; i++) {
			imColl(i).src = newSrc;
		}
	}

	isExpanded = !isExpanded;
}

with (document) {
	write("<STYLE TYPE='text/css'>");
	if (NS4)
        {
        write(".parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; position:absolute; visibility:hidden; color: black;}");
        write(".child {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;color: #000000; position:absolute; visibility:hidden}");
        write(".item { color: darkblue; text-decoration:none;}");
        write(".regular {font-family: Arial,Helvetica,sans-serif; position:absolute; visibility:hidden}");
        write("DIV { color:black; }")
        }
	else
        {
        write(".child {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; display:none; leftmargin:5}");
        write(".parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none;}");
        write(".item { color: black; text-decoration:none; font-size: 9pt;leftmargin:50}");
        write(".highlight { color: #FF3300; text-decoration:none; font-size: 9pt;}");
        write(".heada { font: 12px/13px; Times; text-indent:5}");
        write("DIV { color:black; }")
	    }
	write("</STYLE>");

}

onload = initIt;


function GookieVal(offset) { 
   var endstr = document.cookie.indexOf (";", offset); 
   if (endstr == -1) 
      endstr = document.cookie.length; 
   return unescape(document.cookie.substring(offset, endstr)); 
} 
 
function Gookie(name) { 
   var arg = name + "="; 
   var alen = arg.length; 
   var clen = document.cookie.length; 
   var i = 0; 
   while (i < clen) { 
      var j = i + alen; 
      if (document.cookie.substring(i, j) == arg) 
         return GookieVal (j); 
      i = document.cookie.indexOf(" ", i) + 1; 
      if (i == 0) break; 
   } 
   return null; 
} 
 
function Sookie(name, value) { 
   var argv = Sookie.arguments; 
   var argc = Sookie.arguments.length; 
   var expires = (argc > 2) ? argv[2] : null; 
   var path = (argc > 3) ? argv[3] : null; 
   var domain = (argc > 4) ? argv[4] : null; 
   var secure = (argc > 5) ? argv[5] : false; 
   document.cookie = name + "=" + escape (value) + 
      ((expires == null) ? "" : ("; expires=" 
       + expires.toGMTString())) + 
      ((path == null) ? "" : ("; path=" + path)) + 
      ((domain == null) ? "" : ("; domain=" + domain)) + 
      ((secure == true) ? "; secure" : ""); 
} 
 
function Dookie(name) { 
   var exp = new Date(); 
   exp.setTime (exp.getTime() - 1); 
   var cval = Gookie (name); 
   document.cookie = name + "=" + cval + "; expires=" 
                     + exp.toGMTString(); 
} 