	tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		plugins : "table,save,advhr,advimage,advlink,emotions,iespell,preview,zoom,print,noneditable,separator",
		theme_advanced_buttons1_add : "pastetext,separator,link,unlink,anchorseparator,separator,charmap,image,emotions,advhr,separator,undo,redo,separator,iespell,cleanup,code,preview,print,save",
		theme_advanced_buttons2_add : "fontsizeselect,forecolor,separator,bold,italic,underline,separator,sub,sup,separator,justifycenter,justifyfull",
		theme_advanced_buttons3_add : "numlist,separator,outdent,indent,separator,tablecontrols,visualaid,separator,removeformat",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "center",
		theme_advanced_path_location : "bottom",
		content_css : "../basestyle.css",
	    plugin_insertdate_dateFormat : "%Y-%m-%d",
	    plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|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",
		file_browser_callback : "fileBrowserCallBack",
		theme_advanced_resize_horizontal : false,
		theme_advanced_resizing : true
	});

	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";
	}
