//Javascript

tinyMCE.init({
	// General options
	theme : "advanced",
	mode: "exact",
  elements : "stranky-obsah,novinky-obsah",
	safari_warning : false,
	// AUTO RESIZE
	entity_encoding : "raw",
	auto_resize : true,
	verify_html : true,
	preformatted : false,
	plugins : "advhr,emotions,paste,searchreplace,table",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "center",
	theme_advanced_path_location : false,
	theme_advanced_resizing : true,
	theme_advanced_buttons3 : false,
	// strikethrough,indent,outdent,backcolor,pastetext
	theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,sup,sub,forecolor,|,link,unlink,|,"+
		"justifyleft,justifycenter,justifyright,bullist,numlist,|,charmap,emotions,pastetext,advhr,removeformat",
	theme_advanced_buttons2 : false,
	
	valid_elements : "@[style|title|dir<ltr?rtl],a[href|target|title],"
	+ "br,-span,-code,-pre,-div,-strong/b,-em/i,strike,-u,br,-sub,-sup,-blockquote,"
	+ "#p[align],-ol[type|compact],-ul[type|compact],-li,img[src|alt=|title],"
	+ "-table,-tr[rowspan],tbody,thead,tfoot,#td[colspan|rowspan],#th[colspan|rowspan],caption,"
	+ "-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],cite,q[cite],abbr,acronym,del[datetime|cite],ins[datetime|cite],"
	+ "object[width|height],param[name|value],bdo,col[span],colgroup[span],"
	+ "q[cite],samp",
	extended_valid_elements : "hr[width|size|noshade]",
	content_css : "example_full.css",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resize_horizontal : false
});


//nastaveni pro konkretni elementy fora a videa
tinyMCE.init({
	// General options
	theme : "advanced",
	mode: "exact",
  elements : "edit1,edit2,edit3,edit4,edit5,edit6,edit7,edit8",	
	safari_warning : false,
	// AUTO RESIZE
	auto_resize : true,
	entity_encoding : "raw",
	verify_html : true,
	preformatted : false,
	plugins : "advhr,emotions,paste,searchreplace,table",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "center",
	//theme_advanced_statusbar_location : "bottom",
	theme_advanced_path_location : false,
	theme_advanced_resizing : true,
	theme_advanced_buttons3 : false,
	// strikethrough,indent,outdent,backcolor,pastetext
	// theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,sup,sub,forecolor,|,link,unlink",
	//theme_advanced_buttons2 : "justifyleft,justifycenter,justifyright,bullist,numlist,|,charmap,emotions,pastetext,advhr,removeformat",
	theme_advanced_buttons1 : "undo,|,bold,italic,underline,|,link,unlink,bullist,numlist,|,charmap,emotions,removeformat",
	theme_advanced_buttons2 : false, 
	theme_advanced_statusbar_location : "bottom",
	width:"300px",
	theme_advanced_resize_horizontal : false,
	theme_advanced_path : false,
	valid_elements : "@[style|title|dir<ltr?rtl|],a[href|target|title], "
	+ "br,-span,-strong/b,-em/i,strike,-u,br,-sub,-sup,-blockquote,"
	+ "#p[align],-ol[type|compact],-ul[type|compact],-li,"
	+ "img[src|alt=|title],hr[size|noshade],cite,q[cite],abbr,acronym,"
	+ "bdo,col[span],colgroup[span],q[cite],samp",
	
	extended_valid_elements : "hr[class|width|size|noshade]",
	content_css : "example_full.css",
	file_browser_callback : 'myFileBrowser'
	
});
	
