function CreateEditor(_name, _path, _width, _height, _toolbarset, _expanded) {
    var sBasePath = _path;
    var oFCKeditor = new FCKeditor(_name) ;
    oFCKeditor.Config['ToolbarStartExpanded'] = _expanded ;
    oFCKeditor.BasePath     = sBasePath ;
    oFCKeditor.Width        = _width ;
    oFCKeditor.Height       = _height ;
    oFCKeditor.ToolbarSet   = _toolbarset;
    oFCKeditor.ReplaceTextarea() ;
}


/*
function FCKeditor_OnComplete( editorInstance ) {
    editorInstance.Events.AttachEvent( 'OnBlur'    , FCKeditor_OnBlur ) ;
    editorInstance.Events.AttachEvent( 'OnFocus', FCKeditor_OnFocus ) ;
}

function FCKeditor_OnBlur( editorInstance ) {
    editorInstance.ToolbarSet.Collapse() ;
}

function FCKeditor_OnFocus( editorInstance ) {
    editorInstance.ToolbarSet.Expand() ;
}
*/
