  _editor_lang = "en"; 
  xinha_editors = null;
  xinha_init    = null;
  xinha_config  = null;
  xinha_plugins = null;
  

  xinha_init = xinha_init ? xinha_init : function()
  {

  
	  xinha_plugins = xinha_plugins ? xinha_plugins :
	  [
	  'DoubleClick',
	  'ExtendedFileManager',
	  'Linker'
	  ];
	       // THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING  :)
	       if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
	  
	  
	  xinha_editors = xinha_editors ? xinha_editors :
	  [
	  'frmFieldName_bodyHtml'
	  ];
	  
	  xinha_config = xinha_config ? xinha_config : new Xinha.Config();
	  
	
xinha_config.toolbar =
 [
   ["popupeditor"],
   ["separator","formatblock","separator","bold","italic","underline","strikethrough","separator","justifyleft","justifycenter","justifyright","justifyfull"],
   ["fontname","fontsize"],
   ["separator"],
   ["separator","forecolor","hilitecolor","textindicator"],
   ["separator","subscript","superscript"],
   ["linebreak"],
   ["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
   ["separator","inserthorizontalrule","createlink","insertimage","inserttable"],
   ["linebreak","separator","undo","redo","selectall","print"], (Xinha.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]),
   ["separator","killword","clearfonts","removeformat","toggleborders","splitblock","lefttoright", "righttoleft"],
   ["separator","htmlmode","showhelp","about"]
 ];
	  
 xinha_config.formatblock =
  {
    "&mdash; format &mdash;": "",
    "Heading 1": "h1",
    "Heading 2": "h2",
    "Heading 3": "h3",
    "Heading 4": "h4",
    "Heading 5": "h5",
    "Heading 6": "h6",
    "Normal"   : "p",
    "Address"  : "address",
    "Formatted": "pre"
  };
	
	  
	  xinha_config.showLoading = true;
	  xinha_config.statusBar = false;
	  xinha_config.stripBaseHref = false;
	  expandRelativeUrl=true;
	  xinha_config.baseHref = "http://www.is.zp.ua/xinha/";

	 
	    	    if (xinha_config.Linker)
	    {
	      with(xinha_config.Linker)
	    {
	      backend_data = {
'backend_data[data]': 'a:5:\x7Bs:3:\x22dir\x22;s:53:\x22http://www.is.zp.ua/xinha/plugins/ExtendedFileManager\x22;s:7:\x22include\x22;s:58:\x22/\x5C.(php|shtml|html|htm|shtm|cgi|txt|doc|pdf|rtf|xls|csv)$/\x22;s:7:\x22exclude\x22;N;s:10:\x22dirinclude\x22;N;s:10:\x22direxclude\x22;N;\x7D',
'backend_data[session_name]': 'PHPSESSID',
'backend_data[key_location]': 'Xinha:BackendKey',
'backend_data[hash]': '09ecc99da8a46b3ee03fe811dedb742721832c97',
PHPSESSID: '1o314emoanqqt5h34rpojh3ld5'
}; 
	    }
	    }
	    
	    xinha_config.ExtendedFileManager.use_linker = true;
	  
	  if (xinha_config.ExtendedFileManager) {
	         with (xinha_config.ExtendedFileManager)
	        {
	            backend_data = {
'backend_data[data]': 'a:10:\x7Bs:17:\x22max_foldersize_mb\x22;i:10;s:9:\x22files_dir\x22;s:48:\x22/var/www/vhosts/is.zp.ua/httpdocs/is/images/File\x22;s:10:\x22images_dir\x22;s:49:\x22/var/www/vhosts/is.zp.ua/httpdocs/is/images/Image\x22;s:9:\x22files_url\x22;s:31:\x22http://www.is.zp.ua/images/File\x22;s:10:\x22images_url\x22;s:32:\x22http://www.is.zp.ua/images/Image\x22;s:21:\x22images_enable_styling\x22;b:0;s:21:\x22max_filesize_kb_image\x22;s:3:\x22max\x22;s:5:\x22width\x22;s:5:\x22500px\x22;s:20:\x22max_filesize_kb_link\x22;s:3:\x22max\x22;s:23:\x22allowed_link_extensions\x22;a:13:\x7Bi:0;s:3:\x22jpg\x22;i:1;s:3:\x22gif\x22;i:2;s:2:\x22js\x22;i:3;s:3:\x22pdf\x22;i:4;s:3:\x22zip\x22;i:5;s:3:\x22txt\x22;i:6;s:3:\x22psd\x22;i:7;s:3:\x22png\x22;i:8;s:4:\x22html\x22;i:9;s:3:\x22swf\x22;i:10;s:3:\x22xml\x22;i:11;s:3:\x22xls\x22;i:12;s:3:\x22doc\x22;\x7D\x7D',
'backend_data[session_name]': 'PHPSESSID',
'backend_data[key_location]': 'Xinha:BackendKey',
'backend_data[hash]': '2411d60a0d7379cdb5b46a6911b3ce7c12a93d7a',
PHPSESSID: '1o314emoanqqt5h34rpojh3ld5'
}; 
	        }
	  }
	

	  xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
	  
	  Xinha.startEditors(xinha_editors);
	
  }
  