    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 :
      [
       'CharacterMap',
       'CharCounter',
       'Equation',
       'InsertSmiley',
       'InsertSpoilerTag',
       'InsertPicture',
       'SpellChecker',
	   'SmartReplace',
	   'HTMLTidy'
      ];
      if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
      xinha_editors = xinha_editors ? xinha_editors :
      [
        'signature'
      ];
      xinha_config = xinha_config ? xinha_config() : new Xinha.Config();
      xinha_config.width = '525px';
      xinha_config.height = '250px';
      xinha_config.killWordOnPaste = true;
      xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
      xinha_editors.signature.config.toolbar = toolbarArray;
      Xinha.startEditors(xinha_editors);
    }
    window.onload = xinha_init;

