/////////////////////////
// tested in FF 2.0, Safari 3.1, IE 7.0, and IE 6.0
var screenWidth = window.screen.width;
var screenHeight = window.screen.height;
var windowWidth = window.innerWidth || document.documentElement.clientWidth;			// useable space
var windowHeight = window.innerHeight || document.documentElement.clientHeight;		// useable space
var hscroll = window.pageXOffset || document.documentElement.scrollLeft;	// not tested
var vscroll = window.pageYOffset || document.documentElement.scrollTop;
/////////////////////////
function positionFooter()
{
	// this will position a footer at the bottom of the window
	// tested in FF 2.0, Safari 3.1, IE 7.0, and IE 6.0
	//
	// 'content' div holds all content other than footer
	// place 'footer' div below 'content' div
	var windowHeight = window.innerHeight || document.documentElement.clientHeight;
	var contentHeight = document.getElementById("container").offsetHeight;
	var footerElement = document.getElementById("footer");
	var footerHeight = footerElement.offsetHeight;
	
	if (windowHeight - (contentHeight + footerHeight) >= 0)
	{
		footerElement.style.top = windowHeight - (contentHeight + footerHeight) + "px";
	}
}
/////////////////////////

