function init_tinymce()
{  
	$('textarea.tinymce').tinymce({
		// Location of TinyMCE script
		script_url : '/js/tinymce2/tiny_mce.js',

		// General options
		theme : "advanced",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,inlinepopups,preview,media,contextmenu,paste,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,spellchecker",
		skin : "o2k7",
		// Theme options
		theme_advanced_buttons1_add : "fontselect,fontsizeselect",
		theme_advanced_buttons2_add : "separator,insertdate,inserttime,separator,forecolor,backcolor",
		theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator,html",
		theme_advanced_buttons3_add_before : "tablecontrols,separator",
		theme_advanced_buttons3_add : "emotions,flash,advhr,separatorseparator,ltr,rtl",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_path_location : "bottom",
	    plugin_insertdate_dateFormat : "%Y-%m-%d",
	    plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],div[id|style|width],"
								+"form[action|method|enctype|accept|name|onsubmit|onreset|accept-charset|target],"
										+"input[type|name|value|class],"
										+"select[name|class],"
										+"textarea[name|class|cols|rows|id],"
										+"option[value|class],",
		external_link_list_url : "example_link_list.js",
		external_image_list_url : "example_image_list.js",
		remove_script_host : false,
		relative_urls : false,
		content_css : "<?=SITE_URL?>/admin/cms/cms.css",
		theme_advanced_resizing : true,
		file_browser_callback : "tinyBrowser",
		document_base_url : "/",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
	
	$('textarea.simpletinymce').tinymce({
		// Location of TinyMCE script
		script_url : '/js/tinymce2/tiny_mce.js',

		// General options
		theme : "advanced",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,inlinepopups,preview,media,contextmenu,paste,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,spellchecker",
		skin : "o2k7",
		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,link,unlink",
		theme_advanced_buttons2 : "formatselect,fontsizeselect,|,undo,redo,|,cleanup,|,forecolor",
		theme_advanced_buttons3 : "",
		//theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
		theme_advanced_buttons2_add: "",
		theme_advanced_toolbar_location : "bottom",
		theme_advanced_toolbar_align : "center",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		file_browser_callback : "tinyBrowser",
		document_base_url : "/",
		relative_urls : false,

		// Example content CSS (should be your site CSS)
		content_css : "/css/tinymce.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
//		external_image_list_url : "lists/image_list.js",
//		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
}
