
/**
 * getWindowHeight
 * used by the footer for 
 * absolute placing footer
 */
function getWindowHeight() {
    var windowHeight=0;
    if (typeof(window.innerHeight)=='number') {
        windowHeight=window.innerHeight;
    } else {
        if (document.documentElement&&
        document.documentElement.clientHeight) {
        windowHeight=
        document.documentElement.clientHeight;
        } else {
            if (document.body&&document.body.clientHeight) {
                windowHeight=document.body.clientHeight;
            }
        }
    }
    return windowHeight;
}

/**
 * setFooter
 * sets the footer by using the windowheight function
 */
 function setFooter() {
 
    headerheight = 62;
	footerheight = 72;
	margin		 = 30;
	total = headerheight + footerheight + margin;
	
	var windowHeight=getWindowHeight();
	
	heightbody = windowHeight - total;
	
	$('scrollbody').style.height = heightbody+'px';
}    
