
var fastEditor={'config':false,'count':0,'loaded':false,'objs':false,'load':function(foro,tema,mesg,accion,pag,back,fore){if(fastEditor.loaded){if(fastEditor.loaded.accion=='reply'&&accion=='reply'){fastEditor.goTo('Fast_Reply');return;}else{fastEditor.cancel();}}
fastEditor.loaded={'foro':foro,'tema':tema,'mesg':mesg,'accion':accion,'pag':pag,'back':back,'fore':fore}
this.dependences();if(accion=='reply'){document.getElementById('Fast_Reply').innerHTML=fastEditor.config.replyCode;}
fastEditor.loaded.cont=document.getElementById('e_con_'+mesg);fastEditor.loaded.msg=document.getElementById('e_msg_'+mesg);fastEditor.loaded.bot=document.getElementById('e_bot_'+mesg);fastEditor.load2();},'load2':function(){fastEditor.createElements();fastEditor.changeObjs(true);var tinyConfig=new fastEditor.cloneObject(fastEditor.config.tinymce);tinyConfig.elements='fastEditor_texto';if(fastEditor.loaded.back){tinyConfig.back_color=fastEditor.loaded.back;}
if(fastEditor.loaded.fore){tinyConfig.font_color=fastEditor.loaded.fore;}
if(fastEditor.count==0){tinyMCE_GZ.init({themes:tinyConfig.theme,plugins:tinyConfig.plugins,languages:tinyConfig.language,disk_cache:false,compress:false},function(){fastEditor.moveScroll();tinyMCE.init(tinyConfig);tinyMCE.get('fastEditor_texto').focus();});fastEditor.count++;}else{fastEditor.moveScroll();tinyMCE.init(tinyConfig);tinyMCE.get('fastEditor_texto').focus();}},'cancel':function(){fastEditor.changeObjs(false);if(fastEditor.loaded.accion=='reply'){document.getElementById('Fast_Reply').innerHTML='';}
fastEditor.loaded=false;},'save':function(){fastEditor.objs.save.submit();},'changeObjs':function(sw){if(sw){fastEditor.objs.edit.value=fastEditor.loaded.msg.innerHTML;fastEditor.objs.edit.style.height='400px';fastEditor.objs.foro.value=fastEditor.loaded.foro;fastEditor.objs.tema.value=fastEditor.loaded.tema;fastEditor.objs.mesg.value=fastEditor.loaded.mesg;fastEditor.objs.accion.value=fastEditor.loaded.accion;fastEditor.objs.pag.value=fastEditor.loaded.pag;fastEditor.loaded.cont.parentNode.replaceChild(fastEditor.objs.cont,fastEditor.loaded.cont);fastEditor.loaded.bot.parentNode.replaceChild(fastEditor.objs.bot,fastEditor.loaded.bot);fastEditor.objs.padding=fastEditor.objs.cont.parentNode.style.padding;fastEditor.objs.cont.parentNode.style.padding='0px';}else{fastEditor.objs.cont.parentNode.style.padding=fastEditor.objs.padding;fastEditor.objs.cont.parentNode.replaceChild(fastEditor.loaded.cont,fastEditor.objs.cont);fastEditor.objs.bot.parentNode.replaceChild(fastEditor.loaded.bot,fastEditor.objs.bot);}},'dependences':function(){if(typeof(fastEditor.config)!='object'){fastEditor.require('/'+fastEditor.loaded.foro+'/fasteditor/?'+fastEditor_Version);}
if(typeof(detectServVideo)!='function'){fastEditor.require('/tiny_mce_'+fastEditor.config.cacheKey+'/lib.extvideos.js');}},'createElements':function(){fastEditor.objs={'cont':document.createElement('div'),'bot':document.createElement('div')}
fastEditor.objs.cont.innerHTML='<form style="margin:0px;padding:0px" action="/post.php" method="POST"><input type="hidden" name="foroid"><input type="hidden" name="temaid"><input type="hidden" name="msgid"><input type="hidden" name="accion"><input type="hidden" name="pag"><input type="hidden" name="usa_urls" value="si"><input type="hidden" name="fastEditor" value="1"><textarea id="fastEditor_texto" style="width:100%" name="texto"></textarea></form>';fastEditor.objs.edit=fastEditor.objs.cont.getElementsByTagName('textarea')[0];fastEditor.objs.save=fastEditor.objs.cont.getElementsByTagName('form')[0];fastEditor.objs.foro=fastEditor.objs.cont.getElementsByTagName('input')[0];fastEditor.objs.tema=fastEditor.objs.cont.getElementsByTagName('input')[1];fastEditor.objs.mesg=fastEditor.objs.cont.getElementsByTagName('input')[2];fastEditor.objs.accion=fastEditor.objs.cont.getElementsByTagName('input')[3];fastEditor.objs.pag=fastEditor.objs.cont.getElementsByTagName('input')[4];if(fastEditor.loaded.accion=='reply'){fastEditor.objs.bot.innerHTML=fastEditor.config.fastReplyButtons;}else{fastEditor.objs.bot.innerHTML=fastEditor.config.editButtons;}},'includeJS':function(source){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.text=source;document.getElementsByTagName('HEAD')[0].appendChild(e);},'require':function(url,evaluate){function get(s){var x=0;try{x=new ActiveXObject(s);}catch(s){}
return x;};var cnx=window.XMLHttpRequest?new XMLHttpRequest():get('Msxml2.XMLHTTP')||get('Microsoft.XMLHTTP');if(cnx){cnx.open("GET",url,false);cnx.send(null);if(!evaluate){fastEditor.includeJS(cnx.responseText);}else{return eval(cnx.responseText);}}else{alert("Tu navegador no admite AJAX.\nTe recomendamos que actualices o instales el navegador firefox.");}},'moveScroll':function(){if(fastEditor.loaded.accion=='reply'){fastEditor.goTo('Fast_Reply');}else{fastEditor.goTo(fastEditor.objs.cont.parentNode);}},'goTo':function(id){if(typeof(id)=='string'){var obj=document.getElementById(id);}else{var obj=id;}
var myTop=obj.offsetTop||0;while(obj.offsetParent){obj=obj.offsetParent;myTop+=parseInt(obj.offsetTop)||0;}
window.scrollTo(0,myTop);},'cloneObject':function(obj){for(var i in obj){if(typeof obj[i]=='object'){this[i]=new fastEdit.cloneObject(obj[i]);}
else
this[i]=obj[i];}}}
document.writeln('<scr'+'ipt type="text/javascr'+'ipt" src="/tiny_mce_'+fastEditor_Version+'/tiny_mce_gzip.js"></scr'+'ipt>');