anchor.diff:            return year + "/" + month + "/" + day;
           }
           
  -        function compareDate( date1, date2 )
  -        {
  -          if (date1.getFullYear() < date2.getFullYear() || date1.getMonth() < date2.getMonth() ||
  -            date1.getDate() < date2.getDate())
  -            return -1;
  -          if (date1.getFullYear() == date2.getFullYear() && date1.getMonth() == date2.getMonth() &&
  -            date1.getDate() == date2.getDate())
  -            return 0
  -          else return 1;
  +        function isDate1AfterDate2(date1, date2) {
  +        	return isD1AfterD2(date2.getFullYear(), date2.getMonth(), date2.getDate(), date1.getFullYear(), date1.getMonth(), date1.getDate());
  +        }
  +        
  +        function areDateEquals( date1, date2 ) {        	
  +          return date1.getFullYear() == date2.getFullYear() && date1.getMonth() == date2.getMonth() && date1.getDate() == date2.getDate();
           }
           
           function startTimeOf( event ) {
  
positive.code:       
          function longFormatOf( date )
          {
            if (compareDate(date, now) == 0)
              return $("<div>").addClass("eventLongDate").append(TODAY);
            else if (compareDate(date, nextday) == 0)
              return $("<div>").addClass("eventLongDate").append(TOMORROW);
            else
              return $("<div>").addClass("eventLongDate").
  
negative.code:           var event = events[i];
            var eventCss = event.className.join(' ');
            var startDate = $.fullCalendar.parseDate(event.start);
            if (isDate1AfterDate2(now, startDate)) {
              startDate = now;
            }
            
            daySlotOf(event).append($("<div>").attr("id", "event" + i).addClass("event " + eventCss).
              append($("<div>").addClass("eventName").
  