function showNav(sType,theID)
{
	if (theID != '') {
		if (sType == 'top') {
			var topicCell = document.getElementById("hNavhTdTop" + theID);
			if (topicCell) topicCell.className = 'topSelected';
			imgHNav('show',sType,theID,5,'',5);
		} else if (sType == 'cat') {
			//ignore
		}
	}
}//showNav

function showHMenuV(sType,theID,theObj)
{
	if (sType == 'top') {
		var topicCell = document.getElementById("hNavhTdTop" + theID);
		if (topicCell) {
			if (topicCell.className != 'topSelected') { 
				topicCell.className = 'topRollover';
			} else {
				topicCell.className = 'topSelected';
			}
		}
	} else if (sType == 'cat' && theObj) {
		theObj.className = 'catVerticalRollover';
	}
	
	//display vertical menu
	if (sType == 'top') {
		var categoryCell = document.getElementById("hNavhTdTopCat" + theID);
		if (categoryCell) categoryCell.style.visibility = 'visible';
	}
	
	//check for images
	imgHNav('show',sType,theID,4,'',4);
}//showHMenuV
  	
function hideHMenuV(sType,theID,theObj)
{
	var currentHighlight = '';
	if (sType == 'top') {
		currentHighlight = sideNavHighlight;
	} else if (sType == 'cat') {
		currentHighlight = catHighlight;
	}
	
	if (sType == 'top') {
		var categoryCell = document.getElementById("hNavhTdTopCat" + theID);
		if (categoryCell) {
			categoryCell.style.visibility = 'hidden';
		}
		if (sideNavHighlight+'' != theID+'') {
			var topicCell = document.getElementById("hNavhTdTop" + theID);
			if (topicCell.className != 'topSelected') {
				topicCell.className = 'topStandard';
			} else {
				topicCell.className = 'topSelected';
			}
		}
	} else if (sType == 'cat') {
		theObj.className = 'catVerticalStandard';
	}
	
	//check for images
	imgHNav('hide',sType,theID,3,currentHighlight,5);
}//hideHMenuV

function writeHNavV(id)
{
	// ------- Added fro SEO by LEO
	var vfold = '../';
	if (document.getElementById('is_seo') != null) 
		{
		vfold='../../html/'; 
		}
	if (document.getElementById('is_seo_cat') != null) 
		{
		vfold='../html/'; 
		}
	if (document.getElementById('is_seo_serv') != null) 
		{
		vfold='../html/'; 
		}
	if (document.getElementById('is_seo_content') != null) 
		{
		vfold='../html/'; 
		}
	if (document.getElementById('is_seo_forum') != null) 
		{
		vfold='../html/'; 
		}
	if (document.getElementById('is_seo_faq') != null) 
		{
		vfold='../html/'; 
		}
	if (document.getElementById('is_seo_forum_msg') != null) 
		{
		vfold='../../html/'; 
		}
	// -------
	
	id = id+'';
	id = id.replace('core','Core');
	
	if (!(eval("document.getElementById('hNavhTdTopCat" + id + "')"))) {
		return;
	}
	
	if (lastHighlight != -1) {
		theCell = document.getElementById("hNavhTdTopCat" + lastHighlight);
		if (theCell) theCell.innerHTML = "";
	}
	theCell = document.getElementById("hNavhTdTopCat" + id);
	
	var isShop = false;
	var testStr = id + "no"
	if (testStr.toLowerCase().indexOf("shop") > -1) {
		isShop = true;
	}
	
	var theArray = '';
	try {
		theArray = eval("topkey" + id);
	} catch(oException) {
		theArray = '';
	}
	if (theArray == '') { return; }
	
	var cellData = "";
	if (theArray.length != undefined) {
		cellData = "<table cellpadding=0 cellspacing=0 class='catVerticalTable'>";
	}
	
	var theArrayCat = '';
	for (var i = 0; i < theArray.length; i++) {
		catID = theArray[i]+'';
		
		try {
			theArrayCat = eval("cat" + catID);
		} catch(oException) {
			theArrayCat = '';
		}
		
		catTitle = '';
		catImg = '';
		catURL = '';
		catBgColor = '';
		catClass = 'catVerticalStandard';
		if (theArrayCat != '') {
			catTitle = theArrayCat[1];
			if (catHighlight+'' == catID+'') { 
				catImg = theArrayCat[5]+'';
				catClass = 'catVerticalSelected';
			} else {
				catImg = theArrayCat[3]+'';
				catClass = 'catVerticalStandard';
			}
			catURL = theArrayCat[6];
			
			cellData += "<tr class='catVerticalRow' valign=\"top\" onclick=\"location.href=";
			
			if (isShop) {
				if (catID=='ShopC') {
					cellData += "'" + vfold + "s13_shopping/view_cart.asp?nav_top_id=" + escape(id) + "&nav_cat_id=ShopC" + "" + qDSAp + "';\"";
				} else if (catURL+'' != '') {
					cellData += "'"+ catURL +"';\"";
				} else {
					cellData += "'" + vfold + "s13_shopping/default.asp?nav_top_id=" + escape(id) + "&nav_cat_id=" + catID + ""+ qDSAp +"';\"";
			}
			} else if (catURL+'' != '') {
				catURL = catURL.replace("../", "")
				cellData += "'"+ vfold + catURL +"';\"";
				//	cellData += "'"+ catURL +"';\"";
			} else {
				cellData += "'" + vfold + "s02_article/default.asp?nav_top_id=" + escape(id) + "&nav_cat_id=" + catID + ""+ qDSAa +"';\"";
			}
			cellData += ">";
			cellData += "<td class='"+ catClass +"' id='hNavhTdCat"+ catID +"' onMouseOver=\"showHMenuV('cat','"+ catID +"',this);\" onMouseOut=\"hideHMenuV('cat','"+ catID +"',this);\" >";
			if (catImg+'' != '' && catImg != undefined && catImg+'' != 'undefined') {
				cellData += "<img hspace='0' vspace='0' border='0' src='"+ catImg +"' alt='" + catTitle.replace(/\'/gi,'\'') + "' id='hNavhImgCat"+ catID +"' name='hNavhImgCat"+ catID +"'>";
			} else {
				cellData += "<span>"+ sNavStartCH +"" + catTitle + ""+ sNavEndCH +"</span>";
			}
			
			cellData += "</td></tr>";
		}//theArrayCat
	}//for

	
	if (theArray.length != undefined) {
		cellData += "</table>";
	}
	
	if (document.images["arr" + id]) {
		document.images["arr" + id].src = arr_over.src;
	}
	
	if (theCell != null) {
		theCell.innerHTML = cellData;
		lastHighlight = id;
	}
} //writeHNavV
