function QIRichTextWrapper()
{
	var ol = '';
	var doc = window.document;

	this.onLoad = function(evnt)
	{
//		QIRichTextWrapper_initEditor.call(doc, evnt);
	}

	this.init = function()
	{
/*
	if (typeof(browser) == 'undefined')
	{
		browser = new Object();
		browser.isIE =  /MSIE/.test(navigator.userAgent);
	}

	if (browser.isIE)
		ol = ' onreadystatechange="';
	else
		ol = ' onload="';

//	ol += 'QIRichTextWrapper_initEditor(this);"';
//	document.write('<script type="text/javascript" src="./scripts/tiny_mce/tiny_mce_src.js?rnd="' + appQIScriptVersion + ol + '>/script>');



	ol += '_rtWrapper.onLoad(this);"';
*/
	doc.write('<script type="text/javascript" src="./scripts/tiny_mce/tiny_mce_src.js"' + ol + '></script>');

	};
}

function QIRichTextWrapper_initEditor(/*evnt*/)
{
    if ((typeof(tinyMCE) != 'undefined') && (tinyMCE != null))
	{
		tinyMCE.init({
			// General options
			mode : "none",
			theme : "ic_advanced",
			skin: "o2k7",
			skin_variant: "silver",
			plugins : "safari,pagebreak,style,layer,table,save,advhr,ic_advimage,ic_links,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,ic_contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

			// Theme options

			theme_advanced_buttons1 : "cut,copy,paste,pastetext,pasteword,|,fontselect,fontsizeselect,forecolor,backcolor,bold,italic,underline,strikethrough,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull",
			//theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,hr,advhr,|,charmap,|,fullscreen,code",
			theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,image,hr,advhr,|,charmap,|,fullscreen,code",
			theme_advanced_buttons3 : "",
			theme_advanced_buttons4 : "",
			theme_advanced_toolbar_location : "external", //"top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "none", //"bottom",
			theme_advanced_resizing : true,
			theme_advanced_font_sizes : "4=4pt,5=5pt,6=6pt,7=7pt,8=8pt,9=9pt,10=10pt,11=11pt,12=12pt,14=14pt,16=16pt,18=18pt,20=20pt,22=22pt,24=24pt,26=26pt,28=28pt,36=36pt,48=48pt,72=72pt",
			theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;",

			// Example content CSS (should be your site CSS)
			content_css : "styles/tiny_mce/content.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",

			editor_selector : "richText",
			language : "cs",
			theme_advanced_resizing : false,
			theme_advanced_path : false,
			valid_elements: "*[*],",
			inline_styles: true
	//		extended_valid_elements: "@[myAttr|myAttr1]"
		});
	}
}

//_rtWrapper = new QIRichTextWrapper();
//_rtWrapper.init();

if (typeof(loadNextScript) != 'undefined')
	loadNextScript();
