hs.showCredits = false;

 function getCalendar(button, cMonth, cYear, whichCal){
	 var year = cYear;
	 var month = cMonth;
	 
	 if(button == 'pY'){
		year--;
	 }
	 
	 if(button == 'pM'){
		 
		 if(month == 1){
			month = 12;
			year--;
		 }else{
			 month--;	 
		 }
	 }
	 
	 if(button == 'nM'){
		 if(month == 12){
			
			 month = 1;
			 year++;
		
		 }else{
		 
			 month++;
		 
		 }
			 
	 }
	 
	 if(button == 'nY'){
		
		 year++;
		 
	 }
	 
	 
	 
	 cMonth = document.getElementById('cMonth').innerHTML;
	 
	 var url="/calendar/objCal.php?nav="+whichCal+"&month="+month+"&year="+year;
	 
	 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 false;
				}
			}
		}
		xmlHttp.onreadystatechange=placeCalendar;
		
		xmlHttp.open("GET",url,true);
		
		xmlHttp.send(null);

 }
 
 function placeCalendar(){
	
		if (xmlHttp.readyState==4)
		{// 4 = "loaded"
			if (xmlHttp.status==200)
			{// 200 = "OK"
				var lastCalendar = document.getElementById('calendar');
				var calendarContainer = document.getElementById('calendarContainer');
				calendarContainer.removeChild(lastCalendar);
				calendarContainer.innerHTML=xmlHttp.responseText;

			}
			else
			{
				alert("Problem retrieving data:" + xmlHttp.statusText);
			}
		}

	 
 }
 


function mouseOver(){
document.body.style.cursor = 'pointer';
}

function mouseOut(){
document.body.style.cursor = 'default';	
}
