// *************************************
// LEFT HAND NAVIGATION - Sections Only
// *************************************
function doLeftNavigation(list,deadlist) { 
 var fulllist = unescape(list); 
 var listArray = fulllist.split(";");
 var prevLevel = "";
 for (i=0; i < listArray.length; i++) {
  var smallArray = listArray[i].split('#'); 
  var secCat = 'sec' + smallArray[0]; 
  var strIm = 'im' + smallArray[0]; 
  var level = smallArray[1];  
  var link = smallArray[2]; 
  var unid = smallArray[3]; 
	if(level == "2"){
		lastLevel2 = 1;
		for(j = (i + 1); j < listArray.length; j++){
			var checkLevel = listArray[j].split('#')[1];	
			if(checkLevel == "2"){ lastLevel2 = 0; }
		}
	}
  if (checkLHNStatus(smallArray[0], deadlist) == "Enabled") { 
   if (i + 1 < listArray.length) { 
	var nextLevel = listArray[i+1].split('#')[1];
   } else { 
    	var nextLevel = '0';
   }
   if (level == ("1" || "5" || "6")) { 
    //do nothing
   } else if (level == "2") { 
	document.write('<DIV ID=' + secCat + ' CLASS=level' + level +'>'); 
	if(prevLevel.toString() == "1" || prevLevel.toString() == "2" || prevLevel.toString() == "3" || prevLevel.toString() == "4"){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=100% height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	
    	document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
	document.write('<tr>'); 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
	if (parseInt(nextLevel) > parseInt(level)) { 
 	 document.write('<td valign=top width=10 ' + bgcol1 + ' ><a href="Javascript:expandIt(\'' + secCat + '\',\'' + level + '\',\'' + strIm + '\')"><img name=' + strIm + ' alt=' + secCat + ' border=0 src='+l2up+'></a></td>'); 
	} else { 
	 document.write('<td valign=top width=10 ' + bgcol1 + ' ><img name=' + strIm + ' alt=' + secCat + ' border=0 src='+ l2bullet +'></td>'); 
	} 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
	document.write('<td width=5 height=1 ' + bgcol2 + '><img src=/icons/ecblank.gif height=1 width=1></td>');
	document.write('<td width=186 CLASS="lhn2Level2"><a href="Javascript:openIt(\'' + secCat + '\',\'' + unid + '\')">' + link + '</a></td>'); 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
 	document.write('</tr>');
	document.write('</table>'); 
	if(lastLevel2 == 1){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=100% height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	document.write('</DIV>'); 
   } else if (level == "3") { 
	document.write('<DIV ID=' + secCat + ' CLASS=level' + level + ' STYLE="display:none">'); 
	if(prevLevel.toString() == "2" && lastLevel2==0){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=100% height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	if((prevLevel.toString() == "3" || prevLevel.toString() == "4") && lastLevel2 == 0){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=10 height=1><img src=/icons/ecblank.gif height=1 width=1></td>'); 
		document.write('<td width=* height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
 	document.write('<tr>');
	document.write('<td width=10 height=1><img src=/icons/ecblank.gif height=1 width=1></td>'); 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
	if (parseInt(nextLevel) > parseInt(level)) { 
	 document.write('<td valign=top ' + bgcol2 + ' width=10><a href="Javascript:expandIt(\'' + secCat + '\',\'' + level + '\',\'' + strIm + '\')"><img name=' + strIm + ' alt=' + secCat + ' border=0 src='+lxup+'></a></td>'); 
	} else { 
	 document.write('<td valign=top ' + bgcol2 + ' width=10><img name=' + strIm + ' alt=' + secCat + ' border=0 src='+ lxbullet +'></td>'); 
	} 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
	document.write('<td width=5 height=1 ' + bgcol2 + '><img src=/icons/ecblank.gif height=1 width=1></td>'); 
	document.write('<td width=176 CLASS="lhn2Level2"><a href="Javascript:openIt(\'' + secCat + '\',\'' + unid + '\')">' + link + '</a></td>'); 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
 	document.write('</tr>');
	document.write('</table>'); 
	if(lastLevel2 == 1){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=10 height=1><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('<td width=* height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	document.write('</DIV>'); 
   } else if (level == "4") { 
	document.write('<DIV ID=' + secCat + ' CLASS=level' + level +' STYLE="display:none">'); 
	if(prevLevel.toString() == "2" && lastLevel2 == 0){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=100% height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	if(prevLevel.toString() == "3" && lastLevel2 == 0){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=10 height=1><img src=/icons/ecblank.gif height=1 width=1></td>'); 
		document.write('<td width=* height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	if(prevLevel.toString() == "4" && lastLevel2 == 0){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=20 height=1><img src=/icons/ecblank.gif height=1 width=1></td>'); 
		document.write('<td width=* height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
 	document.write('<tr>');
	document.write('<td width=20 height=1><img src=/icons/ecblank.gif height=1 width=1></td>'); 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
	if (parseInt(nextLevel) > parseInt(level)) { 
	 document.write('<td valign=top ' + bgcol2 + ' width=10><a href="Javascript:expandIt(\'' + secCat + '\',\'' + level + '\',\'' + strIm + '\')"><img name=' + strIm + ' alt=' + secCat + ' border=0 src=' + lxup + '></a></td>'); 
	} else { 
	 document.write('<td valign=top ' + bgcol2 + ' width=10><img name=' + strIm + ' alt=' + secCat + ' border=0 src=' + lxbullet + '></td>'); 
	} 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
	document.write('<td width=5 height=1 ' + bgcol2 + '><img src=/icons/ecblank.gif height=1 width=1></td>');
	document.write('<td width=166 CLASS="lhn2Level2"><a href="Javascript:openIt(\'' + secCat + '\',\'' + unid + '\')">' + link + '</a></td>'); 
	document.write('<td width=1 height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
 	document.write('</tr>');
	document.write('</table>'); 
	if(lastLevel2 == 1){
		document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>'); 
		document.write('<tr>'); 
		document.write('<td width=20 height=1><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('<td width=* height=1 CLASS="lhnEmbossDark"><img src=/icons/ecblank.gif height=1 width=1></td>');
		document.write('</tr>');
		document.write('</table>');
	}
	document.write('</DIV>'); 
   } 
	prevLevel = level;
  } else { } 	
 } 
}
