tinyMCE.init({
		// General options
		mode : "specific_textareas",
		editor_selector : "mceEditor",
		cleanup_on_startup : false,
		cleanup : false,
		
		theme : "advanced",
		plugins : "lugh,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,noneditable,visualchars,nonbreaking,xhtmlxtras,template,fullscreen",

		// Theme options
		theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,|,ltr,rtl,|,fullscreen",

		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,lugh",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,|,help,code,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true

		// Example content CSS (should be your site CSS)
		//content_css : suggestCSS("/modules/application/assets/css/main.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"*/
	});
	
$(document).ready(function(){
	$("form.program, form.program_form").submit(function(){
		var submitThis=true;
		$(this).find(".meal_error").remove();
		$(this).find(".coffee_error").remove();
		
		if($(this).find("[name='meal_nature']:eq(0)").find("option:eq(0)").is(":selected")){
			submitThis = false;
			$(this).find("[name='meal_nature']:eq(0)").after('<ul class="input_error meal_error"><li>'+document.dictionary.required+'</li></ul>');
		}else{
			$(this).find(".meal_error").remove();
		}
		if($(this).find("[name='coffee_break_nature']:eq(0)").children("option:eq(0)").is(":selected")){
			submitThis = false;
			$(this).find("[name='coffee_break_nature']:eq(0)").after('<ul class="input_error coffee_error"><li>'+document.dictionary.required+'</li></ul>');
		}else{
			$(this).find(".coffee_error").remove();
		}
		return submitThis;
	});	
});