var maxPush = 672;
var resizeHook = window.onresize;
var onloadHook = window.onload;

window.onresize = function() {
	if (resizeHook) resizeHook();
	setFooter();
}

function setFooter() {
var push;
var footer = document.getElementById("copyrightStatic");
var browserHeight;
var browserScroll;
	if (footer) {
		if (document.documentElement.clientHeight) {
			browserHeight = document.documentElement.clientHeight;
		} else if (self.innerHeight) {
			browserHeight = self.innerHeight;
		} else {
			browserHeight = document.body.clientHeight;
		}
		if (document.body.scrollHeight > document.body.offsetHeight) {
			browserScroll = document.body.scrollHeight;
		} else {
			browserScroll = document.body.offsetHeight;
		}
		if (browserScroll < browserHeight) {
			if (browserHeight > maxPush) browserHeight = maxPush;
			push = browserHeight - browserScroll;
			if (push < 0) push = 0;
			if (push > 0) if (navigator.userAgent.indexOf('Firefox') > -1) push -= 10;
			footer.style.top = push + "px";
		}
		if (footer.style.visibility != "visible")
			footer.style.visibility = "visible";
	} else {
		window.onload = function() {
			if (onloadHook) onloadHook();
			setFooter();
		}
	}
}

setFooter();