	//
	// Initiate tinyMCE params
	//
	

	tinyMCE.init({
		mode : "textareas",
		language : "es",
	theme : "simple",
	editor_deselector : "mceNoEditor"
	});
	
		
	//
	//	Enable a textarea as tynyEditor
	//
    function toogleEditorMode(sEditorID) 
    {
    	tinyMCE.execCommand('mceAddControl', false, sEditorID);
	}
    
    //
    //	Unload especific editor
    //
    function UnloadEditor(editorID)
    {
   		if (tinyMCE.getInstanceById(editorID) != undefined)
			tinyMCE.execCommand('mceRemoveControl', false, editorID);
    }
    
    
    //
    //	Close all editing areas (if a textarea is not called here, the reload of ajax wont work properly)
    //
    function ResetAllMceEditors()
    {

    	    var textareasArray = new Array();

    		// CyberForms TextAreas
	 	 	textareasArray[0] = 'cyber_content';


			for (i=0 ; i < textareasArray.length ; i++)
				UnloadEditor(textareasArray[i]);

			
    }