tinyMCE.init({
	mode : "textareas",
	elements : "ajaxfilemanager",
	editor_selector : "mceMini",
	theme : "advanced",
	plugins : "advimage",
	height : "130",
	width  : "176",
	language : "nl",
	content_css : "css/tinymce.css",
	theme_advanced_buttons1_add_before : "",
	theme_advanced_buttons2_add : "",
	theme_advanced_buttons2_add_before: "",
	theme_advanced_buttons3_add_before : "",
	theme_advanced_buttons3_add : "",
	theme_advanced_disable : "undo,redo,cut,copy,paste,anchor,styleselect,sub,sup,charmap,help,code,cleanup,removeformat,hr,justifyfull,formatselect,|,seperator,tablecontrols,forecolor,backcolor",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	extended_valid_elements : "hr[class|width|size|noshade]",
	file_browser_callback : "ajaxfilemanager",
	paste_use_dialog : false,
	theme_advanced_resizing : true,
	theme_advanced_resize_horizontal : true,
	apply_source_formatting : true,
	force_br_newlines : true,
	force_p_newlines : false,	
    relative_urls : false, 
    remove_script_host : false
});

tinyMCE.init({
	mode : "textareas",
	elements : "ajaxfilemanager",
	theme : "advanced",
	plugins : "table,advhr,advimage,advlink,flash,paste,fullscreen,noneditable,contextmenu,media",
	editor_selector : "mceSimple",
	height : "220",
	width  : "330",
	language : "nl",
	content_css : "css/tinymce.css",
	theme_advanced_buttons1_add_before : "",
	theme_advanced_buttons1 : "bold,italic,underline,separatorm,styleselect,removeformat,code",
	theme_advanced_buttons2 : "justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink,advimage",
	theme_advanced_buttons2_add : "",
	theme_advanced_buttons2_add_before: "",
	theme_advanced_buttons3 : "",
	theme_advanced_buttons3_add_before : "",
	theme_advanced_buttons3_add : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_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]",
	file_browser_callback : "ajaxfilemanager",
    relative_urls : false, 
    remove_script_host : false
});

tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	editor_selector : "mceSimpleFont",
	height : "300",
	width  : "150",
	language : "nl",
	content_css : "css/tinymce.css",
	theme_advanced_buttons1 : "bold,italic,underline,separator,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
	theme_advanced_buttons2 : "styleselect",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_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]",
    relative_urls : false, 
    remove_script_host : false
});


tinyMCE.init({
	mode : "textareas",
	elements : "ajaxfilemanager",
	editor_selector : "mceImages",
	theme : "advanced",
	plugins : "advimage",
	content_css : "css/tinymce.css",
	height : "400",
	width  : "400",
	language : "nl",
	theme_advanced_disable : "bold,italic,underline,indent,outdent,bullist,numlist,undo,redo,cut,copy,paste,justifyleft,justifyright,justifycenter,justifyfull,link,unlink,anchor,styleselect,sub,sup,charmap,help,code,cleanup,removeformat,hr,justifyfull,formatselect,|,seperator,tablecontrols,forecolor,backcolor",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	extended_valid_elements : "hr[class|width|size|noshade]",
	file_browser_callback : "ajaxfilemanager",
	paste_use_dialog : false,
	theme_advanced_resizing : true,
	theme_advanced_resize_horizontal : true,
	apply_source_formatting : true,
	force_br_newlines : true,
	force_p_newlines : false,	
    relative_urls : false, 
    remove_script_host : false
});

tinyMCE.init({
	mode : "textareas",
	elements : "ajaxfilemanager",
	editor_selector : "mceMedium",
	theme : "advanced",
	plugins : "table,advhr,advimage,advlink,flash,paste,fullscreen,noneditable,contextmenu,media",
	content_css : "css/tinymce.css",
	height : "490",
	width  : "490",
	language : "nl",
	theme_advanced_buttons1_add_before : "",
	theme_advanced_buttons2_add : "separator,forecolor,backcolor,media",
	theme_advanced_buttons3_add_before : "tablecontrols",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	extended_valid_elements : "hr[class|width|size|noshade]",
	file_browser_callback : "ajaxfilemanager",
	paste_use_dialog : false,
	theme_advanced_disable : "sub,sup,help,formatselect",
	theme_advanced_resizing : true,
	theme_advanced_resize_horizontal : true,
	apply_source_formatting : true,
	force_br_newlines : false,
	force_p_newlines : true,	
    relative_urls : false, 
    remove_script_host : false,
	theme_advanced_resizing : true
});

