

  var SPECIAL_DAYS = {
    0 : [ 1, 15, 16, 17, 20, 26 ],		// special days in January
    2 : [ 21 ],
    3 : [ 7, 13, 14, 18 ],	// special days in april
    4 : [ 1 ],
    7 : [ 15, 23 ],
    8 : [ 3 ],
    9 : [ 1, 2, 8, 9, 27 ],		// 
    11: [ 9, 25 ]
  };
  
  
  function dateIsSpecial(year, month, day) {
    var m = SPECIAL_DAYS[month];
    if (!m) return false;
    for (var i in m) if ((m[i] == day) && year == "2008") return true;
    return false;
  };

  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();     // integer, 0..11
      var d = calendar.date.getDate();      // integer, 1..31
      // redirect...
      
      var months = new Array(13);
        months[0]  = "January";
        months[1]  = "February";
        months[2]  = "March";
        months[3]  = "April";
        months[4]  = "May";
        months[5]  = "June";
        months[6]  = "July";
        months[7]  = "August";
        months[8]  = "September";
        months[9]  = "October";
        months[10] = "November";
        months[11] = "December";

     
      var temp = months[m];
      var temp1 = temp + d + y;
            
     
            
     
    }
  };




function ourDateStatusFunc(date, y, m, d) {
    if (dateIsSpecial(y, m, d))
      return "special";
    else
      return false; // other dates are enabled
      // return true if you want to disable other dates
  };

  Calendar.setup(
    {
      flat         : "calendar-container", // ID of the parent element
      flatCallback : dateChanged,          // our callback function
      dateStatusFunc : ourDateStatusFunc
    }
  );



