sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	var sfEls = document.getElementById("foot_menu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function changeheight() {
    frame.style.marginTop = "0px";
    sh = document.body.scrollHeight;
    ch = document.body.clientHeight;
    
    mar = (ch - sh) / 2;

    if(mar >= 0) {
    frame.style.marginTop = mar + "px";
    }
    if(mar < 0) {
    frame.style.marginTop = "20px";
    }
}

if (window.attachEvent) window.attachEvent("onload", changeheight);
if (window.attachEvent) window.attachEvent("onresize", changeheight);