tinyMCE.init({
	mode : "textareas",
	elements : "ajaxfilemanager",
	editor_selector : "mceSmall",
	theme : "advanced",
	plugins : "table,advimage,advlink,paste,noneditable,media",
	content_css : "css/tinymce.css",
	height : "400",
	width  : "340",
	language : "nl",
	theme_advanced_buttons1_add_before : "",
	theme_advanced_buttons2_add : "forecolor,backcolor",
	theme_advanced_buttons3_add_before : "tablecontrols",
	theme_advanced_disable : "sub,sup,charmap,help,code,cleanup,removeformat,hr,justifyfull,formatselect,|",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	extended_valid_elements : "hr[class|width|size|noshade]",
	file_browser_callback : "ajaxfilemanager",
	paste_use_dialog : false,
	theme_advanced_resizing : true,
	theme_advanced_resize_horizontal : true,
	apply_source_formatting : true,
	force_br_newlines : true,
	force_p_newlines : false,	
    relative_urls : false, 
    remove_script_host : false,
	theme_advanced_resizing : true
});

tinyMCE.init({
	mode : "textareas",
	elements : "ajaxfilemanager",
	editor_selector : "mceAdvanced",
	theme : "advanced",
	plugins : "table,advhr,media,advimage,advlink,flash,paste,fullscreen,noneditable,contextmenu",
	height : "600",
	width  : "750",
	language : "nl",
	content_css : "css/tinymce.css",
	theme_advanced_buttons1_add_before : "",
	theme_advanced_buttons2_add : "media,separator,forecolor,backcolor,liststyle",
	theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator",
	theme_advanced_buttons3_add_before : "tablecontrols,separator",
	theme_advanced_buttons3_add : "flash,advhr,separator,fullscreen",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_disable : "formatselect",
	extended_valid_elements : "hr[class|width|size|noshade]",
	file_browser_callback : "ajaxfilemanager",
	paste_use_dialog : false,
	theme_advanced_resizing : true,
	theme_advanced_resize_horizontal : true,
	apply_source_formatting : true,
	force_br_newlines : false,
	force_p_newlines : true,	
    relative_urls : false, 
    remove_script_host : false
});

tinyMCE.init({
	mode : "textareas",
	elements : "ajaxfilemanager",
	editor_selector : "mceArtikelen",
	theme : "advanced",
	plugins : "table,advhr,media,advimage,advlink,flash,paste,fullscreen,noneditable,contextmenu",
	height : "600",
	width  : "750",
	language : "nl",
	content_css : "../css/tinymce.css",
	theme_advanced_buttons1_add_before : "",
	theme_advanced_buttons2_add : "media,separator,forecolor,backcolor,liststyle",
	theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator",
	theme_advanced_buttons3_add_before : "tablecontrols,separator",
	theme_advanced_buttons3_add : "flash,advhr,separator,fullscreen",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_disable : "formatselect",
	extended_valid_elements : "hr[class|width|size|noshade]",
	file_browser_callback : "ajaxfilemanager",
	paste_use_dialog : false,
	theme_advanced_resizing : true,
	theme_advanced_resize_horizontal : true,
	apply_source_formatting : true,
	force_br_newlines : false,
	force_p_newlines : true,	
    relative_urls : false, 
    remove_script_host : false
});

function ajaxfilemanager(field_name, url, type, win) {
	var ajaxfilemanagerurl = "../../tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php";
	switch (type) {
		case "image":
			break;
		case "media":
			break;
		case "flash": 
			break;
		case "file":
			break;
		default:
			return false;
	}
	tinyMCE.activeEditor.windowManager.open({
		url: "../../../../scripts/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php",
		width: 760,
		height: 500,
		inline : "yes",
		close_previous : "no"
	},{
		window : win,
		input : field_name
	});
	
/*            return false;			
	var fileBrowserWindow = new Array();
	fileBrowserWindow["file"] = ajaxfilemanagerurl;
	fileBrowserWindow["title"] = "Ajax File Manager";
	fileBrowserWindow["width"] = "782";
	fileBrowserWindow["height"] = "440";
	fileBrowserWindow["close_previous"] = "no";
	tinyMCE.openWindow(fileBrowserWindow, {
	  window : win,
	  input : field_name,
	  resizable : "yes",
	  inline : "yes",
	  editor_id : tinyMCE.getWindowArg("editor_id")
	});
	
	return false;*/
}
