function callMCE() {

tinyMCE.init({
	
	mode : "textareas",
	theme : "advanced",
	editor_deselector : "mceNoEditor",
	content_css : "../css/tinymcepreview.php",
	theme_advanced_buttons1 : "bold,italic,underline,hr,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,styleselect",
	theme_advanced_buttons2 : "cut,copy,pastetext,pasteword,|,sharelinkcreator,link,unlink,anchor,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,",
	theme_advanced_buttons3 : "image,media,|,help,code,tablecontrols,|,removeformat,|,sub,sup,",
	theme_advanced_styles : "Make Text Small=smalltext;Give Image Border=imageborder;Make Tan Box=textbox;Make Blue Box=textbox2;Make Yellow Box=textbox3;Make Striped Textbox=textboxstriped;Continue Link=pcontinue;Format Table 1=formattable1;Format Table 2=formattable2",
	theme_advanced_blockformats : "p,div,h1,h2,h3,h4,h5,h6",
	width : "100%",
	height : "400px",
	plugins : "safari,imagemanager,table,filemanager,pagebreak,style,sharelinkcreator,paste,searchreplace,contextmenu,media",
	force_p_newlines : false,
	paste_create_paragraphs : false,
	paste_create_linebreaks : false,
	paste_use_dialog : true,
	paste_auto_cleanup_on_paste : true,
	paste_convert_middot_lists : true,
	paste_convert_headers_to_strong : false,
	paste_strip_class_attributes : true,
	paste_remove_styles : true,
	paste_remove_spans : true,
	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],-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|"
		+ "src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,"
		+ "-blockquote,-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],"
		+ "object[classid|width|height|codebase|*],param[name|value|_value],embed[type|href|target|controller|autoplay|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|name|homepage|target|onsubmit],"
		+ "input[accept|alt|checked|disabled|maxlength|name|readonly|size|src|tabindex|type|value],"
		+ "kbd,label[for],legend,noscript,optgroup[label|disabled],option[disabled|label|selected|value],"
		+ "q[cite],samp,select[disabled|multiple|name|size],small,"
		+ "iframe[align<bottom?left?middle?right?top|class|frameborder|height|id"
	    + "|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style"
	    + "|title|width],"
		+ "textarea[cols|rows|disabled|name|readonly],tt,var,big",
	table_default_cellspacing : 5


}); }


$().ready(function() {
  $('#jqmodal').jqm({ajax: '@href', trigger: 'a.jqmodal', overlay: 75});

  
});
