tinyMCE.init({
	// General options	 
	language : "cs",
	mode : "specific_textareas",
	editor_selector : "form-add-text",
	theme : "advanced",
	plugins : "table,advlink,advimage,searchreplace,contextmenu,paste,fullscreen,visualchars,nonbreaking,media,xhtmlxtras,paste,iespell,preview,fullscreen,inlinepopups",
	content_css : "/css/editor_text.css",
	entity_encoding: "raw",
	relative_urls : false,
	
	paste_create_paragraphs : true,
	paste_create_linebreaks : false,
	paste_convert_middot_lists : true,
	paste_use_dialog : false,
	paste_auto_cleanup_on_paste : true,
	paste_convert_headers_to_strong : false,
	paste_strip_class_attributes : "all",
	paste_remove_spans : true,
	paste_remove_styles : true,
	
	// Theme options
	theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,|,sub,sup,|,formatselect,|,cut,copy,paste,pastetext,pasteword,|,link,unlink,image,code",
	theme_advanced_buttons2 : "tablecontrols,|,search,replace,|,bullist,numlist,|,outdent,indent,|,insertanchor,anchor",
	theme_advanced_buttons3 : "",
	theme_advanced_resize_horizontal : false,
	theme_advanced_resizing : true,
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_blockformats : "p,h2,h3,h4,div",
	theme_advanced_toolbar_align : "left",
	theme_advanced_toolbar_location : "top",
	
	setup : function(ed) { 
		ed.addButton('insertanchor', { 
			title : 'Vložit odkaz na kotvu', 
			image : '/images/arrow_up_editor.png', 
			onclick : function() { 
				ed.focus(); 
				ed.selection.setContent('<p class="post-text-top-p"><a href="#top"><img class="post-text-top" src="/images/arrow_up.png" alt=""></a></p>'); 
			} 
		}); 
	},
	
	file_browser_callback : "tinyBrowser"
});

tinyMCE.init({
	// General options	 
	language : "cs",
	mode : "specific_textareas",
	editor_selector : "form-add-perex",
	theme : "advanced",
	plugins : "table,advlink,advimage,searchreplace,contextmenu,paste,fullscreen,visualchars,nonbreaking,media,xhtmlxtras,paste,iespell,preview,fullscreen,inlinepopups",
	content_css : "/css/editor_perex.css",
	entity_encoding: "raw",
	relative_urls : false,
	
	paste_create_paragraphs : true,
	paste_create_linebreaks : false,
	paste_convert_middot_lists : true,
	paste_use_dialog : false,
	paste_auto_cleanup_on_paste : true,
	paste_convert_headers_to_strong : false,
	paste_strip_class_attributes : "all",
	paste_remove_spans : true,
	paste_remove_styles : true,
	
	// Theme options
	theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,|,sub,sup,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,link,unlink",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_resize_horizontal : false,
	theme_advanced_resizing : true,
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_blockformats : "p",
	theme_advanced_toolbar_align : "left",
	theme_advanced_toolbar_location : "top"
	
});

tinyMCE.init({
	// General options	 
	language : "cs",
	mode : "specific_textareas",
	editor_selector : "form-edit-special",
	theme : "advanced",
	plugins : "table,advlink,advimage,searchreplace,contextmenu,paste,fullscreen,visualchars,nonbreaking,media,xhtmlxtras,paste,iespell,preview,fullscreen,inlinepopups",
	content_css : "/css/editor_special.css",
	entity_encoding: "raw",
	relative_urls : false,
	
	paste_create_paragraphs : true,
	paste_create_linebreaks : false,
	paste_convert_middot_lists : true,
	paste_use_dialog : false,
	paste_auto_cleanup_on_paste : true,
	paste_convert_headers_to_strong : false,
	paste_strip_class_attributes : "all",
	paste_remove_spans : true,
	paste_remove_styles : true,
	
	// Theme options
	theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,|,sub,sup,|,formatselect,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,link,unlink",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_resize_horizontal : false,
	theme_advanced_resizing : true,
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_blockformats : "p,h3",
	theme_advanced_toolbar_align : "left",
	theme_advanced_toolbar_location : "top"
	
});

tinyMCE.init({
	// General options	 
	language : "cs",
	mode : "specific_textareas",
	editor_selector : "form-add-calendar",
	theme : "advanced",
	plugins : "table,advlink,advimage,searchreplace,contextmenu,paste,fullscreen,visualchars,nonbreaking,media,xhtmlxtras,paste,iespell,preview,fullscreen,inlinepopups",
	content_css : "/css/editor_calendar.css",
	entity_encoding: "raw",
	relative_urls : false,
	
	paste_create_paragraphs : true,
	paste_create_linebreaks : false,
	paste_convert_middot_lists : true,
	paste_use_dialog : false,
	paste_auto_cleanup_on_paste : true,
	paste_convert_headers_to_strong : false,
	paste_strip_class_attributes : "all",
	paste_remove_spans : true,
	paste_remove_styles : true,
	
	// Theme options
	theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,|,sub,sup,|,formatselect,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,link,unlink",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_resize_horizontal : false,
	theme_advanced_resizing : true,
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_blockformats : "p",
	theme_advanced_toolbar_align : "left",
	theme_advanced_toolbar_location : "top"
	
});
