// ---------------- functie voor languageswap
function swapLanguage(lang) {l = location.href;u = document.URL.split('/');w = u[u.length-(u.length-3)];location.href = l.replace(w,lang);}
// ---------------- einde functie languageswap

// ---------------- functie voor show/ hide layers
function layerSetup(id,visibility){if(document.getElementById){this.obj = document.getElementById(id).style;this.obj.visibility = visibility;return this.obj;}else if(document.all){this.obj = document.all[id].style;this.obj.visibility = visibility;return this.obj;}else if(document.layers){this.obj = document.layers[id];this.obj.visibility = visibility;return this.obj;}}function visVisible(param){new layerSetup(param,'visible');}function visHidden(param){new layerSetup(param,'hidden');}
// ---------------- einde functies



sfHover = function() {
	var sfEls = document.getElementById("sfnav").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);
