tinyMCE.init({
		mode : "textareas",
		plugins : "inlinepopups,contextmenu,paste,visualchars",
		theme : "advanced",
		editor_deselector : "mceNoEditor",
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pasteword,|,bullist,numlist,|,outdent,indent,|,link,unlink,|,forecolor,backcolor,hr",
		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		use_native_selects : true,
		force_p_newlines: false,
        force_br_newlines : true,
        forced_root_block : '',
		theme_advanced_font_sizes : "9,10,11,12,13,14,16,18,20,22,24,26,28,30",
		setup : function(ed) {
			ed.onPostProcess.add(function(ed, o) {
		  		if (o.get) {
			  	  	tmp_content = o.content.replace(/<p([^>]*)>(.*)<\/p>/g, '$2');
					if(tmp_content.indexOf('<p')==-1) o.content = tmp_content;
			  	//	o.content = o.content.replace(/<strong([^>]*)>(.*)<\/strong>/g, '<b>$2</b>');
			  	 //	o.content = o.content.replace(/<em([^>]*)>(.*)<\/em>/g, '<i>$2</i>');
				}
			});
		}
		});


//		window.addEvent('domready', function(){
//			// Max 3 files, use '[{id}]' as element name suffix, remove path from file name, remove extra elemen
//			new MultiUpload( $( 'main_form' ).use_settings);
//		});
