function show(id){

	for (i=1;i<=4;i++){
		if(document.getElementById("show"+i))
			document.getElementById("show"+i).style.display = 'none';
		}
	document.getElementById("show"+id).style.display = 'block';
	}
window.onload = function(){
	if (typeof showLayer == "number" && showLayer != 0)
		show(showLayer);
}

function change_tab(id){

	for (i=1;i<=4;i++){
		if(document.getElementById("change_tab"+i))
			document.getElementById("change_tab"+i).style.display = 'none';
			document.getElementById("tab_"+i).className = 'inactive';
		}
	document.getElementById("change_tab"+id).style.display = 'block';
	document.getElementById("tab_"+id).className = 'current';
	}
window.onload = function(){
	if (typeof showLayer == "number" && showLayer != 0)
		show(showLayer);
}

function change_tab_ph(id){

	for (i=1;i<=2;i++){
		if(document.getElementById("change_tab"+i))
			document.getElementById("change_tab"+i).style.display = 'none';
			document.getElementById("tab_"+i).className = 'inactive';
		}
	document.getElementById("change_tab"+id).style.display = 'block';
	document.getElementById("tab_"+id).className = 'current';
	}
window.onload = function(){
	if (typeof showLayer == "number" && showLayer != 0)
		show(showLayer);
}