//****************hide-show div scripts****************	


//here you place the ids of every element you want.
var ids=new Array('homeEvent','eventClose','eventText');


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';
		}
	}
}




//****************Toggle Panel****************

		function TogglePanel(panelId)
		{
		var panel = document.getElementById(panelId);

		if (panel && panel.className == "featuresText")
		{
		panel.style.display = (panel.style.display == "none") ? "block" : "none";
		}
		}

		window.onload =
		function ()
		{
		var url = location.href,
		separatorPosition = url.indexOf ("#");

		if (separatorPosition < 0)
		return;

		var requestedEntry = url.substring (separatorPosition + 1);

		TogglePanel (requestedEntry);
		};
		
		
		




//**************** IE Link Blur ****************
 // 4LevelWebs ver1.0 
function unblur() {
	this.blur();
} 
function blurLinks() {
	if (!document.getElementById) return;
	theLinks = document.getElementsByTagName("A");
	theAreas = document.getElementsByTagName("AREA");
	for(i=0; i<theLinks.length; i++) {theLinks[i].onfocus = unblur;}
	for(i=0; i<theAreas.length; i++) {theAreas[i].onfocus = unblur;}
  } 
//blurLinks End
