// JavaScript Document
function hideAll(theClass) {
	//Create an array 
	var allPageTags = new Array(); 
	//Populate the array with all the page tags
	var allPageTags=document.getElementsByTagName("*");
	//Cycle through the tags using a for loop
	for (i=0; i<allPageTags.length; i++) {
		//Pick out the tags with our class name
		if (allPageTags[i].className==theClass) {
			//Manipulate this in whatever way you want
			allPageTags[i].style.visibility = 'hidden';
		}
	}
} 

function toggle(obj){
	hideAll('infoBox');
	document.getElementById(obj).style.visibility = 'visible';
}

function closePanel(){
	hideAll('infoBox');
}