function show_event(day_to_show, diary) {
  //sends ajax request to obtain details of events on a particular day and displays in previously hidden box in column

  var edc = $("#event_detail_container");
  edc.slideUp();  
  
  $.get("ajax_process.php", { action:"get_diary_events",day : day_to_show, diary: diary}, 
    function (responseText, textStatus, XMLHttpRequest) {
      //The following can be used to show the response from the Ajax request (useful for debugging
      //alert(responseText);

	  edc.html(responseText);
	  edc.slideDown();
	  
    }
   )
  
} // end function show_event

function load_calendar(month_string, diary) {

  //Hide any event details that are open
  var edc = $("#event_detail_container");
  edc.slideUp();  
  
  var calendar_box = $("#sidebox_calendar_container");  

  $.get("ajax_process.php", { action:"get_monthly_calendar", month_string : month_string, diary:diary}, 
    function (responseText, textStatus, XMLHttpRequest) {
      //The following can be used to show the response from the Ajax request (useful for debugging
      //alert(responseText);	  

	  calendar_box.html(responseText);
    }
   )

} // end function load_calendar