tinyMCE.init({
      theme : "advanced",
      mode : "textareas",
      theme_advanced_layout_manager : "SimpleLayout",
      theme_advanced_toolbar_location : "top",
      theme_advanced_statusbar_location : "bottom",
      theme_advanced_resizing : true,
      theme_advanced_resize_horizontal : true,
      theme_advanced_fonts : "Arial=arial;Arial Black=Arial Black;Arial Narrow=Arial Narrow;Book Antiqua=Book Antiqua;Century Gothic=Century Gothic;Comic Sans MS=Comic Sans MS;Courier New=Courier New;Fixedsys=Fixedsys;Franklin Gothic Medium=Franklin Gothic Medium;Garamond=Garamond;Georgia=Georgia;Impact=Impact;Lucida Console=Lucida Console;Lucida Sans Unicode=Lucida Sans Unicode;Microsoft Sans Serif=Microsoft Sans Serif;Palatino Linotype=Palatino Linotype;System=System;Tahoma=Tahoma;Times New Roman=Times New Roman;Trebuchet MS=Trebuchet MS;Verdana=Verdana",
      file_browser_callback : "myfileBrowserCallBack",
      plugins : "fullscreen,table,advimage,paste,advlink",
      theme_advanced_buttons1 : "newdocument,bold,italic,underline,link,unlink,forecolor,backcolor,image,fontselect,code,fullscreen",
      theme_advanced_buttons2 : "",
      theme_advanced_buttons3 : "", 

      fullscreen_settings : {
        theme_advanced_path_location : "top",
	theme_advanced_fonts : "Arial=arial;Arial Black=Arial Black;Arial Narrow=Arial Narrow;Book Antiqua=Book Antiqua;Century Gothic=Century Gothic;Comic Sans MS=Comic Sans MS;Courier New=Courier New;Fixedsys=Fixedsys;Franklin Gothic Medium=Franklin Gothic Medium;Garamond=Garamond;Georgia=Georgia;Impact=Impact;Lucida Console=Lucida Console;Lucida Sans Unicode=Lucida Sans Unicode;Microsoft Sans Serif=Microsoft Sans Serif;Palatino Linotype=Palatino Linotype;System=System;Tahoma=Tahoma;Times New Roman=Times New Roman;Trebuchet MS=Trebuchet MS;Verdana=Verdana",
	theme_advanced_buttons1 : "newdocument,bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,fontselect,fontsizeselect,formatselect",
	theme_advanced_buttons2 : "bullist,numlist,outdent,indent,cut,copy,pastetext,pasteword,selectall,undo,redo,tablecontrols",
	theme_advanced_buttons3 : "link,unlink,cleanup,hr,removeformat,anchor,forecolor,backcolor,image,sub,sup,charmap,help,code,fullscreen"
	},

      table_styles : "Header 1=header1;Header 2=header2;Header 3=header3",
      table_cell_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Cell=tableCel1",
      table_row_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1",
      auto_reset_designmode : true
      });

      var fileBrowserReturnURL = "";
      var fileBrowserWin;
      var fileBrowserFieldName;

      function myfileBrowserCallBack(field_name, url, type, win) {
	var redirectUrl = '../../../../../servlet/ImageBrowser?urlid='+pantotoClientSideObjects.domainId + '&req=701';
          window.open(redirectUrl,'','width=600,height=550,scrollbars=yes');
          fileBrowserWin = win;
	  fileBrowserFieldName = field_name;
	  }

            function fileBrowserReturn(url) {
	      var target_field = fileBrowserWin.document.getElementById('src');
	      target_field.value = url; 
              target_field.onchange();
	    }
	    
