tinyMCE.init({
	mode : "exact",
	elements : "elm1,elm2,elm3",
	valid_elements : "*[*]",
	theme : "advanced",
	force_p_newlines : false,
	remove_linebreaks : false,
	plugins : "table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen",
	theme_advanced_buttons1_add_before : "",
	theme_advanced_buttons1_add : "fontselect,fontsizeselect",
	theme_advanced_buttons2_add : "separator,preview,zoom,separator,forecolor,backcolor",
	theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
	theme_advanced_buttons3_add_before : "tablecontrols,separator",
	theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_path_location : "bottom",
	theme_advanced_disable : "styleselect",
	content_css : BASEURL + "/deerparkpta/deerpark.css",
	//theme_advanced_styles : "TitleText=titletext;TitleTextLight=titletextLight;SubTitleText=subtitletext;SubTitleTextLight=subtitletextLight;BodyText=bodytext;BodyTextLight=bodytextLight;BodyTextRed=bodytextRed;DoveLink=doveLink;TableWithRedBorder=tableWithRedBorder;TableCellDarkRed=tableCellDarkRed;TableCellBeige=tableCellBeige;TableCellBeigeWhiteBorder=tableCellBeigeWhiteBorder;TableCellWhite=tableCellWhite;",
	plugin_insertdate_dateFormat : "%Y-%m-%d",
	plugin_insertdate_timeFormat : "%H:%M:%S",
	external_image_list_url : "/staging/cmsAdmin/imageList.do",
	external_link_list_url : "/staging/cmsAdmin/linkList.do",
	file_browser_callback : "fileBrowserCallBack",
	relative_urls : true,
	document_base_url : BASEURL
});

	function fileBrowserCallBack(field_name, url, type) {
		// This is where you insert your custom filebrowser logic
		alert("Filebrowser callback: " + field_name + "," + url + "," + type);
	}

	ns6_index=0;

	function change(e)
	{
		if(!document.all && !document.getElementById)
		{
			return;
		}
		if (!document.all && document.getElementById)
		{
			ns6_index=1;
		}
		var source = document.getElementById && !document.all ? e.target:event.srcElement;
		if (source.className=="folding")
		{
			var source2 = document.getElementById && !document.all ? source.parentNode.childNodes:source.parentElement.all;
			if (source2[2+ns6_index].style.display=="none")
			{
				source2[0].src="images/esdovelink.gif";
				source2[2+ns6_index].style.display='';
			}
			else
			{
				source2[0].src="images/esdovelink.gif";
				source2[2+ns6_index].style.display="none";
			}
		}
	}
	document.onclick=change;
