function deploy_wysiwyg()
{
    var instance = CKEDITOR.instances['body'];
    if(instance)
    {
        CKEDITOR.remove(instance);
    }
    var instance = CKEDITOR.instances['testimonial'];
    if(instance)
    {
        CKEDITOR.remove(instance);
    }
    var instance = CKEDITOR.instances['description'];
    if(instance)
    {
        CKEDITOR.remove(instance);
    }
    $('textarea.wysiwyg').ckeditor(
    {
       filebrowserImageBrowseUrl:  "/files",
        extraPlugins: 'MediaEmbed',
        toolbar: [
            ['Source','-','Save','NewPage','Preview','-','Templates'],
            ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
            ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
            '/',
            ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
            ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Link','Unlink'],
            ['Image','MediaEmbed','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
            '/',
            ['Styles','Format','Font','FontSize'],
            ['TextColor','BGColor'],
            ['Maximize', 'ShowBlocks','-','About']
        ]
    }, function()
    {
        $.fancybox.center();
    });
    
    $('textarea.wysiwyg-basic').ckeditor(
    {
        toolbar: [
            ['Bold','Italic','Underline','Strike'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Smiley']
        ]
    }, function()
    {
        $.fancybox.center();
    });
}
