function writeNav(id,loggedIn)
{
	id = id+'';
	id = id.replace('core','Core');
	
	if (lastHighlight != -1) {
		theCell = document.getElementById('top' + lastHighlight);
		theCell.innerHTML = "";
		document.images["arr" + lastHighlight].src = arr_out.src;
	}

	if (lastHighlight == id) {
		lastHighlight = -1;
		return;
	}
	
	if (!(document.getElementById('top' + id))) {
		return;
	}
	
	theCell = document.getElementById('top' + id);
	theArray = eval("top" + id);
	
	cellData = "<table cellpadding=0 cellspacing=0 border=0 class='mytd'>";
	testStr = id + "no";
	
	var theurl = '';
	var theds = '';
	var theid = '';
	var theidprefix = '';
	for (i = 0; i < theArray.length; i++) {
		if (theArray[i]+'' == catHighlight+'') {
			offColor = sideNavLinkColorOver;
		} else {
			offColor = sideNavLinkColor;
		}
		
		cellData += "<tr><td valign=top><img alt='' hspace='3' vspace='4' width=6 height=7 src='"+ imgBPointSrc +"' "+ imgBPointOpt +"></td><td><span style=\"cursor:pointer; color:" + offColor + ";\" onMouseOver=\"this.style.color='#"+ sideNavLinkColorOver +"'; return true;\" onMouseOut=\"this.style.color='#"+ offColor +"'; return true;\" title=\"" + theArray[i+2] + "\"  onclick=\"location.href=";
		
		if (testStr.toLowerCase().indexOf("shop") > -1) {
			if (theArray[i]==0) {
				theurl = 'view_cart';
				theds = qDSAp;
			} else {
				theurl = 'default';
				theds = qDSAp;
			}
			cellData += "'../s13_shopping/"+ theurl +".asp?nav_cat_id=" + theArray[i] + ""+ qCrFalse +"&nav_top_id=" + id + theds + "';\">";
		} else {
			if (testStr.toLowerCase().indexOf("core") > -1) {
				theid = id.substr(4);
				theurl = '';
				theidprefix = 'core';
			} else {
				theid = id;
				theurl = qCrFalse;
				theidprefix = '';
			}
			cellData += "'../s02_article/default.asp?nav_cat_id=" + theidprefix + theArray[i] + theurl +"&nav_top_id=" + theidprefix + theid + ""+ qDSAa +"';\">";
		}
		
		cellData += "<span>"+ sNavStartCH +"" + theArray[i+1] + ""+ sNavEndCH +"</span></td></tr>";
		
		i++;
		i++;
	}//for
	if (testStr.toLowerCase().indexOf("core") == -1) {
		if (loggedIn) {
			if (id+'' == faqHighlight+'') {
				offColor = sideNavLinkColorOver;
			} else {
				offColor = sideNavLinkColor;
			}
			
			if (sNavAATitle != '') {
				if (id.toLowerCase().indexOf("core") == -1) {
					if (eval("varfaq" + id) == 1) {
						cellData += "<tr><td valign=top><img alt=' ' hspace='3' vspace='4' width=6 height=7 src='"+ imgBPointSrc +"' "+ bPointGif +"></td><td><span style=\"cursor:pointer; color:" + offColor + ";\" onMouseOver=\"this.style.color = '#"+ sideNavLinkColorOver +"'; return true;\" onMouseOut=\"this.style.color = '#" + offColor + "'; return true;\"  onclick=\"location.href = '../s03_faq/default.asp?nav_top_id=" + id + "&faq_topic=" + id + ""+ qCrFalse +""+ qDSAf +"';\">"+ sNavStartCH +""+ sNavAATitle +"&nbsp;"+ sNavEndCH +"</span></td></tr>";
					}
				}
			}
		}
	}//if
	cellData += "</table>";
	
	if (theCell != null) {
		theCell.innerHTML = cellData;
		if (document.images["arr" + id] != null) {
			document.images["arr" + id].src = arr_over.src;
		}
		lastHighlight = id;
	}//if
}// writeNav

function sideNavEffect(tObj, oType)
{
	if (oType == 'ov')
		tObj.style.color = '#'+ sideNavLinkColorOver;
	else if (oType == 'ou')
		tObj.style.color = '#'+ sideNavLinkColor;
}// sideNavEffect
