fires when the calendar becomes visible (useful when attached to an input)
myCalendar.attachEvent("onShow", function(){ // your code here });