	
var mceConfig = [{
		mode : "none",
		theme : "advanced",
		language: 'en',
		skin : "o2k7",
		cleanup: true,
		cleanup_on_startup: true,
		remove_linebreaks : true,
		width: "400",
		height: "300",
		plugins : "safari,style,layer,table,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,pagebreak,slideshow",
		theme_advanced_buttons1_add_before : "newdocument,separator",
		theme_advanced_buttons1_add : "fontselect,fontsizeselect",
		theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
		theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
		theme_advanced_buttons3_add_before : "tablecontrols,separator",
		theme_advanced_buttons3_add : "iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,slideshow",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing_min_width : "400",
		file_browser_callback : "FileBrowser",
	    plugin_insertdate_dateFormat : "%m-%d-%Y",
	    plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],p[lang],embed[width|height|name|flashvars|src|bgcolor|align|play|loop|quality|allowscriptaccess|type|pluginspage|wmode|controls|controller|autostart|autoplay]",
		external_link_list_url : "",
		external_image_list_url : "",
		flash_external_list_url : "",
		template_external_list_url : "js/template_list.js",
		theme_advanced_resize_horizontal : true,
		theme_advanced_resizing : true,
		forced_root_block : '',
		force_br_newlines : false,
		relative_urls: false,
		convert_urls : false,
		force_p_newlines : true,
		preformatted: false,
		media_strict: false
//		content_css: "/data/templates/wol/style.css"
		//apply_source_formatting : true
	},{
		mode: "none",
		theme: "advanced",
		language: "en",
		skin : "o2k7",
		cleanup: true,
		cleanup_on_startup: true,
		remove_linebreaks : true,
		width: "400",
		height: "200",
		plugins : "safari,searchreplace,contextmenu,paste,fullscreen,xhtmlxtras",
		theme_advanced_buttons1: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator,fullscreen",
		theme_advanced_buttons2: "",
		theme_advanced_buttons3: "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing_min_width : "400",
	    plugin_insertdate_dateFormat : "%m-%d-%Y",
	    plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "",
		theme_advanced_resize_horizontal : true,
		theme_advanced_resizing : true,
		forced_root_block : '',
		force_br_newlines : true,
		force_p_newlines : false,
		preformatted: false
	}];

	function FileBrowser (field_name, url, type, win) {

	    if (type == 'file' || type == 'media') {
	        var chooser = new FileChooser({
	            width: 600,
	            height: 400

	        });
	        chooser.show(field_name, function(el, data) {
	            win.document.getElementById(el).value = data;
	        });
	    } else if (type == 'image') {
	        var chooser = new ImageChooser({
	            width: 600,
	            height: 400
	        });
	        chooser.show(field_name, function(el, data) {
	            win.document.getElementById(el).value = data;
	            if (win.ImageDialog.getImageData) win.ImageDialog.getImageData();
	            if (win.ImageDialog.showPreviewImage) win.ImageDialog.showPreviewImage(data);
	        });
	    }
	    return false;
	}
