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 getWindowWidth() {
var windowWidth=0;
if (typeof(window.innerWidth)=='number') {
windowWidth=window.innerWidth;
}
else {
if (document.documentElement&&
document.documentElement.clientWidth) {
windowWidth=
document.documentElement.clientWidth;
}
else {
if (document.body&&document.body.clientWidth) {
windowWidth=document.body.clientWidth;
}
}
}
return windowWidth;
}

function setFooter(q) {
if(q == 17){	
	if(navigator.userAgent.indexOf("Firefox")!=-1){
		document.getElementById('kop1').style.top='-2px';
		document.getElementById('kop2').style.top='35px';
		var versionindex=navigator.userAgent.indexOf("Firefox")+8
		if (parseInt(navigator.userAgent.charAt(versionindex))>=1)
		q = 0;
	}	
}
	
if (document.getElementById) {
var windowHeight=getWindowHeight();
var windowWidth=getWindowWidth();
if (windowHeight>0) {

if(document.getElementById('wit').offsetHeight < windowHeight-255){
document.getElementById('wit').style.height = ((windowHeight-255)+(q))+'px';
}
var contentHeight=
document.getElementById('main').offsetHeight;
//alert((windowHeight-200)+'px');
var footerElement= document.getElementById('footer');
var footerHeight= footerElement.offsetHeight;
if (windowHeight-(contentHeight+footerHeight)>=0) {
footerElement.style.position='relative';
footerElement.style.top=(windowHeight-
(contentHeight+footerHeight-q))+'px';
footerElement.style.left='0px';
}
else {
footerElement.style.position='static';
}
}
}
}

