onload = function () {
    this.positionFooter();
}

onresize = function () {
    if (this.isNS4()){
        document.location.reload();
    }
    else {
        this.positionFooter();
    }
}
positionFooter = function () {
	
	var iHeaderHeight = -20;
    var oFooter = this.getElementById ("div_footer");

    if (oFooter) {
        var iFooterTop = this.getClientHeight() - this.getElementHeight(oFooter);
        iFooterTop = Math.max(600, iFooterTop);
        var oCenter = this.getElementById ("div_center");

        if (oCenter) {
            iFooterTop = Math.max(iFooterTop, iHeaderHeight + this.getElementHeight(oCenter));
        }

        this.setElementTop(oFooter, iFooterTop);
        this.setElementVisible(oFooter, true);
    }
}

