//AJAX for the venue info
function getEvents(which,year) {
	
	clearClasses();
	if(which)which.className = "current";


	if(!xmlHttp){
		var xmlHttp;
		try {
			// Firefox, Opera 8.0+, Safari
			xmlHttp=new XMLHttpRequest();
		}
		catch (e) {
			// Internet Explorer
			try {
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e) {
				try {
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e) {
					//alert("Your browser does not support AJAX!");
					return true;
				}
			}
		}
	}
	
	xmlHttp.onreadystatechange=function() {
		if(xmlHttp.readyState==4) {
			//print out the response
			document.getElementById("sig_events").innerHTML=xmlHttp.responseText;
			
		} else if(xmlHttp.readyState==1){
			document.getElementById("sig_events").innerHTML="<h3>loading venue info</h3>";
		}
	}
    
	xmlHttp.open("GET","get_history_event.php?year="+year,true);
    xmlHttp.send(null);
	return false;
}

//clears the class name for the venue list so everything doesn't turn yellow
function clearClasses(){
	var list = document.getElementById("year_nav");
	var names = list.getElementsByTagName("a");

	for(i=0; i<names.length; i++){
		if(names[i].className == "current"){
			names[i].className = "";
		}
	}
}