function toggleDisplay(id){
	if (document.layers)
	{
		if(document.layers[id]==null) return;
		current = (document.layers[id].display == 'none') ? 'block':'none';
		document.layers[id].display = current;
	}
	else if (document.all)
	{
		if(document.all[id]==null) return;
		current = (document.all[id].style.display == 'none') ? 'block':'none';
		document.all[id].style.display = current;
	}
	else if (document.getElementById)
	{
		if(document.getElementById(id)==null) return;
		vista = (document.getElementById(id).style.display == 'none') ? 'block':'none';
		document.getElementById(id).style.display = vista;
	}
}


function display(id, vista){
	if (document.layers)
	{
		if(document.layers[id]==null) return;
		document.layers[id].display = vista;
	}
	else if (document.all)
	{
		if(document.all[id]==null) return;
		document.all[id].style.display = vista;
	}
	else if (document.getElementById)
	{
		if(document.getElementById(id)==null) return;
		document.getElementById(id).style.display = vista;
	}
}

function show(id){
	display(id, 'block');
}

function hide(id){
	display(id, 'none');
}


function toggleDetail(id){
	hide_all();
	show("detail_" + id);
}

function hide_all(){
	hide("detail_a");
	hide("detail_b");
	hide("detail_c");
	hide("detail_d");
	hide("detail_e");
}
