function ConfigEditor(src, srctype, parentID, _url, _blocks, _styles, _stylesheet, _path, _lang, _ver)
{
	var _formatselect = (_blocks == '') ? '' : 'formatselect,';
	var _styleselect = (_styles == '') ? '' : 'styleselect,';
	
	return {	
		apply_source_formatting : true,
		content_css : _stylesheet,
		convert_fonts_to_spans : true,
		font_size_style_values : '8pt,10pt,12pt,14pt,18pt,24pt,36pt',
		forced_root_block : '',
		baseURL : _url,
		fix_content_duplication : true,
		language : _lang,
		mode : 'specific_textareas',
		editor_selector : 'mceEditor',
		paste_auto_cleanup_on_paste : true,
		plugins : 'table,paste,freedom_image',
		relative_urls : true,
		remove_linebreaks : false,
		theme_advanced_styles : _styles,
		theme : 'advanced',	
		theme_advanced_blockformats : _blocks,
		theme_advanced_statusbar_location : 'bottom',
		theme_advanced_toolbar_location : 'top',
		theme_advanced_toolbar_align : 'left',
	 	theme_advanced_buttons1 : 'code,separator,undo,redo,separator,hr,charmap,separator,tablecontrols,indent,outdent,separator,freedom_image',
		theme_advanced_buttons2 : _styleselect + _formatselect +  'fontselect,fontsizeselect,bold,italic,underline,separator,forecolor,backcolor,removeformat,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,numlist,bullist',
		theme_advanced_buttons3 : '',
		valid_elements : '@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,#p[align|style|class],-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,-blockquote[cite],-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div,-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],style[type|*],object[classid|width|height|codebase|*],param[name|value],embed[type|width|height|src|*],script[src|type],map[name],area[shape|coords|href|alt|target],bdo,button,col[align|char|charoff|span|valign|width],colgroup[align|char|charoff|span|valign|width],dfn,fieldset,form[action|accept|accept-charset|enctype|method],input[accept|alt|checked|disabled|maxlength|name|readonly|size|src|type|value|tabindex|accesskey],kbd,label[for],legend,noscript,optgroup[label|disabled],option[disabled|label|selected|value],q[cite],samp,select[disabled|multiple|name|size],small,textarea[cols|rows|disabled|name|readonly],tt,var,big,iframe[width|height|frameborder|scrolling|marginheight|marginwidth|src]',
		verify_html : true,
		visual : true,
		
		// the following are used for the gzip version
		freedompath : _path,
		freedomversion : _ver,
		freedomSrc : src,
		freedomSrctype : srctype,
		freedomParentID: parentID,
		languages : _lang,
		themes : 'advanced'
	 };
}

