/* dialog */ (function($) { var methods = { init: function(annotations) { this.modal({show: !!this.data('show')}); } }; $.fn.hjq_modal = function( method ) { if ( methods[method] ) { return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 )); } else if ( typeof method === 'object' || ! method ) { return methods.init.apply( this, arguments ); } else { $.error( 'Method ' + method + ' does not exist on hjq_dialog' ); } }; })( jQuery );