tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		skin : "o2k7",
		plugins : "inlinepopups,style,layer,table,save,advimage,advlink,preview,insertdatetime,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,media,xhtmlxtras,template,ibrowser",
		theme_advanced_buttons1 : "bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect",
    theme_advanced_buttons1_add_before : "newdocument,separator",
//    theme_advanced_buttons1_add_before : "save,newdocument,separator",
    theme_advanced_buttons2 : "link,unlink,|,code,|,ibrowser",
//    theme_advanced_buttons2 : "link,unlink,|,cleanup,code,|,ibrowser,media",
		theme_advanced_buttons2_add : "separator,separator,print",
//		theme_advanced_buttons2_add : "separator,insertdate,inserttime,separator,print",
		theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,separator,search,replace",
//		theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace",
		theme_advanced_buttons3_add_before : "tablecontrols,separator",
		theme_advanced_buttons3_add : "hr",
//		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,cite,abbr,acronym,del,ins,attribs,|,fullscreen,preview,separator,ltr,rtl",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_path_location : "bottom",
		content_css : "support/editor.css",
//	    plugin_insertdate_dateFormat : "%d. %m. %Y",
//	    plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "hr[class],span[class|style]",
		external_link_list_url : "example_link_list.js",
		external_image_list_url : "example_image_list.js",
		flash_external_list_url : "example_flash_list.js",
		media_external_list_url : "example_media_list.js",
		template_external_list_url : "example_template_list.js",
		file_browser_callback : "fileBrowserCallBack",
		theme_advanced_resize_horizontal : false,
		theme_advanced_resizing : true,
		nonbreaking_force_tab : true,
		apply_source_formatting : true,
		relat2ive_urls : false,
		entities : "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,60,lt,62,gt,8804,le,8805,ge,176,deg,8722,minus",
		language : "cs",
		theme_advanced_blockformats : "p,h1,h2,h3",
		fix_list_elements : true,
		rem2ove_script_host : false,
		fix_table_elements : true,
		theme_advanced_styles: "Vzletný popis=vzletny-popis;Text doprostřed=stred;Text doleva=vlevo;Text doprava=vpravo;Text do bloku=blok;Obrázek vlevo=ovlevo;Obrázek vpravo=ovpravo;Obrázek nastřed=stred"
	});
	
function fileBrowserCallBack(field_name, url, type, win) {
		// This is where you insert your custom filebrowser logic
		//alert("Example of filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type);

		// Insert new URL, this would normaly be done in a popup
		//win.document.forms[0].elements[field_name].value = "someurl.htm";
}

