function init_tiny_mce()
{
	init_tiny_mce_mode("textareas","");
}
function init_tiny_mce_mode(editor_mode,css)
{
	mcImageManager.init({
		relative_urls : false,
		remember_last_path : true
	});
	tinyMCE.init({
		theme : "advanced",
		language : "en",
		mode : editor_mode,
		relative_urls : false,
		editor_selector : "mceEditor",
		elements : "editable",
		plugins : "table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,spellchecker",
		theme_advanced_buttons1_add_before : "spellchecker,separator",
		theme_advanced_buttons1_add : "fontselect",
		theme_advanced_buttons2_add : "fontsizeselect",
		theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
		theme_advanced_buttons3_add_before : "tablecontrols,separator",
		theme_advanced_buttons3_add : "advhr,preview,seperator,backcolor,forecolor,emotions",

		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_path_location : "bottom",
	    	plugin_insertdate_dateFormat : "%Y-%m-%d",
	    	plugin_insertdate_timeFormat : "%H:%M:%S",
		valid_elements : "*[*]",
		extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
		file_browser_callback : "mcImageManager.filebrowserCallBack",
		theme_advanced_resize_horizontal : false,
		theme_advanced_resizing : true,
		apply_source_formatting : true,
		spellchecker_languages : "+English=en,Dutch=nl",
		height : "500",
		content_css : css
	});
}

function init_tiny_mce_compact()
{
	tinyMCE.init({
		mode : "textareas",
		theme : "advanced_simple",
		plugins : "emotions,spellchecker",
		theme_advanced_buttons1_add : "spellchecker,emotions"
	});
}