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,
		disk_cache: true,
		debug: false,
		content_css : _stylesheet,
		convert_fonts_to_styles : false,
		convert_fonts_to_spans : false,
		font_size_style_values : "8pt,10pt,12pt,14pt,18pt,24pt,36pt",
		forced_root_block : '',
		entity_encoding : "named",
		entities: "160,nbsp,38,amp,60,lt,62,gt",
		baseURL : _url,
		fix_content_duplication : true,
		language : _lang,
		mode : "specific_textareas",
		editor_selector : "mceEditor",
		plugins : "table,paste,freedom_pagebreak,freedom_forecolor,freedom_bgcolor,freedom_link,freedom_image,freedom_tag,freedom_help,media,contextmenu",
		relative_urls : true,
		remove_linebreaks : false,
		theme : "advanced",	
		theme_advanced_styles : _styles,
		theme_advanced_blockformats : _blocks,
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
	 	theme_advanced_buttons1 : "undo,redo,separator,freedom_link,freedom_image,anchor,media,separator,hr,freedom_pagebreak,charmap,separator,tablecontrols,indent,outdent",
		theme_advanced_buttons2 : "freedom_tag," + _styleselect + _formatselect +  "fontselect,fontsizeselect,bold,italic,underline,separator,freedom_forecolor,freedom_bgcolor,removeformat,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,numlist,bullist,freedom_help",
		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",
		skin : "freedom"
	 };
}
