var ids=new Array('div1','div2','div3','div4','div5','div6','div7',
									'div8','div9','div10','div11','div12','div13','div14',
									'div15','div16','div17','div18','div19','div20','div21',
									'div22','div23','div24','div25','div26','div27','div28',
									'div29','div30','div31','div32','div33','div34','div35',
									'div36','div37','div38','div39','div40','div41','div42');
function switchid(id){
	hideallids();
	showdiv(id);
}
function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}
}
function hidediv(id) {
//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		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(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';
		}
	}
}
