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;
}

function setFooter() {
    if (document.getElementById) {
        var windowHeight=getWindowHeight();

        if (windowHeight>0) {
            var contentHeight=
            document.getElementById('Right').offsetHeight;
		//zoneElement.style.height = contentHeight-footerHeight-75;
		var footerElement=document.getElementById('footer');
		var footerHeight=footerElement.offsetHeight;
		var zoneElement=document.getElementById('zone');
		footerElement.style.position='absolute';
	if (contentHeight >= 400)
		{
		footerElement.style.top=(contentHeight-footerHeight+159)+'px';
		zoneElement.style.height = contentHeight-footerHeight-75;
		}
	else
		{
		footerElement.style.top='545px';
		zoneElement.style.height = 400-footerHeight-75;
		}

		//zoneElement.style.height = contentHeight-footerHeight-75;

//alert(windowHeight)
       }
      }
}

window.onload = function() {
setFooter();
}
window.onresize = function() {
setFooter();
}

