<!--
function displaynav(){
	var str1 = "";
	var str2 = "";
	var str3 = "";
	
	var sectioncnt = 0;
	var subsectioncnt = 0;
	var detailcnt = 0;
	
	if (section != "" )
	{
		sectioncnt = arsection.length;
		
		// beginning html portion of left nav table
		str1 = str1 + '<table width="185" border="0" cellspacing="0" cellpadding="0">\n';
		str1 = str1 + '<tr>\n';
		str1 = str1 + '<td><img src="/premium/signature/' + website + '/images/spacer.gif" width="10" height="25" border="0" alt=""></td>\n';
		str1 = str1 + '<td><img src="/premium/signature/' + website + '/images/spacer.gif" width="175" height="1" border="0" alt=""></td>\n';
		str1 = str1 + '</tr>\n';
		
		for (i=0; i<sectioncnt; i++) { // traverse section array
			if (section == arsection[i][0]) {	// if section names match display localised section name
				str1 = str1 + '<tr>\n';
				str1 = str1 + '<td colspan="2"><span class="contenttitle">' + arsection[i][1] + '</span></td>\n';
				str1 = str1 + '</tr>\n';
				str1 = str1 + '<tr>\n';
				str1 = str1 + '<td colspan="2"><img src="/premium/signature/' + website + '/images/spacer.gif" width="1" height="10" border="0" alt=""></td>\n';
				str1 = str1 + '</tr>\n';
				
				bc_section = arsection[i][1];
			}
		}
		
		if (subsection != "" ) {	// if subsection is defined, traverse subsection array and display active/inactive subsection/detail names
			subsectioncnt = arsubsection.length;
			
			for (j=0; j<subsectioncnt; j++) {
			
				if ((arsubsection[j][2].indexOf("http://")!=0) && (arsubsection[j][2].indexOf("https://")!=0)){	// if URL does not start with http:// append urlpath in front.
					linkurl = urlpath + arsubsection[j][2];
				}
				else {
					linkurl = arsubsection[j][2];
				}
				
				if (subsection == arsubsection[j][0]) {	// if subsection matches, display subsection as active
					str2 = str2 + '<tr valign="top">\n';
					str2 = str2 + '<td><img src="/premium/signature/' + website + '/images/arrow_blue.gif" alt="" width="10" height="10" border="0" vspace="2"></td>\n';
					str2 = str2 + '<td><a href="' + linkurl + '" class="navlinks_l3_active"' + setWinTarget(linkurl) + '>' + arsubsection[j][1] + '</a></td>\n';
					str2 = str2 + '</tr>\n';
					str2 = str2 + '<tr>\n';
					str2 = str2 + '<td colspan="2"><img src="/premium/signature/' + website + '/images/spacer.gif" width="1" height="10" border="0" alt=""></td>\n';
					str2 = str2 + '</tr>\n';
					
					bc_subsection = arsubsection[j][1];
					bc_subsection_link = linkurl;
					
					if (typeof(ardetail) == "object"){		// check if any detail items are available under this section
						detailcnt = ardetail[j].length;
						
						if (detailcnt > 0) {	// if there are detail items under this subsection, traverse detail array and display active/inactive items
							
							str2 = str2 + '<tr>\n';
							str2 = str2 + '<td>&nbsp;</td>\n';
							str2 = str2 + '<td>';
							
							for (k=0; k<detailcnt; k++) {
							
								if ((ardetail_url[j][k].indexOf("http://")!=0) && (ardetail_url[j][k].indexOf("https://")!=0)) {	// if URL does not start with http:// or https:// append urlpath in front.
									linkurl = urlpath + ardetail_url[j][k];
								}
								else {
									linkurl = ardetail_url[j][k];
								}
								
								if (detail == ardetail[j][k]) {	// if detail matches, display detail as active
									str2 = str2 + '<a href="' + linkurl + '" class="navlinks_l4_active"' + setWinTarget(linkurl) + '>' + ardetail_loc[j][k] + '</a><br>';

									bc_detail = ardetail_loc[j][k];
									bc_detail_link = linkurl;
								}
								else {	// detail don't match display as inactive
									str2 = str2 + '<a href="' + linkurl + '" class="navlinks_l4"' + setWinTarget(linkurl) + '>' + ardetail_loc[j][k] + '</a><br>';
								}
							}
							
							str2 = str2 + '</td>\n';
							str2 = str2 + '</tr>\n';
							str2 = str2 + '<tr>\n';
							str2 = str2 + '<td colspan="2"><img src="/premium/signature/' + website + '/images/spacer.gif" width="1" height="10" border="0" alt=""></td>\n';
							str2 = str2 + '</tr>\n';
						}
					}
				}
				else {	// subsection don't match, display as inactive
				
					str2 = str2 + '<tr valign="top">\n';
					str2 = str2 + '<td><img src="/premium/signature/' + website + '/images/arrow_black.gif" alt="" width="10" height="10" border="0" vspace="2"></td>\n';
					str2 = str2 + '<td><a href="' + linkurl + '" class="navlinks_l3"' + setWinTarget(linkurl) + '>' + arsubsection[j][1] + '</a></td>\n';
					str2 = str2 + '</tr>\n';
					str2 = str2 + '<tr>\n';
					str2 = str2 + '<td colspan="2"><img src="/premium/signature/' + website + '/images/spacer.gif" width="1" height="10" border="0" alt=""></td>\n';
					str2 = str2 + '</tr>\n';
				}
			}
		}
		else {	// if subsection is not defined, display subsection items as inactive
			subsectioncnt = arsubsection.length;
			
			for (j=0; j<subsectioncnt; j++) {
				if ((arsubsection[j][2].indexOf("http://")!=0) && (arsubsection[j][2].indexOf("https://")!=0)){	// if URL does not start with http:// append urlpath in front.
					linkurl = urlpath + arsubsection[j][2];
				}
				else {
					linkurl = arsubsection[j][2];
				}
				
				str2 = str2 + '<tr valign="top">\n';
				str2 = str2 + '<td><img src="/premium/signature/' + website + '/images/arrow_black.gif" alt="" width="10" height="10" border="0" vspace="2"></td>\n';
				str2 = str2 + '<td><a href="' + linkurl + '" class="navlinks_l3"' + setWinTarget(linkurl) + '>' + arsubsection[j][1] + '</a></td>\n';
				str2 = str2 + '</tr>\n';
				str2 = str2 + '<tr>\n';
				str2 = str2 + '<td colspan="2"><img src="/premium/signature/' + website + '/images/spacer.gif" width="1" height="10" border="0" alt=""></td>\n';
				str2 = str2 + '</tr>\n';
			}
		}
	
		// ending html portion of left nav table
		str3 = str3 + '<tr>\n';
		str3 = str3 + '<td colspan="2"><img src="/premium/signature/' + website + '/images/horizontal_line.gif" alt="" width="120" height="5" border="0"></td>\n';
		str3 = str3 + '</tr>\n';
		str3 = str3 + '</table>\n';
		
		document.write(str1 + str2 + str3);
	}
}
//-->

