App_Process = { options: { nonMediaSelector: '#height-label, #height-element, .toolbar, .container-edit, #isMultiply-label, ' + '#isMultiply-element', mediaSelector: '#sidebar-label, #sidebar-element' }, init: function(params) { if ($('#isMedia:checked').val() == 'y') { $(App_Process.options.nonMediaSelector).css('display', 'none'); $(App_Process.options.mediaSelector).css('display', 'block'); } else { $(App_Process.options.nonMediaSelector).css('display', 'block'); $(App_Process.options.mediaSelector).css('display', 'none'); } $('#isMedia').bind('change', function(){ if ($('#isMedia:checked').val() == 'y') { $(App_Process.options.nonMediaSelector).css('display', 'none'); $(App_Process.options.mediaSelector).css('display', 'block'); } else { $(App_Process.options.nonMediaSelector).css('display', 'block'); $(App_Process.options.mediaSelector).css('display', 'none'); } }); } }