﻿// JavaScript Document
<!--NAV js begin-->
startList=function() {
  if (document.all&&document.getElementById) {
    navRoot=document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
      node=navRoot.childNodes[i];
      if(node.nodeName=="LI") {
        node.onmouseover=function() {
          this.className+="over";
        }
        node.onmouseout=function() {
          this.className=this.className.replace("over","");
        }
      }
    }
  }
}
window.onload=startList;
<!--NAV js end-->

<!--Banner flash start-->
//var imgUrl=new Array();
//var imgLink=new Array();
//var imgText=new Array();
//var picNum=0;
//imgUrl[1]="images/banner1.jpg";
//imgLink[1]="链接1";
//imgText[1]="标题或简介或其它HTML内容1";
//imgUrl[2]="images/banner2.jpg";
//imgLink[2]="链接2";
//imgText[2]="标题或简介或其它HTML内容2";
//imgUrl[3]="images/banner3.jpg";
//imgLink[3]="链接3";
//imgText[3]="标题或简介或其它HTML内容3";
//imgUrl[4]="images/banner4.jpg";
//imgLink[4]="链接4";
//imgText[4]="标题或简介或其它HTML内容4";
//imgUrl[5]="images/banner2.jpg";
//imgLink[5]="链接5";
//imgText[5]="标题或简介或其它HTML内容5";

//function NextPic(){
    //if(picNum<4) picNum++ ;//显示4个图片
   // else picNum=1;
    //if (document.all){
        //下面注意，如果存在于FORM表单中，需要使用下面的方法，否则可直接使用name。
       // document.imgInit.filters.revealTrans.Transition=Math.floor(Math.random()*23);
       //document.imgInit.filters.revealTrans.apply();
       // document.imgInit.filters.revealTrans.play();
   // }
   // document.images.imgInit.src=imgUrl[picNum];
   // //如果不是图片，而是SWF等，可做判断，内容可在程序中做好，再放于下面。
   // focustext.innerHTML='<a href="+imgLink[picNum]+" target=_blank>'+imgText[picNum]+'</a>';
    //设置翻页时间
   // theTimer=setTimeout('NextPic()', 3000);
//}

//function goUrl(){
   // window.open(imgLink[picNum],'_blank');
//}
<!--Banner flash end  -->

<!--js判断浏览器类型IE,FF,Opera-->
function JudgeBrowser()
{ 
    if(navigator.userAgent.search("Opera")>-1)
    {
      document.writeln("<link href=\"Styles\/Style_Opera.css\" rel=\"stylesheet\" type=\"text\/css\" \/>");
		
	}
    if(navigator.userAgent.indexOf("Mozilla/5.")>-1)
    {
        document.writeln("<link href=\"Styles\/Style_Firefox.css\" rel=\"stylesheet\" type=\"text\/css\" \/>");
    }

	if(navigator.userAgent.indexOf("MSIE 6.0")>0)
    {
        document.writeln("<link href=\"Styles\/Style_MSie6.css\" rel=\"stylesheet\" type=\"text\/css\" \/>");
    }
    if(navigator.userAgent.indexOf("MSIE 7.0")>0)
    {
        document.writeln("<link href=\"Styles\/Style_MSie7.css\" rel=\"stylesheet\" type=\"text\/css\" \/>");
   
	}
}

<!--js判断浏览器类型IE,FF,Opera--end-->