var tinyMCELang = 'en';
if (OlefaLang == 'lb' || OlefaLang == 'lu') {
	tinyMCELang = 'lb';
} else if(OlefaLang == 'de' || OlefaLang == 'fr') {
	tinyMCELang = OlefaLang;
}
tinyMCE.init({
   mode                            : "textareas",
   editor_selector                 : "mceEditor",
   theme                           : "advanced",
   plugins                         : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,"
                                   + "iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,"
                                   + "directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,"
                                   + "table,paste,fullscreen",
   theme_advanced_buttons1         : "fontselect,fontsizeselect,bold,italic,underline,strikethrough,|,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,|,"
                                   + "forecolor,backcolor,|,"
                                   + "cut,copy,paste,pastetext,pasteword,|,"
                                   + "undo,redo,|,search,replace,|,",
   theme_advanced_buttons2         : "tablecontrols,|,"
                                   + "bullist,numlist,|,"
                                   + "hr,|,charmap,emotions,media,advhr,|,visualchars,nonbreaking,|,print,|,nonbreaking,|,"
                                   + "insertdate,inserttime,preview,|,"
                                   + "visualaid,|,"
                                   + "removeformat,unlink,cleanup,code",
   theme_advanced_buttons3         : "",
   theme_advanced_toolbar_location : "top",
   theme_advanced_toolbar_align    : "left",
   theme_advanced_path_location    : "bottom",
   extended_valid_elements         : "a[name|href|target|title|onclick],"
                                   + "img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],"+
                                   + "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
   content_css                     : '/osr/stylesheets/apps/wikiedit.css',
   cleanup                         : true,
   force_br_newlines               : true,
   forced_root_block               : "",
   language                        : tinyMCELang
});

