<!--
//here you place the ids of every element you want.
var ids=new Array('a1','a1-2','a2','a2-2','a3','a3-2','a4','a4-2','a5','a5-2','a6','a6-2');

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) {document.getElementById(id).style.display = 'none';} // DOM3 = IE5, NS6
else 		{
if (document.layers) {document.id.display = 'none';} // Netscape 4
else {document.all.id.style.display = 'none';} // IE 4
			}
}

function showdiv(id) 
{
	//safe function to show an element with a specified id
if (document.getElementById) 	{document.getElementById(id).style.display = 'block';}
else 		{
if 		(document.layers) 	{document.id.display = 'block';}
else 	{document.all.id.style.display = 'block';}
			}
}
//-->