//============================================================================
//以下新增代码,自动生成子菜单项
//请勿随意修改

var xmldoc=null;// xml文档对象变量
putxmlsrc("/include/menu.xml");

function putxmlsrc(str){//载入菜单数据文件
  xmldoc= new ActiveXObject("Microsoft.XMLDOM");//创建xml文档对象
  xmldoc.async=false;
  xmldoc.load(str);//载入菜单数据
}

function genSubmenu(Menu_href,parentChannel)
{
   var subMenuItem = xmldoc.selectSingleNode("//node()[@value='"+parentChannel+"']");
   var childItem = subMenuItem.selectNodes("./SubMenu")

	   document.write("<dl><dt><a href='"+subMenuItem.getAttribute("url")+"' title='"+subMenuItem.getAttribute("name")+"'>"+subMenuItem.getAttribute("name")+"</a></dt>");
      for(var i=0;i<childItem.length;i++){
		    document.write("<dd><a target='_parent' href="+childItem[i].getAttribute("url")+">"+childItem[i].getAttribute("name")+"</a></dd> |");
         }
	   document.write("</dl>");
}


