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 SetFooterLocation() {
	var windowHeight=GetWindowHeight();
	if (windowHeight>0) {
		var documentHeight=document.body.offsetHeight;
		var delta = windowHeight - documentHeight;
		if (delta > 0) {
			var meat = document.getElementById('content_outer');
			meatHeight = meat.offsetHeight + delta;
			meat.style.height = meatHeight+"px";
		}
	}
}

function ExternalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}
}

