function getViewportHeight() {
        if (window.innerHeight!=window.undefined) return window.innerHeight;
        if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
        if (document.body) return document.body.clientHeight; 
        return window.undefined; 
}

function correction() {
		b = 0;
		b = b + (getViewportHeight()-87);
		if (b>=783) return 783;
		else return b;
}

function fit() {
		document.getElementById("footer2").style.top=correction()+'px';
		document.getElementById("footer").style.top=correction()+'px';
		document.getElementById("content").style.height=cor2()+'px';
}

function cor2() {
		a = 0;
		a = a + (getViewportHeight()-64);
		if (a>=806) return 806;
		else return a;
}
