function getHeight(theEl)
{
	return (theEl.currentStyle) ? theEl.offsetHeight : stripPX(document.defaultView.getComputedStyle(theEl,'').height);
}
function stripPX(theValue)
{
	return (theValue.substring(0, theValue.length - 2) - 0);
}

setDimensions = function() {
	if (document.all) {
//		var thePage=document.getElementById("page");
//		var screenHeight=0;
//		screenHeight = thePage.offsetHeight;
//		screenHeight = screenHeight-124;

//		var theLeftCol=document.getElementById("leftColumn");
//		var theMainCol=document.getElementById("mainColumn");
//		var theMainScr=document.getElementById("mainContent");
//		var theNewsBlock=document.getElementById("explorerScroll");

	//	theMainCol.style.height=(screenHeight-43);
	//	theLeftCol.style.height=(screenHeight-66);
	//	theMainScr.style.height="100%";
	//	if (theNewsBlock) theNewsBlock.style.height=(screenHeight-64);

		if (document.body.clientWidth<779) {document.body.style.width="779px";}
		if (document.body.clientWidth>1003) {document.body.style.width="1003px";}
	}
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
if (window.attachEvent) window.attachEvent("onload", setDimensions);
