Fires when popup becomes hidden (user move mouse out from cell with tooltip)
myCalendar.attachEvent("onPopupHide", function(date){ // your custom code });
Parameters of handler function: