

var div_moreSubNavigation;
var sub_id;
var strUrl = "subMoreList.aspx";


function subNavigationInit(){   
    sub_id = $('sub_id').value;
    
    div_moreSubNavigation = $('div_moreSubNavigation');
	GetMoreSubNavigation();
};




function GetMoreSubNavigation(){  
	    var url=server_Path+"GetZyztSub";
	    var pars="titleId=" + sub_id + "&deptName=信息中心";
	    
	    var ajax=new Ajax.Request(url,{
		                onComplete:function(response){		                 
			                        xmldoc.Ini_Doc(response);
			                        var docs=xmldoc.Nodes("//TITLE");	
			                        	                                        
			                        if(docs.length==0)return;
			                        
                                    $A(docs).each(function(item){         
                                                                  
	                                    if(!item.hasChildNodes())return;	                                    
	                                    var ul=document.createElement("ul");
	                                    $A(item.childNodes).each(function(node,j){	   
	                                        
                                            var li=document.createElement("li");
                                            li.className = "font";
                                            var a_content=document.createElement("A");
                                            //Event.observe(a_content,'click',function(){open_moreContent(node.getAttribute("id"),node.getAttribute("name"),'信息中心',"","")},true);                                            
                                           
                                            a_content.target = "iframe_zyzt";
                                            a_content.setAttribute("href", strUrl+"?ID=" + node.getAttribute("id") + "&name=" + node.getAttribute("name") + "&deptName=信息中心&zyztRootId=781");                                            
                                            
                                            
                                            var _div=document.createElement("DIV");
                                            _div.className = "img";
                                            var _img=document.createElement("img");
                                            _img.setAttribute("src","/IMAGES/INDEX/pic5.gif");
                                            _div.appendChild(_img);                                            
                                            a_content.appendChild(_div);
                                            a_content.appendChild(document.createTextNode(node.getAttribute("name")));                                         
                                            li.appendChild(a_content);
                                            ul.appendChild(li);//
                                            
                                        }
                                        );                                        
                                        div_moreSubNavigation.appendChild(ul);
                                    }
                                    );                                   
                                   subNavigationShow();
                                }
                        ,method:'post',parameters:pars
                        }
                    );        
};


var server_Path='/VIEW/PUBLIC/server.asmx/';
var xmldoc=new Xml_Doc();

