
//Div hide and display
function showDetails(l) {
	if (document.getElementById) {

		try {
			xhr = new ActiveXObject("Microsoft.XMLHTTP");    // Trying Internet Explorer 
		}
		catch(e)     // Failed 
		{
			xhr = new XMLHttpRequest();
		}
	
		if (xhr) {
			xhr.onreadystatechange = function() {
				if (xhr.readyState == 4) {
					d = document.getElementById('eventDetails');
					d.innerHTML = xhr.responseText;
					d.style.display="block";
				}
			}
			xhr.open('GET', l.href);
			xhr.send(null);
		}
	}
}
function close_allDetails() {
	for (var c=0; c < menuArray.length; c++) {
		hideDetails(menuArray[c]);
	}
}
function hideDetails(id) {
	if (document.getElementById) {
		var hide_div=document.getElementById(id);
		hide_div.style.display="none";
	}
}

