<!--
var lastA = 0;
var parentObj = 0;
function goThroughDOMStart(objId)
{
	var theObject = document.getElementById(objId);
	outId = document.getElementById('out');
	var level = 0;
	goThroughDOM(theObject, level);
}
function goThroughDOM(obj, lvl)
{
	for (var i=0; i<obj.childNodes.length; i++) {
		var childObj = obj.childNodes[i];
		//outId.value += Math.pow(10,lvl) + ' ' + childObj + ' ' + childObj.tagName + '\n';	
		if (childObj.tagName == 'A') {
			//outId.value += 'XXXXXXXX: ' + childObj.getAttribute('p') + '\n';
			if (childObj.getAttribute('p')) {
				parentObj = childObj;
				//outId.value += Math.pow(10,lvl) + ' Parent SET\n';
			}
//alert(childObj.href);
//alert(document.location.href);
			if (childObj.href == document.location.href) {
				if (childObj.getAttribute('p')) {
					childObj.className = "current";
				} else if (parentObj) {
					parentObj.className = "current";
				}
			}
		}
		goThroughDOM(childObj, lvl + 1);
	}
}
hotPage = function()
{
	goThroughDOMStart('nav',0);
}

if (window.attachEvent) {
	window.attachEvent("onload", hotPage);
} else {
	window.onload = function() {
		hotPage();
	}
}
//-->