tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	plugins : "save",
	theme_advanced_buttons1 : "save,bold,italic,underline,separator,strikethrough,bullist,numlist,undo,redo,link,unlink,code",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});

	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";
	}
	
	function myCustomFileBrowser(field_name, url, type, win) {
	// Do custom browser logic
	win.document.forms[0].elements[field_name].value = 'my browser value';
	}
