/*
 * Function de lancement de l'éditeur
 * Copyright (C) 2003-2008 Media Center
 */


/*
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() ;
}
*/
function createEditor (Nom, Toolbar, sBasePath)
{
	//var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
	var sBasePath = sBasePath || 'includes/editeur/'  ;
	Nom = new FCKeditor( Nom ) ;
	Nom.BasePath	= sBasePath ;
    Nom.Config['ToolbarStartExpanded'] = true ;
    Nom.ToolbarSet	= Toolbar ;
    Nom.ReplaceTextarea() ;

}
