

function setRTE(elem) { 
$(elem).addClass("activeRTE");
$(elem).tinymce({
			script_url : relroot + '/data/js/tinyMCE/tiny_mce.js',
			mode : "none",
			theme : "advanced",
			//skin: "o2k7",
			//plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
			theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,link,unlink",
			theme_advanced_buttons2 : "", //"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
			theme_advanced_buttons3 : "", //"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
			theme_advanced_buttons4 : "", //"insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
			content_css : relroot + '/data/css/tiny.css',
			//auto_resize : true,
			entity_encoding : "raw",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : false,
			theme_advanced_resize_horizontal : false,
		  	theme_advanced_resizing_use_cookie : false,

			extended_valid_elements : "ul[class=list1] img[class=paraimg|!src|border:0|alt|title|width|height] hr[class|width|size|noshade]",
			
			paste_use_dialog : true,
			//theme_advanced_resize_horizontal : true,
			apply_source_formatting : true,
			force_br_newlines : true,
			force_p_newlines : false,	
			remove_trailing_nbsp : true,
			verify_html : true,			
			
			//relative_urls : false,
			convert_urls : false,
			//width: "80%",
			//height: "250px",
			theme_advanced_blockformats : "p,h1,h2,h3",
			cleanup_on_startup : true,
			cleanup: true,			
			//external_link_list_url : "data/js/tiny_mce/externallist.js",
			

		});

}
		
		

