//******************************************************//
// Function places footer at bottom page by finding the
// height of the tallest column.
//
// Also, for DOM compliant browsers that incorrectly
// display the box model, this function sets the proper
// width of div#main. I prefer this solution over the
// box model hack
// (http://tantek.com/CSS/Examples/boxmodelhack.html).
//*****************************************************//
/*
Rather than including within the <body> element the
onload statement in every page this script is utilized,
I place it here just once.
*/
window.onload = findWindowDim;

/*
Run the function anytime the resizes the window.
*/
window.resize = findWindowDim;

function findWindowDim(){

var dbcH = document.body.clientHeight;
var objMain = document.getElementById('main');
var objFooter = document.getElementById('footer');
var objLogos = document.getElementById('logos');
var objLeft = document.getElementById('colLeft');
var objRight = document.getElementById('colRight');

/*
Get the current top pixel coordinate for an object.
*/
var mainH = objMain.offsetHeight+125; //Adding some additional space
var leftH = objLeft.offsetHeight;
var logosH = objLogos.offsetHeight+479;
var rightH = objRight.offsetHeight
var newY
var tallestCol

//if(document.all){objMain.style.width = '95%'}

if (leftH>=rightH){
	tallestCol = leftH 
	}
else {tallestCol = rightH}

if (mainH+tallestCol > logosH){
	newY = mainH+tallestCol+20+"px";
	objFooter.style.top = newY;
	}
else{
	newY = logosH+20+"px"
	objFooter.style.top = newY
	}
}

