// JavaScript Document
$(document).ready(function() {
    footerPush("#base_home_logofloat");
});
function footerPush (bodyElement) {
    if ( $(window).height() > $(document.body).height() ) {
        if ( $.browser.msie ) {             //If Microsoft's IE
            //$(bodyElement).height( $(bodyElement).height() + ( $(window).height() - $(document.body).height()) - 0);
			var tPosY = $(bodyElement).height() + ( $(window).height() - $(document.body).height()) - 122;
        } else if ($.browser.mozilla) {     //If Mozilla's Firefox
            //$(bodyElement).height( $(bodyElement).height() + ( $(window).height() - $(document.body).height()) - 17);
			var tPosY = $(bodyElement).height() + ( $(window).height() - $(document.body).height()) - 105;
        } else if ($.browser.safari) {      //If Apple's Safari *or* Google's Chrome
            //$(bodyElement).height( $(bodyElement).height() + ( $(window).height() - $(document.body).height()) - 58);
			var tPosY = $(bodyElement).height() + ( $(window).height() - $(document.body).height()) - 167;
        } else {                            //Any other browser, default to 'standard' implementation
            //$(bodyElement).height( $(bodyElement).height() + ( $(window).height() - $(document.body).height()) - 0);
			var tPosY = $(bodyElement).height() + ( $(window).height() - $(document.body).height()) - 0;
        };
    };
    if ( $.browser.opera ) {     //If Opera
        if ( window.innerHeight > $(document.body).height() ) {
           // $(bodyElement).height( $(bodyElement).height() + ( window.innerHeight - $(document.body).height()) - 0 );
		   var tPosY = $(bodyElement).height() + ( window.innerHeight - $(document.body).height()) - 0;
        };
    };
	
	$(bodyElement).css({top: tPosY});
};
