<!--
// function to display secondary navigation for detail pages
//function getsecnav(){
	var str1 = "";
	var str2 = "";
	var str3 = "";
	var secnavhtml = "";
	
	var subsectioncnt = 0;
	var detailcnt = 0;
	var subdetailcnt = 0;
	
	var i_subsection;
	var i_detail;
	
	if ((section != "") && (subsection != "") && (detail != ""))
	{		
		subsectionpath = subsection.toLowerCase();
		subsectionpath = subsectionpath.replace(/ /g,"_");
		
		detailpath = detail.toLowerCase();
		detailpath = detailpath.replace(/ /g,"_");
		detailpath = detailpath.replace(/&/g,"_");
			
		str1 = str1 + '<table width="491" border="0" cellspacing="0" cellpadding="0">\n';
		str1 = str1 + '<tr>\n';
		str1 = str1 + '<td><img src="/premium/signature/' + website + '/images/spacer.gif" alt="" width="1" height="20" border="0"></td>\n';
		str1 = str1 + '</tr>\n';
		str1 = str1 + '<tr>\n';
		str1 = str1 + '<td>';
	
		subsectioncnt = arsubsection.length;
			
		for (j=0; j<subsectioncnt; j++) {	// traverse subsection array
			if (subsection == arsubsection[j][0]) {	// if subsection matches store subsection sequence
				i_subsection = j;
			
				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
						for (k=0; k<detailcnt; k++) {
							if (detail == ardetail[j][k]) {	// if detail matches store detail sequence
								i_detail = k;
							}
						}
					}
				}
			}
		}
		
		if (typeof(arsubdetail) == "object") {	// check if any subdetail items are available under this subsection
			
			if (typeof(arsubdetail[i_subsection][i_detail]) == "object") { 	// check if any subdetail items are available under this detail
				subdetailcnt = arsubdetail[i_subsection][i_detail].length;
				
				if (subdetailcnt > 0) { // if there are subdetail items under this detail, traverse subdetail array
					for (m=0; m<subdetailcnt; m++) {						
						
						subdetailpath = arsubdetail[i_subsection][i_detail][m].toLowerCase();
						subdetailpath = subdetailpath.replace(/ /g,"_");
						subdetailpath = subdetailpath.replace(/&/g,"_");
						
						linkurl = urlpath + "/" + subsectionpath + "/" + detailpath  + "/" + subdetailpath + ".shtml";
						
						if (subdetail == arsubdetail[i_subsection][i_detail][m]) {	// if subdetail name matches, display subdetail as active
							str2 = str2 + '<a href="' + linkurl + '" class="anchorlinks_active">' + arsubdetail_loc[i_subsection][i_detail][m] + '</a>\n';
							str2 = str2 + '<img src="/premium/signature/' + website + '/images/spacer.gif" width="20" height="1" border="0" alt="">\n';
							bc_subdetail = arsubdetail_loc[i_subsection][i_detail][m];
							bc_subdetail_link = linkurl;
						}
						else {	// subdetail don't match, display as inactive
							str2 = str2 + '<a href="' + linkurl + '" class="anchorlinks">' + arsubdetail_loc[i_subsection][i_detail][m] + '</a>\n';
							str2 = str2 + '<img src="/premium/signature/' + website + '/images/spacer.gif" width="20" height="1" border="0" alt="">\n';
						}
					}
				}
			}
		}
	
		// ending html portion of secondary nav table
		str3 = str3 + '</td>';
		str3 = str3 + '</tr>\n';
		str3 = str3 + '<tr>\n';
		str3 = str3 + '<td><img src="/premium/signature/' + website + '/images/spacer.gif" alt="" width="1" height="5" border="0"></td>\n';
		str3 = str3 + '</tr>\n';
		str3 = str3 + '<tr>\n';
		str3 = str3 + '<td bgcolor="#000000"><img src="/premium/signature/' + website + '/images/spacer.gif" alt="" width="1" height="1" border="0"></td>\n';
		str3 = str3 + '</tr>\n';
		str3 = str3 + '</table>\n';
		
		if (str2 != "") {
			secnavhtml = str1 + str2 + str3;
		}
	}
//}

function displaysecnav(){
	document.write(secnavhtml);
}
//-->

