function muestraSlideFotoeditor(sUrl){
		$('slideFotoseditor').innerHTML = sUrl;
		/*
		alert(sUrl);
		new Ajax.Request(sUrl, {
		  method: 'get',
		  onComplete: function(o) {
				$('slideFotoseditor').innerHTML = o.responseText;

		  }
		});	
	*/
	}

function mostrareditorcomentar(url){
/* editor de comenentarios */
}

function cerrareditor(urlbase){
	$('crearposteoeditor').innerHTML="";
	//new Ajax.Updater('crearposteoeditor',urlbase+'/resumen/nada');
	new Ajax.Updater('botoneditor',urlbase+'/posteos/boton');
	
}

function muestraSlideFoto(url){
	new Ajax.Updater('slideFotoseditor',url);
}

function muestraSlideAudio(url){
	new Ajax.Updater('slideAudioseditor',url);
}

function mostrareditor(urlbase,action,user)
{
	try
    {
         new Ajax.Request(urlbase + action,
            {
                method: 'get',
                onComplete: function(reply){
                	
                	$('crearposteoeditor').innerHTML=reply.responseText;
                	$('botoneditor').innerHTML="";
                	new Ajax.Updater('slideFotoseditor',urlbase+'/detfoto/slideeditor/user/'+user+'/nPagActual/1');
                	new Ajax.Updater('slideAudioseditor',urlbase+'/detaudio/slideeditor/user/'+user+'/nPagActual/1');
                }
            }
        );
    }
    catch (e)
    {
        alert('Error: ' + e.toString());
    }
}

var oEditor;

function FCKeditor_OnComplete( editorInstance )
{
    oEditor=editorInstance;
}
function insertarHTMLeditor(HTML){
//alert(HTML);
	oEditor.InsertHtml(HTML);
}

