var browser = navigator.userAgent;
var initialized = false;

// Get the height of the entire document
// --------------------------------------------------------------------
function getDocumentHeight() {
    
    return Math.max(
        Math.max(document.body.scrollHeight, document.documentElement.scrollHeight),
        Math.max(document.body.offsetHeight, document.documentElement.offsetHeight),
        Math.max(document.body.clientHeight, document.documentElement.clientHeight)
    );
}

function initialize(){
	if(!initialized){
		if(navigator.userAgent.indexOf('MSIE') > -1){
			browser = 'MSIE';
		}
		if(navigator.userAgent.indexOf('Firefox') > -1){
			browser = 'FF';
		}
		if(navigator.userAgent.indexOf('Chrome') > -1){
			browser = 'FF';
		}
		window.onresize = resizeWindow;
		initialized = true;
	}
}
	
function load(){
	initialize();
	
	var el = document.getElementById('bottom');
	el.style.position = "absolute";
	el.style.top = ""+getDocumentHeight() - 110;
	
	el.style.width = "100%";
	el.style.display = "block";

	if(browser == 'FF'){
		el = document.getElementById('navigation');
		el.style.paddingLeft = "22px";
	}
	

}
	
function resizeWindow(){
	load();
}
