var App_Leadership = { init: function(params) { var id = App_Leadership.getCookie(); if (id != null) { params['activeSelector'] = '#leadership_heaer_' + id; } App_Accordion.init(params); }, setCookie: function(id) { $.cookie('_currentTab', id); }, getCookie: function() { return $.cookie('_currentTab'); } }