$(document).ready(function(){
    CKEDITOR.replaceAll(function(textarea,  config) {
        switch (textarea.className) {
            case ("CKEditor_Room"):
                config.toolbar = [
                    ['Source','-','Save'/*,'NewPage'*/,'Preview'/*,'-','Templates'*/],
                    ['Cut','Copy','Paste','PasteText'/*,'PasteFromWord','-','Print'*/, 'SpellChecker'/*, 'Scayt'*/],
                    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
                    //['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
                    //'/',
                    ['Bold','Italic','Underline','Strike'/*,'-','Subscript','Superscript'*/],
                    [/*'NumberedList','BulletedList',*/'-','Outdent','Indent','Blockquote'],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                    //['Link','Unlink','Anchor'],
                    [/*'Image','Flash','Table',*/'HorizontalRule'/*,'Smiley'*/,'SpecialChar'/*,'PageBreak'*/],
                    '/',
                    ['Styles','Format','Font','FontSize'],
                    ['TextColor','BGColor'],
                    ['Maximize', 'ShowBlocks'/*,'-','About'*/]
                ];
                config.width = 550;
                config.height = 300;
                config.resize_enabled = false;
                config.language = 'en';

                return true;
            case ("CKEditor_Registration"):
                config.toolbar = [
                    ['Cut','Copy','PasteText','-','Bold','Italic','Underline','Strike','-','TextColor','BGColor'],
                    //"/",
                    ['-','Outdent','Indent','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock']
                ];
                config.width = 535;
                config.height = 265;
                config.resize_enabled = false;
                config.language = 'en';

                return true;
            case ("CKEditor_Article"):
                config.toolbar = [
                    ['Source','-','Save'/*,'NewPage'*/,'Preview'/*,'-','Templates'*/],
                    ['Cut','Copy','Paste','PasteText'/*,'PasteFromWord','-','Print'*/, 'SpellChecker'/*, 'Scayt'*/],
                    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
                    //['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
                    //'/',
                    ['Bold','Italic','Underline','Strike'/*,'-','Subscript','Superscript'*/],
                    [/*'NumberedList','BulletedList',*/'-','Outdent','Indent','Blockquote'],
                    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                    //['Link','Unlink','Anchor'],
                    ['Image',/*'Flash','Table',*/'HorizontalRule'/*,'Smiley'*/,'SpecialChar'/*,'PageBreak'*/],
                    '/',
                    ['Styles','Format','Font','FontSize'],
                    ['TextColor','BGColor'],
                    ['Maximize', 'ShowBlocks'/*,'-','About'*/]
                ];
                config.width = 550;
                config.height = 300;
                config.resize_enabled = false;
                config.language = 'en';

                return true;
        }
        return false;
    });
});
