function topMenuHilite(vtd)
{
	vtd.className = 'topMenuLink';


}
function rightMenuHilite(vtd)
{
	vtd.className = 'rightMenuLinkHilite';
	vtd.style.fontFamily = 'Times New Roman';
	vtd.style.textDecoration = 'none';
	vtd.style.color = '#000000';
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function goTo(goPage)
{
	window.location = goPage;
}

function goTox(goPage)
{
	return false;
}

function show(div,items)
{
	//alert(div);
	div.style.display = 'block';
	var otherdiv;
	
	for (var i=1; i<items; i++)
	{
		if (document.getElementById)
			otherdiv=document.getElementById("div" + i);
		else
			otherdiv=document.all("div"+i);
		
		if (otherdiv!=div)
		{
			otherdiv.aselected="false";
			hide(otherdiv);
		}
	}
	
}

//here you place the ids of every element you want.
var ids=new Array('a1','a2');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids1.length;i++){
		hidediv(ids1[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';
		}
	}
	}
//-------------------------------------------------

function switchid2(id){	
	hideallids2();
	showdiv2(id);
}

function hideallids2(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids2.length;i++){
		hidediv2(ids2[i]);
	}		  
}

  
  function hidediv2(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 showdiv2(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';
		}
	}
}
//-------------------------------------------------
function switchid3(id){	
	hideallids3();
	showdiv3(id);
}

function hideallids3(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids3.length;i++){
		hidediv3(ids3[i]);
	}		  
}

  
  function hidediv3(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 showdiv3(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';
		}
	}
}
//-------------------------------------------------
function switchid4(id){	
	hideallids4();
	showdiv4(id);
}

function hideallids4(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids4.length;i++){
		hidediv4(ids4[i]);
	}		  
}

  
  function hidediv4(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 showdiv4(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';
		}
	}
}

