/* editspot calendar setup */

/* this function is called when the date or month is changed in the calendar */
 function dateChanged(calendar) {
    // Beware that this function is called even if the end-user only
    // changed the month/year.  In order to determine if a date was
    // clicked you can use the dateClicked property of the calendar:
    if (calendar.dateClicked) {
      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
      var y = calendar.date.getFullYear();
      var m = calendar.date.getMonth() + 1;     // integer, 0..11
      var d = calendar.date.getDate();      // integer, 1..31
      // redirect...
      window.location = "/event/" + y + "/" + m + "/" + d + "/";
    }
  };
  

/* this function is called for each date to hilite specific dates */
function eventDate(date, y, m, d) {
	//hardcoded, make this dynamic to populate calendar
	if (y=="2006" && m=="9" && d=="14") {
	  return "special";
	}
	else
	  return true; // other dates are enabled
	  // return true if you want to disable other dates
};