
function initNav() {
	var ctxt = document.getElementById("ctxtnav");
	var srch = document.getElementById("searchnav");
//	var navall = document.getElementById("nav_all");
	var abstop = getAbsoluteTop(srch);
	var absheight = 70;
	ctxt.style.top = abstop + absheight  + 'px';
//	ctxt.style.top = navall.offsetTop + navall.offsetHeight  + 'px';
//	alert("top: " + navall.offsetTop + " - height: " + navall.offsetHeight);
}


//GETS REAL TOP VALUE WITH RESPECT TO CLIENT AREA
function getAbsoluteTop(elem)
{
	var topPosition = 0;

	while (elem) {
		if (elem.tagName == 'BODY') {
			break;
		}
		topPosition += elem.offsetTop;
		elem = elem.offsetParent;
	}
	return topPosition;
}



function initNav() {
	var ctxt = document.getElementById("ctxtnav");
	var srch = document.getElementById("searchnav");
//	var navall = document.getElementById("nav_all");
	var abstop = getAbsoluteTop(srch);
	var absheight = 70;
	ctxt.style.top = abstop + absheight  + 'px';
//	ctxt.style.top = navall.offsetTop + navall.offsetHeight  + 'px';
//	alert("top: " + navall.offsetTop + " - height: " + navall.offsetHeight);
}


//GETS REAL TOP VALUE WITH RESPECT TO CLIENT AREA
function getAbsoluteTop(elem)
{
	var topPosition = 0;

	while (elem) {
		if (elem.tagName == 'BODY') {
			break;
		}
		topPosition += elem.offsetTop;
		elem = elem.offsetParent;
	}
	return topPosition;
}



