
function updateDetails(month,day,year,start,end,title,description,locTitle,locDesc,locPic) {
  details = "<div class='header'>"+month+" "+day+", "+year+"</div>";
  details += "<h2>"+title+"</h2>";
  if(start != end)
    details +="<h3>"+start+" - "+end+"</h3>";
  details +="<p>"+description+"</p>";
  $('#caldetails').html(details);
  
  loc = "<div class='header'>Location</div>";
  loc += "<img src='/images/"+locPic+"' /><p class='clear address'>"+locDesc.substring(3,(locDesc.length-4))+"</p>";
  $('#logos').html(loc);
}

function init() {
  $("#calendar a").click(function () { 
    $("#calendar a").parent().css({'background-color': '#FFF'});
    $(this).parent().css({'background-color': '#F2EF92'}); 
    
  });
  
  firstLink = $('#calendar a').first();
  
  // Highlight the first date
  firstLink.click();
  
  // Run the javascript of the link
  eval(firstLink.attr('href'));
}

