//theme_advanced_buttons1 : "styleselect,fontselect,fontsizeselect,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,undo,redo",
//theme_advanced_buttons2 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor,|,bullist,numlist,|,outdent,indent,blockquote,|,sub,sup,|,cleanup,removeformat",
//theme_advanced_buttons3 : "link,unlink,anchor,|,hr,charmap,insertdate,inserttime,table,|,emotions,image,|,styleprops,spellchecker,|,code,fullscreen,print,help,insertfile,insertimage,iespell,blockquote",

tinyMCE_GZ.init({
	plugins : "safari,spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,"
	+ "inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,"
	+ "fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
	themes : 'advanced',
	languages : 'fr',
	disk_cache : true,
	debug : false
});


tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	language : "fr",
	skin : "o2k7",
	skin_variant : "silver",
	plugins : "safari,spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,"
	+ "inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,"
	+ "fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
	editor_selector : "mceEditorFull",
	theme_advanced_resizing_use_cookie : false,
	spellchecker_languages : "+French=fr,English=en,Danish=da,Dutch=nl,Finnish=fi,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
    file_browser_callback : 'myFileBrowser',

	// Theme options
	theme_advanced_buttons1 : "styleselect,fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor,|,bullist,numlist,|,outdent,indent,blockquote,|,sub,sup",
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,cleanup,removeformat,|,search,replace,|,undo,redo,|,link,unlink,anchor,|,hr,charmap,insertdate,inserttime,table,|,emotions,image,|,styleprops,spellchecker,|,code,fullscreen,print,help,insertfile,insertimage,blockquote,",
	theme_advanced_buttons3 : "",
	theme_advanced_buttons4 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true
});


tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	language : "fr",
	skin : "o2k7",
	skin_variant : "silver",
	plugins : "safari,spellchecker,style,layer,table,save,advhr,advimage,advlink,emotions,"
	+ "inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,"
	+ "noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
	editor_selector : "mceEditorSmall",
	theme_advanced_resizing_use_cookie : false,
	spellchecker_languages : "+French=fr,English=en,Danish=da,Dutch=nl,Finnish=fi,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",
    //file_browser_callback : 'myFileBrowser',

	// Theme options
	theme_advanced_buttons1 : "fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor,|,bullist,numlist,|,outdent,indent",
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,cleanup,removeformat,|,search,replace,|,undo,redo,|,link,unlink,anchor,|,hr,charmap,insertdate,inserttime,|,emotions,|,spellchecker,|,help,",
	theme_advanced_buttons3 : "",
	theme_advanced_buttons4 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true
});


  function myFileBrowser (field_name, url, type, win) {
    var cmsURL = 'rte-select-img.htm';    // script URL - use an absolute path!
    tinyMCE.activeEditor.windowManager.open({
        file : cmsURL,
        title : 'Mes fichiers:',
        width : 720,  // Your dimensions may differ - toy around with them!
        height : 550,
        resizable : "yes",
        inline : "yes",  // This parameter only has an effect if you use the inlinepopups plugin!
        close_previous : "no"
    }, {
        window : win,
        input : field_name
    });
    return false;
  }

