I would like to trigger a simple jQuery function based on a fancybox closing. it is the only fancybox on the page
$.fn.fancybox.close = function() {
$('#sub_cont').hide(250, function() {
$('#IDsearchform input').val('');
});
});
ofcourse the above doesn't work