var html1='<table width=100% cellspacing="8">';html1+="<tfoot>";html1+='<tr><td class="FAQFooter" colspan="6">Titlani &copy; 2009. Derechos Reservados.</td></tr>';html1+="</tfoot>";html1+="<tr>";html1+='<td colspan=2 align="center">';html1+='&iquest;Usuario Nuevo? <b><a href="register.html">Registro</a></b>';html1+="</td>";html1+="</tr>";html1+="<tr>";html1+='<td colspan=2 align="center">';html1+='&iquest;No lleg&oacute; tu correo de confirmaci&oacute;n? <b><a href="reg_confirm.cgi">Re-enviar</a></b>';html1+="</td>";html1+="</tr>";html1+="<tr>";html1+='<td colspan=2 align="center">';html1+='&iquest;Olvidaste tu usuario o password? <b><a href="pwd_chnge.cgi">Da click aqu&iacute;</a></b>';html1+="</td>";html1+="</tr>";html1+="<tr>";html1+='<td width="50%" align="center">';html1+='<i><a href="privacidad.htm">Politica de Privacidad</a></i>';html1+="</td>";html1+='<td align="center">';html1+='<i><a href="tds.htm">Terminos de Uso</a></i>';html1+="</td>";html1+="</tr>";html1+="<tr>";html1+="<td colspan=2>";html1+="<hr>";html1+="</td>";html1+="</tr>";html1+="<tr>";html1+="<td colspan=2>";html1+='<div id="tweeter"></id>';html1+="</td>";html1+="</tr>";html1+="</table>";var html2='<table width=100% cellspacing="8">';html2+="<tfoot>";html2+='<tr><td class="FAQFooter" colspan="6">Titlani &copy; 2009. Derechos Reservados.</td></tr>';html2+="</tfoot>";html2+="<tr>";html2+='<td colspan=2 align="right">';html2+='<a href="#" onClick="hideFAQ();"><img src="img/close_small.png" alt="Cerrar"/></a>';html2+="<hr/>";html2+="</td>";html2+="</tr>";html2+="<tr>";html2+="<td colspan=2>";html2+='<table width="100%" cellspacing="2">';html2+="<thead>";html2+="<tr>";html2+='<th style="font-size: 14px"><b>Preguntas Frecuentes</b></th>';html2+="</tr>";html2+="</thead>";html2+="<tbody>";html2+="<tr>";html2+="<td>";html2+='<ul style="list-style-type: circle; margin-left: 20px; margin-right: 20px; font-size: 13px;">';html2+='<li style="padding: 2px;"><a href="http://www.yectic.com/2009/10/18/titlani-preguntas-frecuentes/">Acerca de Titlani...</a></li>';html2+='<li style="padding: 2px;"><a href="http://www.yectic.com/2009/10/14/nueva-funcionalidad-titlani/">Acerca de como usar Titlani...</a></li>';html2+='<li style="padding: 2px;"><a href="faq_publicidad.htm">Acerca de la publicidad en Titlani...</a></li>';html2+="</ul>";html2+="<td>";html2+="</tr>";html2+="</td>";html2+="</table>";html2+="</td>";html2+="</tr>";html2+="<tr>";html2+="<td colspan=2>";html2+="<hr>";html2+="</td>";html2+="</tr>";html2+="<tr>";html2+="<td colspan=2>";html2+='<table width="100%" cellspacing="2">';html2+="<thead>";html2+="<tr>";html2+='<th style="font-size: 14px"><b>Importante</b></th>';html2+="</tr>";html2+="</thead>";html2+="<tbody>";html2+="<tr>";html2+="<td>";html2+='<ul style="list-style-type: circle; margin-left: 20px; margin-right: 20px; font-size: 13px;">';html2+='<li style="padding: 2px;">El sistema se encuentra en <i><b>periodo publico de pruebas</b></i> (beta).</li>';html2+='<li style="padding: 2px;">En esta segunda etapa de pruebas,<i><b> abrimos el servicio a toda la Rep&uacute;blica</b></i>. Usuarios de toda la Rep&uacute;blica podr&aacute;n actualizar Twitter desde su celular.</i></li>';html2+='<li style="padding: 2px;">Aunque nos esforzamos al maximo para evitar errores, <i>es posible que encuentres algun error o el sistema no se comporte como lo esperas</i>.';html2+="<br>Si esto sucede, por favor, <i>envia un mensaje a nuestro equipo de Soporte (<b>soporte [at] yectic.com</b> - sin espacios)</i>";html2+="</li>";html2+='<li style="padding: 2px;">Nuestro objetivo es mantener el servicio las 24 horas, todos los dias del a&ntilde;o, sin embargo, durante el periodo de pruebas,';html2+=" <i>unicamente garantizamos que el servicio estara disponible de 9.30am a 11.30pm de lunes a sabado</i>.<br>";html2+="Fuera de este horario, es posible que el servicio no responda o que los mensajes no sean enviados inmediatamente, debido a mantenimientos en el sistema.";html2+="</li>";html2+='<li style="padding: 2px;">Nuestro sistema depende del proveedor de telefonia celular para el envio de mensajes, por lo tanto, es posible que experimentes un peque&ntilde;o retraso en ';html2+="la recepci&oacute;n de mensajes debido a las caracteristicas del sistema del proveedor.</li>";html2+="</ul>";html2+="</td>";html2+="</tr>";html2+="</table>";html2+="</td>";html2+="</tr>";html2+="<tr>";html2+="<td colspan=2>";html2+="<hr>";html2+="</td>";html2+="</tr>";html2+="</table>";var tabNum=1;var pnlLogin={title:"Inicio de Sesi&oacute;n",id:"pnlLogin",width:510,autoHeight:true,layout:"fit",frame:true,items:[{xtype:"form",id:"frmLogin",width:410,labelWidth:55,frame:true,monitorValid:true,autoHeight:true,style:"padding-left: 92px;",defaults:{width:210,anchor:"90%",bodyStyle:"padding: 15px;",allowBlank:false,selectOnFocus:true,blankText:"Este campo es requerido",msgTarget:"side"},items:[{fieldLabel:"Usuario",name:"user",xtype:"textfield",tabIndex:tabNum++,maxLength:10,maxLengthText:"Este campo acepta un m&aacute;ximo de 10 caracteres.",minLength:3,minLengthText:"Este campo requiere un m&iacute;nimo de 3 caracteres.",vtype:"UserName"},{fieldLabel:"Password",id:"usr_pwd1",name:"usr_pwd1",xtype:"textfield",tabIndex:tabNum++,inputType:"password",maxLength:16,maxLengthText:"Este campo acepta un m&aacute;ximo de 16 caracteres.",minLength:7,minLengthText:"Este campo requiere un m&iacute;nimo de 7 caracteres.",vtype:"alphapwd",vtypeText:"Tu password debe comenzar con una letra, puede contener letras, n&uacute;meros y los caracteres _, !, #, % y $"}],buttons:[{text:"Enviar",formBind:true,tabIndex:9,handler:function(){Ext.getCmp("frmLogin").getForm().suspendEvents();Ext.getCmp("usr_pwd1").setValue(xor_str(Ext.getCmp("usr_pwd1").getValue()));Ext.getCmp("frmLogin").getForm().clearInvalid();Ext.getCmp("frmLogin").getForm().getEl().dom.submit()}}],listeners:{afterlayout:function(b,a){},move:function(b,a,c){alert("move!")},render:function(a){},submit:function(){Ext.emptyFn}}},{xtype:"panel",layout:"fit",frame:false,bodyStyle:"padding: 5px;",defaults:{bodyStyle:"padding: 3px; font-size: 12px; text-align: left;"},items:[{html:html1}]}]};function faq_open(){var a=Ext.get("faq");a.slideIn("l",{duration:4})}function faq_close(){var a=Ext.get("faq_lnk");a.slideIn("l",{duration:4})}function showFAQ(b,a){var a=Ext.get("faq_lnk");a.slideOut("l",{duration:2,callback:faq_open()})}function hideFAQ(b,a){var b=Ext.get("faq");b.slideOut("l",{duration:2,callback:faq_close()})}Ext.onReady(function(){Ext.BLANK_IMAGE_URL="lib/ext/resources/images/default/s.gif";Ext.QuickTips.init();Ext.form.Field.prototype.msgTarget="side";Ext.MessageBox.buttonText.yes="S&iacute;";Ext.MessageBox.buttonText.cancel="Cancelar";new Ext.Panel({id:"hldRegEmail",layout:"ux.center",items:{layout:"ux.center",autoScroll:true,border:false,bodyStyle:"padding: 10px;",items:[pnlLogin]},renderTo:"divLogin"});Ext.get("loading-mask").setVisible(false,"ghost");Ext.get("loading").setVisible(false,"ghost");Ext.get("contents").setVisible(true,"ghost");Ext.get("divLogin").setVisible(true,"ghost");Ext.get("loading-mask").remove();Ext.get("loading").remove();getTwitters("tweet",{id:"tlni",count:5,enableLinks:true,ignoreReplies:true,clearContents:true,template:'<img height=24 width=24 src="%user_profile_image_url%"></img>%text% <a href="http://twitter.com/%user_screen_name%/statuses/%id%/" style="display:block;text-align:right;">%time%</a>'});showAlertMessages();var l=[{text:"&iquest;Olvidaste tu password?",url:"pwd_chnge.cgi"},{text:"Twitter en tu celular!",url:"http://www.yectic.com/2009/10/14/titlani-configurar-updates-en-tu-celular/"},{text:"&iquest;Olvidaste tu password?",url:"pwd_chnge.cgi"},{text:"&iquest;Nuevo Usuario? Registrate!",url:"register.html"},{text:"Re-enviar correo de confirmaci&oacute;n",url:"reg_confirm.cgi"}];var b=Ext.get("header");var d=Ext.get("msg-ct");var h=b.getRight()-d.getWidth();if(h>0){d.setLeft(h)}var f=b.getTop()+b.getHeight();if(f>0){d.setTop(f)}function n(){c.update(g.text+" <b>&raquo;</b>");e.slideIn("t",{duration:2})}var m=0;var e=Ext.get("msg"),c=Ext.get("msg-inner"),g=null;c.addClassOnOver("msg-over");function k(o){if(!c.hasClass("msg-over")){g=l[o];if(e.isVisible()){e.slideOut("t",{duration:2,callback:n})}else{n()}}}e.on("click",function(){window.location=g.url});Ext.EventManager.onWindowResize(function(){setMsgXY()},this);setInterval(function(){m=l[m+1]?m+1:0;k(m)},6000);k(0);var j=new TWTR.Widget({version:2,type:"profile",customDiv:"tweeter",rpp:4,interval:6000,width:470,height:165,theme:{shell:{background:"#D7D7D7",color:"#000000"},tweets:{background:"#F3F3F3",color:"#000000",links:"#15428B"}},features:{scrollbar:true,loop:false,live:false,hashtags:true,timestamp:true,avatars:false,behavior:"default"}});j.render("tweeter").setUser("tlni").start();var a=Ext.get("faq_lnk");a.update('<a href="#" onClick="showFAQ();"><img src="img/faq.png" alt="FAQ" /></a>');a.slideIn("l",{duration:2});var i=Ext.get("faq");i.update(html2)});