        //遍历子控件
      	function GetElements(obj,result) 
        { 
              if(!result) 
              { 
                result = new Array(); 
              } 

              if(obj) 
              { 
                result[result.length] = obj; 
				var arr=obj.getElementsByTagName("span");
                for(var i=0;i<arr.length;i++) 
                { 
                    result = GetElements(arr[i],result); 
                }
              } 
              //window.location.href=url;
              return result; 
        }
        
        //刷新导航
        function RefreshNAV(e)
        {
            document.getElementById("NAV").style.background="url(../images/nav_"+e.id.substr(4)+".gif)";
            var arr= GetElements(document.getElementById("NAV"));

            for(var i=0;i<arr.length;i++)
            {
                arr[i].style.fontWeight="normal";
				arr[i].style.color="#000000";
            }
            e.style.fontWeight="bold";
			e.style.color="#ffffff";
			//window.location.href=url;
       }
	    //报纸
        function baozhi(e)
        {
            document.getElementById("NAV").style.background="url(../images/nav_02.gif)";
            var arr= GetElements(document.getElementById("NAV"));
       }
        //期刊
        function qikan(e)
        {
            document.getElementById("NAV").style.background="url(../images/nav_03.gif)";
            var arr= GetElements(document.getElementById("NAV"));
       }
	   //图书
        function tushu(e)
        {
            document.getElementById("NAV").style.background="url(../images/nav_04.gif)";
            var arr= GetElements(document.getElementById("NAV"));
       }
       
       
       
