docs: function(event) {
  		if (!$.datepicker._curInst)
  			return;
  
  		var $target = $(event.target),
  			inst = $.datepicker._getInst($target[0]);
  
  		if ( ( ( $target[0].id != $.datepicker._mainDivId &&
  				$target.parents('#' + $.datepicker._mainDivId).length == 0 &&
  				!$target.hasClass($.datepicker.markerClassName) &&
  				!$target.closest("." + $.datepicker._triggerClass).length &&
  				$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||
  			( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst != inst ) )
  			$.datepicker._hideDatepicker();
  	}