var tinyChanges = new Object();
function tinyOnChangeHandler(inst) { // Track if the editor has been changed to prompt save
	tinyChanges[inst['editorId']] = true;
}

tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	
	// Displays editor in red theme to show error
	//skin : "ashError",
			
	editor_selector : "mceWithEditor",
	editor_deselector : "mceNoneEditor",
	
	plugins : "safari,advlink,spellchecker,inlinepopups,paste,fullscreen,xhtmlxtras",

	// Theme options
	theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,bullist,numlist,outdent,indent,|,styleselect,formatselect",
	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,undo,redo,|,link,unlink,|,spellchecker,|,fullscreen",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "center",
	
	// Plugin options
	paste_auto_cleanup_on_paste : true,
	paste_convert_headers_to_strong : true,
	paste_strip_class_attributes: "all",
	
	spellchecker_rpc_url : '/js/tiny_mce/plugins/spellchecker/rpc.php',
	
	content_css : "/styles/mce_styles.css",
	
	onchange_callback : "tinyOnChangeHandler" // Used to prompt unsaved on page unload
});
