

function showHide(theid)
{
	if (document.getElementById)	// this is the way the standards work
	{
		var whichID = document.getElementById(theid);
	}
	else if (document.all)	// this is the way old msie versions work
	{
		var whichID = document.all[theid];
	}
	else if (document.layers)	// this is the way nn4 works
	{
		var whichID = document.layers[theid];
	}
	
	for(i=1;i<=totalEvents;i++) {
		hideDiv = document.getElementById('event' + i);
	
		if(hideDiv == whichID) {
			if(whichID.style.display == 'none') {
				whichID.style.display = 'block';	
			} else {
				whichID.style.display = 'none';
			}
		} else {
			hideDiv.style.display = 'none';	
		}
	}
}

