function view1(number){   // 点击开始触发显示一级菜单或关闭所有菜单 (  层结构： div -> ul -> li )
var menu_width=240; var menu_left=0;//定义一级菜单宽度和左边距
var menu_height=(number+1)*36;//计算开始菜单层的高度
var menu_top="0";
var linum1=0;			
if(BrowserVer.ie){
 var top=parseInt(document.body.clientHeight)-25-menu_height;  // 层顶距离窗口顶部的距离     凑的 没道理
 if(top>0){
linum1=Math.floor(parseInt(document.body.clientHeight-25-top)/36);
 }else{
 linum1=Math.floor(parseInt(document.body.clientHeight-25)/36);
 }
}else{
 var top=parseInt(document.body.clientHeight)-40-menu_height;  // 层顶距离窗口顶部的距离     -60 凑的 没道理
 if(top>0){
 linum1=Math.floor(parseInt(document.body.clientHeight-40-top)/36);
 }else{
 linum1=Math.floor(parseInt(document.body.clientHeight-40)/36);
 }
}
			if(top>0){
			menu_top=top;
			}else{
			menu_top=36-Math.abs(top)%36;			 
			}
             // 计算一个module可以显示多少个li
            var ulnum1=Math.ceil((number+1)/linum1);
			for(var mm=0; mm < ulnum1-1; mm++){           // 1.先创建前ulnum1-1个div			
			/**
			判断是否已经存在该层（'module_br'+mm）如果存在则先删除该层及其子层孙层……（根据系统实际情况暂时只设计4层）
			*/			
			var divv=document.getElementById('module_br'+mm);            
			var divv1=document.getElementById('module_brr'+mm);
			var divv11=document.getElementById('module_br3'+mm);
			var divv111=document.getElementById('module_br4'+mm);
			var mz=document.getElementById('module_br0_N_covers');		    
		     if(divv!=null){		      
		     document.body.removeChild(divv);		    
		     if(mz!=null){                            // 去朦罩
		     unloadCover('module_br0');
		     }
		     if(divv1!=null){
		     document.body.removeChild(divv1);
		     if(divv11!=null){
		     document.body.removeChild(divv11);
		     if(divv111!=null){
		     document.body.removeChild(divv111);
		     }
		     }
		     }
		     }else{			//如果不存在 则创建 （'module_br'+mm）
			var mbr1=document.createElement("div");  
			mbr1.id='module_br'+mm; 	
			mbr1.style.position='absolute'; mbr1.style.display='block';mbr1.style.left=menu_width*mm;  mbr1.style.width=menu_width;  mbr1.style.top=menu_top; mbr1.className="MY_MODULE1"; 
			var ulbr=document.createElement("ul");  ulbr.id='ulbr'+mm; 	
			for(var nn=0; nn < linum1; nn++){	
		    var divli=document.getElementById('libr'+mm+nn);			
			var libr=document.createElement("li");  libr.id='libr'+mm+nn;  		  
			libr.className="MYLI2";
		    libr.style.left=menu_width*mm-20;
		    if(mm==0&&nn==linum1-1){                                              // 单独处理退出系统
		   		(function(){ var libr9=libr;
		    	 libr9.onmouseover=function(){
		     	 libr9.style.background="#ffa54a";		     	 
		     	 for(var wdep=0;wdep<ulnum1;wdep++){
		     	 for(var dep=0;dep<linum1;dep++){	
		            if(BrowserVer.ie){	
			         if(document.getElementById('libr'+wdep+dep).style.background=='#ffa54a' && dep!=(linum1-1)){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }
			        }else if(BrowserVer.chrome){
			         if(document.getElementById('libr'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=(linum1-1)){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }			         
			         }else{
			         if((document.getElementById('libr'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%') && dep!=(linum1-1)){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }
			         }
			         }			    
		     		}		     	
		     	for(var mm=0; mm < 10; mm++){
		     	var divv1=document.getElementById('module_brr'+mm);
				var divv11=document.getElementById('module_br3'+mm);
				var divv111=document.getElementById('module_br4'+mm);
					 if(divv1!=null){
				     document.body.removeChild(divv1);
				     if(divv11!=null){
				     document.body.removeChild(divv11);
				     if(divv111!=null){
				     document.body.removeChild(divv111);
				     }
				     }
				     }		     	
		     	}		     	
		     }
		    })();		    
		    }else{
			(function(){var libr9=libr;var ul9 =mm; var ll9=nn; var linum19=linum1;   var ulnum19=ulnum1; // 闭包		         
		         libr9.onmouseover=function(){
			         libr9.style.background="#ffa54a";	
			        for(var wdep=0; wdep < ulnum19;wdep++){		                  
		         	for(var dep=0;dep<linum19;dep++){	
		         	if(BrowserVer.ie){	          // #ffa54a 和 rgb(255, 165, 74) 为同一种颜色 同一颜色不同浏览器打印不同
			         if(document.getElementById('libr'+wdep+dep).style.background=='#ffa54a' && dep!=ll9 ){			 
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';			        
			         break;
			         }
			        }else if(BrowserVer.chrome){
			         if(document.getElementById('libr'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=ll9){			 
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';			        
			         break;
			         }			         
			         }else{
			         if(document.getElementById('libr'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' && dep!=ll9){			 
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';			        
			         break;
			         }
			        }			         
			         }			         
			         } 
		     }})();
		     }
		    libr.onmouseout=function(){removeColor2(this);}			
			libr.onmousemove=function(){window.status="powered by nseer erp";}
			ulbr.appendChild(libr);				
			}
			mbr1.appendChild(ulbr);document.body.appendChild(mbr1);			setMaxZ('module_br'+mm);			
		    }
			}			
			// 2.再创建第ulnum1-1个div
			var divv2=document.getElementById('module_br'+(ulnum1-1));
			var divv21=document.getElementById('module_brr'+(ulnum1-1));
			var divv211=document.getElementById('module_br3'+(ulnum1-1));
			var divv2111=document.getElementById('module_br4'+(ulnum1-1));
			var mz=document.getElementById('module_br0_N_covers');
		    if(divv2!=null){
		    if(mz!=null){
		     unloadCover('module_br0');
		     }
		    document.body.removeChild(divv2);
		    if(divv21!=null){
		    document.body.removeChild(divv21);
		    if(divv211!=null){
		    document.body.removeChild(divv211);
		    if(divv2111!=null){
		    document.body.removeChild(divv2111);
		    }
		    }
		    }
		    }else{			
			var mbr2=document.createElement("div");  
			mbr2.id='module_br'+(ulnum1-1); 				
			mbr2.style.position='absolute';  mbr2.style.left=menu_width*(ulnum1-1);  mbr2.style.width=menu_width; mbr2.style.top=menu_top; mbr2.className="MY_MODULE1"; 
			var ulbr2=document.createElement("ul");  ulbr2.id='ulbr'+(ulnum1-1);	ulbr2.style.left=menu_width*(ulnum1-1)-20;
			for(var ll=0; ll < linum1; ll++){		
			var libr2=document.createElement("li");  libr2.id='libr'+(ulnum1-1)+ll; libr2.className="MYLI2"; libr2.style.left=menu_width*(ulnum1-1)-20;
		    if(ulnum1==1&&ll==(linum1-1)){             // 单独处理退出系统,当鼠标放在退出系统上时
		     (function(){ 
		      var libr28=libr2; 
		     libr28.onmouseover=function(){  		                               
		     	 libr28.style.background="#ffa54a";
		     	 for(var wdep=0;wdep<ulnum1;wdep++){
		     	 for(var dep=0;dep<linum1;dep++){	
		            if(BrowserVer.ie){
			         if(document.getElementById('libr'+wdep+dep).style.background=='#ffa54a' && dep!=(linum1-1)){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }
			        }else if(BrowserVer.chrome){
			         if(document.getElementById('libr'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=(linum1-1)){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }			         
			         }else{
			         if((document.getElementById('libr'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%') && dep!=(linum1-1)){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }
			         }
			         }	
			         }				     	
		     	for(var mm=0; mm < 10; mm++){
		     	var divv1=document.getElementById('module_brr'+mm);
				var divv11=document.getElementById('module_br3'+mm);
				var divv111=document.getElementById('module_br4'+mm);
					 if(divv1!=null){
				     document.body.removeChild(divv1);
				     if(divv11!=null){
				     document.body.removeChild(divv11);
				     if(divv111!=null){
				     document.body.removeChild(divv111);
				     }
				     }
				     }		     	
		     	}
		     }		     
		     })();		      
		     }else {
		    (function(){var libr29=libr2;var ul29 =ulnum1-1; var ll29=ll; var linum19=linum1; 
		         libr29.onmouseover=function(){
			         libr29.style.background="#ffa54a";
			         for(var wdep=0;wdep<ul29+1;wdep++){		                  
		         	for(var dep=0;dep<linum19;dep++){	
		            if(BrowserVer.ie){	
			         if(document.getElementById('libr'+wdep+dep).style.background=='#ffa54a' && dep!=ll29){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }
			         }else if(BrowserVer.chrome){
			         if(document.getElementById('libr'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=ll29){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }			         
			         }else{
			         if((document.getElementById('libr'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%') && dep!=ll29){
			         document.getElementById('libr'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }
			         }			         
			         }
			         } 
		     }})();
		    }
			libr2.onmouseout=function(){removeColor2(this);}
			libr2.onmousemove=function(){window.status="powered by nseer erp";}
			ulbr2.appendChild(libr2);  
			}
			mbr2.appendChild(ulbr2);document.body.appendChild(mbr2);	setMaxZ('module_br'+(ulnum1-1));
		}
			var xmlhttp;                    // 3.给每个li填充值  
			if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}else if(window.ActiveXObject){
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}if(xmlhttp) {xmlhttp.onreadystatechange=function() {
			if(xmlhttp.readyState==4){try {if(xmlhttp.status==200) {
			var res=xmlhttp.responseText; 
			if(parseInt(res)==654321){
			var mesg='';
			DWREngine.setAsync(false);
			multiLangValidate.dwrGetLang("erp","该账号没有任何权限",{callback:function(msg){mesg+=msg+',';}});
			multiLangValidate.dwrGetLang("erp","请重新登录",{callback:function(msg){mesg+=msg;}});
			alert(mesg);
			DWREngine.setAsync(true);
			window.location.href='home/logout.jsp';
			}else if(parseInt(res)==123456){
			var mesg='';
			DWREngine.setAsync(false);
			multiLangValidate.dwrGetLang("erp","该账号已在别处登录",{callback:function(msg){mesg+=msg+',';}});
			multiLangValidate.dwrGetLang("erp","请重新登录",{callback:function(msg){mesg+=msg;}});
			alert(mesg);
			DWREngine.setAsync(true);
			window.location.href='home/logout.jsp';
			}else{
			var ull=res.split("*");   // 分ul
			for(var mmm=0; mmm < ull.length; mmm++){
			var lil=ull[mmm].split("@");    // 分li 
			if(mmm==0){
			for(var nnn=0; nnn < lil.length+1; nnn++){
			if(document.getElementById('libr'+mmm+nnn)!=null){    // 先作li存在判断 因为本次点击 开始 有可能是关闭所有菜单
			if(nnn==lil.length){        // 第一个ul中最后一个li放 退出系统
			var mesg='';
			DWREngine.setAsync(false);
			multiLangValidate.dwrGetLang("erp","退出系统",{callback:function(msg){mesg=msg;}});
			DWREngine.setAsync(true);
			document.getElementById('libr'+mmm+nnn).innerHTML='<a style="width:100%;height:35px;" align="right" onmousemove="window.status=\'powered by nseer erp\'" href="#" onclick="logout();">&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://src.nseer.com/images/div/menum/one/nseer99.png" border="0">&nbsp;&nbsp;<font style="color:#000000; font-size:13px">'+mesg+'</font></a>';		
			}else{
			document.getElementById('libr'+mmm+nnn).innerHTML=lil[nnn].split("◎")[0];
			}
			}
			}			
			}else if(mmm != ull.length-1){
			for(var nnn=0; nnn < lil.length; nnn++){
			if(document.getElementById('libr'+mmm+nnn)!=null){			
			document.getElementById('libr'+mmm+nnn).innerHTML=lil[nnn].split("◎")[0];			
			}
			}
			}else{							
			if(lil.length==linum1){
			for(var nnn=0; nnn < lil.length; nnn++){
			if(document.getElementById('libr'+mmm+nnn)!=null){			
			document.getElementById('libr'+mmm+nnn).innerHTML=lil[nnn].split("◎")[0];
			}
			}
			}else{
				for(var kk=0;kk<lil.length;kk++){
				if(document.getElementById('libr'+mmm+kk)!=null){
			    document.getElementById('libr'+mmm+kk).innerHTML=lil[kk].split("◎")[0];
			    }
			    }
			    for(var jj=lil.length;jj<linum1;jj++){
			   	if(document.getElementById('libr'+mmm+jj)!=null){
			    document.getElementById('libr'+mmm+jj).innerHTML="<a  style=\"width:100%;height:35px;\">&nbsp;&nbsp;&nbsp;&nbsp;</a>";
			    document.getElementById('libr'+mmm+jj).onmouseover=null;
			    }
			    }			   
			}
			}
			}
			}		
correctPNG();
}else {
alert( xmlhttp.status+'='+xmlhttp.statusText);
}} catch(exception) {alert(exception);}}};
xmlhttp.open("POST","include/ajax/workSpace_use3.jsp?linum="+linum1, true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send(null);
}	
title_run1();
closead();
min_sc();
} 


var objTimer = "";
var objTimerNext = "";
function setTimeOut(fixnum,nu,u,module_name,view_tree_name,gategory,id){
if(objTimer) window.clearInterval(objTimer);
//objTimer = window.setInterval(menu_first1,300,fixnum,nu,u,module_name,view_tree_name,gategory,id);
objTimer = window.setInterval(function(){
         menu_first1(fixnum,nu,u,module_name,view_tree_name,gategory,id);
     },300);
}

function setTimeOutNext(fun,nu,fixnum,u,view_tree_name,gategory,id){
if(objTimerNext) window.clearInterval(objTimerNext);
//objTimerNext = window.setInterval(eval(fun),300,nu,fixnum,u,view_tree_name,gategory,id);
objTimerNext = window.setInterval(function(){
         eval(fun)(nu,fixnum,u,view_tree_name,gategory,id);
     },300);

}

function menu_first1(fixnum,nu,u,module_name,view_tree_name,gategory,id){                // 点击一级触发 显示其子目录
// nu:子目录的个数    u:该一级目录在第几个ul 
if(objTimer) window.clearInterval(objTimer);
var targ;
targ=document.getElementById(id).parentNode.parentNode.parentNode;
if(targ){
var menu=document.getElementById("module_br0");
var menu_width=parseInt(targ.style.width); 
var menu_left=parseInt(targ.style.left);
var menu_top;
var fixn=10;
if(parseInt(fixnum)>parseInt(fixn)){
menu_top=parseInt(menu.style.top);
}else{
if(BrowserVer.ie){
if((document.body.clientHeight-25-parseInt(nu)*36)>0){
menu_top=parseInt(document.body.clientHeight-25-parseInt(nu)*36);
}else{
var nuu = Math.floor(parseInt((document.body.clientHeight-25))/36);
menu_top=parseInt(document.body.clientHeight-25-parseInt(nuu)*36);
}
}else{
if((document.body.clientHeight-40-parseInt(nu)*36)>0){
menu_top=parseInt(document.body.clientHeight-40-parseInt(nu)*36);
}else{
var nuu = Math.floor(parseInt((document.body.clientHeight-40))/36);
menu_top=parseInt(document.body.clientHeight-40-parseInt(nuu)*36);
}
}
}
var linum1=0;
if(BrowserVer.ie){
 var linum1 = Math.floor(parseInt(document.body.clientHeight-25-menu_top)/35);
}else{
 var linum1 = Math.floor(parseInt(document.body.clientHeight-40-menu_top)/35);
}
var sTr=document.getElementById("ok");               // 创建的快捷方式红层
if(sTr!=null){
sTr.parentNode.removeChild(sTr);
}
if(view_tree_name!=undefined&&gategory!=undefined){
var xmlhttp;
if (navigator.userAgent.indexOf("MSIE")==-1)
{
xmlhttp=new XMLHttpRequest();
}
else if (navigator.userAgent.indexOf("MSIE")>0)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
if(xmlhttp) {
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4)
{
try {
if(xmlhttp.status==200) {
var str=xmlhttp.responseText.split("\n");         // 得到所有子目录集合

var li=menu.getElementsByTagName("li");
var ulnum1=Math.ceil(str.length/linum1);

var str2="";
if(xmlhttp.responseText.indexOf("*")!=-1){             // 如果不止一个ul
str2=xmlhttp.responseText.split("*");                // 得到ul集合
for(var mm=0; mm < ulnum1-1; mm++){                  // 先建前ulnum1-1个div
var divv=document.getElementById('module_brr'+mm);
var divv1=document.getElementById('module_br3'+mm);
var divv11=document.getElementById('module_br4'+mm);
if(divv!=null){
document.body.removeChild(divv);
if(divv1!=null){
document.body.removeChild(divv1);
if(divv11!=null){
document.body.removeChild(divv11);
}
}
}
var str3=str2[mm].split("\n");                               // 得到ul中的li集合
var mbr1=document.createElement("div");  
mbr1.id='module_brr'+mm; 
mbr1.style.position='absolute'; 
mbr1.style.display='block'; 
mbr1.style.width=(menu_width+20)+'px';  
mbr1.style.left=menu_width+menu_left+mm*(parseInt(menu_width)+20); // 比父级菜单宽度大于20
mbr1.style.top=menu_top; 
mbr1.className="MY_MODULE1"; 
var ulbr=document.createElement("ul");  ulbr.id='ulbrr'+mm; 	
for(var nn=0; nn < linum1; nn++){
var str4=str3[nn].split("@");	
var libr=document.createElement("li");  libr.id='librr'+mm+nn; libr.className="MYLI2";
libr.style.width=menu_width+20;
libr.style.left=menu_width+menu_left+mm*parseInt(libr.style.width);
(function(){var libr9=libr;var ul9 =mm; var ll9=nn; var linum19=linum1; var ulnum19=ulnum1;
libr9.onmouseover=function(){
libr9.style.background="#ffa54a";	
for(var wdep=0;wdep<ulnum1;wdep++){		                  
for(var dep=0;dep<linum19;dep++){	
if(BrowserVer.ie){		
if(document.getElementById('librr'+wdep+dep).style.background=='#ffa54a' && dep!=ll9){
document.getElementById('librr'+wdep+dep).style.background='#F0F8FF';
break;
}
}else if(BrowserVer.chrome){	
if(document.getElementById('librr'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=ll9){
document.getElementById('librr'+wdep+dep).style.background='#F0F8FF';
break;
}
}else{
if(document.getElementById('librr'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' && dep!=ll9){
document.getElementById('librr'+wdep+dep).style.background='#F0F8FF';
break;
}
}
}}
}})();
libr.onmouseout=function(){removeColor2(this);}
ulbr.appendChild(libr);  
}
mbr1.appendChild(ulbr);document.body.appendChild(mbr1);	setMaxZ('module_brr'+mm);		
}
var divv2=document.getElementById('module_brr'+(ulnum1-1));
var divv21=document.getElementById('module_br3'+(ulnum1-1));
var divv211=document.getElementById('module_br4'+(ulnum1-1));
if(divv2!=null){
document.body.removeChild(divv2);
if(divv21!=null){
document.body.removeChild(divv21);
if(divv211!=null){
document.body.removeChild(divv211);
}
}
}
var mbr2=document.createElement("div");  
mbr2.id='module_brr'+(ulnum1-1); 
mbr2.style.position='absolute';
mbr2.style.width=(menu_width+20)+'px';
mbr2.style.left=(menu_width+menu_left+(ulnum1-1)*parseInt(mbr2.style.width))+'px';
mbr2.style.top=menu_top; 
mbr2.className="MY_MODULE1"; 
var ulbr2=document.createElement("ul");  ulbr2.id='ulbrr'+(ulnum1-1); 	
for(var ll=0; ll < linum1; ll++){	
var libr2=document.createElement("li");  libr2.id='librr'+(ulnum1-1)+ll; libr2.style.left=menu_width+menu_left+(ulnum1-1)*parseInt(mbr2.style.width); libr2.className="MYLI2";libr2.style.width=menu_width+20;
(function(){var libr29=libr2;var ul29 =ulnum1-1; var ll29=ll; var linum19=linum1; var  ulnum19=ulnum1;
      libr29.onmouseover=function(){
       libr29.style.background="#ffa54a";       
       for(var wdep=0;wdep<ulnum1;wdep++){		                  
      	for(var dep=0;dep<linum19;dep++){	
      if(BrowserVer.ie){
       if(document.getElementById('librr'+wdep+dep).style.background=='#ffa54a' && dep!=ll29){
       document.getElementById('librr'+wdep+dep).style.background='#F0F8FF';
       break;
       }
       }else if(BrowserVer.chrome){
       if(document.getElementById('librr'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=ll29){   
       document.getElementById('librr'+wdep+dep).style.background='#F0F8FF';
       break;
       }    
       }else{
       if((document.getElementById('librr'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%') && dep!=ll29){
       document.getElementById('librr'+wdep+dep).style.background='#F0F8FF';
       break;
       }      
       }
       }
       } 
  }})(); 
libr2.onmouseout=function(){removeColor2(this);}
ulbr2.appendChild(libr2);  
}
mbr2.appendChild(ulbr2);document.body.appendChild(mbr2); setMaxZ('module_brr'+(ulnum1-1));	
}else{                           // 如果只有一个ul（返回中不含*）
var str6=xmlhttp.responseText;
var str66=str6.split("\n");
for(var mm=0; mm < 10; mm++){
var divv3=document.getElementById('module_brr'+mm);
var divv31=document.getElementById('module_br3'+mm);
var divv311=document.getElementById('module_br4'+mm);
if(divv3!=null){
document.body.removeChild(divv3);
if(divv31!=null){
document.body.removeChild(divv31);
if(divv311!=null){
document.body.removeChild(divv311);
}
}
}
}                                     
var mbr3=document.createElement("div");                
mbr3.id='module_brr0'; 
mbr3.style.position='absolute'; 
mbr3.style.display='block'; 
mbr3.style.left=(menu_width+menu_left)+'px';
mbr3.style.width=(menu_width+20)+'px';
mbr3.style.top=menu_top; 
mbr3.className="MY_MODULE1"; 
var ulbr3=document.createElement("ul");  
ulbr3.id='ulbrr0'; 	
for(var ll=0; ll < str.length; ll++){	
var libr3=document.createElement("li");  
libr3.id='librr'+0+ll; 
libr3.style.left=(menu_width+menu_left)+'px'; 
libr3.className="MYLI2";
libr3.style.width=(menu_width+20)+'px'; 
(function(){var libr39=libr3;var ul39 =0; var ll39=ll; var linum19=linum1; 
      libr39.onmouseover=function(){
       libr39.style.background="#ffa54a";       			                  
      	for(var dep=0;dep<linum19;dep++){	
      	if(BrowserVer.ie){	
       if(document.getElementById('librr'+ul39+dep) && document.getElementById('librr'+ul39+dep).style.background=='#ffa54a' && dep!=ll39){
       document.getElementById('librr'+ul39+dep).style.background='#F0F8FF';
       break;
       }
       }else if(BrowserVer.chrome){
       if(document.getElementById('librr'+ul39+dep).style.background=='rgb(255, 165, 74)' && dep!=ll39){  
       document.getElementById('librr'+ul39+dep).style.background='#F0F8FF';
       break;
       }     
       }else{
       if((document.getElementById('librr'+ul39+dep) && document.getElementById('librr'+ul39+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%') && dep!=ll39){
       document.getElementById('librr'+ul39+dep).style.background='#F0F8FF';
       break;
       }
       }       
       } 
  }})();
libr3.onmouseout=function(){removeColor2(this);}
ulbr3.appendChild(libr3); 
}
mbr3.appendChild(ulbr3);document.body.appendChild(mbr3); setMaxZ('module_brr0');
}
if(xmlhttp.responseText.indexOf("*")!=-1){                                   //赋值
var ulg=xmlhttp.responseText.split("*"); 
for(var mmm=0; mmm < ulg.length; mmm++){
if(mmm!= (ulg.length-1)){
var lig=ulg[mmm].split("\n");  
for(var nnn=0; nnn < lig.length; nnn++){
if(document.getElementById('librr'+mmm+nnn)!=null){    	
if(lig[nnn].indexOf("^")!=-1){                                              // 表示不为叶子节点
document.getElementById('librr'+mmm+nnn).innerHTML=lig[nnn].split("◎")[0].substring(1);
}else{
document.getElementById('librr'+mmm+nnn).innerHTML=lig[nnn].substring(1);
}}}
}else{
var lig=ulg[mmm].split("\n");  
if(lig.length==linum1){
for(var nnn=0; nnn < lig.length; nnn++){
if(document.getElementById('librr'+mmm+nnn)!=null){    	
if(lig[nnn].indexOf("^")!=-1){                                              // 表示不为叶子节点
document.getElementById('librr'+mmm+nnn).innerHTML=lig[nnn].split("◎")[0].substring(1);
}else{
document.getElementById('librr'+mmm+nnn).innerHTML=lig[nnn].substring(1);
}}}
}else{
  for(var kk=0;kk<lig.length;kk++){
 if(document.getElementById('librr'+mmm+kk)!=null){    	
if(lig[kk].indexOf("^")!=-1){                                              // 表示不为叶子节点
document.getElementById('librr'+mmm+kk).innerHTML=lig[kk].split("◎")[0].substring(1);
}else{
document.getElementById('librr'+mmm+kk).innerHTML=lig[kk].substring(1);
}}  
  }
  for(var jj=lig.length;jj<linum1;jj++){
  if(document.getElementById('librr'+mmm+jj)!=null){
  document.getElementById('librr'+mmm+jj).innerHTML=  document.getElementById('librr'+mmm+jj).innerHTML="<a  style=\"width:100%;height:35px;\">&nbsp;&nbsp;&nbsp;&nbsp;</a>";
  document.getElementById('librr'+mmm+jj).onmouseover=null;
  }
}
}
}
}
}else{
for(var nnn2=0; nnn2 < str.length; nnn2++){
if(document.getElementById('librr'+0+nnn2)!=null){ 
if(str[nnn2].indexOf("^")!=-1){
document.getElementById('librr'+0+nnn2).innerHTML=str[nnn2].split("◎")[0].substring(1);
}else{
document.getElementById('librr'+0+nnn2).innerHTML=str[nnn2].substring(1);
}
}}
}
correctPNG();
}else {
alert( xmlhttp.status+'='+xmlhttp.statusText);
}
} catch(exception) {
 alert(exception);
}
}
};
xmlhttp.open("POST", "include/ajax/workSpace_use4.jsp", true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send('linum='+linum1+'&view_tree_name='+view_tree_name+'&gategory='+gategory+'&u='+u+'&nu='+nu+'&fixnum='+fixnum);
} else {        
  alert('Can not create XMLHttpRequest object, please check your web browser.');
}
}
}else{
for(var mm=0;mm<10;mm++){
var divv=document.getElementById('module_brr'+mm);
var divv1=document.getElementById('module_br3'+mm);
var divv11=document.getElementById('module_br4'+mm);
if(divv!=null){
document.body.removeChild(divv);
if(divv1!=null){
document.body.removeChild(divv1);
if(divv11!=null){
document.body.removeChild(divv11);
}
}
}
}
}
}

function menu_r2(nu,fixnum,u,view_tree_name,gategory,id){                 // 点击二级触发 显示其子节点
if(objTimerNext) window.clearInterval(objTimerNext);
var targ;
targ=document.getElementById(id).parentNode.parentNode.parentNode;
var menu=document.getElementById("module_brr0");
var menu_width=parseInt(targ.style.width); 
var menu_left=parseInt(targ.style.left);
var menu_top;
var fixn=10;
if(parseInt(fixnum)>parseInt(fixn)){
menu_top=parseInt(menu.style.top);
}else{
if(BrowserVer.ie){	
if((document.body.clientHeight-25-parseInt(nu)*36)>0){
menu_top=parseInt(document.body.clientHeight-25-parseInt(nu)*36);
}else{
var nuu = Math.floor(parseInt((document.body.clientHeight-25))/36);
menu_top=parseInt(document.body.clientHeight-25-parseInt(nuu)*36);
}
}else{
if((document.body.clientHeight-40-parseInt(nu)*36)>0){
menu_top=parseInt(document.body.clientHeight-40-parseInt(nu)*36);
}else{
var nuu = Math.floor(parseInt((document.body.clientHeight-40))/36);
menu_top=parseInt(document.body.clientHeight-40-parseInt(nuu)*36);
}
}
}
var linum1=0;
if(BrowserVer.ie){	
linum1 = Math.floor(parseInt(document.body.clientHeight-25-menu_top)/35);
}else{
linum1 = Math.floor(parseInt(document.body.clientHeight-40-menu_top)/35);
}
var sTr=document.getElementById("ok");
if(sTr!=null){
sTr.parentNode.removeChild(sTr);
}
if(view_tree_name!=undefined&&gategory!=undefined){
var xmlhttp;
if (navigator.userAgent.indexOf("MSIE")==-1)
{
xmlhttp=new XMLHttpRequest();
}
else if (navigator.userAgent.indexOf("MSIE")>0)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
if(xmlhttp) {
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4)
{
try {
if(xmlhttp.status==200) {
if(xmlhttp.responseText!="123456"){  
var str=xmlhttp.responseText.split("\n");
var ulnum1=Math.ceil(str.length/linum1);
if(xmlhttp.responseText.indexOf("*")!=-1){
var str2=xmlhttp.responseText.split("*");
for(var mm=0; mm < ulnum1-1; mm++){
var divv=document.getElementById('module_br3'+mm);
var divv1=document.getElementById('module_br4'+mm);
if(divv!=null){
document.body.removeChild(divv);
if(divv1!=null){
document.body.removeChild(divv1);
}
}
var str3=str2[mm].split("\n");
var mbr1=document.createElement("div");  
mbr1.id='module_br3'+mm; 
mbr1.style.position='absolute'; 
mbr1.style.display='block'; 
mbr1.style.width=menu_width+20;  
mbr1.style.left=menu_width+menu_left+parseInt(menu_width+20)*mm; 
mbr1.style.top=menu_top; 
mbr1.className="MY_MODULE1"; 
var ulbr=document.createElement("ul");  ulbr.id='ulbr3'+mm; 	
for(var nn=0; nn < linum1; nn++){
var str4=str3[nn].split("@");	
var libr=document.createElement("li");  libr.id='libr3'+mm+nn; libr.style.left=menu_width+menu_left+parseInt(menu_width+20)*mm;  libr.style.width=menu_width+20; libr.className="MYLI2";
		    (function(){var libr9=libr;var ul9 =mm; var ll9=nn; var linum19=linum1; 
		         libr9.onmouseover=function(){
			         libr9.style.background="#ffa54a";	
			         for(var wdep=0;wdep<ulnum1;wdep++){		                  
		         	for(var dep=0;dep<linum19;dep++){	
		         	if(BrowserVer.ie){		
			         if(document.getElementById('libr3'+wdep+dep).style.background=='#ffa54a' && dep!=ll9){
			         document.getElementById('libr3'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }
			        }else if(BrowserVer.chrome){	
			         if(document.getElementById('libr3'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=ll9){
			         document.getElementById('libr3'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }			         
			         }else{
			         if(document.getElementById('libr3'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' && dep!=ll9){
			         document.getElementById('libr3'+wdep+dep).style.background='#F0F8FF';
			         break;
			         }
			         }
			         }
			         } 
		     }})();
libr.onmouseout=function(){removeColor2(this);}
ulbr.appendChild(libr);  
}
mbr1.appendChild(ulbr);document.body.appendChild(mbr1);	setMaxZ('module_br3'+mm);		
}
var divv2=document.getElementById('module_br3'+(ulnum1-1));
var divv21=document.getElementById('module_br4'+(ulnum1-1));
if(divv2!=null){
document.body.removeChild(divv2);
if(divv21!=null){
document.body.removeChild(divv21);
}
}
var mbr2=document.createElement("div");  
mbr2.id='module_br3'+(ulnum1-1); 
mbr2.style.position='absolute'; 
mbr2.style.display='block'; 
mbr2.style.left=menu_width+menu_left+parseInt(menu_width+10)*(ulnum1-1); 
mbr2.style.width=menu_width+20; 
mbr2.style.top=menu_top; 
mbr2.className="MY_MODULE1"; 
var ulbr2=document.createElement("ul");  ulbr2.id='ulbr3'+(ulnum1-1); 	
for(var ll=0; ll < linum1; ll++){	
var libr2=document.createElement("li");  libr2.id='libr3'+(ulnum1-1)+ll; libr2.style.left=menu_width+menu_left+parseInt(menu_width+20)*(ulnum1-1); libr2.style.width=menu_width+20; libr2.className="MYLI2";
(function(){var libr29=libr2;var ul29 =ulnum1-1; var ll29=ll; var linum19=linum1; 
      libr29.onmouseover=function(){
       libr29.style.background="#ffa54a";	
       for(var wdep=0;wdep<ulnum1;wdep++){	                  
      	for(var dep=0;dep<linum19;dep++){	
      	if(BrowserVer.ie){	
       if(document.getElementById('libr3'+wdep+dep).style.background=='#ffa54a' && dep!=ll29){
       document.getElementById('libr3'+wdep+dep).style.background='#F0F8FF';
       break;
       }
       }else if(BrowserVer.chrome){	
       if(document.getElementById('libr3'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=ll29){   
       document.getElementById('libr3'+wdep+dep).style.background='#F0F8FF';
       break;
       }    
       }else{
       if(document.getElementById('libr3'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' && dep!=ll29){
       document.getElementById('libr3'+wdep+dep).style.background='#F0F8FF';
       break;
       }
       }
       }
       } 
  }})();
libr2.onmouseout=function(){removeColor2(this);}
ulbr2.appendChild(libr2);  
}
mbr2.appendChild(ulbr2);document.body.appendChild(mbr2); setMaxZ('module_br3'+(ulnum1-1));				

}else{
for(var mm=0; mm < 10; mm++){
var divv3=document.getElementById('module_br3'+mm);
var divv31=document.getElementById('module_br4'+mm);
if(divv3!=null){
document.body.removeChild(divv3);
if(divv31!=null){
document.body.removeChild(divv31);
}
}
}
var str6=xmlhttp.responseText;
var str66=str6.split("\n");
var mbr3=document.createElement("div");  
mbr3.id='module_br30'; 
mbr3.style.position='absolute'; 
mbr3.style.display='block'; 
mbr3.style.left=(menu_width+menu_left)+'px';
mbr3.style.width=(menu_width+20)+'px';
mbr3.style.top=menu_top; 
mbr3.className="MY_MODULE1"; 
var ulbr3=document.createElement("ul");  ulbr3.id='ulbr30'; 	
for(var ll=0; ll < str.length; ll++){		
var libr3=document.createElement("li");  libr3.id='libr3'+0+ll; libr3.style.left=(menu_width+menu_left)+'px'; libr3.style.width=(menu_width+20)+'px';  libr3.className="MYLI2";
(function(){var libr39=libr3;var ul39 =0; var ll39=ll; var linum19=linum1; 
      libr39.onmouseover=function(){
       libr39.style.background="#ffa54a";			                  
      	for(var dep=0;dep<linum19;dep++){	
      	if(BrowserVer.ie){	
        if(document.getElementById('libr3'+ul39+dep) && document.getElementById('libr3'+ul39+dep).style.background=='#ffa54a' && dep!=ll39){
       document.getElementById('libr3'+ul39+dep).style.background='#F0F8FF';
       break;
       }
        }else if(BrowserVer.chrome){	
        if(document.getElementById('libr3'+ul39+dep).style.background=='rgb(255, 165, 74)' && dep!=ll39){   
       document.getElementById('libr3'+ul39+dep).style.background='#F0F8FF';
       break;
       }     
        }else{
        if(document.getElementById('libr3'+ul39+dep) && document.getElementById('libr3'+ul39+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' && dep!=ll39){
       document.getElementById('libr3'+ul39+dep).style.background='#F0F8FF';
       break;
       }
		}       
       } 
  }})();
libr3.onmouseout=function(){removeColor2(this);}
ulbr3.appendChild(libr3);  
}
mbr3.appendChild(ulbr3);document.body.appendChild(mbr3); setMaxZ('module_br30');
}		
if(xmlhttp.responseText.indexOf("*")!=-1){ 
var ulg=xmlhttp.responseText.split("*"); 
for(var mmm=0; mmm < ulg.length; mmm++){
if(mmm!=ulg.length-1){
var lig=ulg[mmm].split("\n");  
for(var nnn=0; nnn < lig.length; nnn++){
if(document.getElementById('libr3'+mmm+nnn)!=null){    	
if(lig[nnn].indexOf("^")!=-1){ 
document.getElementById('libr3'+mmm+nnn).innerHTML=lig[nnn].split("◎")[0].substring(1);
}else{
document.getElementById('libr3'+mmm+nnn).innerHTML=lig[nnn].substring(1);
}
}}
}else{
var lig=ulg[mmm].split("\n"); 
if(lig.length==linum1){
for(var nnn=0; nnn < lig.length; nnn++){
if(document.getElementById('libr3'+mmm+nnn)!=null){    	
if(lig[nnn].indexOf("^")!=-1){ 
document.getElementById('libr3'+mmm+nnn).innerHTML=lig[nnn].split("◎")[0].substring(1);
}else{
document.getElementById('libr3'+mmm+nnn).innerHTML=lig[nnn].substring(1);
}
}
}
}else{
  for(var kk=0;kk<lig.length;kk++){
 if(document.getElementById('libr3'+mmm+kk)!=null){    	
if(lig[kk].indexOf("^")!=-1){                                              // 表示不为叶子节点
document.getElementById('libr3'+mmm+kk).innerHTML=lig[kk].split("◎")[0].substring(1);
}else{
document.getElementById('libr3'+mmm+kk).innerHTML=lig[kk].substring(1);
}}  
  }
  for(var jj=lig.length;jj<linum1;jj++){
  if(document.getElementById('libr3'+mmm+jj)!=null){
  document.getElementById('libr3'+mmm+jj).innerHTML="<a  style=\"width:100%;height:35px;\">&nbsp;&nbsp;&nbsp;&nbsp;</a>";
  document.getElementById('libr3'+mmm+jj).onmouseover=null;
  }
}
}
}
}
}else{
for(var nnn2=0; nnn2 < str.length; nnn2++){
if(document.getElementById('libr3'+0+nnn2)!=null){	
if(str[nnn2].indexOf("^")!=-1){		
document.getElementById('libr3'+0+nnn2).innerHTML=str[nnn2].split("◎")[0].substring(1);
}else{
document.getElementById('libr3'+0+nnn2).innerHTML=str[nnn2].substring(1);
}
}}
}}else{for(var mm=0; mm < 10; mm++){
var divv3=document.getElementById('module_br3'+mm);
var divv31=document.getElementById('module_br4'+mm);
if(divv3!=null){
document.body.removeChild(divv3);
if(divv31!=null){
document.body.removeChild(divv31);
}
}
}}
correctPNG();
}else {
alert( xmlhttp.status+'='+xmlhttp.statusText);
}
} catch(exception) {
 alert(exception);
}
}
};
xmlhttp.open("POST", "include/ajax/workSpace_use4.jsp", true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send('linum='+linum1+'&view_tree_name='+view_tree_name+'&gategory='+gategory+'&u='+u+'&nu='+nu+'&fixnum='+fixnum);			
}else{        
alert('Can not create XMLHttpRequest object, please check your web browser.');
}
}
}

function menu_r3(nu,fixnum,u,view_tree_name,gategory,id){                  // 点击三级菜单触发 显示其子节点
if(objTimerNext) window.clearInterval(objTimerNext);
var targ;
targ=document.getElementById(id).parentNode.parentNode.parentNode;//获得鼠标mouseover三级菜单层对象
var menu=document.getElementById("module_br30");
var menu_width=parseInt(targ.style.width); 
var menu_left=parseInt(targ.style.left);
var menu_top;
var fixn=10;
if(parseInt(fixnum)>parseInt(fixn)){
menu_top=parseInt(menu.style.top);
}else{
if(BrowserVer.ie){	
if((document.body.clientHeight-25-parseInt(nu)*36)>0){
menu_top=parseInt(document.body.clientHeight-25-parseInt(nu)*36);
}else{
var nuu = Math.floor(parseInt((document.body.clientHeight-25))/36);
menu_top=parseInt(document.body.clientHeight-25-parseInt(nuu)*36);
}
}else{
if((document.body.clientHeight-40-parseInt(nu)*36)>0){
menu_top=parseInt(document.body.clientHeight-40-parseInt(nu)*36);

}else{
var nuu = Math.floor(parseInt((document.body.clientHeight-40))/36);
menu_top=parseInt(document.body.clientHeight-40-parseInt(nuu)*36);
}
}
}
var linum1=0;
if(BrowserVer.ie){	
linum1 = Math.floor(parseInt(document.body.clientHeight-25-menu_top)/35);
}else{
linum1 = Math.floor(parseInt(document.body.clientHeight-40-menu_top)/35);
}
var sTr=document.getElementById("ok");
if(sTr!=null){
sTr.parentNode.removeChild(sTr);
}
if(view_tree_name!=undefined&&gategory!=undefined){
var xmlhttp;
if (navigator.userAgent.indexOf("MSIE")==-1)
{
xmlhttp=new XMLHttpRequest();
}
else if (navigator.userAgent.indexOf("MSIE")>0)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
if(xmlhttp) {
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4)
{
try {
if(xmlhttp.status==200) {
if(xmlhttp.responseText!="123456"){      
var str=xmlhttp.responseText.split("\n");
var ulnum1=Math.ceil(str.length/linum1);
if(xmlhttp.responseText.indexOf("*")!=-1){
var str2=xmlhttp.responseText.split("*");
for(var mm=0; mm < ulnum1-1; mm++){
var divv=document.getElementById('module_br4'+mm);
if(divv!=null){
document.body.removeChild(divv);
}
var str3=str2[mm].split("\n");
var mbr1=document.createElement("div");  
mbr1.id='module_br4'+mm; 
mbr1.style.position='absolute'; 
mbr1.style.display='block'; 
mbr1.style.width=menu_width+20;  
mbr1.style.left=menu_width+menu_left+parseInt(menu_width+20)*mm;  
mbr1.style.top=menu_top; 
mbr1.className="MY_MODULE1"; 
var ulbr=document.createElement("ul");  ulbr.id='ulbr4'+mm; 	
for(var nn=0; nn < linum1; nn++){
var str4=str3[nn].split("@");	
var libr=document.createElement("li");  libr.id='libr4'+mm+nn; libr.style.left=menu_width+menu_left+parseInt(menu_width+20)*mm;  libr.style.width=menu_width+20;  libr.className="MYLI2";
(function(){var libr9=libr;var ul9 =mm; var ll9=nn; var linum19=linum1; 
     libr9.onmouseover=function(){
      libr9.style.background="#ffa54a";	
     for(var wdep=0;wdep<ulnum1;wdep++){		                  
     for(var dep=0;dep<linum19;dep++){
     if(BrowserVer.ie){			
      if(document.getElementById('libr4'+wdep+dep).style.background=='#ffa54a' && dep!=ll9){   
      document.getElementById('libr4'+wdep+dep).style.background='#F0F8FF';
      break;
      }   
     }else if(BrowserVer.chrome){
      if(document.getElementById('libr4'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=ll9){    
      document.getElementById('libr4'+wdep+dep).style.background='#F0F8FF';
      break;
      }  
      }else{
      if(document.getElementById('libr4'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' && dep!=ll9){
      document.getElementById('libr4'+wdep+dep).style.background='#F0F8FF';
      break;
      }
      }
      }
      } 
 }})();
libr.onmouseout=function(){removeColor2(this);}
ulbr.appendChild(libr);  
}
mbr1.appendChild(ulbr);document.body.appendChild(mbr1); setMaxZ('module_br4'+mm);			
}

var divv2=document.getElementById('module_br4'+(ulnum1-1));
if(divv2!=null){
document.body.removeChild(divv2);
}
var mbr2=document.createElement("div");  
mbr2.id='module_br4'+(ulnum1-1); 
mbr2.style.position='absolute'; 
mbr2.style.display='block'; 
mbr2.style.left=menu_width+menu_left+parseInt(menu_width+10)*(ulnum1-1); 
mbr2.style.width=menu_width+20;  
mbr2.style.top=menu_top; 
mbr2.className="MY_MODULE1"; 
var ulbr2=document.createElement("ul");  ulbr2.id='ulbr4'+(ulnum1-1); 	
for(var ll=0; ll < linum1; ll++){	
var libr2=document.createElement("li");  libr2.id='libr4'+(ulnum1-1)+ll; libr2.style.left=menu_width+menu_left+parseInt(menu_width+20)*(ulnum1-1); libr2.style.width=menu_width+20; libr2.className="MYLI2";
(function(){var libr29=libr2;var ul29 =ulnum1-1; var ll29=ll; var linum19=linum1; 
      libr29.onmouseover=function(){
       libr29.style.background="#ffa54a";
       for(var wdep=0;wdep<ulnum1;wdep++){			                  
      	for(var dep=0;dep<linum19;dep++){	
      	if(BrowserVer.ie){
       if(document.getElementById('libr4'+wdep+dep).style.background=='#ffa54a' && dep!=ll29){
       document.getElementById('libr4'+wdep+dep).style.background='#F0F8FF';
       break;
       }
       }else if(BrowserVer.chrome){
       if(document.getElementById('libr4'+wdep+dep).style.background=='rgb(255, 165, 74)' && dep!=ll29){  
       document.getElementById('libr4'+wdep+dep).style.background='#F0F8FF';
       break;
       }     
       }else{      
       if(document.getElementById('libr4'+wdep+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' && dep!=ll29){
       document.getElementById('libr4'+wdep+dep).style.background='#F0F8FF';
       break;
       }
       }
       }
       } 
  }})();
libr2.onmouseout=function(){removeColor2(this);}
ulbr2.appendChild(libr2);  
}
mbr2.appendChild(ulbr2);document.body.appendChild(mbr2);	setMaxZ('module_br4'+(ulnum1-1));	
}else{
for(var mm=0; mm < 10; mm++){
var divv3=document.getElementById('module_br4'+mm);
if(divv3!=null){
document.body.removeChild(divv3);
}
}
var str6=xmlhttp.responseText;
var str66=str6.split("\n");
var mbr3=document.createElement("div");  
mbr3.id='module_br40'; 
mbr3.style.position='absolute'; 
mbr3.style.display='block'; 
mbr3.style.left=menu_width+menu_left; 
mbr3.style.width=menu_width+20;   
mbr3.style.top=menu_top;
mbr3.className="MY_MODULE1";  
var ulbr3=document.createElement("ul");  ulbr3.id='ulbr40';
for(var ll=0; ll < str.length; ll++){		
var libr3=document.createElement("li");  libr3.id='libr4'+0+ll; libr3.style.left=menu_width+menu_left; libr3.style.width=menu_width+20; libr3.className="MYLI2";
(function(){var libr39=libr3;var ul39 =0; var ll39=ll; var linum19=linum1; 
      libr39.onmouseover=function(){
       libr39.style.background="#ffa54a";			                  
        for(var dep=0;dep<linum19;dep++){
       if(BrowserVer.ie){
       if(document.getElementById('libr4'+ul39+dep)&& document.getElementById('libr4'+ul39+dep).style.background=='#ffa54a' && dep!=ll39){
       document.getElementById('libr4'+ul39+dep).style.background='#F0F8FF';
       break;
       }
       }else if(BrowserVer.chrome){
       if(document.getElementById('libr4'+ul39+dep).style.background=='rgb(255, 165, 74)' && dep!=ll39){  
       document.getElementById('libr4'+ul39+dep).style.background='#F0F8FF';
       break;
       }     
       }else{
       if(document.getElementById('libr4'+ul39+dep) && document.getElementById('libr4'+ul39+dep).style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' && dep!=ll39){       
       document.getElementById('libr4'+ul39+dep).style.background='#F0F8FF';
       break;
       }
       }       
       } 
  }})();
libr3.onmouseout=function(){removeColor2(this);}
ulbr3.appendChild(libr3);  
}
mbr3.appendChild(ulbr3);document.body.appendChild(mbr3);setMaxZ('module_br40');
}		
if(xmlhttp.responseText.indexOf("*")!=-1){ //有多个ul时
var ulg=xmlhttp.responseText.split("*"); 
for(var mmm=0; mmm < ulg.length; mmm++){
if(mmm != ulg.length-1){
var lig=ulg[mmm].split("\n");  
for(var nnn=0; nnn < lig.length; nnn++){
if(document.getElementById('libr4'+mmm+nnn)!=null){        	
if(lig[nnn].indexOf("^")!=-1){ 			
document.getElementById('libr4'+mmm+nnn).innerHTML=lig[nnn].split("◎")[0].substring(1);
}else{
document.getElementById('libr4'+mmm+nnn).innerHTML=lig[nnn].substring(1);
}
}}
}else{
var lig=ulg[mmm].split("\n");
if(lig.length==linum1){
for(var nnn=0; nnn < lig.length; nnn++){
if(document.getElementById('libr4'+mmm+nnn)!=null){        	
if(lig[nnn].indexOf("^")!=-1){ 			
document.getElementById('libr4'+mmm+nnn).innerHTML=lig[nnn].split("◎")[0].substring(1);
}else{
document.getElementById('libr4'+mmm+nnn).innerHTML=lig[nnn].substring(1);
}
}
}
}else{
  for(var kk=0;kk<lig.length;kk++){
 if(document.getElementById('libr4'+mmm+kk)!=null){    	
if(lig[kk].indexOf("^")!=-1){                                              // 表示不为叶子节点
document.getElementById('libr4'+mmm+kk).innerHTML=lig[kk].split("◎")[0].substring(1);
}else{
document.getElementById('libr4'+mmm+kk).innerHTML=lig[kk].substring(1);
}}  
  }
  for(var jj=lig.length-1;jj<linum1;jj++){
  if(document.getElementById('libr4'+mmm+jj)!=null){
  document.getElementById('libr4'+mmm+jj).innerHTML="<a  style=\"width:100%;height:35px;\">&nbsp;&nbsp;&nbsp;&nbsp;</a>";
  document.getElementById('libr4'+mmm+jj).onmouseover=null;
  }
}
}
}
}
}else{//只有一个ul时
for(var nnn2=0; nnn2 < str.length; nnn2++){
if(document.getElementById('libr4'+0+nnn2)!=null){
if(str[nnn2].indexOf("^")!=-1){
document.getElementById('libr4'+0+nnn2).innerHTML=str[nnn2].split("◎")[0].substring(1);
}else{
document.getElementById('libr4'+0+nnn2).innerHTML=str[nnn2].substring(1);		
}
}}
}}else{for(var mm=0; mm < 10; mm++){
var divv3=document.getElementById('module_br4'+mm);
if(divv3!=null){
document.body.removeChild(divv3);
}
}}  
correctPNG();  
}else {
alert( xmlhttp.status+'='+xmlhttp.statusText);
}
} catch(exception) {
 alert(exception);
}
}
};
xmlhttp.open("POST", "include/ajax/workSpace_use4.jsp", true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send('linum='+linum1+'&view_tree_name='+view_tree_name+'&gategory='+gategory+'&u='+u+'&nu='+nu+'&fixnum='+fixnum);			
}else{        
alert('Can not create XMLHttpRequest object, please check your web browser.');
}
}
}

function menu_r4(){                  // 点击四级菜单触发 显示其子节点
if(objTimerNext) window.clearInterval(objTimerNext);
var sTr=document.getElementById("ok");
if(sTr!=null){
sTr.parentNode.removeChild(sTr);
}
}
function close_menu(e){   
var targ;
e=e||window.event;		
targ=e.srcElement?e.srcElement:e.target;
var  targId=targ.id;
if(targId==''||targId==null||targId=="whole"){  // 点击页面空白区域，在IE下为ID为空，在FF下为“whole”
close_run();
}
if(targId.indexOf("_N_covers")!=-1){
close_run();
unloadCover("module_br0");
}
}
function close_run(){
var sels1=document.getElementsByTagName('embed'); 
for (var i=0; i < sels1.length; i++) {
    sels1[i].parentNode.style.visibility="visible";
}
var view=document.getElementById("module_1");
var ok=document.getElementById("ok");
for(var m_num=0;m_num<10;m_num++){
var module_1=document.getElementById("module_br"+m_num);
var module_2=document.getElementById("module_brr"+m_num);
var module_3=document.getElementById("module_br3"+m_num);
var module_4=document.getElementById("module_br4"+m_num);
if(module_1!=null) document.body.removeChild(module_1);
if(module_2!=null) document.body.removeChild(module_2);
if(module_3!=null) document.body.removeChild(module_3);
if(module_4!=null) document.body.removeChild(module_4);
}
if(ok!=null) ok.style.display='none';
if(divId!=null&&divv_img!=2){
group_id=group_id.substring(0,group_id.length-1);
args=group_id.split(",");
for(var i=0; i < args.length; i ++){
div_img_id=args[i];
var img_div_id=document.getElementById(div_img_id+'TTT');
if(img_div_id!=null){
img_div_id.className=null;
}
var href_div_id=document.getElementById(div_img_id+'TTTT');
if(href_div_id!=null){
if (navigator.userAgent.indexOf("MSIE")==-1)
{
href_div_id.className='drag_text2';
}else if (navigator.userAgent.indexOf("MSIE")>0){
href_div_id.className='drag_text';
}
href_div_id.onmouseover=function (){
href_div_id.className='drag_text1';
};
href_div_id.onmouseout=function (){
if (navigator.userAgent.indexOf("MSIE")==-1)
{
href_div_id.className='drag_text2';
}else if (navigator.userAgent.indexOf("MSIE")>0){
href_div_id.className='drag_text';
}
};
}
}
group_id='';
}
}

function removeColor2(obj){	
	if(obj.style.background=='rgb(255, 165, 74) none repeat scroll 0% 0%' || obj.style.background=='rgb(255, 165, 74)' || obj.style.background=='#ffa54a'){
	obj.style.background='#ffa54a';
	}else{
	obj.style.background='#F0F8FF';
	}
}
