document.domain = document.domain.replace(/^(?:[a-z0-9_-]+\.)?([a-z]+\.(co\.uk|com))$/i, '$1');

tinyMCE.init({
	mode: "specific_textareas",
	language: MultiLingual.localeCode.substring(0, 2),
	editor_selector: "htmlEditor",
	theme: "advanced",
	plugins: "searchreplace,paste",
	theme_advanced_buttons1: "cut,copy,paste,pastetext,pasteword,|,bold,italic,|,bullist,numlist,|,undo,redo,|,search,replace,|,link,unlink",
	theme_advanced_buttons2: "",
	theme_advanced_buttons3: "",
	theme_advanced_toolbar_location: "top",
	theme_advanced_toolbar_align: "left",
	theme_advanced_statusbar_location : "bottom",
	cleanup_on_startup: true,
	paste_auto_cleanup_on_paste: true,
	valid_elements: "a[href|target|title|name],br,p,i,b,em,strong,ul,ol,li",
	theme_advanced_resize_horizontal: false,
	theme_advanced_resizing: true,
	apply_source_formatting: true,
	relative_urls: false,
	remove_script_host: true
});

