/* vanbreda.js */

function removeelements() {

}
function revertback() {

}
function switchLanguage() {
	var loc = new String(window.location.host);
	if(loc.indexOf("bank") > 0)
		loc = loc.replace("bank","banque");
	else
		loc = loc.replace("banque","bank");
	window.location = "http://" + loc + window.location.pathname;
	return false;
}
function fixheight(){

    var main = document.getElementById("main");
    var subnav = document.getElementById("sub-nav");
    var modules = document.getElementById("modules");

    if(subnav.offsetHeight > main.offsetHeight) main.style.height = subnav.offsetHeight;
    if(modules != null && modules.offsetHeight > main.offsetHeight){
        if(modules.offsetHeight > main.style.height) main.style.height = modules.offsetHeight;
    }

}