window.onload = function(){
var mainav = document.getElementById("topnav");
var mainli = mainav.getElementsByTagName("li");
var subnav = document.getElementById("navnd");
var subul = subnav.getElementsByTagName("ul");
var subli = subnav.getElementsByTagName("li");
mainli[1].onmouseover = xianshi1;
    function xianshi1(){
      subul[0].style.left = -402 + "px";
      subul[1].style.left = -402 + "px";
      mainli[0].style.borderBottom = "";
      mainli[1].style.borderBottom = "";
      mainli[2].style.borderBottom = "";
      mainli[1].style.borderBottom = "1px solid white";
      subul[0].style.left = 255 + "px";
    }
mainli[2].onmouseover = xianshi2;
    function xianshi2(){
      subul[0].style.left = -402 + "px";
      subul[1].style.left = -402 + "px";
      mainli[0].style.borderBottom = "";
      mainli[1].style.borderBottom = "";
      mainli[2].style.borderBottom = "";
      mainli[2].style.borderBottom = "1px solid white";
      subul[1].style.left = 328 + "px";
      display = true;
    }
var headtxt = document.getElementById("others").getElementsByTagName("h3");
headtxt[0].style.background = "url(../images/1.gif) no-repeat 10% 0";
headtxt[0].style.borderBottom = "4px solid #ff3333";
headtxt[1].style.background = "url(../images/2.gif) no-repeat 10% 0";
headtxt[1].style.borderBottom = "4px solid #9bff1a";
headtxt[2].style.background = "url(../images/3.gif) no-repeat 10% 0";
headtxt[2].style.borderBottom = "4px solid #c015ff";
headtxt[3].style.background = "url(../images/4.gif) no-repeat 10% 0";
headtxt[3].style.borderBottom = "4px solid #1c54ff";
}