       var time = 135;
    var h = 0;
    function addCount()
    {
        if(time>0)
        {
            time--;
            h = h+5;
        }
        else
        {
            return;
        }
        if(h>=135)  //高度
        {
            return;
        }
        document.getElementById("ads").style.display = "";
        document.getElementById("ads").style.height = h+"px";
        setTimeout("addCount()",30);
    }

    window.onload = function showAds()
    {
        addCount();
        setTimeout("noneAds()",14000); //停留时间自己适当调整
    }
   
   
   var T = 135;
    var N = 135; //高度
    function noneAds()
    {
        if(T>0)
        {
            T--;
            N = N-5;
        }
        else
        {
            return;
        }
        if(N<=0)
        {

       document.getElementById("ads").style.display = "none";
            return;
        }

        document.getElementById("ads").style.height = N+"px";
        setTimeout("noneAds()",30);
    }
    
/* 顶头告示 */
var   tm=null   
  function   newsScroll()   {   
  if(scrollimg.parentNode.scrollLeft!=(scrollimg.clientWidth/2))   
  scrollimg.parentNode.scrollLeft++;   
  else   
  scrollimg.parentNode.scrollLeft=0   
  }   
  function   window.onload()   {   
  simg1.innerHTML=simg.innerHTML   
  tm=setInterval('newsScroll()',20)     
  }   
  function   stop()   
  {   
  clearInterval(tm)   
  }   
    
  function   start()   
  {   
  tm=setInterval('newsScroll()',20)     
  }   
 /* 向左滚动新闻 */
 
 var h;
 var w;
 var l;
 var t;
 var topMar = -110;
 var leftMar = -10;
 var space = 2;
 var isvisible;
 var MENU_SHADOW_COLOR='#003399';
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
}
}

function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=tableborder1 onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=tablebody1>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		rs.backgroundColor = color;
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
/* 弹出菜单 */

function CheckForm()
	{
		if(document.UserLogin.usename.value=="")
		{
			alert("请输入用户名！");
			document.UserLogin.usename.focus();
			return false;
		}
		if(document.UserLogin.usepass.value == "")
		{
			alert("请输入密码！");
			document.UserLogin.usepass.focus();
			return false;
		}
	}
/* 登陆检查 */

function hve_display(t_id){//显示隐藏程序 
var t_id;//表格ID 
var i_id;//图片ID 
var on_img="on.gif";//打开时图片 
var off_img="off.gif";//隐藏时图片 
if (t_id.style.display == "none") {//如果为隐藏状态 
t_id.style.display="";//切换为显示状态 
}//换图 
else{//否则 
t_id.style.display="none";//切换为隐藏状态 
}//换图 
} 