// This section of the script copyright www.maxxblade.co.uk
// Browser and Window Height Check
var ns4 = (document.layers) ? 1 : 0;
var ie4 = (document.all) ? 1 : 0;
var ns6 = (document.getElementById && !document.all) ? 1 : 0;
function winWid(){ return (ns4||ns6) ? window.innerWidth : document.body.clientWidth; }
function winHei(){ return (ns4||ns6)?window.innerHeight:document.body.clientHeight; }

// This section of the script copyright www.brilliantweb.co.za
// Make Content Box Fit Window
var displaywitdh = winWid();
var displayheight = winHei();
var header = 65;
var footer = 22;
var extraspace = 20;
var content = displayheight - header - footer - extraspace;
document.write('<style><!-- #maintext { height: ' + content + 'px } --> </style>');