//here you place the ids_header of every element you want.
var ids_header=new Array('afrika-header','sydamerica-header', 'centralamerica-header', 'oceana-header','asia-header');

function switchid_header(id){	
	hideallids_header();
	showdiv_header(id);
}

function hideallids_header(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids_header.length;i++){
		hidediv_header(ids_header[i]);
	}
}

function hidediv_header(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		
		if (document.getElementById(id)) {
			document.getElementById(id).style.display = 'none';
		}
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv_header(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
