Problem with datepicker and tooltip

Problem with datepicker and tooltip

Hi

I m getting some trouble with datepicker and tooltips : everything is okay if i don't click.
once i click on a date or i click on the next month, the tooltips css and animations are disabled.

here is the script :

  1.         <script type="text/javascript">
  2. $(function(){
  3.                   var specialDays = {  '2011': {    '3': {      '10': {tooltip: "Some event", className:                         "holiday"}    },    '4': {      '15': {tooltip: "Some another event", className: "holiday"}  ,                  '10': {tooltip: "Some event", className: "holiday"}  }  }};
  4.                   $('#datepicker').datepicker({beforeShowDay: function(date) {
  5.                                      var d = date.getDate(),                     m = date.getMonth()+1,
  6.                                      y = date.getFullYear();
  7.                                      if (specialDays[y] && specialDays[y][m] && specialDays[y][m][d]) {                                                           var s = specialDays[y][m][d];
  8.                                                        return [true, s.className, s.tooltip]; // selectable
  9.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   }                                      return [true,'']; // non-selectable
  10.                                                                                                                                                                                                                                                                                                                                                       }});
  11.               /* tooltip*/
  12.                                                                                                                                                                                                                                                                                                                                                                                                                                         $(".ui-datepicker-calendar").tooltip({
  13.                                                           open: function() {
  14.                                                               $(".ui-tooltip").stop(false, true).hide().slideDown();
  15.                                                                                    },
  16.                                                           close: function() {
  17.                                                              $(".ui-tooltip").stop(false, false).show().slideUp(function()                                                                         { $(this).remove(); })
  18.                                                                                    }
  19.                                                           



Thanks for your help