var tab=0;
var subTab=0;
var degel=0;
var LastTab;
var LastSelTab="";
mOver=false;
function OverTab(ths,lvl)
{ 
mOver=false
 if(lvl==1){ 
  if(ths.childNodes[0].src.indexOf("on.gif")==-1)
  ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"ro.gif"; }
  else if(ths.childNodes[0].src.indexOf("off.gif")!=-1) {
	 	  ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"on.gif";
		  mOver=true
		  }
}
var x=0
var thisFlag=false
function OutTab(ths,lvl)
{ 
 if(lvl==1){
  if(ths.childNodes[0].src.indexOf("on.gif")==-1)
  ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-6)+"off.gif";
  }  
  else {
	if(!thisFlag && mOver){
	  ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-6)+"off.gif"; 
	}
	thisFlag=false
   var subLinks=document.getElementsByName("subLink");
   count=0;
   if(navigator.appName!='Netscape'){
  for(var i=0;i<subLinks.length;i++){
   if(subLinks[subTab].childNodes[0].src.indexOf("off.gif")!=-1){
	 count++;
	}
	}
   if(count==subLink.length){
	   ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"on.gif";
   }	
   }
	else if(navigator.appName=='Netscape'){
		for(var i=0;i<subLinks.length;i++){
		 if(subLinks[i].childNodes[0].src.indexOf("off.gif")==-1 && subLinks[i]!=ths){
			 subLinks[i].childNodes[0].src.substring(0,ths.childNodes[0].src.length-6)+"off.gif";
			}
	}
	if(ths==subLinks[0]){
  	for(var i=0;i<subLinks.length;i++){
   		if(subLinks[subTab].childNodes[0].src.indexOf("off.gif")!=-1){
	 	count++;
		}
	}	
	if(count==subLinks.length){
	ths.childNodes[0].src=subLinks[0].childNodes[0].src.substring(0,subLinks[0].childNodes[0].src.length-7)+"on.gif";
	}
	}
   }
  }
}
function setTabset(ths)
{  
  var curTd;
  var tbl=ths.parentNode.parentNode.parentNode.parentNode;
  var tb;
  if(LastSelTab==""){
	ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"ro.gif";
  }
  if((LastSelTab!="")&&(LastSelTab!=ths))
  {  
	  LastSelTab.childNodes[0].src=LastSelTab.childNodes[0].src.substring(0,LastSelTab.childNodes[0].src.length-6)+"off.gif";
   }
  LastSelTab=ths;
  if(ths.childNodes[0].src.indexOf("on.gif")==-1)
  if(ths.childNodes[0].src.indexOf("ro.gif")!=-1)
  ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-6)+"on.gif";
   else
   ths.childNodes[0].src=ths.childNodes[0].src.substring(0,ths.childNodes[0].src.length-7)+"on.gif";
    var txt= ths.childNodes[0].src.split("/")[ths.childNodes[0].src.split("/").length-1].split("_")[1];
	 removeTabs();
     Loading(txt);
     subTab=0;
     document.getElementsByName("subLink")[0].onclick();
}
mainObj=document.getElementById("maincontent")
function setPage(ths)
{
  var addr; 
  thisFlag=false
  var subLinks=document.getElementsByName("subLink");
  for(var i=0;i<subLinks.length;i++){
   if(subLinks[i]==ths){
	   	   if(subTab!=i){
   if(subLinks[subTab].childNodes[0].src.indexOf("off.gif")==-1){
   subLinks[subTab].childNodes[0].src=subLinks[subTab].childNodes[0].src.substring(0,subLinks[subTab].childNodes[0].src.length-6)+"off.gif";
   }
   } 		
   if(i==0){ 
   subTab=i;
   	if(subLinks[subTab].childNodes[0].src.indexOf("off.gif")!=-1){
	subLinks[subTab].childNodes[0].src=subLinks[subTab].childNodes[0].src.substring(0,subLinks[subTab].childNodes[0].src.length-7)+"on.gif";
	}
	}
   else{
	subTab=i;
	if(subLinks[subTab].childNodes[0].src.indexOf("off.gif")==-1){
	subLinks[subTab].childNodes[0].src=subLinks[subTab].childNodes[0].src.substring(0,subLinks[subTab].childNodes[0].src.length-6)+"on.gif";
	}
		thisFlag=true	
   }
   if(navigator.appName=="Netscape"){
	   if(ths!=subLinks[0]){
		  if(subLinks[0].childNodes[0].src.indexOf("off.gif")!=-1){
			  subLinks[0].childNodes[0].src=subLinks[0].childNodes[0].src.substring(0,subLinks[0].childNodes[0].src.length-7)+"off.gif";
		  }
	   }
   }
   parentNodeLength=ths.parentNode.lang.length
   if(parentNodeLength>30){
	   frObj=document.getElementById('frameId')
	   frObj.className ="spacer95Percent"
   }else{
	   frObj=document.getElementById('frameId')
	   frObj.className ="spacer85Percent"
   }
	document.getElementById("maincontent").contentWindow.location.replace(ths.parentNode.lang);
	return;
   }
  }
}
function removeTabs() {
 var trNode=gtElmid("subTubs");
 for(var i=trNode.childNodes.length-1;i>=0;i--){
  delObj=trNode.removeChild(trNode.childNodes[i]);
  delete delObj;
  }
  return;
  with(top.DFrame.FRow5.document)
  {
   var fstNode=getElementsByName('lnk')[0]
   fstNode.style.fontWeight='normal';
   var prnt=fstNode.parentNode;
   limit=0;
   for (var i = prnt.childNodes.length-1; i > limit; i--) {
	delObj=prnt.removeChild(prnt.childNodes[i]);
	delete delObj;
	}
  }
}
function addTabs(arrName,arrLink,prefix,SubTree) {
 var str;
 var trNode=gtElmid("subTubs");
 var tdNode=gtElmid("cloneTd");
 var cloneNode;
 var TabName="";
 cloneNode=tdNode.cloneNode(false);
 str=" ";
 cloneNode.innerHTML=str;
 trNode.appendChild(cloneNode);
 for(var i = 0; i < arrName.length; i++)
 { if(i==0){
	cloneNode=tdNode.cloneNode(false);
	TabName=arrName[i];
	str="<td class='navCell'><a href='javascript:void(0)' name='subLink' href='#' onmouseover=OverTab(this,2); onmouseout=OutTab(this,2); onclick=setPage(this);PaintSubTree('"+SubTree[i]+"')><img src='../App_themes/NG/Images/"+TabName+"_on.gif' border=0 title=" + TabName + "></a>";
	if (i!=arrName.length-1){
	 cloneNode.innerHTML=str + "<img src='../App_themes/NG/Images/blue_nav_horizontal_divider.gif' vspace='2' align='top' style='margin-left:8px;'>";
	 }
	else{cloneNode.innerHTML=str;}
	cloneNode.lang=prefix + arrLink[i];
	trNode.appendChild(cloneNode);
	}
	else {
	 cloneNode=tdNode.cloneNode(false);
	 TabName=arrName[i];
	str="<td class='navCell'><a href='javascript:void(0)' name='subLink' href='#' onmouseover=OverTab(this,2); onmouseout=OutTab(this,2); onclick=setPage(this);PaintSubTree('"+SubTree[i]+"')><img src='../App_themes/NG/Images/"+TabName+"_off.gif' border=0 title=" + TabName + "></a>";
	 if (i!=arrName.length-1){
	  cloneNode.innerHTML=str + "<img src='../App_themes/NG/Images/blue_nav_horizontal_divider.gif' vspace='2' align='top' style='margin-left:8px;'>";}
	  else{cloneNode.innerHTML=str;}
	  cloneNode.lang=prefix + arrLink[i];
	  trNode.appendChild(cloneNode);
	  }
	 }
    return;
    var tdRight=top.DFrame.FRow5.document.getElementById('lnk');var newMid;
    var owner=tdRight.parentNode;
    for (var i = 1; i < arrName.length; i++)
   { newMid  = top.DFrame.FRow5.document.getElementById('lnk').cloneNode(true);
      newMid.innerHTML= arrName[i] +" &nbsp;|&nbsp;";
      newMid.lang=prefix + arrLink[i];
      owner.appendChild(newMid);
    }
    fstLink=top.DFrame.FRow5.document.getElementsByName('lnk')[0];
    fstLink.innerHTML="&nbsp;|&nbsp; " + arrName[0] + " &nbsp;|&nbsp;";
    fstLink.lang=prefix+arrLink[0];
    fstLink.style.fontWeight='bold';
    subTab=0;
}
function space() {
	return "";
}
var BackLink="";
function SetLinkPage(Loc,ths) {
if(ths.parentNode.parentNode.parentNode!=null && (document.getElementsByName(ths.name)[0].id!='f1' && document.getElementsByName(ths.name)[0].id!='f2' && document.getElementsByName(ths.name)[0].id!='f3') ){
	tby=ths.parentNode.parentNode.parentNode
	for(i=0;i<tby.childNodes.length;i++){
		if(tby.childNodes[i].id!=null){
			tby.childNodes[i].id='blueLink11'
			tby.childNodes[i].childNodes[1].className='font11Bold'
		}
		imgleft=tby.childNodes[i].childNodes[0].childNodes[0]
		if(imgleft.src!=undefined){
		ln=imgleft.src.length-8
			temp=imgleft.src.substring(ln,imgleft.src.length)
		if(temp=="down.gif"){
			imgleft.src=imgleft.src.substring(0,imgleft.src.length-8)+"right.gif";
			}
		}
		isThirdFourth=false
		for(k=0;k<tby.childNodes.length;k++){
			if(tby.childNodes[k].childNodes[1].firstChild!=undefined && tby.childNodes[k].childNodes[1].firstChild.id=='f1' || tby.childNodes[k].childNodes[1].firstChild.id=='f2'|| tby.childNodes[k].childNodes[1].firstChild.id=='f3'){
				isThirdFourth=true
			}	
		}
		if(isThirdFourth){
		if(tby.childNodes[i].childNodes[1].firstChild.id!='f1' && tby.childNodes[i].childNodes[1].firstChild.id !='f2' && tby.childNodes[i].childNodes[1].firstChild.id!='f3' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4'){
			tby.childNodes[i].style.display='none'
		}
		}
	}
	BackLink=ths;
	ths.parentNode.parentNode.id="orangeLink11"
	ths.parentNode.className="font11Bold"
	imgsr=ths.parentNode.parentNode.childNodes[0].childNodes[0]
	ln=imgsr.src.length-9
	temp=imgsr.src.substring(ln,imgsr.src.length)
		if(temp=="right.gif"){
	imgsr.src=imgsr.src.substring(0,imgsr.src.length-9)+"down.gif";
	}
	}
	if(document.getElementsByName(ths.name)[0].id=='f1'){
			secFlag=false
		tbdy=document.getElementsByName(ths.name)[0].parentNode.parentNode.parentNode
		for(i=0;i<tbdy.childNodes.length;i++){
			tbdy.childNodes[i].id='blueLink11'
			if(i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f3' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4'){
				tbdy.childNodes[i].className='blueLink'
				tbdy.childNodes[i].childNodes[1].className='blue11'
			}
			if (tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f2')
			{
				secFlag=true
			}
			if(secFlag && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f3' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4'){	
				tbdy.childNodes[i].style.display='none'
			}
			if(tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f2' || tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f3' || tbdy.childNodes[i].childNodes[1].childNodes[0].id=='lvl4'){
			changeArrow(tbdy,i)
			}
				imgsr=document.getElementsByName(ths.name)[0].parentNode.parentNode.childNodes[0].childNodes[0]
				ln=imgsr.src.length-9
				temp=imgsr.src.substring(ln,imgsr.src.length)
					if(temp=="right.gif"){
						imgsr.src=imgsr.src.substring(0,imgsr.src.length-9)+"down.gif";
			}

		}
	ths.parentNode.parentNode.id='orangeLink11'
	ths.parentNode.parentNode.className='orangeLink'
	ths.parentNode.className='orange11'
	document.getElementsByName(ths.name)[0].parentNode.parentNode.id='orangeLink11'
	BackLink=ths;
	}
	else if(document.getElementsByName(ths.name)[0].id=='f2'){
			tbdy=document.getElementsByName(ths.name)[0].parentNode.parentNode.parentNode
			secFlag=false
		for(i=0;i<tbdy.childNodes.length;i++){
			tbdy.childNodes[i].id='blueLink11'
			if(i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f3' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4'){
				tbdy.childNodes[i].className='blueLink'
				tbdy.childNodes[i].childNodes[1].className='blue11'
			}
			if(tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f2'){
			secFlag=true	
			tbdy.childNodes[i].id='orangeLink11'
			imgsr=tbdy.childNodes[i].childNodes[0].childNodes[0]
				ln=imgsr.src.length-9
				temp=imgsr.src.substring(ln,imgsr.src.length)
					if(temp=="right.gif"){
						imgsr.src=imgsr.src.substring(0,imgsr.src.length-9)+"down.gif";
				}
			}
		if(i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && !secFlag && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='lvl4' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f3'){
				tbdy.childNodes[i].style.display='none'
		}
		if(tbdy.childNodes[i].childNodes[1].childNodes[1]!=null && tbdy.childNodes[i].childNodes[1].childNodes[1].id=='lvl3'){
			tbdy.childNodes[i].style.display='none'
		}
			if(i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4'){
				tbdy.childNodes[i].className='bluelink'
			}
			if(tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f1' || tbdy.childNodes[i].childNodes[1].childNodes[0].id=='f3' || tbdy.childNodes[i].childNodes[1].childNodes[0].id=='lvl4'){
				changeArrow(tbdy,i)
			}	
		}
		
		ths.parentNode.parentNode.id='orangeLink11'
		ths.parentNode.className='orange11'
		}	
else if(document.getElementsByName(ths.name)[0].id=='f3'){
			tbdy=document.getElementsByName(ths.name)[0].parentNode.parentNode.parentNode
			secFlag=false
		for(i=0;i<tbdy.childNodes.length;i++){
			tbdy.childNodes[i].id='blueLink11'
			if(i!=0 && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[i].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f1' && tbdy.childNodes[i].childNodes[1].firstChild.id!='lvl4'){
				tbdy.childNodes[i].className='blueLink'
				tbdy.childNodes[i].childNodes[1].className='blue11'
			}
			if(tbdy.childNodes[i].childNodes[1].firstChild.id=='f3'){
			secFlag=true	
			tbdy.childNodes[i].id='orangeLink11'
			imgsr=tbdy.childNodes[i].childNodes[0].firstChild	
				ln=imgsr.src.length-9
				temp=imgsr.src.substring(ln,imgsr.src.length)
					if(temp=="right.gif"){
						imgsr.src=imgsr.src.substring(0,imgsr.src.length-9)+"down.gif";
				}
			}
			if(i!=0 && tbdy.childNodes[0].childNodes[1].firstChild.id=='f1' && !secFlag && tbdy.childNodes[i].childNodes[1].firstChild.id!='f2'){
				tbdy.childNodes[i].style.display='none'
			}
			if(i!=0 && tbdy.childNodes[i].childNodes[1].firstChild.id!='f1' && tbdy.childNodes[i].childNodes[1].firstChild.id!='f2' ){
				tbdy.childNodes[i].className='bluelink'
			}
			if(tbdy.childNodes[i].childNodes[1].firstChild.id=='f1' || tbdy.childNodes[i].childNodes[1].firstChild.id=='f2' || tbdy.childNodes[i].childNodes[1].firstChild.id=='lvl4'){
				changeArrow(tbdy,i)
			}
		}		
		ths.parentNode.parentNode.id='orangeLink11'
		ths.parentNode.className='orange11'
	}
	var temp = new Array();
	paramLoc='../'+Loc
	document.getElementById("maincontent").contentWindow.location.replace(paramLoc);
}
function changeArrow(tbdy,i){
	imgsr=tbdy.childNodes[i].childNodes[0].firstChild
	ln=imgsr.src.length-8
	temp=imgsr.src.substring(ln,imgsr.src.length)
	if(temp=="down.gif"){
	imgsr.src=imgsr.src.substring(0,imgsr.src.length-8)+"right.gif";
	}
}
function SetSubLinks(name) {
	if(navigator.appName.indexOf("Internet Explorer") != -1)
	showRow='inline'
	else
	showRow="table-row";
	var elmnt=document.getElementsByName(name);
for(var i=1;i<elmnt.length;i++)
   {
	if(elmnt[i].parentNode.parentNode.style.display=='inline' || elmnt[i].parentNode.parentNode.style.display=='table-row')
    elmnt[i].parentNode.parentNode.style.display='none';
    else {	
		elmnt[i].parentNode.parentNode.style.display=showRow;   
    }
    }
	if((BackLink.name!=elmnt.name)&&(elmnt[1].parentNode.parentNode.style.display=='inline' || elmnt[1].parentNode.parentNode.style.display=='table-row'))
     {
	  if(BackLink.parentNode!=null){
		  BackLink.parentNode.id="blueLink11";
		  lngth=BackLink.parentNode.parentNode.parentNode.childNodes.length
		  for(i=0; i<lngth; i++)
		  {
		   if(BackLink.name!=elmnt.name){
			BackLink.parentNode.parentNode.parentNode.childNodes[i].childNodes[1].className='font11bold'
			}
		  }
		  }
      }
if(elmnt[1].parentNode.parentNode.style.display=='inline' || elmnt[1].parentNode.parentNode.style.display=='table-row') {
	if(elmnt[1].parentNode.parentNode.parentNode!=null){
	tbdy=elmnt[1].parentNode.parentNode.parentNode
	isOranged=false
	orangeCount=0;
	for (k=0; k<tbdy.childNodes.length; k++)
	{
		if(tbdy.childNodes[k].id=='orangeLink11'){
		isOranged=true;
		orangeCount=orangeCount+1
		}
	}
	if(tbdy.childNodes[0].childNodes[1].childNodes[0].tagName=='A' && tbdy.childNodes[0].childNodes[1].childNodes[0].id!='f1' && tbdy.childNodes[0].childNodes[1].childNodes[0].id!='f2' && tbdy.childNodes[0].childNodes[1].childNodes[0].id!='f3' && !isOranged){
		tbdy.childNodes[0].childNodes[1].childNodes[0].onclick();
	}
	else{
		elmnt[1].onclick(); }
	}else{ elmnt[1].onclick(); }
   }
if(elmnt[1].parentNode.parentNode.style.display=='inline' || elmnt[1].parentNode.parentNode.style.display=='table-row') {
		elmnt[0].parentNode.className=elmnt[0].parentNode.className+" orangeLink";
		elmnt[0].parentNode.childNodes[0].src='../App_themes/NG/Images/arrow_orange_down.gif'
    }
else {
		elmnt[0].parentNode.id="blueLink";
		elmnt[0].parentNode.childNodes[0].src='../App_themes/NG/Images/arrow_orange_right.gif'
    }
}
function FrstLvl(lvlNum,Pname,lvlid)
{
	var str="<tr id='blueLinkBold11'><td align='left' valign='top' class='spacer10Percent leftNavArrowCell'><img src='../App_themes/NG/Images/arrow_orange_down.gif' height='6' width='6'/></td><td align='left' valign='top' class='spacer90Percent font11Bold'>";
     str+="<A name='"+lvlNum+"' onclick=SetSubLinks(this.name) href='javascript:void(0)' id='"+lvlid+"' class='pointer'><strong>"+ Pname + "</strong></A>";
     str+="</td></tr>";
     return str;
}
function SecLvl(lvlNum,Pname,Ppath,stu)
{
	var str="<tr style='display:"+stu+"' id='blueLinkBold11'><td align='left' valign='top' class='spacer10Percent leftNavArrowCellMultLine'><img src='../App_themes/NG/Images/arrow_orange_right.gif' height='6' width='6' /></td><td align=left valign=middle class='spacer90Percent font11Bold'>";
	str+="<A name='"+lvlNum+"' onclick=SetLinkPage('"+Ppath+"',this) href='javascript:void(0)' id='"+lvlNum+"'>" + Pname + "</A></td></tr>";
return str;
}
function FrthLvl(lvlNum,Pname,Ppath,stu)
{
	var str="<tr style='display:"+stu+"' id='blueLink11'><td align='left' valign='top'>&nbsp;</td><td align='left' valign='top' class='orange11' style='text-indent:-10px; padding-left:10px;'>&raquo; ";
	str+="<A name='"+lvlNum+"' onclick=SetLinkPage('"+Ppath+"',this) href='javascript:void(0)' id='"+lvlNum+"'>" + Pname + "</A></td></tr>";
	return str; 
}
function PaintSubTree(cap) {
if(navigator.appName.indexOf("Internet Explorer") != -1)
showRow='inline'
else
 showRow="table-row";
 document.getElementById('Tree').style.display=showRow;
 var str="<table cellpadding=0 cellspacing=0 border=0 id=cnt>";
 switch (cap){
  case "1":str="";
   document.getElementById('Tree').style.display='none';
   break;
//System// 
 case "Management":
  str+=SecLvl("lvl4","System Information","system/management/sysInfo.html",showRow);
  str+=SecLvl("lvl4","Switch Statistics","system/management/devicestatistics.html",showRow);
  str+=SecLvl("lvl4","System Resource","system/management/cpuinfo.html",showRow);
  str+=SecLvl("lvl4","IP Configuration","system/management/ipConfiguration.html",showRow); 
//str+=SecLvl("lvl4","Slot Configuration","system/management/slotConfiguration.html",showRow);
  str+=SecLvl("lvl4","Slot Information","system/management/slotInformation.html",showRow);
  str+=FrstLvl("lvl1","Time","f1"); 
  str+=FrthLvl("lvl1","SNTP Global Configuration","system/management/sntpGlobalConfiguration.html","none"); 
  str+=FrthLvl("lvl1","SNTP Server Configuration","system/management/sntpServerConfiguration.html","none");
  str+=FrstLvl("lvl2","DNS","f2"); 
  str+=FrthLvl("lvl2","DNS Configuration","system/management/dnsConfiguration.html","none"); 
  str+=FrthLvl("lvl2","Host Configuration","system/management/dnshostConfiguration.html","none");
  break;
  case "Services":
    str+=FrstLvl("lvl1","DHCP Server","f1");
    str+=FrthLvl("lvl1","DHCP Server Configuration","system/services/dhcpServerConfiguration.html","none");
    str+=FrthLvl("lvl1","DHCP Pool Configuration","system/services/dhcpPoolConfiguration.html","none");
    str+=FrthLvl("lvl1","DHCP Pool Options","system/services/dhcpPoolOptions.html","none");
    str+=FrthLvl("lvl1","DHCP Server Statistics","system/services/dhcpServerStatistics.html","none");
    str+=FrthLvl("lvl1","DHCP Bindings Information","system/services/dhcpBindingsInformation.html","none");
    str+=FrthLvl("lvl1","DHCP Conflicts Information","system/services/dhcpConflictsInformation.html","none");
    str+=SecLvl("lvl4","DHCP Relay","system/services/dhcpRelay.html",showRow);
	str+=SecLvl("lvl4","UDP Relay","system/services/udpRelay.html",showRow);
   break;
 case "Ports":
  str+=SecLvl("lvl1","Port Configuration","switching/ports/portsConfiguration.html",showRow);
  str+=SecLvl("lvl1","Port Description","switching/ports/portsDescription.html")
  break;
  case "Stacking":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","Stack Configuration","system/stacking/advStackConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","Stack Configuration","system/stacking/advStackConfiguration.html","none");
  str+=FrthLvl("lvl2","Stack Port Configuration","system/stacking/stackManagement.html","none");
  str+=FrthLvl("lvl2","Stack Port Diagnostics","system/stacking/stackPortDiagnostics.html","none");
  break;
 case "LAG":
//  str+=FrstLvl("lvl1","Basic","f1");
//  str+=FrthLvl("lvl1","LAG Configuration","switching/lag/lagConfiguration.html","none");
//  str+=FrthLvl("lvl1","LAG Membership","switching/lag/basicLAGMembership.html","none");
//  str+=FrstLvl("lvl2","Advanced","f2");
  str+=SecLvl("lvl1","LAG Configuration","switching/lag/lagConfiguration.html",showRow);
  str+=SecLvl("lvl1","LAG Membership","switching/lag/basicLAGMembership.html");
//str+=FrthLvl("lvl2","LACP Configuration","system/lag/lacpConfiguration.html","none");
//  str+=FrthLvl("lvl2","LACP Port Configuration","switching/lag/lacpInterfaceConfiguration.html","none");
  break;
  case "PoE":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","PoE Configuration","system/poe/poeConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","PoE Configuration","system/poe/poeConfiguration.html","none");
  str+=FrthLvl("lvl2","PoE Port Configuration","system/poe/poeInterfaceConfiguration.html","none");
  break;
 case "SNMP":
  str+=FrstLvl("lvl1","SNMP V1/V2","f1");
  str+=FrthLvl("lvl1","Community Configuration","system/snmp/communityConfigurationBasic.html","none");
  str+=FrthLvl("lvl1","Trap Configuration","system/snmp/trapConfiguration.html","none");
  str+=FrthLvl("lvl1","Trap Flags","system/snmp/trapFlags.html","none");
  str+=FrthLvl("lvl1","Supported MIBS","system/snmp/supportedMibs.html","none");
  str+=FrstLvl("lvl2","SNMP V3","f2");
  str+=FrthLvl("lvl2","User Configuration","system/snmp/userConfiguration.html","none");
  break;
//Switching// 
 case "VLAN":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","VLAN Configuration","switching/vlan/vlanConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","VLAN Configuration","switching/vlan/vlanConfiguration.html","none");
  str+=FrthLvl("lvl2","VLAN Membership","switching/vlan/membership.html","none");
//  str+=FrthLvl("lvl2","VLAN Membership II","switching/vlan/membershipII.html","none");
//  str+=FrthLvl("lvl2","VLAN Membership III","switching/vlan/membershipIII.html","none");
//  str+=FrthLvl("lvl2","VLAN per Port","switching/vlan/portVlanConfiguration.html","none");
  str+=FrthLvl("lvl2","VLAN Status","switching/vlan/vlanStatus.html","none");
  str+=FrthLvl("lvl2","MAC Based VLAN","switching/vlan/macBasedConfiguration.html","none");
  str+=FrthLvl("lvl2","Port PVID Configuration","switching/vlan/portPvidConfiguration.html","none");
  str+=FrthLvl("lvl2","Port DVlan Configuration","switching/vlan/dvlanConfiguration.html","none");

  str+=FrthLvl("lvl2","Protocol Based VLAN Group Configuration","switching/vlan/protocolBasedConfiguration.html","none");
  str+=FrthLvl("lvl2","Protocol Based VLAN Group Membership","switching/vlan/protocolBasedGroupMembership.html","none");
  str+=FrthLvl("lvl2","GARP Switch Configuration","switching/vlan/garpSwitchConfiguration.html","none");
  str+=FrthLvl("lvl2","GARP Port Configuration","switching/vlan/garpPortConfiguration.html","none");
  break;
 case "STP":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","STP Configuration","switching/spanningTree/stpConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","STP Configuration","switching/spanningTree/stpConfiguration.html","none");
  str+=FrthLvl("lvl2","CST Configuration","switching/spanningTree/cstConfiguration.html","none");
  str+=FrthLvl("lvl2","CST Port Configuration","switching/spanningTree/cstPortConfiguration.html","none");
  str+=FrthLvl("lvl2","CST Port Status","switching/spanningTree/cstPortStatus.html","none");
  str+=FrthLvl("lvl2","MST Configuration","switching/spanningTree/mstConfiguration.html","none");
  str+=FrthLvl("lvl2","MST Port Status","switching/spanningTree/mstPortConfiguration.html","none");
  str+=FrthLvl("lvl2","STP Satistics","switching/spanningTree/stpStatistics.html","none");
  break;
 case "Multicast":
  str+=SecLvl("lvl1","IGMP Snooping Configuration","switching/multicast/igmpSnoopingConfiguration.html",showRow);
  str+=SecLvl("lvl1","IGMP Snooping Interface Configuration","switching/multicast/igmpSnoopingInterfaceConfiguration.html",showRow);
  str+=SecLvl("lvl1","IGMP Snooping Table","switching/multicast/igmpSnoopingTable.html",showRow);
  str+=SecLvl("lvl1","MFDB Table","switching/multicast/mfdbTable.html",showRow);
  str+=SecLvl("lvl1","GMRP Table","switching/multicast/gmrpTable.html",showRow);
  str+=SecLvl("lvl1","MFDB Statistics","switching/multicast/mfdbStatistics.html",showRow);
  str+=SecLvl("lvl1","IGMP VLAN Configuration","switching/multicast/igmpVlanConfiguration.html",showRow);
  str+=SecLvl("lvl1","Multicast Router Configuration","switching/multicast/multicastRouterConfiguration.html",showRow);
  str+=SecLvl("lvl1","Multicast Router VLAN Configuration","switching/multicast/multicastVlanConfiguration.html",showRow);
  break;
 case "AddressTable":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","Address Table","switching/addressTable/basicAddressTable.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","Dynamic Addresses","switching/addressTable/dynamicAddresses.html","none");
  str+=FrthLvl("lvl2","Address Table","switching/addressTable/basicAddressTable.html","none");
  break;

//Routing//
case "RoutingTable":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","Route Configuration","routing/routeTable/advancedRouteConfiguration.html","none");
//  str+=FrthLvl("lvl1","Basic Route Table","routing/routeTable/basicRouteTable.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","Route Configuration","routing/routeTable/advancedRouteConfiguration.html","none");
//  str+=FrthLvl("lvl2","Advanced Route Table","routing/routeTable/advancedRouteTable.html","none");
  str+=FrthLvl("lvl2","Route Preferences","routing/routeTable/routePreferences.html","none");

  break;
case "IP":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","IP Configuration","routing/ip/ipConfiguration.html","none");
  str+=FrthLvl("lvl1","Statistics","routing/ip/statistics.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","IP Configuration","routing/ip/ipConfiguration.html","none");
  str+=FrthLvl("lvl2","Statistics","routing/ip/statistics.html","none");
  str+=FrthLvl("lvl2","IP Interface Configuration","routing/ip/advIpInterfaceConfiguration.html","none");
  str+=FrthLvl("lvl2","Secondary IP","routing/ip/secIpConfiguration.html","none");
  break;
case "VLANROUTING":
  str+=SecLvl("lvl1","VLAN Routing Wizard","routing/vlan/vlanRoutingWizard.html",showRow);
  str+=SecLvl("lvl1","VLAN Routing","routing/vlan/vlanRoutingCfg.html",showRow);
  break;
case "ARP":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","ARP Cache","routing/arp/arpCache.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","ARP Cache","routing/arp/arpStaticCache.html","none");
  str+=FrthLvl("lvl2","ARP Table Configuration","routing/arp/advArpTableConfiguration.html","none");
  break;
case "RIP":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","RIP Configuration","routing/rip/ripConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","RIP Configuration","routing/rip/advRipConfiguration.html","none");
  str+=FrthLvl("lvl2","Interface Configuration","routing/rip/interfaceConfiguration.html","none");
  str+=FrthLvl("lvl2","Route Redistribution","routing/rip/routeRedistribution.html","none");
  break;
case "OSPF":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","OSPF Configuration","routing/ospf/basicOspfConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","OSPF Configuration","routing/ospf/advancedOspfConfiguration.html","none");
  str+=FrthLvl("lvl2","Common Area Configuration","routing/ospf/advancedCommonAreaConfiguration.html","none");
  str+=FrthLvl("lvl2","Stub Area Configuration","routing/ospf/advancedStubAreaConfiguration.html","none");
  str+=FrthLvl("lvl2","NSSA Area Configuration","routing/ospf/advancedNSSAAreaConfiguration.html","none");
  str+=FrthLvl("lvl2","Area Range Configuration","routing/ospf/areaRangeConfiguration.html","none");
  str+=FrthLvl("lvl2","Interface Configuration","routing/ospf/interfaceConfiguration.html","none");
  str+=FrthLvl("lvl2","Neighbor Table","routing/ospf/neighborTable.html","none");
//  str+=FrthLvl("lvl2","Neighbor Configuration","routing/ospf/neighborConfiguration.html","none");
  str+=FrthLvl("lvl2","Link State Database","routing/ospf/linkStateDatabase.html","none");
  str+=FrthLvl("lvl2","Virtual Link Configuration","routing/ospf/virtualLinkConfiguration.html","none");
  str+=FrthLvl("lvl2","Route Redistribution","routing/ospf/routeRedistribution.html","none");
  break;
case "VRRP":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","VRRP Configuration","routing/vrrp/basicVrrpConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","VRRP Configuration","routing/vrrp/advVrrpConfiguration.html","none");
  str+=FrthLvl("lvl2","Statistics","routing/vrrp/statistics.html","none");
  break;
case "RouterDiscovery":
 str+=SecLvl("lvl1","Router Discovery Configuration","routing/routerDiscovery/routerDiscovery.html",showRow);
  break;
//QoS// 
 case "Qos1":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","CoS Configuration","qos/cos/basicQosConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","CoS Configuration","qos/cos/basicQosConfiguration.html","none");
  str+=FrthLvl("lvl2","802.1p Queue Mapping","qos/cos/802QueueMapping.html","none");
  str+=FrthLvl("lvl2","IP Precedence Queue Mapping","qos/cos/PrecedenceQueueMapping.html","none");
  str+=FrthLvl("lvl2","IP DHCP Queue Mapping","qos/cos/DhcpQueueMapping.html","none");
  str+=FrthLvl("lvl2","CoS Interface Configuartion","qos/cos/advCosInterfaceConfiguration.html","none");
  str+=FrthLvl("lvl2","Interface Queue Configuration","qos/cos/interfaceQueueConfiguration.html","none");
break;
case "Diffserv1":
  str+=SecLvl("lvl4","Diffserv Wizard","qos/diffserv/diffServWizard.html",showRow);
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","DiffServ Configuration","qos/diffserv/basicDiffServConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","DiffServ Configuration","qos/diffserv/basicDiffServConfiguration.html","none");
  str+=FrthLvl("lvl2","Class Configuration","qos/diffserv/className.html","none");
  str+=FrthLvl("lvl2","Policy Configuration","qos/diffserv/policyConfiguration.html","none");
  str+=FrthLvl("lvl2","Service Interface Configuration","qos/diffserv/serviceConfig.html","none");
  str+=FrthLvl("lvl2","Service Statistics","qos/diffserv/serviceStatistics.html","none");
   break;
//Security// 
 case "Mgt.Security":
  str+=FrstLvl("lvl1","User Configuration","f1");
  str+=FrthLvl("lvl1","User Management","security/mgtSecurity/userManagement.html","none");
  str+=FrstLvl("lvl2","RADIUS","f2");
  str+=FrthLvl("lvl2","Radius Configuration","security/mgtSecurity/radiusConfiguration.html","none");
  str+=FrthLvl("lvl2","Server Configuration","security/mgtSecurity/serverConfiguration.html","none");
  str+=FrthLvl("lvl2","Accounting Server Configuration","security/mgtSecurity/accountingServerConfiguration.html","none");
  str+=FrstLvl("lvl3","Login","f3");
  str+=FrthLvl("lvl3","Authentication List","security/mgtSecurity/authenticationList.html","none");
  str+=FrthLvl("lvl3","Login Sessions","security/mgtSecurity/loginSessions.html","none");
  break;
 case "Access":
  str+=FrstLvl("lvl1","HTTP","f1");
  str+=FrthLvl("lvl1","HTTP Configuration","security/access/httpConfiguration.html","none");
  str+=FrstLvl("lvl2","HTTPS","f2");
  str+=FrthLvl("lvl2","HTTPS Configuration","security/access/httpsConfiguration.html","none");
  str+=FrthLvl("lvl2","Certificate Download","security/access/downloadCertificate.html","none");
  str+=FrstLvl("lvl3","SSH","f3");
  str+=FrthLvl("lvl3","SSH Configuration","security/access/sshConfiguration.html","none");
  str+=FrthLvl("lvl3","Host Keys Download","security/access/downloadHostKeys.html","none");
  str+=SecLvl("lvl4","Telnet","security/access/telnet.html",showRow);
  str+=SecLvl("lvl4","Console Port","security/access/consolePort.html",showRow);
  break;
 case "portAuthentication":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","802.1X Configuration","security/portAuthentication/802.1XConfiguration.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","802.1X Configuration","security/portAuthentication/802.1XConfiguration.html","none");
  str+=FrthLvl("lvl2","Port Authentication","security/portAuthentication/portAuthentication.html","none");
  str+=FrthLvl("lvl2","Port Summary","security/portAuthentication/portSummary.html","none"); 
  break;
 case "Traffic_Control":
  str+=FrstLvl("lvl1","MAC Filter","f1");
  str+=FrthLvl("lvl1","MAC Filter","security/trafficControl/portSecurityMacFilter.html","none");
  str+=FrthLvl("lvl1","MAC Filter Summary","security/trafficControl/portSecurityMacFilterSummary.html","none");
  str+=SecLvl("lvl4","Storm Control","security/trafficControl/stormControl.html",showRow);
  str+=FrstLvl("lvl2","Port Security","f2");
  str+=FrthLvl("lvl2","Port Administration","security/trafficControl/portSecurity.html","none");
  str+=FrthLvl("lvl2","Interface Configuration","security/trafficControl/portSecurityInterface.html","none");
  str+=FrthLvl("lvl2","Dynamic MAC Address","security/trafficControl/portSecurityConversion.html","none");
  str+=FrthLvl("lvl2","Static MAC Address","security/trafficControl/portSecurityStaticAddress.html","none");
//  str+=FrthLvl("lvl2","Violation MAC Address","security/trafficControl/portSecurityViolation.html","none");
  str+=SecLvl("lvl4","Protected Port","security/trafficControl/portSecurityProtectedPort.html",showRow);
  break;
 case "ACL":
  str+=FrstLvl("lvl1","Basic","f1");
  str+=FrthLvl("lvl1","MAC ACL","security/acls/macAcl.html","none");
  str+=FrthLvl("lvl1","MAC Rules","security/acls/macRules.html","none");
  str+=FrthLvl("lvl1","MAC Binding Configuration","security/acls/macBindingConfig.html","none");
  str+=FrthLvl("lvl1","Binding Table","security/acls/bindingTable.html","none");
  str+=FrstLvl("lvl2","Advanced","f2");
  str+=FrthLvl("lvl2","IP ACL","security/acls/ipacl.html","none");
  str+=FrthLvl("lvl2","IP Rules","security/acls/ipRules-std.html","none");
  str+=FrthLvl("lvl2","IP Extend Rules","security/acls/ipRules-ext.html","none");
  str+=FrthLvl("lvl2","IP Binding Configuartion","security/acls/IPBindingConfig.html","none");
  str+=FrthLvl("lvl2","Binding Table","security/acls/IPBindingTable.html","none");
   break;
//Monitoring// 
 case "Ports3":
  str+=SecLvl("lvl1","Port Statistics","monitoring/port/portStatistics.html",showRow);
  str+=SecLvl("lvl1","Port Detailed Statistics","monitoring/port/portDetailedStatistics.html",showRow);
  str+=SecLvl("lvl1","EAP Statistics","monitoring/port/eapStatistics.html",showRow);    
  break;
 case "Log":
  str+=SecLvl("lvl1","Buffered Logs","monitoring/logs/bufferedLogs.html",showRow);
  str+=SecLvl("lvl1","Command Log Configuration","monitoring/logs/commandLogConfiguration.html",showRow);
  str+=SecLvl("lvl1","Console Log Configuration","monitoring/logs/consoleLogConfiguration.html",showRow);
  str+=SecLvl("lvl1","Sys Log Configuration","monitoring/logs/syslogConfiguration.html",showRow);
  str+=SecLvl("lvl1","Trap Logs","monitoring/logs/trapLogs.html",showRow);
  str+=SecLvl("lvl1","Event Logs","monitoring/logs/eventLogs.html",showRow);
  break;
 case "Mirroring":
  str+=SecLvl("lvl1","Port Mirroring","monitoring/mirroring/portMirroring.html",showRow);
  break;
//Maintenance// 
 case "Save_Config":
  str+=SecLvl("lvl1","Save Configuration","maintenance/saveConfig/saveConfig.html",showRow);
  break;
 case "Reset":
  str+=SecLvl("lvl1","Device Reboot","maintenance/reset/deviceReboot.html",showRow);
  str+=SecLvl("lvl1","Factory Default","maintenance/reset/factoryDefault.html",showRow);
  str+=SecLvl("lvl1","Password Reset","maintenance/reset/passReset.html",showRow);
  str+=SecLvl("lvl1","Configuration Reset","maintenance/reset/configReset.html",showRow);
  break;
 case "Upload":
  str+=SecLvl("lvl1","File Upload","maintenance/upload/fileUpload.html",showRow);
  break;
 case "Download":
  str+=SecLvl("lvl1","File Download","maintenance/download/fileDownload.html",showRow);
  str+=SecLvl("lvl1","HTTP File Download","maintenance/download/httpFileDownload.html",showRow);
  break;
 case  "Filemanagement":
 str+=SecLvl("lvl1","Copy","maintenance/fileManagement/copy.html",showRow);
 str+=SecLvl("lvl1","Script File","maintenance/fileManagement/scriptFile.html",showRow);
  break;
 case "Troubleshooting":
  str+=SecLvl("lvl1","Ping","maintenance/troubleshooting/ping.html",showRow);
 str+=SecLvl("lvl1","Traceroute","maintenance/troubleshooting/traceroute.html",showRow);
 break;
 case "OnlineHelp":
   str+=SecLvl("lvl1","Support","help/support.html",showRow);
  str+=SecLvl("lvl1","User Guide","help/userGuide.html",showRow);
  break;
}
 if(str!="") str+="</table>";
   document.getElementById('TreeFrame').innerHTML=str;
  BackLink="";
  if(document.getElementById('cnt')!=null)
  cntnt=document.getElementById('cnt').rows.length;
  if((str!="") && (cntnt!=0)) {
   document.getElementsByName('lvl1')[0].onclick(); }
}
function drawHeadsTab(first)
{
  var headTabs=new Array("System","Switching","Routing","QoS","Security","Monitoring","Maintenance","Help","Sitemap");
document.write("<TD align='center' width=20px>&nbsp;</td>");
 for(var i=0;i<headTabs.length;i++)
  {
	document.write("<TD class='navTopCell'><A name='lnk' onclick=setTabset(this); onmouseover=OverTab(this,1); onmouseout=OutTab(this,1); href='javascript:void(0)'><img src='../App_themes/NG/Images/tab_" + headTabs[i] + "_off.gif' border=0></A></TD>" );}
 if(first) LastTab=document.getElementById("tabs").childNodes[tab].style;
}
function drawHeadsTabs(second)
{
  var headTabss=new Array("login","Help");
 for(var i=0;i<headTabss.length;i++)
  {	
	if(i==0) { pgclk="#"; pgurl="../login.html"; }
	else { pgclk="setTabset(this)"; pgurl="javascript:void(0)";}
	document.write("<TD class='navTopCell'><A name='lnk' onclick=\""+pgclk+"\"; onmouseover=OverTab(this,1); onmouseout=OutTab(this,1); href=\""+pgurl+"\"><img src='../App_themes/NG/Images/tab_" + headTabss[i] + "_off.gif' border=0></A></TD>" ); }
 if(second) LastTab=document.getElementById("tabss").childNodes[tab].style;
}
function Loading(caption,part) { 
 var currName="";var currLink="";var prefix="";var SubTree="";
 switch (caption){
  case "System" :prefix="../system/";
   currName+=space()+"Management"+space()+"~";currLink+="~";SubTree+="Management~";
   currName+=space()+"Deviceview"+space()+"~";currLink+="deviceView/deviceview.html~";SubTree+="1~";
   currName+=space()+"Services"+space()+"~";currLink+=" ~ ";SubTree+="Services~";
   currName+=space()+"Stacking"+space()+"~";currLink+=" ~ ";SubTree+="Stacking~";
   currName+=space()+"PoE"+space()+"~";currLink+=" ~ ";SubTree+="PoE~";
   currName+=space()+"SNMP"+space()+"";currLink+="~";SubTree+="SNMP";
   break;
  case "QoS" :prefix="../qos/";
   currName+=space()+"CoS"+space()+"~";currLink+="~";SubTree+="Qos1~";
   currName+=space()+"Diffserv"+space()+"";currLink+="";SubTree+="Diffserv1";
   break;  
  case "Switching" :prefix="../Switching/";
   currName+=space()+"VLAN"+space()+"~";currLink+=" ~ ";SubTree+="VLAN~";
   currName+=space()+"STP"+space()+"~";currLink+=" ~ ";SubTree+="STP~";
   currName+=space()+"multicast"+space()+"~";currLink+="~";SubTree+="Multicast~";
   currName+=space()+"AddressTable"+space()+"~";currLink+="~";SubTree+="AddressTable~";
   currName+=space()+"Ports"+space()+"~";currLink+=" ~ ";SubTree+="Ports~";
   currName+=space()+"LAG"+space()+"";currLink+="";SubTree+="LAG";
   break;
  case "Routing" :prefix="../Routing/";
   currName+=space()+"RoutingTable"+space()+"~";currLink+=" ~ ";SubTree+="RoutingTable~";
   currName+=space()+"IP"+space()+"~";currLink+=" ~ ";SubTree+="IP~";
   currName+=space()+"VLAN"+space()+"~";currLink+=" ~ ";SubTree+="VLANROUTING~";
   currName+=space()+"ARP"+space()+"~";currLink+="~";SubTree+="ARP~";
   currName+=space()+"RIP"+space()+"~";currLink+="~";SubTree+="RIP~";
   currName+=space()+"OSPF"+space()+"~";currLink+="~";SubTree+="OSPF~";
   currName+=space()+"RouterDiscovery"+space()+"~";currLink+="~";SubTree+="RouterDiscovery~";
    currName+=space()+"VRRP"+space()+"";currLink+="~";SubTree+="VRRP";
   break;
  case "Security" :prefix="../security/";
   currName+=space()+"managementsecurity"+space()+"~";currLink+= " ~ ";SubTree+="Mgt.Security~";
   currName+=space()+"Access"+space()+"~";currLink+= "~";SubTree+="Access~";
   currName+=space()+"PortAuthentication"+space()+"~";currLink+= "~";SubTree+="portAuthentication~";
   currName+=space()+"trafficcontrol"+space()+"~";currLink+="~";SubTree+="Traffic_Control~";
   currName+=space()+"ACL"+space()+"";currLink+=" ";SubTree+="ACL";
    break;
  case "Monitoring" :prefix="../monitoring/";
   currName+=space()+"Ports"+space()+"~";currLink+= " ~";SubTree+="Ports3~";
   currName+=space()+"Log"+space()+"~";currLink+= " ~";SubTree+="Log~";
   currName+=space()+"Mirroring"+space()+"";currLink+= "";SubTree+="Mirroring";
   break;
  case "Maintenance" :prefix="../maintenance/";
   currName+=space()+"saveconfig"+space()+"~";currLink+=" ~ ";SubTree+="Save_Config~";
   currName+=space()+"Reset"+space()+"~"; currLink+=" ~";SubTree+="Reset~";
   currName+=space()+"Upload"+space()+"~"; currLink+=" ~ ";SubTree+="Upload~";
   currName+=space()+"Download"+space()+"~"; currLink+=" ~ ";SubTree+="Download~";
   currName+=space()+"Filemanagement"+space()+"~"; currLink+=" ~ ";SubTree+="Filemanagement~";
   currName+=space()+"Troubleshooting"+space()+"";currLink+="";SubTree+="Troubleshooting";
   break;
  case "Help" :prefix="../Help/";
    currName+=space()+"Onlinehelp"+space()+"";currLink+="";SubTree+="OnlineHelp";
   break;
   case "login" :prefix="../login/";
    currLink+="../login/contentLogin.html";
	break;
  case "Sitemap" :prefix="../sitemap/";
     currName+=space()+"Sitemap"+space()+"";currLink+="../sitemap/siteindex.html";SubTree+="1";
	 break;
       } 
  addTabs(currName.split("~"),currLink.split("~"),prefix,SubTree.split("~"),9)
}
function gtElmid(id)
{
 return document.getElementById(id)
}
function showHelpwindow(name)
{
	var strHelp = "error";
	switch (name) {
		case "ipACL":
			strHelp = "help_acl.html#aclcfg";
		break;
		case "ipBindingConfiguration":
			strHelp = "help_acl.html#ipBindingConfiguration";
		break;
		case "ipBindingTable":
			strHelp = "help_acl.html#ipBindingTable";
		break;
		case "ipACLrulesConfiguration":
			strHelp = "help_acl.html#ipRules";
		break;
		case "ipExACLrulesConfiguration":
			strHelp = "help_acl.html#ipERules";
		break;
		case "ipRules":
			strHelp = "help_acl.html#ipRules";
		break;
		case "ipERules":
		    strHelp = "help_acl.html#ipERules";
		break;
		
		case "macACL":
			strHelp = "help_mac_acl.html#mac_acl_cfg";
		break;
		case "macBindingConfiguration":
			strHelp = "help_mac_acl.html#macBindingConfiguration";
		break;
		case "macRules":
			strHelp = "help_mac_acl.html#mac_acl_rule_cfg";
		break;
		case "macBindingTable":
		    strHelp = "help_mac_acl.html#macBindingTable";
		break;
		
		case "dot1xConfiguration":
			strHelp = "help_dot1x.html#dot1xcfg";
		break;
		case "portAuthentication":
		    strHelp = "help_dot1x.html#dot1xportcfg";
		break;
		case "portAuthSummary":
			strHelp = "help_dot1x.html#dot1xportstatus";
		break;
		
		case "consolePort":
		    strHelp = "help_switch_cfg.html#serport";
		break;
		case "httpConfiguration":
		    strHelp = "help_switch_cfg.html#httpserver";
		break;
		case "httpsConfiguration":
		    strHelp = "help_https.html";
		break;
		case "downloadCertificate":
		    strHelp = "help_https.html#certificatedownload";
        break;
		case "sshConfiguration":
		    strHelp = "help_ssh.html";
		break;
		case "downloadHostKeys":
		    strHelp = "help_ssh";
		break;
		case "telnetin":
		    strHelp = "help_switch_cfg.html#telnetin";
		break;
		case "telnetout":
			strHelp = "help_switch_cfg.html#telnetout";
		break;
		
		case "accountingServerConfiguration":
			strHelp = "help_radius.html#acctcfg";
		break;
		case "accountingServerStat":
			strHelp = "help_radius.html#radacctstats";
		break;
		case "authenticationList":
			strHelp = "help_usermgr.html#logincfg";
		break;
		case "loginSessions":
			strHelp = "help_usermgr.html#userloginsumm";
		break;
		case "serverConfiguration":
			strHelp = "help_radius.html#radservcfg";
		break;
		case "radiusConfiguration":
		    strHelp = "help_radius.html#radcfg";
		break;
		case "serverConfigurationStats":
			strHelp = "help_radius.html#radservstats";
		break;
		case "userManagement":
			strHelp = "help_users.html#useracct";
		break;
		case "changePassword":
		    strHelp = "help_users.html#respass";
		break;
        case "securityConfiguration":
			strHelp = "help_portmaclocking.html#portmaclockingconfiguration";
		break;
		case "securityViolations":
			strHelp = "help_portmaclocking.html#portmacviolationstatus";
		break;
		case "portSecurity":
			strHelp = "help_portmaclocking.html#portmaclockingintifsetup";
		break;
		case "staticMacAddress":
			strHelp = "help_portmaclocking.html#portmaclockingstatic";
		break;
		case "securityConfigurationDynamic":
			strHelp = "help_portmaclocking.html#portmaclockingdynamic";
		break;
		case "stormControl":
			strHelp = "help_switch_cfg.html#swcfg";
		break;
		case "macFilter":
			strHelp = "help_macfilter.html#macFilter";
		break;
		case "macFilterSummary":
			strHelp = "help_macfilter.html#macFilterSummary";
		break;
		case "protectedPort":
			strHelp = "help_protectedport.html#protectedPort";
		break;
		case "fileDownload":
		    strHelp = "help_transfer.html#download";
		break;
		case "httpFileDownload":
		    strHelp = "help_http_file_download.html#filedownload";
		break;
		case "copy":
		    strHelp = "help_stacking.html#archiveCopy";
		break;
		case "scriptFile":
			strHelp = "help_sysinfo.html#scriptFile";
		break;
		case "scriptFileEdit":
			strHelp = "help_sysinfo.html#scriptFileEdit";
		break;
		
		case "deviceReboot":
			strHelp = "help_switch_cfg.html#sysrest";
		break;
		case "factoryDefault":
			strHelp = "help_switch_cfg.html#rescfg";
		break;
		case "passReset":
			strHelp = "help_switch_cfg.html#passReset";
		break;
		case "configReset":
			strHelp =  "help_switch_cfg.html#configReset";
		break;
		
		case "saveConfiguration":
			strHelp = "help_switch_cfg.html#savechange";
		break;
		case "ping":
			strHelp = "help_switch_cfg.html#ping";
		break;
		case "traceroute":
			strHelp = "help_switch_cfg.html#traceroute";
		break;
		case "fileUpload":
			strHelp = "help_transfer.html#upload";
		break;
		case "bufferedLogs":
			strHelp = "help_syslog_cfg.html#inmem";
		break;
		case "messageLogs":
			strHelp = "help_syslog_cfg.html#messages";
		break;
		case "commandLogConfiguration":
			strHelp = "help_syslog_cfg.html#cmd_logger";
		break;
		case "consoleLogConfiguration":
			strHelp = "help_syslog_cfg.html#console";
		break;
		case "syslogConfiguration":
			strHelp = "help_syslog_cfg.html#syslog_cfg";
		break;
		case "hosSyslogConfiguration":
			strHelp = "help_syslog_cfg.html#hosts";
		break;
		case "trapLogs":
			strHelp = "help_traps.html#traplog";
		break;
		case "eventLogs":
			strHelp = "help_sysinfo.html#eventlog";
		break;
		case "portMirroring":
			strHelp = "help_portcfg.html#portmon";
		break;
		case "eapStatistics":
			strHelp = "help_dot1x.html#dot1xstats";
		break;
		case "portStatistics":
			strHelp = "help_stats.html#portsumstat";
		break;
		case "portDetailStatistics":
			strHelp = "help_stats.html#portdetstat";
		break;
		
		case "cosInterfaceConfiguration":
			strHelp = "help_cos.html#cos_intf_cfg";
		break;
		case "qosConfiguration":
			strHelp = "help_cos.html#cos_map_table_cfg";
		break;
		case "qosDot1pMapping":
			strHelp = "help_cos.html#cos_map_dot1p";
		break;
		case "qosIpDhcpMapping":
			strHelp = "help_cos.html#cos_map_ip_dhcp";
		break;
		case "qosIpPrecedenceMapping":
			strHelp = "help_cos.html#cos_map_ip_precedence";
		break;
		case "interfaceQueueConfiguration":
			strHelp = "help_cos.html#cos_intf_queue_cfg";
		break;
		case "qosQueueMapping":
			strHelp = "help_cos.html#cos_map_table_cfg";
		break;
		case "diffServConfiguration":
			strHelp = "help_diffserv.html#diffserv_cfg";
		break;
		case "diffservclassinfo":
			strHelp = "help_diffserv_policy.html#policy_clss";
		break;
		case "policyClassConfig":
			strHelp = "help_diffserv_policy.html#policy_clss";
		break;
		case "className":
			strHelp = "help_diffserv_class.html#class_name_cfg";
		break;
		case "diffClassConfig":
			strHelp = "help_diffserv_class.html#class_cfg";
		break;
		case "diffservWizard":
			strHelp = "help_diffserv_wizard.html#diffserv_wiz";
		break;
		case "diffservclassinfo":
			strHelp = "help_diffserv_policy.html#policy_def";
		break;
		case "policyConfiguration":
			strHelp = "help_diffserv_policy.html#policy_cfg";
		break;
		case "policyName":
			strHelp = "help_diffserv_policy.html#policy_cfg";
		break;
		case "serviceConfig":
			strHelp = "help_diffserv_service.html#servCfg";
		break;
		case "serviceStatistics":
			strHelp = "help_diffserv_service.html#servStatsDet";
		break;
		
		case "arpTableConfiguration":
			strHelp = "help_layer3ip.html#arp_table";
		break;
		case "arpCache":
			strHelp = "help_layer3ip.html#arp_cache";
		break;
		case "arpCreate":
			strHelp = "help_layer3ip.html#arp_create";
		break;
		case "ipInterfaceConfiguration":
			strHelp = "help_layer3ip.html#intfipcfg";
		break;
		case "routingIpConfiguration":
			strHelp = "help_layer3ip.html#ipcfg";
		break;
		case "secIpConfiguration":
			strHelp = "help_layer3ip.html#sec_ip_cfg";
		break;
		case "statistics":
			strHelp = "help_layer3ip.html#ipstats";
		break;
		case "vlanRoutingWizard":
			strHelp = "help_vlan_routing.html#vlanrtgwizard";
		break;
		case "vlanRoutingCfg":
			strHelp = "help_vlan_routing.html#vrcfg";
		break;
		case "ospfDefault":
			strHelp = "help_ospf.html#ospfdefault";
		break;
		case "ospfComonAreaConfig":
			strHelp = "help_ospf.html#ospfcommonarea";
		break;
		case "ospfStubAreaConfig":
			strHelp = "help_ospf.html#ospfstubarea";
		break;
		case "ospfNssaAreaConfig":
			strHelp = "help_ospf.html#ospfnssaarea";
		break;
		case "ospfConfiguration":
			strHelp = "help_ospf.html#ospfinfo";
		break;
		case "areaRangeConfiguration":
			strHelp = "help_ospf.html#area_range";
		break;
		case "interfaceConfiguration":
			strHelp = "help_ospf.html#ospfintfcfg";
		break;
		case "linkStateDatabase":
			strHelp = "help_ospf.html#lsdb_summ";
		break;
		case "neighborConfiguration":
			strHelp = "help_layer3_nbr.html#nbr_dt";
		break;
		case "neighborTable":
			strHelp = "help_layer3_nbr.html#nbr_summ";
		break;
		case "routeRedistribution":
			strHelp = "help_ospf.html#ospf_rt_rdstrbtn_cfg";
		break;
		case "virtualLinkConfiguration":
			strHelp = "help_ospf.html#virt_link";
		break;
		
		case "ripConfiguration":
			strHelp = "help_rip.html#rip_info";
		break;
		case "advripConfiguration":
			strHelp = "help_rip.html#rip_info";
		break;
		case "ripInterfaceConfiguration":
			strHelp = "help_rip.html#rip_det";
		break;
		case "ripInterfaceStatus":
			strHelp = "help_rip.html#rip_status";
		break;
		case "riprouteRedistribution":
			strHelp = "help_rip.html#rip_rt_rdstrbtn_cfg";
		break;
		case "routeRedistributionSumm":
			strHelp = "help_rip.html#rip_rt_rdstrbtn_summ";
		break;
		
		case "routerDiscoveryConfiguration":
			strHelp = "help_rtr_discovery.html#rtr_discovery";
		break;
        
		case "advRouteConfiguration":
			strHelp = "help_router.html#rt_entry";
		break;
		case "routeConfiguration":
			strHelp = "help_router.html#rt_configured";
		break;
		case "routeLearned":
			strHelp = "help_router.html#rt_learned";
		break;
		case "routePreferences":
			strHelp = "help_router.html#rt_prefs";
		break;
		
		case "advVrrpConfiguration":
			strHelp = "help_vrrp.html#vrcfg";
		break;
		case "advVrrpAdminCfg":
			strHelp = "help_vrrp.html#vrrpcfg";
		break;
		case "vrrpConfiguration":
			strHelp = "help_vrrp.html#vrcfg";
		break;
		case "vrrpStatistics":
			strHelp = "help_vrrp.html#vrstats";
		break;
		
		case "basicAddressTable":
			strHelp = "help_sysinfo.html#macaddr";
		break;
		case "dynamicAddress":
			strHelp = "help_sysinfo.html#macaddrcfg";
        break;
		case "macInterfaceConfiguration":
			strHelp = "help_portmaclocking.html#portmaclockingintifsetup";
		break;
		case "staticAddress":
		    strHelp = "help_portmaclocking.html#portmaclockingstatic";
		break;
		
		case "gmrpTable":
			strHelp = "help_mfdb.html#gmrp_table";
		break;
		case "igmpSnoopingConfiguration":
			strHelp = "help_igmp_snooping.html#switch";
		break;
		case "igmpSnoopingInterfaceConfiguration":
			strHelp = "help_igmp_snooping.html#igmp_interface";	
		break;
		case "igmpSnoopingTable":
			strHelp = "help_mfdb.html#igmp_table";
		break;
		case "igmpVLANConfiguration":
			strHelp = "help_igmp_snooping.html#igmp_vlan_cfg";
		break;
		case "mfdbStatistics":
			strHelp = "help_mfdb.html#mfdb_stats";
		break;
		case "mfdbTable":
			strHelp = "help_mfdb.html#mfdb_table";
		break;
		case "multicastRouterConfiguration":
			strHelp = "help_igmp_snooping.html#mrcfg";
		break;
		case "multicastVLANConfiguration":
			strHelp = "help_igmp_snooping.html#mul_vlan_cfg";
		break;
		case "cstConfiguration":
			strHelp = "help_mstp.html#cstcfg";
		break;
		case "cstPortConfiguration":
			strHelp = "help_mstp.html#cstportcfg";
		break;
		case "cstPortStatus":
			strHelp = "help_mstp.html#cstportstatus";
		break;
		case "mstConfiguration":
			strHelp = "help_mstp.html#msticfg";
		break;
		case "mstPortStatus":
			strHelp = "help_mstp.html#mststatus";
		break;
		case "basicStpConfiguration":
			strHelp = "help_mstp.html#mstpswitch";
		break;
		case "stpStatistics":
			strHelp = "help_mstp.html#stats";
		break;
		
		case "garpPortConfiguration":
			strHelp = "help_garp.html#portgarpcfg";
		break;
		case "garpSwitchConfiguration":
			strHelp = "help_garp.html#garpcfg";
		break;
		case "vlanMembership":
			strHelp = "help_vlan.html#vlanMembership";
		break;
		case "macVlanConfiguration":
			strHelp = "help_mac_vlan.html#macvlancfg";
		break;
		case "portPVIDConfiguration":
			strHelp = "help_vlan.html#pvidconfig";
		break;
		case "vlanStatus":
		    strHelp = "help_vlan.html#vlanstat";
		break;
		case "dvlanConfiguration":
			strHelp = "help_vlan.html#dvanconfig";
		break;
		case "groupConfiguration":
			strHelp = "help_pbvlan.html#pbvlan_cfg";
		break;
		case "groupMembership":
			strHelp = "help_pbvlan.html#pbvlanMembership";
		break;
		case "basicVlanConfiguration":
			strHelp = "help_vlan.html#vlanconfig";
		break;
		case "resetVlan":
			strHelp = "help_vlan.html#restvlan";
		break;
		
		case "lagMembership":
			strHelp = "help_lag.html#lagMembership";
		break;
//		case "lacpConfiguration":
//			strHelp = "help_lag.html#trunkcfg";
//		break;
		case "lacpInterfaceConfiguration":
			strHelp = "help_lag.html#lacpConfiguration";
		break;
		case "lagConfiguration":
			strHelp = "help_lag.html#lagConfiguration";
		break;
		

		case "dnsConfiguration":
			strHelp = "help_dns.html#dns_status_cfg";
		break;
		case "dnsHostConfiguration":
			strHelp = "help_dns.html#hostname_mapping_cfg";
		break;
		case "dnsDynamicHostConfiguration":
			strHelp = "help_dns.html#dynamichost_mapping";
		break;
		case "ipConfiguration":
			strHelp = "help_switch_cfg.html#netcon";
		break;
		case "slotConfiguration":
			strHelp = "help_slot.html#cardcfg";
		break;
		case "slotSummary":
			strHelp = "help_slot.html#slotsumm";
		break;
		case "supportedCard":
			strHelp = "help_slot.html#suppcard";
		break;


		case "sntpGlobalConfiguration":
			strHelp = "help_sntp.html#sntp_global_cfg";
		break;
		case "sntpGlobalStatus":
			strHelp = "help_sntp.html#sntp_global_status";
		break;
		case "sntpServerConfiguration":
			strHelp = "help_sntp.html#sntp_server_cfg";
		break;
		case "sntpServerStatus":
			strHelp = "help_sntp.html#sntp_server_status";
		break;
		case "systemInformation":
			strHelp = "help_sysinfo.html#sysdesc";
		break;
		case "switchStatistics":
			strHelp = "help_stats.html#swstat";
		break;
		case "fanStatus":
			strHelp = "help_sysinfo.html#fanstatus";
		break;
		case "temperatureStatus":
			strHelp = "help_sysinfo.html#temperaturestatus";
		break;
		case "deviceStatus":
			strHelp = "help_sysinfo.html#devicestatus";
		break;
		case "cpumemorystatus":
			strHelp = "help_sysinfo.html#cpuMemory";
		break;
		case "cputil":
			strHelp = "help_sysinfo.html#cpuUtilization";
		break;
		
		case "poeConfiguration":
			strHelp = "help_poe.html#poeconfig";
		break;
		case "poeInterfaceConfiguration":
			strHelp = "help_poe.html#poeportconfig";
		break;
		case "portConfiguration":
			strHelp = "help_portcfg.html#npcfg";
		break;
		case "portDescription":
			strHelp = "help_portcfg.html#portdes";
		break;
		case "dhcpBindingsInformation":
			strHelp = "help_dhcp.html#dhcp_bindings_info";
		break;
		case "dhcpConflictsInformation":
			strHelp = "help_dhcp.html#dhcp_conflicts_info";
		break;
		case "dhcpConflictConfiguration":
			strHelp = "help_dhcp.html#dhcp_conflicts_info";
		break;
		case "dhcpPoolConfiguration":
			strHelp = "help_dhcp.html#dhcp_pool_cfg";
		break;
		case "dhcpExcludeConfiguration":
			strHelp = "help_dhcp.html#dhcp_exclude_cfg";
		break;
		case "dhcpPoolOptions":
			strHelp = "help_dhcp.html#dhcp_pool_options";
		break;
		case "dhcpRelay":
			strHelp = "help_dhcp_relay.html#cfg";
		break;
		case "dhcpRelayStatus":
			strHelp = "help_dhcp_relay.html#status";
		break;
		case "dhcpServerConfiguration":
			strHelp = "help_dhcp.html#dhcp_global_cfg";
		break;
		case "dhcpServerStatistics":
			strHelp = "help_dhcp.html#dhcp_server_info";
		break;
		case "udpRelay":
			strHelp = "help_udprelay.html#udp_relay_add.html";
		break;
		
		case "communityConfiguration":
			strHelp = "help_snmp.html#snmpcomm";
		break;
		case "supportedMibs":
			strHelp = "help_snmp.html#mibsupport";
		break;
		case "trapConfiguration":
			strHelp = "help_snmp.html#traprcvr";
		break;
		case "trapFlags":
			strHelp = "help_traps.html#trapflag";
		break;
		case "userConfiguration":
			strHelp = "help_snmp.html#snmpv3";
		break;
		case "snmpUsernames":
			strHelp = "help_snmp.html#snmpv3";
		break;
		
		case "advStackConfiguration":
			strHelp = "help_stacking.html#unitcfg";
		break;
		case "stackConfiguration":
			strHelp = "help_stacking.html#unitcfg";
		break;
		case "stackStatus":
			strHelp = "help_stacking.html#unitstatus";
		break;
		case "advStackStatus":
			strHelp = "help_stacking.html#unitstatus";
		break;
		case "stackPortConfiguration":
			strHelp = "help_stacking.html#stackPortConfig";
		break;
		case "stackPortDiagnostics":
			strHelp = "help_stacking.html#stackPortDiag";
		break;
		
		case "userlogin":
			strHelp = "help_users.html#userlogin";
		break;
		case "support":
			strHelp = "help_switch_cfg.html#support";
		break;
		case "userGuide":
			strHelp = "help_switch_cfg.html#userguide";
		break;
		
		default:
		alert('No such a help page');
		break;
	}
  document.getElementById('maincontent').contentWindow.location.replace(strHelp);
}
