var App_Accordion = { _options : { container : "#accordion", accordionOptions : {} }, collapse: function () { $(this._options.container).accordion(this._options.accordionOptions); if (typeof this._options.activeSelector != 'undefined') { $(this._options.container).accordion('activate', $(this._options.activeSelector)); } }, init: function (options) { this._options = $.extend(this._options, options); this.collapse(); } };