var isMobileBrowser=(function(a){return(/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))})(navigator.userAgent||navigator.vendor||window.opera);var DOM_MIARROBA='https://miarroba.com',DOM_SERVICIOS='https://servicios.miarroba.com',_PICS_URL='https://miarroba.st/240',_ICO_URL='https://miarroba.st/240/iconos',_LAYOUT_URL='https://miarroba.st/240/layout_miarroba',_VACIO_URL='https://miarroba.st/240/iconos/vacio.gif',_JS_URL='https://miarroba.st/240/javascr'+'ipt',_JQ_URL='https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.3/jquery.min.js',_JS_ORIG='',_JS_LNG_URL='https://miarroba.st/240/javascr'+'ipt/es',_CSS_URL='https://miarroba.st/240/css',_LANG_CODE='es',_PASSWORD_STRENGTH=['muy débil','débil','normal','fuerte','muy fuerte'],_C_DECIMALES=',',_C_MILES='.',_SAFE_FONTS=[''],KEY_BACKSPACE=8,KEY_TAB=9,KEY_RETURN=13,KEY_ESC=27,KEY_LEFT=37,KEY_UP=38,KEY_RIGHT=39,KEY_DOWN=40,KEY_DELETE=46,KEY_HOME=36,KEY_END=35,KEY_PAGEUP=33,KEY_PAGEDOWN=34,KEY_INSERT=45,KEY_COMA=188,LNG_ACEPTAR='Aceptar',LNG_CANCELAR='Cancelar',LNG_TRANSPARENTE='Transparente',LNG_VALID_EXTENSIONS='Puedes subir archivos #{exts}',LNG_VALID_WEIGHT='El peso máximo permitido es de #{bytes}',LNG_MAX_WIDTH='El ancho máximo es de #{pixeles} píxeles',LNG_MAX_HEIGHT='El alto máximo es de #{pixeles} píxeles',LNG_MIN_WIDTH='El ancho mínimo es de #{pixeles} píxeles',LNG_MIN_HEIGHT='El alto mínimo es de #{pixeles} píxeles',LNG_EXACT_WIDTH='El ancho máximo es de #{pixeles} píxeles',LNG_EXACT_HEIGHT='El alto máximo es de #{pixeles} píxeles',LNG_RANGE_WIDTH='El ancho debe estar comprendido entre #{ancho} y #{Ancho} píxeles',LNG_RANGE_HEIGHT='El alto debe estar comprendido entre #{alto} y #{Alto} píxeles',LNG_MAX_RESOLUTION='La resolución máxima permitida es de #{ancho}x#{alto} píxeles o equivalente',LNG_MIN_RESOLUTION='La resolución mínima permitida es de #{ancho}x#{alto} píxeles o equivalente',LNG_EXACT_RESOLUTION='La resolución ha de ser de #{ancho}X#{alto} píxeles;',LNG_RANGE_RESOLUTION='La resolución de la imagen ha de estar comprendida entre #{ancho}X#{alto} y #{Ancho}X#{Alto} píxeles.',LNG_OR='O',LNG_SELECCIONAR_UNA_IMAGEN_DE='Seleccionar una
imagen de:',LNG_O_BIEN_SELECCIONAR='O bien, seleccionar:',LNG_LINK_FROMPC='Mi PC',LNG_TITLE_FROMPC='Subir una imagen tuya',LNG_EXPLAIN_1_FROMPC='Selecciona una imagen de tu PC. Si es correcta, la imagen será subida a tu espacio y obtendrás una vista previa aquí.
Las imágenes de gran tamaño pueden tardar en aparecer',LNG_LINK_FROMEXT='Importar desde Web',LNG_TITLE_FROMEXT='Importar desde dirección web (URL)',LNG_URL_IMAGEN='URL de imagen',LNG_EXPLAIN_1_FROMEXT='Escribe la URL de imagen en el campo de texto anterior. Si es correcta, la imagen será importada desde la url de origen a tu espacio y obtendrás una vista previa aquí.
Las imágenes de gran tamaño pueden tardar en aparecer',LNG_LINK_FROMURL='Dirección web (URL)',LNG_TITLE_FROMURL='Especificar una URL de imagen',LNG_URL_IMAGEN='URL de imagen',LNG_EXPLAIN_1_FROMURL='Escribe la URL de imagen en el campo de texto anterior. Si es correcto, obtendrás una vista previa de la imagen aquí
Las imágenes de gran tamaño pueden tardar en aparecer',LNG_LINK_FROMSINIMAGEN='Ninguna imagen',LNG_TITLE_FROMSINIMAGEN='Ninguna imagen',LNG_EXPLAIN_1_FROMSINIMAGEN='No usar imagen en este apartado.',LNG_LINK_FROMDEFECTO='Imagen por defecto',LNG_EXPLAIN_1_FROMDEFECTO='Usar imagen por defecto: #{defaultCode}',LNG_TITLE_FROMDEFECTO='Usar imagen por defecto',LNG_NOW='Ahora',LNG_HECHO='Hecho',LNG_TIME='Hora',LNG_HOUR='Hora',LNG_HOURS='Horas',LNG_MINUTE='Minuto',LNG_MINUTES='Minutos',LNG_SECOND='Segundo',LNG_SECONDS='Segundos',LNG_ANO='Año',LNG_MES='Mes',LNG_SEMANA='Semana',LNG_DIA='Día',LNG_CHOOSE_TIME='Elige hora',LNG_TODAS_LAS_FECHAS='Todas las fechas',LNG_ZONA_HORARIA='Zona horaria',LNG_ESTO_PODRIA_LLEVAR_ALGO_DE_TIEMPO='Esto podr�a llevar algo de tiempo...',LNG_HACE_X_TIEMPO='Hace #{tiempo}';(function(window){window.getDevicePixelRatio=function(){var ratio=1;if(window.screen.systemXDPI!==undefined&&window.screen.logicalXDPI!==undefined&&window.screen.systemXDPI>window.screen.logicalXDPI){ratio=window.screen.systemXDPI/window.screen.logicalXDPI;} else if(window.devicePixelRatio!==undefined){ratio=window.devicePixelRatio;} return ratio;};})(this);jQuery.extend({tpl:function(tpl,val){tpl=typeof(tpl)=='string'?tpl:'';val=jQuery.isPlainObject(val)?val:{};return tpl.replace(/#\{([^{}]+)}/g,function(c,m){return val[m]||'';});},keys:function(obj){var a=[];jQuery.each(obj,function(i,v){a.push(i);});return a;},values:function(obj){var a=[];jQuery.each(obj,function(i,v){a.push(v)});return a;},idCounter:0,identify:function(o){return(typeof(o)=='string'&&o.substr(0,1)!='#'&&jQuery.trim(o)!='')?jQuery('#'+o):jQuery(o)},htmlspecialchars:function(string){return jQuery('').text(string).html();},strPad:function(i,l,s){var o=i.toString();l=(l||2);s=(s||'0');while(o.length0||!down)) up.apply(el,[event,delta]);else if(down&&delta<0) down.apply(el,[event,delta]);};if(window.addEventListener) window.addEventListener('DOMMouseScroll',el._handleMousewheel,false);window.onmousewheel=document.onmousewheel=el._handleMousewheel;},removeFocus:function(el){if(!el._handleMousewheel)return;if(window.removeEventListener) window.removeEventListener('DOMMouseScroll',el._handleMousewheel,false);window.onmousewheel=document.onmousewheel=null;el._handleMousewheel=null;}};if(typeof($.ui)!='undefined'){$.widget("ui.autocompleteM",$.extend({},$.ui.autocomplete.prototype,{_renderItem:function(ul,item){return $("
  • ").data("item.autocomplete",item).append($("").html(item.label)).appendTo(ul);}}));var oldHTML=$.datepicker._generateHTML;$.extend($.datepicker,{_generateHTML:function(inst){var html=oldHTML.apply(this,arguments);if(typeof(inst.settings.showAllDates)!='undefined'&&inst.settings.showAllDates===true){var dummyDiv=jQuery('
    '+html+'
    ').appendTo('body');var button=jQuery('');jQuery('.ui-datepicker-close',dummyDiv).after(button);html=dummyDiv.html();dummyDiv.remove();} return html;}});} $(function() {$('.menuIconBox').each(function() {var m=$(this);m.on('center',function(){var a=m.find('a.selected');if(a.size()>0){var scrollLeft=(a.position()['left']+a.width()/2)-(m.width()/2);if(scrollLeft>0){m.scrollLeft(Math.abs(scrollLeft));} m.trigger('scroll');}}) m.trigger('center');});});var $mia=new function(){var t=this;this.antiFrame=function(){if(window.self!=window.top){window.top.location=window.self.location;}} this.fblogin=function(url){var newWindow=$mia.openPopup(url,'mia_fb_login',640,350);if(newWindow){var checkStatus=setInterval(function(){if(newWindow.closed){clearInterval(checkStatus);location.reload();}},75);}} this.openPopup=function(url,name,width,height){return window.open(url,name,'width='+width+',height='+height+',top='+((screen.height-height)/2)+',left='+((screen.width-width)/2));} this.navigation=function(nav){if(typeof(nav)=='undefined'){nav=[];} var foo=jQuery('
    ').html('home');jQuery.each(nav,function(i,el){var text=el.text;delete el.text;foo.append(' ');foo.append(jQuery('').html(text).attr(el))});jQuery('a',foo).last().addClass('selected');jQuery('#miarroba_navigation').empty().append(foo);};this.sumCSS=function(ob,op){var s=0;jQuery.each(op,function(k,v){s+=parseInt(ob.css(v),10)||0;});return s;} this.videoLayout=function(where,now) {if(typeof(now)=='undefined'||now!==true){jQuery(function(){$mia.videoLayout(where,true);});return;} $(where).find('iframe, embed').each(function(){var ifr=$(this);var rel=$(this).attr('rel');if((match=youtubeLinkParser(rel))){var w=ifr.width();var pW=90*w/480;var pH=63*w/480;ifr.replaceWith('');}});$("body").on("click","a[data-youtube]",function(){var a=$(this);$.ajax({url:'/youtube',data:'v='+a.data('youtube'),type:'POST',dataType:'json',success:function(r){}});var img=a.find('img');var layer=$('
    ');layer.click(function(){layer.remove();});layer.find('span').click(function(){layer.remove();});var onEscLayerRemove=function(e){if(e.which==KEY_ESC){layer.remove();$(document).off('keydown',onEscLayerRemove);}};$(document).on('keydown',onEscLayerRemove);$("body").append(layer);layer.show();return false;});function youtubeLinkParser(url){var regExp=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/;var match=url.match(regExp);if(match&&match[2].length==11){return match[2];}else{return null;}}} this.maxObjSize=function(where,maxWidth,now){if(typeof(where)=='undefined'||typeof(maxWidth)!='number'){return false;} if(typeof(now)=='undefined'||now!==true){jQuery(function(){$mia.maxObjSize(where,maxWidth,true);});return;} jQuery.each(jQuery.makeArray(where),function(i,v){var pUntil=typeof(v)=='string'?v:'#'+jQuery(v).identify;jQuery('img:not(.caretoMia),embed,iframe',jQuery(v)).each(function(){var o=jQuery(this);var W=o.width(),H=o.height();var toSum=['borderLeftWidth','borderRightWidth','paddingLeft','paddingRight'];if(this.style.marginLeft!='auto')toSum.push('marginLeft');if(this.style.marginRight!='auto')toSum.push('marginRight');var max=maxWidth-($mia.sumCSS(o,toSum));o.parentsUntil(pUntil).each(function(){var p=jQuery(this);max-=(p.outerWidth(true)-p.width());});if(W>max) {o.css({'width':'','height':''}).attr('width',max);if(H!=0) {o.attr('height',(H*(max/W)));}} else {o.css('maxWidth','100%');} if(this.tagName=='IMG'&&o.parent('a').length==0){var img=jQuery('');img.load(function(){if(this.width>max){var layer=jQuery('
    ');var position=function(){var pos=o.position();var left=pos.left+$mia.sumCSS(o,['marginLeft']);var top=pos.top+$mia.sumCSS(o,['marginTop']);layer.css({width:o.outerWidth()+'px',height:o.outerHeight()+'px',top:top+'px',left:left+'px'});} layer.attr({title:'Ver imagen en tamaño completo'}).css({position:'absolute',cursor:'pointer',margin:'0px',padding:'0px',border:'0px',opacity:0.6}).css({background:'url('+_PICS_URL+'/layout_miarroba/icons/misc/expand.gif) center center no-repeat'}).click(function(){window.open(o.attr('src'))}).mouseleave(function(){jQuery(this).detach();});jQuery(window).bind('resize',position);o.mouseenter(function(){position();layer.insertAfter(o);});} delete img;}).error(function(){delete img;}).attr('src',o.attr('src'));}});});return true;} this.menuInObj=function(obj,ani,contStyle,move){var t=this,i=jQuery(obj),ani,W,H,P;t.layer=jQuery('
    ');t.last='ini';if(typeof(move)!='number'){move=false;} t.init=function(){W=i.width();H=i.height();t.layer.css({position:'absolute',width:W+'px',height:H+'px',overflow:'hidden',backgroundImage:'url('+_VACIO_URL+')'});if(move===false){t.layer.insertAfter(i).bind('mouseenter',{t:'end'},t.animate).bind('mouseleave',{t:'ini'},t.animate);}else{t.layer.insertAfter(i).one('mousemove',{t:'end'},t.animate);} jQuery.each(ani,function(i,v){var foo=t.createContainer(contStyle).html(v[0]).data('ini',v[1]).data('end',v[2]).hide().appendTo(t.layer);foo.css(t.posData(foo,'ini')).show();});ani=t.layer.children();t.position();jQuery(window).bind('resize',t.position);} t.animate=function(e){t.last=e.data['t'];switch(e.type){case 'mousemove':var toBack;var foo=function(){t.layer.unbind('mousemove');t.animate({data:{t:'ini'},type:'stop'})} toBack=setTimeout(foo,move);t.layer.mousemove(function(){clearTimeout(toBack);toBack=setTimeout(foo,move);});ani.mouseenter(function(){clearTimeout(toBack);t.layer.unbind('mousemove');}).mouseleave(function(){toBack=setTimeout(foo,move);t.layer.mousemove(function(){clearTimeout(toBack);toBack=setTimeout(foo,move);});});break;case 'stop':t.layer.one('mousemove',{t:'end'},t.animate);break;} ani.stop(true).queue(function(next){var o=jQuery(this);o.animate(t.posData(o,e.data['t']),{duration:300,queue:false});next();}).dequeue();return false;} t.posData=function(obj,type){var d={};d.width=obj.outerWidth(true);d.height=obj.outerHeight(true);d.layerWidth=W;d.layerHeight=H;d.center=((d.layerWidth-d.width)/2);d.middle=((d.layerHeight-d.height)/2);return obj.data(type)(d);} t.createContainer=function(extra){var c=jQuery('
    ').css({position:'absolute'});if(typeof(extra)=='object'){c.css(extra);} return c;} t.position=function(){P=i.position();W=i.width();H=i.height();var dT=$mia.sumCSS(i,['marginTop','paddingTop','borderTopWidth']);var dL=$mia.sumCSS(i,['marginLeft','paddingLeft','borderLeftWidth']);t.layer.css({width:W+'px',height:H+'px',top:(P.top+dT)+'px',left:(P.left+dL)+'px'});ani.each(function(){var ob=jQuery(this);ob.css(t.posData(ob,t.last))});} t.destroy=function(){jQuery(window).unbind('resize',t.position);ani.stop(true);t.layer.remove();delete t;} jQuery(t.init);} this.galleryMenu=function(elements,input,viewUrl,showUse){if(typeof(showUse)=='undefined'||showUse!==true)showUse=false;var enter=function(){jQuery(this).css({opacity:1})};var leave=function(){jQuery(this).css({opacity:0.8})};jQuery(function(){jQuery(elements).each(function(){var o=jQuery(this);var data=o.attr('rel');var view=function(){window.open(jQuery.tpl(viewUrl,{data:data}))};var use=function(){if(confirm('¿Deseas cambiar realmente de plantilla?'))jQuery(input).val(data).parent('form').submit();} var menus=[];if(!showUse){menus.push([jQuery('
    ').addClass('useSkin').attr({'title':'Utilizar piel'}).hover(enter,leave).click(use),function(d){return{left:'-'+(d.width+10)+'px',top:d.middle+'px'}},function(d){return{left:((d.layerWidth/2)-d.width-10)+'px'}}]);} menus.push([jQuery('
    ').addClass('previewSkin').attr({'title':'Ver ejemplo'}).hover(enter,leave).click(view),function(d){return{right:'-'+(d.width+10)+'px',top:d.middle+'px'}},function(d){return(!showUse)?{right:((d.layerWidth/2)-d.width-10)+'px'}:{right:d.center+'px'}}]) new $mia.menuInObj(o,menus);});})} this.getPagination=function(pag,total,returnFunc){var cod=[],mod,ini,fin,x,link,nolink,selected;pag=parseInt(pag);total=parseInt(total);if(total>1){mod=!isMobileBrowser?2:1;ini=1;fin=total;if(((mod*2)+1)total){ini=ini-(fin-total);fin=total;if(ini<1)ini=1;}}} link=function(params){return jQuery.tpl(t.mask.pagLink,params)};nolink=function(params){return jQuery.tpl(t.mask.pagNoLink,params)};selected=function(params){return jQuery.tpl(t.mask.pagSelected,params)};cod.push(t.condition((ini>1),link,nolink,{'type':'First','title':'Primera página','text':'<<','click':returnFunc,'pag':'1'}));cod.push(t.condition((pag>1),link,nolink,{'type':'Prev','title':'Página anterior','text':'<','click':returnFunc,'pag':(pag-1)}));for(x=ini;x<=fin;x++){cod.push(t.condition((x!=pag),link,selected,{'type':'Number','title':'Página: '+x,'text':x,'click':returnFunc,'pag':x}));} cod.push(t.condition((pag>16,(hex&0x00FF00)>>8,(hex&0x0000FF)];};this.RGB2Hex=function(R,G,B){if(typeof(R)=='object'&&!G&&!B){G=R[1];B=R[2];R=R[0];} return t.dec2Hex(R)+t.dec2Hex(G)+t.dec2Hex(B);};this.dec2Hex=function(Dec){var hexchars="0123456789ABCDEF";Dec=Dec||0;Dec=parseInt(Dec,10);if(isNaN(Dec))Dec=0;Dec=Math.round(Math.min(Math.max(0,Dec),255));return hexchars.charAt((Dec-Dec%16)/16)+hexchars.charAt(Dec%16);};this.contrastColor=function(color){if(typeof(color)!='string'){color=$mia.RGB2Hex(color[0],color[1],color[2]);} if($mia.toYCbCr(color)['Y']<128){return $mia.hex2RGB($mia.hexFromTo(5,color,'FFFFFF')[3]);}else{return $mia.hex2RGB($mia.hexFromTo(5,color,'000000')[3]);}};this.toYCbCr=function(color){if(typeof(color)=='string'){color=$mia.hex2RGB(color);} return{'Y':(color[0]*0.257)+(color[1]*0.504)+(color[2]*0.098)+16,'Cb':(-0.148*color[0])-(0.291*color[1])+(0.439*color[2])+128,'Cr':(0.439*color[0])-(0.368*color[1])-(0.071*color[2])+128}};this.rgb2hsv=function(rgb){var r=rgb[0]/255,g=rgb[1]/255,b=rgb[2]/255;var max=Math.max(r,g,b),min=Math.min(r,g,b);var h,s,v=max;var d=max-min;s=max==0?0:d/max;if(max==min){h=0;}else{switch(max){case r:h=(g-b)/d+(g
    #{content}
    ',pagBase:'#{content}',pagSep:'',pagLink:'#{text}',pagNoLink:'#{text}',pagSelected:'#{text}'};this.tabs=function(bossMenu){var t=this;t.tabChange=function(tabId){if(typeof(tabId)=='string'){tabId='#'+tabId;} jQuery(tabId,t.bossMenu).addClass('selected').siblings().removeClass('selected').filter('.multitab').each(function(){var a=jQuery(this);a.find('span.dataSelector').children().html(a.data('reset'));});} jQuery(function(){t.bossMenu=jQuery('#'+bossMenu);t.bossMenu.delegate('a:not(.multitab)','click',function(){t.tabChange(this);}).find('a.multitab').each(function(){var a=jQuery(this);var s=jQuery('span.dataSelector',a);var opts=jQuery.parseJSON(s.attr('rel'));a.data('reset',s.children().html());new $mia.optionsMenu('multitab_'+Math.floor(Math.random()*300000000+1),a,opts,'bottom',function(){var opt=jQuery(this);opt.addClass('selected').siblings().removeClass('selected');s.children().html(opt.html());t.tabChange(a);document.location=opt.attr('href');return false;});});});} this.optionsMenu=function(id,obj,opts,type,callback){var t=this,obj,lay,opt,open=false,disabled=false;type=type||'bottom';callback=jQuery.isFunction(callback)?callback:function(){return true;};obj=jQuery(obj);lay=jQuery('').attr('id',id).appendTo('body');opt=jQuery('.optionList',lay).delegate('a','click',function(){var ret=jQuery.proxy(callback,this)();t.repos();return ret;});jQuery.each(opts,function(i,v){var text=v.text;delete v.text;opt.append(jQuery('').html(text).attr(v).addClass('option noOutLine'));});t.disable=function(sw){disabled=sw||false;if(disabled&&open){t.hide();}} t.toggle=function(e){e.preventDefault();if(!disabled){if(open){t.hide(e)}else{jQuery(document).trigger('click.optMenu');t.show(e);} return false;}} t.show=function(e){if(!open){open=true;t.repos();lay.slideDown('fast');jQuery(document).bind('click.optMenu',t.hide);jQuery(window).bind('resize',t.repos);}} t.hide=function(e){if(open){open=false;jQuery(document).unbind('click.optMenu');jQuery(window).unbind('resize',t.repos);lay.slideUp('fast');}} t.repos=function(e){var coo=obj.offset();switch(type){case 'bottom':coo.top+=obj.outerHeight(true);break;case 'right':coo.left+=obj.outerWidth(true);break;case 'left':coo.left-=lay.outerWidth(true);break;case 'top':coo.top-=lay.outerHeight(true);break;} lay.css({top:coo.top+'px',left:coo.left+'px',minWidth:obj.width()+'px'});} obj.css('cursor','pointer').click(t.toggle).find('*').css('cursor','pointer');} this.fadeElement=function(element,ini,end,duration){var t=this;ini=typeof(ini)=='undefined'?0:ini;end=typeof(end)=='undefined'?1:end;duration=duration|200;var e=jQuery(element).css('opacity',ini).show();if(ini0){jQuery.each(tQuery,function(type,ids){jQuery.ajax({dataType:'jsonp',timeout:5000,url:sData[type]['url']+encodeURIComponent(ids.join(',')),success:function(d){jQuery.each(d,function(pos,val){cache[type+'@'+val[sData[type]['id']]]=val[sData[type]['col']];});},complete:function(){if(!--num){fn(cache);}}});});}else{fn(cache);}} t.search=function(text){return(text||'').match(ereg);} t.parse=function(e){var e=jQuery(e),res,html=[];e.each(function(){html.push(jQuery(this).html());}) if(res=t.search(html.join(' '))){t.query(res,function(){e.each(function(){t.replace(this);})});}} t.replace=function(e){var childs=e.childNodes,n=childs.length,node;while(n--){node=childs[n];if(node.nodeType==3&&node.nodeValue.search(ereg)!==-1&&jQuery(node).parents('[rel~=no_external_nick]').length==0){node.nodeValue=node.nodeValue.replace(ereg,function(c,type){return cache[c]||c;})}else if(node.nodeType==1){t.replace(node);}}} jQuery(function(){t.parse('html')});} this.window=new function(){var t=this,obj=false,cont=false,black=false,fucking=(jQuery.browser.msie&&jQuery.browser.version<=6);if(jQuery('
    ').css('position','fixed').css('position')!='fixed'){fucking=true;} t.opened=false;t.open=function(code,backColor,anim,doOnLoad){if(typeof(wbo_close)=='function'){wbo_close();} backColor=backColor||'#000000';anim=anim||false;doOnLoad=doOnLoad||false;if(obj==false){t.createWindow();} if(!t.opened){t.opened=true;cont.empty().append(code);jQuery('object,embed,iframe').css({'visibility':'hidden'});if(fucking){jQuery('select').css('visibility','hidden');jQuery(window).bind('scroll.iw resize.iw',function(e){var w=jQuery(this),top=w.scrollTop(),left=w.scrollLeft();obj.css({'top':top+"px",'left':left+"px",width:w.width()+'px',height:w.height()+'px'});black.css({'top':top+"px",'left':left+"px",width:w.width()+'px',height:w.height()+'px'});}).trigger('scroll.iw');}else if(isMobileBrowser){jQuery(window).bind('scroll.iw resize.iw dblclick.iw touchmove.iw',function(e){obj.css({width:black.width()+'px',height:black.height()+'px'});});} jQuery('body').prepend(black);black.css('background',backColor).animate({'opacity':0.7},(anim?300:0),function(){jQuery('body').prepend(obj);if(doOnLoad){jQuery.isFunction(doOnLoad)?doOnLoad():jQuery.globalEval(doOnLoad);}});}} t.close=function(){obj.remove();black.css('opacity',0).remove();cont.empty();jQuery('object,embed,iframe').css({'visibility':'visible'});if(fucking){jQuery('select').css('visibility','visible');} jQuery(window).unbind('scroll.iw resize.iw dblclick.iw touchmove.iw');t.opened=false;} t.createWindow=function(){obj=jQuery('
    ').css({'zIndex':20001});black=jQuery('
    ').css({'zIndex':20000,'opacity':0}).bind('mousedown',function(event){event.stopPropagation();});cont=jQuery('td',obj);if(fucking){var w=jQuery(window);obj.css({'position':'absolute','width':w.width()+'px','height':w.height()+'px'});black.css({'position':'absolute','width':w.width()+'px','height':w.height()+'px'});}}} this.lightBox=function(code,anim,close,hideCloseButton){if(!$mia.window.opened){anim=typeof(anim)=='undefined'?true:anim;close=close||'$mia.lightBox.close('+anim+')';if(typeof(close)=='function'){$mia.lightBox.accClose=close;}else{$mia.lightBox.accClose=function(){jQuery.globalEval(close)};} $mia.lightBox.putStyle();this.window.open(jQuery.tpl(this.mask.popup,{accClose:'$mia.lightBox.accClose()',content:'
    '}),'#000000',false,function(){$mia.lightBox.change(code,anim,undefined,hideCloseButton);});}} this.lightBox.loaded=false;this.lightBox.putStyle=function(){if(typeof($mia.lightBox.css)=='undefined') {var inMia=typeof(MiarrobaToolBar)=='undefined';var css='\n';jQuery('').appendTo('head');$mia.lightBox.css=true;}} this.lightBox.change=function(code,anim,close,hideCloseButton){if($mia.window.opened) {anim=typeof(anim)=='undefined'?true:anim;if(typeof(close)!='undefined'){close=close||'$mia.lightBox.close('+anim+')';if(typeof(close)=='function'){$mia.lightBox.accClose=close;}else{$mia.lightBox.accClose=function(){jQuery.globalEval(close)};}} var o=jQuery('#lightboxAnimation'),c=jQuery('
    ').css({'position':'absolute','visibility':'hidden'}).append(code),doc=jQuery(document),docW=doc.width(),docH=doc.height();o.stop(true).css({background:'url('+_PICS_URL+'/loading2.gif) center center no-repeat'});jQuery('#imgClosePop').hide();o.empty();var showContent=function(){var doCSS=false,lBW=c.innerWidth(),lBH=c.innerHeight();if(lBW>(docW-100)){lBW=docW-100;lBH+=$mia.scrollbarWidth();doCSS=true;} if(lBH>(docH-100)){lBH=docH-100;lBW+=$mia.scrollbarWidth();doCSS=true;} if(doCSS){if(this.tagName=='IFRAME'){jQuery(this).css({width:lBW+'px',height:lBH+'px'}).prop('scrolling','auto');}else{jQuery(this).css({width:lBW+'px',height:lBH+'px',overflow:'auto'});}} o.animate({'width':lBW+'px'},(anim?250:0)).animate({'height':lBH+'px'},(anim?250:0),function(){c.css({'position':'static','visibility':'visible'});if(!hideCloseButton){jQuery('#imgClosePop').show();jQuery(document).off('keyup.lightboxclose').on('keyup.lightboxclose',function(e){if(e.which===27)jQuery('#imgClosePop').click();});}else{jQuery(document).off('keyup.lightboxclose');} o.css({background:'',height:'auto'});$mia.lightBox.loaded=true});} if(c.children().length==1&&c.children('iframe').length==1&&c.children('iframe').attr('src')!=='about:blank'){c.children('iframe').one('load',showContent);o.append(c);}else{o.append(c);jQuery.proxy(showContent,c[0])();}}else{$mia.lightBox(code,anim,close,hideCloseButton);}} this.lightBox.close=function(anim){if($mia.window.opened){anim=typeof(anim)=='undefined'?true:anim;jQuery(document).off('keyup.lightboxclose');if(anim){jQuery('#imgClosePop').hide();var o=jQuery('#lightboxAnimation');o.stop(true).css({'background':'none','height':o.height()+'px'}).empty().animate({'width':'0px','height':'0px'},300,function(){$mia.window.close();$mia.lightBox.loaded=false;});}else{$mia.window.close()}}} this.login=function(){top.location="https://miarroba.com/usuarios/login.php";return;if(!isMobileBrowser){$mia.lightBox('');}else{top.location='https://miarroba.com/usuarios/login.php?mobile&return='+encodeURIComponent(location);}} this.ipinfo=function(ip){$mia.lightBox('');} this.serializeJSON=function(o){var json={};jQuery.map(jQuery(o).serializeArray(),function(n,i){json[n['name']]=n['value'];});return json;} this.textBox=function(text,fn,extra,doCancel,fast,hideCloseButton){fn=(typeof(fn)=='function')?fn:function(){};var c=jQuery('
    ').addClass('confirmBox').append('
    '+text+'
    ');var fData=jQuery(':input',c);jQuery('').attr({'type':'button','class':'tabla_boton','value':'Aceptar'}).click(function(){fn(true,extra,$mia.serializeJSON(fData));$mia.lightBox.close(!fast);}).appendTo(c);if(doCancel)jQuery('').attr({'type':'button','class':'tabla_boton','value':'Cancelar'}).click(function(){fn(false,extra,$mia.serializeJSON(fData));$mia.lightBox.close(!fast);}).appendTo(c);$mia.lightBox.change(c,!fast,function(){fn(false,extra,$mia.serializeJSON(fData));$mia.lightBox.close(!fast);},hideCloseButton);} this.mmModal=false;this.mmenuModalBox=function(text,fn,extra,doCancel){var t=this;if(t.mmModal===false){t.mmModal=$('
    ').appendTo('body');t.mmModal.mmenu({classes:"mm-white mmModal",modal:true,position:'bottom',zposition:'front'});} t.mmModal.html('

    '+text+'

    ');var bts=$('
    ').appendTo(t.mmModal);var btsF=$('
    ').appendTo(bts);var fData=$(':input',t.mmModal);$('