function writeAltNav(id,loggedIn)
{
	id = id+'';
	id = id.replace('core','Core');
	
	if (lastHighlight != -1) {
		theCell = document.getElementById("top" + lastHighlight);
		if (theCell) theCell.innerHTML = "";
	}
	theCell = document.getElementById("top" + id);
	
	var isShop = false;
	var testStr = id + "no"
	if (testStr.toLowerCase().indexOf("shop") > -1) {
		isShop = true;
	}
	
	if (!(eval("document.getElementById('top" + id + "')"))) {
		return;
	}

	var theArray = eval("top" + id);
	
	var cellData = "";
	if (theArray.length != undefined) {
		cellData = "<table bgcolor='#"+ cPopBg +"' cellpadding=0 cellspacing=0 border=0 class='mysubtable' width='"+ sNavPopWidth +"'>";
	}
	
	var offColor, dotPoint
	for (var i = 0; i < theArray.length; i++) {
		offColor = cPopLink;
		dotPoint = new Image()
		dotPoint.src = imgPopPoint;
		
		cellData += "<tr height=15 class='mysubtd' valign=top style=\"padding-left: 1px;\" onMouseOver=\"this.bgColor='#"+ cPopHigh +"';\" onMouseOut=\"this.bgColor='#"+ cPopBg +"';\" onclick=\"location.href=";
		
		// does the dotpoint exist
		if (dotPoint.width == 0) {
			if (isShop) {
				if (theArray[i]==0) {
					cellData += "'../s13_shopping/view_cart.asp?nav_top_id=" + escape(id) + "&ds=" + escape(idss) + "';\">";
				} else {
					cellData += "'../s13_shopping/default.asp?nav_top_id=" + escape(id) + "&nav_cat_id=" + theArray[i] + ""+ qDSAp +"';\">";								
				}
			} else {
				cellData += "'../s02_article/default.asp?nav_top_id=" + escape(id) + "&nav_cat_id=" + theArray[i] + ""+ qDSAa +"';\">";
			}
			cellData += "<td style=\"padding-left: 0px;\" width='1%'></td><td>";
		} else {
			if (isShop) {
				if (theArray[i]==0) {
					cellData += "'../s13_shopping/view_cart.asp?nav_top_id=" + escape(id) + "&ds=" + escape(idss) + "';\">";
				} else {
					cellData += "'../s13_shopping/default.asp?nav_top_id=" + escape(id) + "&nav_cat_id=" + theArray[i] + ""+ qDSAp +"';\">";
				}
			} else {
				cellData += "'../s02_article/default.asp?nav_top_id=" + escape(id) + "&nav_cat_id=" + theArray[i] + ""+ qDSAa +"';\">";
			}
			cellData += "<td valign=top style=\"padding-left: 1px;\"><img hspace='3' vspace='2' height=7 src='"+ imgPopPoint +"' "+ bPointGif +" alt=''></td><td width=120>";
		}//if
		
		cellData += "<span>"+ sNavStartCH +"" + theArray[i+1] + ""+ sNavEndCH +"</span></td></tr>";
		
		i++;
		i++;
	}//for
	
	if (loggedIn) {
		offColor = cPopLink;
		
		if (sNavAATitle != '') {
			if (id.toLowerCase().indexOf("core") == -1) {
				if (eval("varfaq" + id)== 1) {
					cellData += "<tr height=15 class='mysubtd' style=\" padding-left: 1px;\" onMouseOver=\"this.bgColor='#"+ cPopHigh +"';\" onMouseOut=\"this.bgColor='#"+ cPopBg +"';\" onclick=\"location.href=";
					if (dotPoint.width == 0) {
						cellData += "'../s03_faq/default.asp?nav_top_id=" + id + "&faq_topic=" + id + ""+ qDSAf +"';\"><td valign=top style=\" padding-left: 5px;\" width='1%'></td><td>";
					} else {
						cellData += "'../s03_faq/default.asp?nav_top_id=" + id + "&faq_topic=" + id + ""+ qDSAf +"';\"><td valign=top style=\" padding-left: 1px;\" width='10%'><img alt=' ' hspace='3' vspace='2' width=6 height=7 src='"+ imgPopPoint +"' "+ bPointGif +"></td><td>";
					}
					cellData += "<span>"+ sNavStartCH +""+ sNavAATitle +""+ sNavEndCH +"</span></td></tr>"
				}
			}
		}
	}
	
	if (theArray.length != undefined) {
		cellData += "<tr width='"+ sNavPopWidth +"'><td colspan=2><img alt='' src='"+ imgPopBtm +"' width='"+ sNavPopWidth +"' height='5'></td></tr>";
		cellData += "</table>";
	}
	
	if (document.images["arr" + id]) {
		document.images["arr" + id].src = arr_over.src;
	}
	
	if (theCell != null) {
		theCell.innerHTML = cellData;
		lastHighlight = id;
	}
} // function - writeAltNav
