<!--

// Footer Placement
function getWindowHeight() {
	var windowHeight = 0;
	if (typeof(window.innerHeight) == 'number') {
		windowHeight = window.innerHeight;
	}
	else {
		if (document.documentElement && document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body && document.body.clientHeight) {
				windowHeight = document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}
function setFooter() {
	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		if (windowHeight > 0) {
			var windowWidth = window.innerWidth;
			var headerHeight = document.getElementById('header').offsetHeight;
			var splashHeight = document.getElementById('splash').offsetHeight;
			var wrapHeight = document.getElementById('outer_wrapper').offsetHeight;
			var contentHeight = document.getElementById('content').offsetHeight;
			var mainHeight = document.getElementById('main').offsetHeight;
			var sidebarHeight = document.getElementById('sidebar').offsetHeight;
			var footerElement = document.getElementById('footer');
			var footerHeight  = footerElement.offsetHeight;
			if (sidebarHeight > mainHeight) { contentHeight = sidebarHeight }
			if (windowHeight - (headerHeight + splashHeight + contentHeight + footerHeight) >= 0) {
				footerElement.style.position = 'absolute';
				footerElement.style.top = (windowHeight - footerHeight) + 'px';
			}
			else {
				footerElement.style.position = 'static';
			}
		}
	}
}


// Drop-down Menu IE Fixes
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav_menu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}

startLeft = function() {
if (document.all&&document.getElementById) {
leftRoot = document.getElementById("nav_left");
for (j=0; j<leftRoot.childNodes.length; j++) {
leftNode = leftRoot.childNodes[j];
if (leftNode.nodeName=="LI") {
leftNode.onmouseover=function() {
this.className+=" over";
  }
  leftNode.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}


function init() {
startList();
startLeft();
setFooter();
}
window.onload = init;
window.onresize = init;

//-->