function ConfigEditor(src, srctype, _url, _blocks, _styles, _stylesheet, _path, _lang, _ver)
{
	var _formatselect = (_blocks == "") ? "" : "formatselect,";
	var _styleselect = (_styles == "") ? "" : "styleselect,";


if (src == 'membership' && srctype=='dispatch')
{

	
	return {	
		apply_source_formatting : true,
		disk_cache: true,
		debug: false,
		button_tile_map: true,
                content_css : "editor.css",
		convert_fonts_to_styles : false,
		entity_encoding : "named",
                entities : "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,60,lt,62,gt,8804,le,8805,ge,176,deg,8722,minus",
		verify_html : false,
		baseURL : _url,
		fix_content_duplication : true,
		language : _lang,
		mode : "specific_textareas",
		editor_selector : "mceEditor",
		plugins : "table,paste,media,nbspfix,safari",
		paste_auto_cleanup_on_paste : true,
		cleanup_on_startup : true,
		relative_urls : true,
		remove_linebreaks : false,
		theme : "advanced",	
		theme_advanced_styles : _styles,
		theme_advanced_blockformats : _blocks,
		theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6,blockquote",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
	 	theme_advanced_buttons1 : "code,separator,copy,cut,pastetext,pasteword,separator,undo,redo,separator,link,anchor,separator,hr,charmap,separator,tablecontrols",
		theme_advanced_buttons2 : _styleselect + _formatselect +  "formatselect,styleselect,bold,italic,underline,separator,forecolor,backcolor,removeformat,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,numlist,bullist,indent,outdent",
		theme_advanced_buttons3 : "",
		valid_elements : "*[*]",
		visual : true,
		
		// the following are used for the gzip version
		freedompath : _path,
		freedomversion : _ver,
		languages : _lang,
		themes : "advanced"
	 };
}

	return {
                
		disk_cache: true,
                content_css : "editor.css",
		convert_fonts_to_styles : false,
		entity_encoding : "named",
                entities : "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,60,lt,62,gt,8804,le,8805,ge,176,deg,8722,minus",
		verify_html : false,
		baseURL : _url,
		language : _lang,
		mode : "specific_textareas",
		editor_selector : "mceEditor",
		plugins : "table,paste,freedom_pagebreak,freedom_forecolor,freedom_bgcolor,freedom_link,freedom_image,freedom_tag,media,nbspfix,safari,searchreplace",
		relative_urls : true,
		remove_linebreaks : false,
		paste_auto_cleanup_on_paste : true,
                forced_root_block : false,
		cleanup_on_startup : true,
		theme : "advanced",	
		theme_advanced_styles : _styles,
		theme_advanced_blockformats : _blocks,
		theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6,blockquote",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
	 	theme_advanced_buttons1 : "code,separator,copy,cut,paste,pastetext,pasteword,separator,undo,redo,separator,freedom_link,freedom_image,anchor,media,separator,hr,freedom_pagebreak,charmap,separator,tablecontrols",
		theme_advanced_buttons2 :  _styleselect + _formatselect +  "formatselect,styleselect,bold,italic,underline,separator,freedom_forecolor,freedom_bgcolor,removeformat,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,numlist,bullist,indent,outdent",
		theme_advanced_buttons3_add : "search,replace",
		valid_elements : "*[*]",
		visual : true,
		// the following are used for the gzip version
		freedompath : _path,
		freedomversion : _ver,
		languages : _lang,
		themes : "advanced"
	 };
}