	tinyMCE.init({
		mode : "exact",
		elements : "testimonial",
		theme : "advanced",
		plugins : "emotions,iespell,preview,contextmenu,paste,noneditable",
		theme_advanced_buttons1_add : "fontselect,forecolor,backcolor,emotions",
		theme_advanced_disable : "help,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,outdent,indent,undo,redo,link,unlink,image,cleanup,code,sub,sup,hr,removeformat,formatselect,styleselect,anchor,visualaid,charmap,separator",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		content_css : templatedomain + "classes.css",
		plugin_insertdate_dateFormat : "%Y-%m-%d",
		plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "hr[class|width|size|noshade]",
		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",
		paste_use_dialog : false,
		theme_advanced_resizing : true,
		insertimage_callback : "popImg",
		theme_advanced_resize_horizontal : false,
		theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;"
	});
	tinyMCE.init({
		mode : "exact",
		elements : "blah",
		theme : "advanced",
		plugins : "table,save,advhr,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable",
		theme_advanced_buttons1_add_before : "save,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 : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
		theme_advanced_disable : "help",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		content_css : templatedomain + "classes.css",
		plugin_insertdate_dateFormat : "%Y-%m-%d",
		plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "hr[class|width|size|noshade]",
		external_link_list_url : "../link_list.js",
		external_image_list_url : "example_image_list.js",
		flash_external_list_url : "example_flash_list.js",
		file_browser_callback : "fileBrowserCallBack",
		paste_use_dialog : false,
		theme_advanced_resizing : true,
		insertimage_callback : "popImg",
		theme_advanced_resize_horizontal : false,
		theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
		relative_urls : false,
		remove_script_host : false,
		document_base_url : "http://www.summitmedia.com.ph/goldilocks/"
	});
    function popImg(){
        popImageSelector.select('f_file');
    }
    var manager = new ImageManager('/goldilocks/admin/lib/editor/plugins/ImageManager','en');
//    var dir = '/schools/'+schoolId+'/images'; //location of stored files
    popImageSelector = {
        update : function(params){
            var src     = params.f_url;
						var alt        = params.f_alt;
            var border    = params.f_border;
            var align    = params.f_align;
            var width    = params.f_width;
            var height    = params.f_height;
            var hspace    = params.f_horiz;
            var vspace    = params.f_vspace;
            var title    = ''; //not given by ImageManager
            var onover    = ''; //not given by ImageManager
            var onout    = ''; //not given by ImageManager
            tinyMCE.insertImage(src, alt, border, hspace, vspace, width, height, align, title, onover, onout);
        },
//        select: function(textfieldID){
//            manager.popManager(this);
//        }
			select: function(textfieldID,imageFrame,stringlength)
			{
				this.field = document.getElementById(textfieldID);
				manager.popManager(this,imageFrame,stringlength);	
			}

    };
//	tinyMCE.init({
//		mode : "exact",
//		elements : "quote",
//		theme : "simple",
//	});    
