// JavaScript Document
function createRequestObject(){
	var request_o; //declare the variable to hold the object.
	var browser = navigator.appName; //find the browser name
	if(browser == "Microsoft Internet Explorer"){
		/* Create the object using MSIE's method */
		request_o = new ActiveXObject("Microsoft.XMLHTTP");
	}else{
		/* Create the object using other browser's method */
		request_o = new XMLHttpRequest();
	}
	return request_o; //return the object
}

http = createRequestObject(); 

function getEvents() {
  var myurl = 'http://www.agitpoprecords.com/scripts/get_events.php'; 
  http.open("GET", myurl+"?id="+1);
  http.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
  http.onreadystatechange = useHttpResponse;
  http.send(null);
} 

function useHttpResponse() {
  if (http.readyState == 4) {
    var textout = http.responseText;
	var arr = new Array();
	arr = textout.split("#$#");
	document.getElementById('events').innerHTML=arr[1];
	document.getElementById('right').innerHTML = arr[0];
  }
}

function setSize(){
	if(navigator.appName == "Microsoft Internet Explorer"){
		document.getElementById('right').style.height='350';
		document.getElementById('events').style.height='350';
	}
	else{
		document.getElementById('right').style.height='';
		document.getElementById('events').style.height='';
	}
}