/* if the id is found we're going to adjust the width of the footer bar from the default
100% to the actual figure, this is to pacify ie6 really, since 100% really isn't 100% to MS */

function resizeFooter() {
	if ( $('FooterBox') ) {
		var WindowWidth  = window.getScrollWidth();
		var WindowHeight = window.getScrollHeight();
		var FooterSize 	 = $('FooterBox').getSize();
		

		$('FooterBox').setStyle( 'width', WindowWidth ) ;
		$('FooterBox').setStyle( 'top',  WindowHeight - 45  ) ;
		$('FooterBox').setStyle( 'display', 'block' ) ;

		// to do, ie6 specific set here 
		if (typeof document.body.style.maxHeight == "undefined") {
		
			if ( WindowHeight < 636 ) {
				$('FooterBox').setStyle('top',  WindowHeight - 58  ) ;
				
			}else {
				$('FooterBox').setStyle('top',  WindowHeight  - 63 ) ;
			}
            
			$('FooterBox').setStyle('width', WindowWidth - 4 ) ;
		}
			
	}
}


window.addEvent('resize', function(){
	// footer needs to be updated
	resizeFooter();

});

window.addEvent('load', function(){
	// footer needs to be updated
	resizeFooter();

});