function n(a){return function(b){this[a]=b}}
var o,s="http://www.planocio.com/",v=[["-1","Selecciona tu localizaci&oacute;n",true],["-1","",false],["-1","Provincias",false],["-1","----------------",false],["p1","La Coru&ntilde;a",true],["p2","&Aacute;lava",true],["p3","Albacete",true],["p4","Alicante",true],["p5","Almer&iacute;a",true],["p6","Andorra",true],["p7","Asturias",true],["p8","&Aacute;vila",true],["p9","Badajoz",true],["p10","Barcelona",true],["p11","Burgos",true],["p12","C&aacute;ceres",true],["p13","C&aacute;diz",true],["p14","Cantabria",true],["p15","Castell&oacute;n",true],["p16","Ceuta",true],["p17","Ciudad Real",true],["p18","C&oacute;rdoba",true],["p19","Cuenca",true],["p20","Gerona",true],["p21","Granada",true],["p22","Guadalajara",true],["p23","Guip&uacute;zcoa",true],["p24","Huelva",true],["p25","Huesca",true],["p26","Baleares",true],["p27","Ja&eacute;n",true],["p28","La Rioja",true],["p29","Las Palmas",true],["p30","Le&oacute;n",true],["p31","L&eacute;rida",true],["p32","Lugo",true],["p33","Madrid",true],["p34","M&aacute;laga",true],["p35","Melilla",true],["p36","Murcia",true],["p37","Navarra",true],["p38","Orense",true],["p39","Palencia",true],["p40","Pontevedra",true],["p41","Salamanca",true],["p42","Segovia",true],["p43","Sevilla",true],["p44","Soria",true],["p45","Santa Cruz de Tenerife",true],["p46","Tarragona",true],["p47","Teruel",true],["p48","Toledo",true],["p49","Valencia",true],["p50","Valladolid",true],["p51","Vizcaya",true],["p52","Zamora",true],["p53","Zaragoza",true],["-1","",false],["-1","Comunidades",false],["-1","----------------",false],["c1","Andaluc&iacute;a",true],["c2","Arag&oacute;n",true],["c3","Asturias",true],["c4","Baleares",true],["c5","Canarias",true],["c6","Cantabria",true],["c7","Castilla-La Mancha",true],["c8","Castilla y Le&oacute;n",true],["c9","Catalu&ntilde;a",true],["c10","Comunidad Valenciana",true],["c11","Extremadura",true],["c12","Galicia",true],["c13","La Rioja",true],["c14","Madrid",true],["c15","Navarra",true],["c16","Pa&iacute;s Vasco",true],["c17","Regi&oacute;n de Murcia",true],["c18","Ceuta",true],["c19","Melilla",true]],x=["Conciertos","Exposiciones","Teatro","Espect&aacute;culos","Eventos deportivos","Eventos infantiles","Mercadillos y ferias gastron&oacute;micas","Fiestas","Congresos y eventos profesionales","Talleres y cursos","Otros eventos"],aa=["images/tipo_conciertos.png","images/tipo_exposiciones.png","images/tipo_artes_dramaticas.png",
"images/tipo_espectaculos.png","images/tipo_deportivos.png","images/tipo_infantiles.png","images/tipo_mercadillos.png","images/tipo_fiestas.png","images/tipo_profesionales.png","images/tipo_talleres.png","images/tipo_otros.png"];function y(){return typeof $!=="undefined"}var ba=false;
function ca(){if(!ba){var a=document.$b;a||(a=document.getElementsByTagName("head")[0]);if(a){var b=document.createElement("script");b.type="text/javascript";b.src=s+"js/jquery-1.js";a.appendChild(b);ba=true}else setTimeout(esperaCabecera,100)}}y()||ca();var da=[];function fa(a){da.push(a);y()?$(document).ready(z):ga()}function z(){for(;da.length>0;)da.pop()()}
function ga(){document.readyState==="complete"&&z();if(y())$(document).ready(z);else if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){z()},false);window.addEventListener("load",function(){z()},false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){z()});window.attachEvent("onload",function(){z()});var a=false;try{a=window.frameElement==null}catch(b){}document.documentElement.doScroll&&a&&ha(z)}}
function ha(a){document.readyState==="complete"&&a();if(y())$(document).ready(a);else{try{document.documentElement.doScroll("left")}catch(b){setTimeout(function(){ha(a)},10);return}a()}}function A(a,b,d,e,f){function i(h){e.apply(d,[h,f])}if(document.addEventListener)a.addEventListener(b,i,false);else document.attachEvent&&a.attachEvent("on"+b,i)}var B=null,C=null;
function ia(){if(B=document.getElementById("accedeLink")){B.href="#a";C=document.createElement("div");C.className="loginBox";var a=document.createElement("span");a.className="cerrarBox";a.onclick=function(){if(y())$(C).fadeOut(200);else C.style.display="none";B.style.borderTop=""};C.appendChild(a);var b=document.createElement("form");b.action=s+"login.php";b.method="post";a=document.createElement("label");a.innerHTML="Usuario:";b.appendChild(a);a=document.createElement("input");a.type="text";a.className=
"loginTxt";a.name="nombre";b.appendChild(a);a=document.createElement("label");a.innerHTML="Contrase&ntilde;a:";b.appendChild(a);a=document.createElement("input");a.type="password";a.className="loginTxt";a.name="pass";b.appendChild(a);a=document.createElement("a");a.href="#";a.innerHTML="Recordar contrase&ntilde;a";a=document.createElement("input");a.className="btnForm";a.type="submit";a.value="Acceder";b.appendChild(a);C.appendChild(b);B.parentNode.appendChild(C);B.onclick=function(){if(y())$(C).fadeIn(200);
else C.style.display="block";B.style.borderTop="2px solid #f6f6f6"}}(a=document.getElementById("menuUser"))&&new D(a)}
function D(a){this.pb=false;if(a){var b=a.clientWidth;if(!b)b=a.offsetWidth;b=b?b-20+"px":"95%";a.style.background="#ABB8C3 url('images/flacha-donw-blanca.png') "+b+" 8px no-repeat";this.d=document.createElement("div");this.d.className="loginBox";this.d.style.height="65px";this.d.style.width="100px";a.parentNode.appendChild(this.d);b=document.createElement("ul");var d=document.createElement("li"),e=document.createElement("a");e.href=s+"modificar_usuario.php";e.innerHTML="Mi perfil";d.appendChild(e);
b.appendChild(d);d=document.createElement("li");e=document.createElement("a");e.href=s+"listaEventos.php";e.innerHTML="Mis eventos";d.appendChild(e);b.appendChild(d);d=document.createElement("li");e=document.createElement("a");var f=window.location+"";if(window.location.hash)f=f.substring(0,f.indexOf("#"));e.href=s+"logout.php?v="+escape(f.substring(s.length));e.innerHTML="Salir";d.appendChild(e);b.appendChild(d);this.d.appendChild(b);A(a,"mouseover",this,this.ka,null);A(a,"mouseout",this,this.Lb,
null);A(this.d,"mouseover",this,this.ka,null);A(this.d,"mouseout",this,this.Lb,null)}}D.prototype.ka=function(){this.pb=false;this.d.style.display="block"};D.prototype.Lb=function(){this.pb=true;setTimeout(this.ib(this),50)};D.prototype.ib=function(a){return function(){if(a.pb)a.d.style.display="none"}};var E=null,F=null,G=null,H=null,ja=null,I=null,J=true,ka=null,la=500;
function ma(){var a=document.getElementById("pC");if(a)a=a.parentNode;var b=document.getElementById("cabecera");if(!a||!b||!a.parentNode)fa(function(){ma()});else{if(b){na(b);var d=document.createElement("a");d.name="g";b.insertBefore(d,b.firstChild);d=document.createElement("a");d.name="d";b.insertBefore(d,b.firstChild)}b=document.createElement("div");E=document.createElement("div");b.style.width="100%";b.style.overflow="hidden";E.style.width="200%";b.appendChild(E);a.parentNode.insertBefore(b,a);
b=document.createElement("div");b.style.width="50%";b.style.styleFloat="left";b.style.cssFloat="left";a.parentNode.removeChild(a);b.appendChild(a);E.appendChild(b);F=document.createElement("iframe");F.style.width="100%";F.style.height="790px";F.frameBorder=0;b=document.createElement("div");b.style.width="50%";b.style.styleFloat="left";b.style.cssFloat="left";ka=document.createElement("a");ka.className="botonVolver";ka.onclick=oa;b.appendChild(F);E.appendChild(b);ja=document.getElementById("po_titulo");
y()?$(window).bind("hashchange",pa):qa()}}function na(a){if(a){var b=document.createElement("div");b.className="pasador";G=document.createElement("span");G.className="activo";b.appendChild(G);H=document.createElement("span");b.appendChild(H);a.appendChild(b)}}function ra(a){J=true;sa(a)}
function sa(a){if(E){if(a){F.style.height="500px";F.src=s+"detalleEvento.php?f=1&id="+a}else F.style.height=la+"px";if(E.style.marginLeft!="-100%"){J=true;if(y())$(E).animate({marginLeft:"-=100%"},800,function(){if(a)window.location.hash="d-"+a});else{E.style.marginLeft="-100%";if(a)window.location="#d-"+a}}G.className="";G.onclick=oa;G.style.cursor="pointer";if(ja){if(!I){I=document.createElement("a");I.onclick=oa;G.parentNode.insertBefore(I,G)}I.style.display="block";I.innerHTML="Seguir viendo "+
ja.innerHTML;G.title="Seguir viendo "+ja.innerHTML}H.className="activo";window.scrollTo(0,0)}}function pa(){if(J)J=false;else if(window.location.hash&&window.location.hash.substring(0,2)=="#d")sa();else window.location.hash!="#a"&&ta()}var ua="";function qa(){if(window.location.hash!=ua){ua=window.location.hash;pa()}y()?$(window).bind("hashchange",pa):setTimeout(qa,100)}function oa(){J=true;ta()}
function ta(){if(E){if(E.style.marginLeft=="-100%")if(y())$(E).animate({marginLeft:"+=100%"},200,function(){window.location.hash="g";this.style.marginLeft="0px"});else{E.style.marginLeft="0%";window.location="#g"}G.style.cursor="auto";G.className="activo";H.className="";if(I)I.style.display="none";G.title="";F.style.height=E.style.height;window.scrollTo(0,0)}}function va(a){if(F)F.style.height=a+"px";la=a}window.rd=va;
if(window.location.hash){var K=window.location.hash.split("-"),wa=false;if(document.referrer&&document.referrer.length>s.length+7)wa=document.referrer.substring(0,s.length+7)==s+"evento/";if(K&&K.length==2&&!isNaN(parseInt(K[1]))&&!wa)window.location=s+"r.php?id="+K[1]}var L=null;function M(a){this.r=0;this.v=this.Ba=this.Ka=this.S=this.Q=this.W=this.Ca=null;this.ea=a;this.ub=false;this.ac=a}
function xa(a,b){var d=new M(b);a=a.parentNode;A(a,"keydown",d,d.lc,null);var e=document.getElementById("tit_subs");e=e&&typeof e.innerHTML!="undefined"?e.innerHTML:"Subscr&iacute;bete gratis";a.innerHTML="";var f=document.createElement("a");f.className="nextSuscriptor";A(f,"click",d,d.Cb);a.appendChild(f);d.Ka=f;f=document.createElement("div");f.className="mascaraPasos";var i=f;f=document.createElement("ul");f.className="pasosSuscriptor";d.Ca=f;i.appendChild(f);d.Ca.style.left="0";var h=f;f=document.createElement("li");
f.className="pasoSus";var g=document.createElement("label");g.innerHTML=e;f.appendChild(g);g=document.createElement("input");g.className="txtSubs";g.type="text";g.name="e";g.value="Introduce tu email";g.tabIndex=-1;A(g,"focus",d,d.uc,null);d.W=g;f.appendChild(g);h.appendChild(f);if(b){f=document.createElement("li");f.className="pasoSus";b=document.createElement("div");b.style.width="100%";g=document.createElement("input");g.type="radio";g.name="slTp";g.style.marginLeft="10px";g.tabIndex=-1;d.ub=g;
b.appendChild(g);g=document.createElement("span");g.style.marginLeft="10px";g.style.position="relative";g.style.top="-2px";g.innerHTML="Quiero avisos de este evento";b.appendChild(g);f.appendChild(b);b=document.createElement("div");b.style.width="100%";g=document.createElement("input");g.type="radio";g.name="slTp";g.checked=true;g.style.marginLeft="10px";g.style.marginTop="10px";g.tabIndex=-1;b.appendChild(g);g=document.createElement("span");g.style.left="35px";g.style.position="relative";g.style.top=
"-19px";g.style.display="block";g.style.width="170px";g.innerHTML="Quiero avisos de eventos interesantes por zona y tipo";b.appendChild(g);f.appendChild(b);h.appendChild(f)}f=document.createElement("li");f.className="pasoSus";g=document.createElement("span");g.style.marginLeft="10px";g.innerHTML="Elige la localizaci&oacute;n que te interesa";f.appendChild(g);d.Q=document.createElement("select");d.Q.className="combo txtSubs";d.Q.style.height="20px";d.Q.name="localizacion";d.Q.tabIndex=-1;b=null;b=
document.createElement("option");b.value="-1";b.innerHTML="toda Espa&ntilde;a";d.Q.appendChild(b);for(g=1;g<v.length;g++){b=document.createElement("option");b.value=v[g][0];b.innerHTML=v[g][1];if(!v[g][2])b.disabled=true;d.Q.appendChild(b)}A(d.Q,"focus",d,d.sc,null);f.appendChild(d.Q);h.appendChild(f);f=document.createElement("li");f.className="pasoSus";g=document.createElement("span");g.style.marginLeft="10px";g.innerHTML="Elige el tipo de evento";f.appendChild(g);d.S=document.createElement("select");
d.S.className="combo txtSubs";d.S.style.height="20px";d.S.name="tipo";d.S.tabIndex=-1;b=document.createElement("option");b.value="-1";b.innerHTML="cualquier tipo";d.S.appendChild(b);for(g=0;g<x.length;g++){b=document.createElement("option");b.value=g+1;b.innerHTML=x[g];d.S.appendChild(b)}A(d.S,"focus",d,d.tc,null);f.appendChild(d.S);h.appendChild(f);f=document.createElement("li");f.className="pasoSus";h.appendChild(f);d.Ba=f;f=document.createElement("li");f.className="pasoSus";g=document.createElement("span");
g.style.marginLeft="10px";g.className="resumen";g.innerHTML="&iexcl;Ya est&aacute; guardado!<br/>&iquest;Quieres otra selecci&oacute;n?";f.appendChild(g);h.appendChild(f);i.appendChild(h);a.appendChild(i)}M.prototype.lc=function(a){if(a.which==9||a.keyCode==9){this.Cb();return false}};
M.prototype.Cb=function(){if(this.Ca){var a=this.r-(this.r>1&&this.ea?1:0);if(a<=3&&(this.r==1&&this.ea||ya(this,a)))this.r++;a=this.r-(this.r>1&&this.ea?1:0);if(this.r==2&&this.ea&&this.ub&&this.ub.checked){this.r=4;var b=s+"subscribirEvento.php?id="+this.ac+"&e="+this.W.value;if(b!=null){this.v&&this.Ba.removeChild(this.v);this.v=document.createElement("iframe");this.v.style.height="51px";this.v.style.border="none";this.v.src=b;this.Ba.appendChild(this.v);L=this}}if(a==3){b=s+"subscribirNews.php?nm=1&e="+
this.W.value+"&l="+this.Q.value+"&t="+this.S.value;if(b!=null){this.v&&this.Ba.removeChild(this.v);this.v=document.createElement("iframe");this.v.style.height="51px";this.v.style.border="none";this.v.src=b;this.Ba.appendChild(this.v);L=this}}else if(a>4)this.r=1;if(a==4){if(this.v&&this.v.contentDocument&&this.v.contentDocument.forms&&this.v.contentDocument.forms.length>0){this.v.contentDocument.forms[0].submit();b=true}else b=false;if(b)this.Ka.style.display="none"}else N(this);a==3&&this.r++}};
function ya(a,b){switch(b){case 0:if(a.W.value!=""&&a.W.value.indexOf("@")>0&&a.W.value.indexOf(".")>0)return true;break;case 1:return true;default:return true}za(a,b);return false}function za(a,b){switch(b){case 0:a.W.style.borderColor="red";break;case 1:a.Q.style.borderColor="red";break}}function N(a){if(y()){var b=-208*a.r;$(a.Ca).animate({marginLeft:b+"px"},600)}else a.Ca.style.marginLeft=-208*a.r+"px"}M.prototype.sc=function(){this.Q.style.borderColor="";this.r=1+(this.ea?1:0)};
M.prototype.tc=function(){this.S.style.borderColor="";this.r=2+(this.ea?1:0)};M.prototype.uc=function(){if(this.W.value=="Introduce tu email")this.W.value="";this.W.style.borderColor=""};function Aa(a,b){a.Ka.style.display="block";if(b==0){N(a);a.r=5+(a.ea?1:0)}else if(b<4){za(a,b-1+(b>1&&a.ea?1:0));a.r=b-1+(b>1&&a.ea?1:0);N(a)}}
function Ba(a,b){a.Ka.style.display="block";switch(b){case 0:a.r=5;N(a);a.r=6;break;case 1:za(a,0);a.r=0;N(a);break;case 5:a.r=4;N(a);break;default:alert("Ha ocurrido un error. Int\ufffdntelo de nuevo m\ufffds tarde.")}}function Ca(a,b){if(L)b?Aa(L,a):Ba(L,a)}window.c=xa;window.vF=Ca;function O(a){if(!a||a=="")return"";var b=document.createElement("pre");b.innerHTML=a;return b.firstChild.nodeValue}
function A(a,b,d,e,f){function i(h){e.apply(d,[h,f])}if(document.addEventListener)a.addEventListener(b,i,false);else document.attachEvent&&a.attachEvent("on"+b,i)}function P(a,b,d,e){d=d(e);google.maps.event.addListener(a,b,d)}function Da(a){if(!a)return null;var b=a.split("-");if(b.length!=3||isNaN(b[0])||isNaN(b[1])||isNaN(b[2]))return null;return Ea(a)}
function Fa(){if(po_conf.tipo=="mapa"){var a=document.createElement("script");a.type="text/javascript";a.src="http://maps.google.com/maps/api/js?sensor=false&callback=po_cM";$("head").append(a)}po_conf.tipo=="barra"&&Ga()}function Ga(){eval("var t="+po_conf.variable+";");t&&t.getDiv()?Ha(t,po_conf.us,po_conf.tipos,po_conf.fecha,po_conf.ff,po_conf.festival):setTimeout(Ga,500)}typeof po_conf!="undefined"&&Fa();
function Ha(a,b,d,e,f,i){document.getElementById("po_barra_l")&&$("#po_barra_l").remove();var h=null;if(a)h=a.getDiv();if(s==null)s="http://www.planocio.com/";var g=document.getElementsByTagName("head").item(0),m=document.createElement("link");m.type="text/css";m.href=s+"style-c.css";m.rel="stylesheet";g.appendChild(m);$(h).wrap('<div id="po_mapa" style="width:'+$(h).width()+'px;position:relative;"/>');$("#po_mapa").append('<div id="po_calendario" class="po_calendario"></div>');e=Da(e);h=new Date;
if(e==null||!f&&e<h)e=h;e=e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate();po_cal=new Ia("po_cal","po_calendario",null,e,s);po_cal.Pa=1;po_rel=new Q("po_rel",null,po_cal,s,null,function(l){Ja(po_mp,l)},i,b);b=[];if(d&&d!=""){d=d.split("#");for(e=0;e<d.length-1;e++){f=d[e];parseInt(f)==f&&!isNaN(parseInt(f))&&b.push(f)}}if(b.length>0){d={};d.Rb=b;d.jb=function(){return this.Rb};po_rel.tipos=d}po_cal.a=po_rel;po_cal.$a=0;po_mp=new R("po_mp",null,null,"po_mapa",0,null,false,po_rel,s,null,a);po_rel.h=
po_mp;po_rel.Fb=1}
function S(a){a=a.replace(/&aacute;/g,"a").replace(/&eacute;/g,"e").replace(/&iacute;/g,"i").replace(/&oacute;/g,"o").replace(/&uacute;/g,"u").replace(/&Aacute;/g,"A").replace(/&Eacute;/g,"E").replace(/&Iacute;/g,"I").replace(/&Oacute;/g,"O").replace(/&Uacute;/g,"U").replace(/&ntilde;/g,"n").replace(/&Ntilde;/g,"N");return a.replace(/ /g,"-").replace(/\ufffd/g,"a").replace(/\ufffd/g,"e").replace(/\ufffd/g,"i").replace(/\ufffd/g,"o").replace(/\ufffd/g,"u").replace(/\ufffd/g,"A").replace(/\ufffd/g,"E").replace(/\ufffd/g,
"I").replace(/\ufffd/g,"O").replace(/\ufffd/g,"U")}function Ka(a){var b=document.createElement("textarea");b.innerHTML=a.replace(/</g,"&lt;").replace(/>/g,"&gt;");return b.value}function La(a){return a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear()}function Ea(a){var b=new Date;if(a!=null){a=a.split("-");b.setYear(a[0]);b.setMonth(a[1]-1);b.setDate(a[2]-1)}b.setDate(b.getDate()-b.getDay()+1);return b}
function Ia(a,b,d,e,f){this.i=a;this.a=d;this.d=b;this.ob=0;this.H=new Array(7);this.ia=new Array("Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado","Domingo");this.k=Ea(e);this.Ia=[];this.B=f;this.$a=this.Y=1;this.Nb=200;this.G=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");for(a=0;a<7;a++){this.H[a]=new Array(3);this.H[a][0]=new Date(this.k.getFullYear(),this.k.getMonth(),this.k.getDate()+a,0,0,0);this.H[a][1]=
0;this.H[a][2]=[]}this.Ha=this.nb=0;if(a=$("#"+this.d).css("width"))a=a=="auto"?$("#"+this.d).width():a.substring(0,a.length-2);a=parseInt(a);if(a<610){this.ia=new Array("L","M","X","J","V","S","D");this.G=new Array("Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic");this.Ha=1;if(a<500&&this.Y==1){a=$("#"+this.d);if(b=$(a).css("height"))b=b.substring(0,b.length-2);if(this.Y==1){this.Nb=b;$(a).animate({height:"-="+(parseInt(b)-30)},200,null);this.Y=0;Ma(this);$(a).addClass("po_calendario_pl");
$(a).removeClass("po_calendario")}else{$(a).animate({height:"+="+(parseInt(this.Nb)-30)},200,null);this.Y=1;Ma(this);$(a).removeClass("po_calendario_pl");$(a).addClass("po_calendario")}this.nb=1}}this.Pa=0;this.Mb=false}Ia.prototype.Qb=function(){for(var a=0;a<7;a++)this.H[a][2]=[]};
function Ma(a){var b,d,e,f,i=a.G[a.k.getMonth()]+" - "+a.k.getFullYear(),h=new Date;h.setYear(a.k.getFullYear());h.setMonth(a.k.getMonth());h.setDate(a.k.getDate()+6);if(a.Y==0){i=a.k.getDate()+"-"+(a.k.getDate()+6)+" - "+a.G[a.k.getMonth()]+" "+a.k.getFullYear();if(h.getFullYear()!=a.k.getFullYear())i=a.k.getDate()+" - "+a.G[a.k.getMonth()]+" "+a.k.getFullYear()+" - "+h.getDate()+" - "+a.G[h.getMonth()]+" - "+h.getFullYear();else if(h.getMonth()!=a.k.getMonth())i=a.k.getDate()+"-"+a.G[a.k.getMonth()]+
" - "+h.getDate()+"-"+a.G[h.getMonth()]+" - "+a.k.getFullYear()}else if(h.getFullYear()!=a.k.getFullYear())i+=" - "+a.G[h.getMonth()]+" - "+h.getFullYear();else if(h.getMonth()!=a.k.getMonth())i=a.G[a.k.getMonth()]+" - "+a.G[h.getMonth()]+" - "+a.k.getFullYear();if(a.$a==1)document.getElementById(a.d).innerHTML="<div class='po_calendarioTop'>"+(a.Pa==1?'<a href="http://www.planocio.com" target="_blank" title="Encuentra eventos en la zona con Planocio.com"></a>':"")+"<div class='po_semAnterior' onclick=\"javascript:"+
a.i+'.mueveDias(-7);">'+(a.Ha==1?"Anterior":"Semana anterior")+"</div><p class='po_tituloMes'>"+i+"</p><div class='po_semSiguiente' onclick=\"javascript:"+a.i+'.mueveDias(7);">'+(a.Ha==1?"Siguiente":"Semana siguiente")+"</div>"+(a.nb==0?'<span id="po_cal_pl" class="'+(a.Y==0?"po_cal_ar":"po_cal_ab")+'" onclick="'+a.i+'.pliega();"></span>':"")+"</div>";else document.getElementById(a.d).innerHTML="";if(a.Y==1){for(h=ndia=0;h<7;h++){document.getElementById(a.d).innerHTML+=Na(a,h);ndia++}for(h=0;h<7;h++){var g=
h,m=$("#po-dia"+g);b=$(m).height();var l=$(m).css("marginTop");if(l)l=l.substring(0,l.length-2);var k=$(m).parent().css("height");if(k)k=k.substring(0,k.length-2);if(l==null||k==null){$("#po-dia"+g+"_u").css("display","none");$("#po-dia"+g+"_d").css("display","none")}else{l-k<-b&&$("#po-dia"+g+"_d").css("display","none");f=$(m).children();e=1;d=0;if(-parseInt(l)<=k)k=-parseInt(l);else if(f){for(b=0;b<f.length&&e;b++){d+=$(f[b]).height()+7;e=parseInt(l)+parseInt(d)<-parseInt(k)}k=-(parseInt(l)+parseInt(d));
if(k<0)k=0}if(parseInt(l)+k>0)k=-parseInt(l);if(k!=0){$(m).animate({marginTop:"+="+k},400,null);$("#po-dia"+g+"_d").css("display","block");parseInt(l)+parseInt(k)>=0&&$("#po-dia"+g+"_u").css("display","none")}else $("#po-dia"+g+"_u").css("display","none")}}}if(a.$a==0)document.getElementById(a.d).innerHTML+="<div class='po_calendarioTop'>"+(a.Pa==1?'<a href="http://www.planocio.com" target="_blank" title="Encuentra eventos en la zona con Planocio.com"><img src="'+a.B+'/images/logo_peq.gif" alt="Planocio.com"/></a>':
"")+"<div class='po_semAnterior' onclick=\"javascript:"+a.i+'.mueveDias(-7);">'+(a.Ha==1?"Anterior":"Semana anterior")+"</div><p class='po_tituloMes'>"+i+"</p><div class='po_semSiguiente' onclick=\"javascript:"+a.i+'.mueveDias(7);">'+(a.Ha==1?"Siguiente":"Semana siguiente")+"</div>"+(a.nb==0?'<span id="po_cal_pl" class="'+(a.Y==0?"po_cal_ar":"po_cal_ab")+'" onclick="'+a.i+'.pliega();"></span>':"")+"</div>";eval("$('.po_festival').mouseover(function(e){var t=$(this).attr('name'); "+a.i+".onoverfestival(t,e);});");
eval("$('.po_festival').mouseout(function(){"+a.i+".onoutfestival();});")}
function Na(a,b){var d=a.H[b],e="";if(d[1])e=" po_diaSeleccionado";for(var f="",i=0;i<d[2].length;i++){var h=d[2][i][0],g=d[2][i][4],m="";if(d[2][i][5]!=null)m='<a class="po_festival" href="'+a.B+"festival/"+d[2][i][6]+"/"+S(d[2][i][5])+'" name="'+d[2][i][5]+'" '+(a.Pa!=0?'target="_blank"':"")+"></a>";f+=d[2][i][3]==1?a.Mb?'<li id="po-dia'+b+"_"+i+'" onmouseout="javascript:'+a.i+".onoutevento("+a.i+".getSemanaS()["+b+"][2]["+i+'][2]);" style="border-left-color:#2D66EB;" '+(g>0?' class="po_patrocinado"':
"")+">"+m+d[2][i][7]+"</li>":'<li id="po-dia'+b+"_"+i+'" onclick="javascript:'+a.i+".onclickevento("+a.i+".getSemanaS()["+b+"][2]["+i+'][2]);" onmouseout="javascript:'+a.i+".onoutevento("+a.i+".getSemanaS()["+b+"][2]["+i+'][2]);" style="border-left-color:#2D66EB;" '+(g>0?' class="po_patrocinado"':"")+">"+m+h+"</li>":a.Mb?'<li id="po-dia'+b+"_"+i+'" onmouseover="javascript:'+a.i+".onoverevento("+a.i+".getSemanaS()["+b+"][2]["+i+'][2]);" '+(g>0?' class="patrocinado"':"")+">"+m+d[2][i][7]+"</li>":'<li id="po-dia'+
b+"_"+i+'" onclick="javascript:'+a.i+".onclickevento("+a.i+".getSemanaS()["+b+"][2]["+i+'][2]);" onmouseover="javascript:'+a.i+".onoverevento("+a.i+".getSemanaS()["+b+"][2]["+i+'][2]);" '+(g>0?' class="patrocinado"':"")+">"+m+h+"</li>"}if(f!="")f='<ul id="po-dia'+b+'">'+f+"</ul>";i="";i=a.ob==5||a.ob==6?"po_fiesta":"";return"<div class='po_dia "+e+"'><div class='po_diaTop' onmouseover='javascript:"+a.i+".overDia(this);' onmouseout='javascript:"+a.i+".outDia(this);' onclick='javascript:"+a.i+".pulsadoDia("+
b+",this);'><p class='po_numeroDia "+i+"' "+e+">"+d[0].getDate()+"</p><p class='po_diaSemana'>"+a.ia[b]+'</p></div><p id="po-dia'+b+'_u" class="po_subir" onclick="javascript:'+a.i+".muevePaginaDia("+b+",false);\"></p><div class='po_mascaraLista'>"+f+'</div><p id="po-dia'+b+'_d" class="po_bajar" onclick="javascript:'+a.i+".muevePaginaDia("+b+',true);"></p></div>'}o=Ia.prototype;o.ua=La;
o.Ab=function(a,b,d,e,f,i,h,g,m){a=a.split("/");b=b.split("/");var l=new Date;l.setYear(a[2]);l.setMonth(a[1]-1);l.setDate(a[0]);a=new Date;a.setYear(b[2]);a.setMonth(b[1]-1);a.setDate(b[0]);b=Math.round((l.getTime()-this.k.getTime())/864E5);if(b<0)b=0;if(b<=7){a=Math.round((a.getTime()-this.k.getTime())/864E5)+1;if(a>7)a=7;if(a<0)a=0;for(b=b;b<a;b++){l=this.H[b][2];var k=new Array(8);k[0]=d;k[1]=e;k[2]=f;k[3]=0;k[4]=i;k[5]=h;k[6]=g;k[7]='<a href="'+this.B+"evento/"+f+"/"+S(d)+"-en-"+S(m)+'" target="_blank">'+
d+"</a>";l[l.length]=k}}};o.Z=function(a){if(this.Y==1)for(var b=0;b<this.H.length;b++)for(var d=0;d<this.H[b][2].length;d++)if(this.H[b][2][d][2]==a){this.H[b][2][d][3]=1;$(document.getElementById("po-dia"+b+"_"+d)).css("border-left-color","#2D66EB");eval('$(document.getElementById("po-dia'+b+"_"+d+'")).mouseleave(function (){'+this.i+".desdestacaEvento("+a+");});")}else this.H[b][2][d][3]=0;this.a&&Oa(this.a,a)};
o.X=function(a){if(this.Y==1)for(var b=0;b<this.H.length;b++)for(var d=0;d<this.H[b][2].length;d++){this.H[b][2][d][3]=0;$(document.getElementById("po-dia"+b+"_"+d)).css("border-left-color","orange")}this.a&&Pa(this.a,a)};o.rb=function(a){$(a).addClass("po_overDia")};o.qb=function(a){$(a).removeClass("po_overDia")};o.ya=function(a){this.Z(a);this.a!=null&&Oa(this.a,a)};o.xa=function(a){this.X(a);this.a!=null&&Pa(this.a,a)};o.fa=function(a){this.a!=null&&this.a.fa(a)};
o.Kb=function(){var a=new Array(3);if(this.Ia.length>0){a[0]=null;a[1]=null;for(var b=new Array(this.Ia.length),d=0;d<this.Ia.length;d++)b[d]=this.ua(this.Ia[d]);a[2]=b}else{a[0]=this.ua(this.k);b=new Date;b.setTime(this.k.getTime()+5184E5);a[1]=this.ua(b);a[2]=null}return a};o.La=function(){document.getElementById("po_ca_cargando")||$("#"+this.d).append("<div id='po_ca_cargando' class='po_cubre'></div>")};o.Aa=function(){var a=document.getElementById("po_ca_cargando");a&&$(a).remove()};o.ca=n("a");
function T(a,b,d,e,f,i,h){this.B=i;this.i=a;this.a=e;this.d=document.getElementById(b);this.d.innerHTML="";this.d.style.height="408px";this.d.style.width="512px";this.d.style.overflow="hidden";this.D=document.getElementById(d);this.D.style.overflow="hidden";this.D.innerHTML="";a=document.createElement("div");this.D.appendChild(a);this.D=a;this.ob=0;this.b=null;this.ia=new Array("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");this.G=new Array("Enero","Febrero","Marzo",
"Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");this.Oa=new Array("Invierno","Primavera","Verano","Oto&ntilde;o");this.g=h;this.Ia=[];this.o=[];this.pa=[];f=f.split("-");h=new Date;h.setYear(f[0]);h.setMonth(f[1]-1);h.setDate(f[2]);this.e=h;this.oa=this.za=this.sa=null;this.ha=document.createElement("div");this.ha.style.height="100%";this.ha.style.paddingTop="2px";this.w=null;this.p=Qa(this);this.p.className="eventosDiaB";this.p.id="po_generico";this.p.style.height=
"100%";this.fb=[];this.Hb=[];this.hb=this.Fa=0;this.Sb=document.createElement("span");this.Sb.className="aviso";this.la=this.wa="";this.ja=false;this.V=document.createElement("div");this.V.style.overflow="hidden";this.d.appendChild(this.V);this.d.appendChild(this.ha);this.da=this.M=null;this.Ja=false;this.A()}
T.prototype.A=function(){this.o=[];this.pa=[];Ra(this,this.p);switch(this.g){case 0:break;case 1:this.la="d&iacute;a";this.wa="semana";this.ja=false;break;case 2:this.la="semana";this.wa="mes";this.ja=true;break;case 3:this.la="mes";this.wa="estaci&oacute;n";this.ja=false;break;case 4:this.la="estaci&oacute;n";this.wa="a&ntilde;o";this.ja=true;break}U(this,this.p,"Todav&iacute;a no tenemos ning&uacute;n evento aqu&iacute;. Prueba a alejar el mapa o a eliminar filtros.");this.fb=[];this.Fa=0;this.oa=
this.za=null;if(this.g==0)this.b=new Array(1);else if(this.g==1)this.b=new Array(7);else if(this.g==2)this.b=new Array(4);else if(this.g==3)this.b=new Array(3);else if(this.g==4)this.b=new Array(4);var a=this.e;if(this.g==0)this.sa=this.e=a;else if(this.g==1){this.e.setDate(this.e.getDate()-this.e.getDay()+1);this.sa=new Date(this.e.getFullYear(),this.e.getMonth(),this.e.getDate()+7,0,0,0)}else if(this.g==2){this.e=new Date(a.getFullYear(),a.getMonth(),1,0,0,0);this.sa=new Date(a.getFullYear(),a.getMonth()+
1,-1,0,0,0)}else if(this.g==3){var b=a.getMonth()-a.getMonth()%3;this.e=new Date(a.getFullYear(),b,1,0,0,0);this.sa=new Date(a.getFullYear(),a.getMonth()+4,-1,0,0,0)}else if(this.g==4){this.e=new Date(a.getFullYear(),0,1,0,0,0);this.sa=new Date(a.getFullYear(),11,31,0,0,0)}b=this.e.getMonth();for(var d=0;d<this.b.length;d++){this.b[d]=new Array(7);this.b[d][2]="";this.b[d][3]=Qa(this);this.b[d][4]=[];this.b[d][5]=0;this.b[d][6]=[];if(this.g<2){this.b[d][0]=new Date(this.e.getFullYear(),this.e.getMonth(),
this.e.getDate()+d,0,0,0);this.b[d][1]='<span class="nb">'+this.ia[this.b[d][0].getDay()]+'</span><span class="dt">'+this.b[d][0].getDate()+"</span>";this.b[d][2]=this.ia[this.b[d][0].getDay()]+" "+this.b[d][0].getDate()}else if(this.g==2){this.b[d][0]=new Date(this.e.getFullYear(),this.e.getMonth(),this.e.getDate()+d*7,0,0,0);this.b[d][0].setDate(this.b[d][0].getDate()-(this.b[d][0].getDay()+6)%7);a=new Date(this.b[d][0].getFullYear(),this.b[d][0].getMonth(),this.b[d][0].getDate()+6,0,0,0);this.b[d][1]=
'<span class="nb">Sem. del '+this.b[d][0].getDate()+" al "+a.getDate()+"</span>";this.b[d][2]="Semana del "+this.b[d][0].getDate()+" al "+a.getDate()}else if(this.g==3){this.b[d][0]=new Date(this.e.getFullYear(),this.e.getMonth()+d,this.e.getDate(),0,0,0);this.b[d][1]='<span class="nb">'+this.G[this.b[d][0].getMonth()]+"</span>";this.b[d][2]=this.G[this.b[d][0].getMonth()]}else if(this.g==4){this.b[d][0]=new Date(this.e.getFullYear(),d*3,this.e.getDate(),0,0,0);this.b[d][1]='<span class="nb">'+this.Oa[d]+
"</span>";this.b[d][2]=this.Oa[d]}V(this,this.b[d][3],this.b[d][2])}if(this.g==2){a=new Date(this.b[3][0].getFullYear(),this.b[3][0].getMonth(),this.b[3][0].getDate()+7,0,0,0);if(a.getMonth()==b){b=new Array(7);b[2]="";b[3]=Qa(this);b[4]=[];b[4]=0;b[0]=a;b[6]=[];a=new Date(a.getFullYear(),a.getMonth(),a.getDate()+6,0,0,0);b[1]='<span class="nb">Sem. del '+b[0].getDate()+" al "+a.getDate()+"</span>";b[2]="Semana del "+b[0].getDate()+" al "+a.getDate();this.b.push(b);V(this,b[3],b[2])}}};
T.prototype.Qb=function(){this.o=[];this.pa=[];Ra(this,this.p);this.fb=[];this.Hb=[];this.hb=this.Fa=0;if(this.w&&this.g>0){this.w.style.display="none";this.p.style.display="block"}this.w=null;if(this.Gb)this.Gb.className="";this.oa=this.za=null;for(var a=0;a<this.b.length;a++){Ra(this,this.b[a][3]);this.b[a][4]=[];this.b[a][5]=0;this.b[a][6]=[]}};
function Qa(){var a=document.createElement("div");a.className="eventosDia";var b=document.createElement("span");b.className="tituloDia";a.appendChild(b);b=document.createElement("span");b.className="avisoG";a.appendChild(b);return a}function V(a,b,d,e){if(b&&b.firstChild)if(typeof e=="undefined")b.firstChild.innerHTML=d;else{b.firstChild.innerHTML="";b.firstChild.appendChild(d);b.firstChild.appendChild(e)}}function U(a,b,d){if(b&&b.lastChild)b.lastChild.innerHTML=d}
function Ra(a,b){if(b){var d=b.firstChild,e=b.lastChild;if(e){e.className="avisoG";e.innerHTML="";var f=document.createElement("span");f.innerHTML="Todav&iacute;a no tenemos elementos aqu&iacute;.";e.appendChild(f);var i=null;if(a.a)i=new Array(a.a.h!=null,a.a.j!=null,a.a.tipos!=null,a.a.h&&a.a.h.gb(),a.a.j&&a.a.j.gb(),a.a.tipos&&a.a.tipos.u.length>0);var h=false,g=null,m=null;if(i&&i.length==6){if(i[0]&&i[3]){h=true;g=document.createElement("a");g.innerHTML="alejar el mapa";A(g,"click",a.a,a.a.pc,
null);e.appendChild(g)}if(i[1]&&i[4]){if(h){m=document.createElement("span");m.innerHTML=" o ";e.appendChild(m)}h=true;g=document.createElement("a");g.innerHTML="elegir un periodo m&aacute;s largo";A(g,"click",a.a,a.a.oc,null);e.appendChild(g)}if(i[2]&&i[5]){if(h){if(m)m.innerHTML=", ";m=document.createElement("span");m.innerHTML=" o ";e.appendChild(m)}h=true;g=document.createElement("a");g.innerHTML="eliminar filtros";A(g,"click",a.a,a.a.qc,null);e.appendChild(g)}}if(h)f.innerHTML+=" Prueba a ";
e.style.display="block"}if(d&&e&&d!=e){b.removeChild(d);b.removeChild(e);b.innerHTML="";b.appendChild(d);b.appendChild(e)}}}
T.prototype.Ua=function(a,b){switch(this.g){case 0:this.e.setTime(this.e.getTime()+(b?1:-1)*1E3*60*60*24);break;case 1:this.e.setTime(this.e.getTime()+(b?7:-7)*1E3*60*60*24);break;case 2:this.e.setMonth(this.e.getMonth()+(b?1:-1));break;case 3:this.e.setMonth(this.e.getMonth()+(b?3:-3));break;case 4:this.e.setFullYear(this.e.getFullYear()+(b?1:-1));break}this.A();this.a!=null&&Sa(this.a);this.ka()};
T.prototype.vb=function(){this.g++;this.A();var a=Ta(this);if(a){if(y())this.D.style.marginLeft="-80px";this.D.insertBefore(a,this.M);y()&&$(this.D).animate({marginLeft:"+=80px"},200,null)}V(this,this.p,"Eventos destacados en "+this.M.innerHTML.substring(4).replace("Semana"," la semana"));if(y())$(this.da).fadeOut(500,function(){this.innerHTML=this.previousSibling.innerHTML.substring(4).replace("semana","Semana");$(this.previousSibling).remove();$(this).fadeIn(0,null)});else{this.D.removeChild(this.M);
this.da.innerHTML=this.M.innerHTML.substring(4).replace("semana","Semana")}this.M=a;this.V.innerHTML="";this.V.style.display="block";this.V.appendChild(Ua(this));if(this.w){this.w.style.display="none";this.w=null}this.p.style.display="block";this.a!=null&&Sa(this.a)};
T.prototype.Tb=function(a,b){this.g--;this.e=b;this.A();(a=Va(this))&&this.D.appendChild(a);if(!this.M){this.M=document.createElement("a");A(this.M,"click",this,this.vb,null);this.D.insertBefore(this.M,this.da)}this.M.innerHTML="Ver "+this.da.innerHTML.replace("Semana","semana");y()?$(this.D).animate({marginLeft:"-100px"},200,function(){$(this.firstChild.nextSibling).remove();this.style.marginLeft=0}):this.D.removeChild(this.da);if(a)this.da=a;this.V.innerHTML="";this.V.appendChild(Ua(this));if(this.g>
0){V(this,this.p,"Eventos destacados en "+this.da.innerHTML.replace("Semana","la semana"));this.p.style.display="block";this.w.style.display="none"}else{this.V.style.display="none";this.b[0][3].style.display="block";this.b[0][3].style.left="0px";this.b[0][3].style.width="500px";this.b[0][3].style.overflow="auto";this.w=this.b[0][3]}this.a!=null&&Sa(this.a)};
function Ta(a){var b=null;if(a.g<4){b=document.createElement("a");switch(a.g){case 0:var d=new Date;d.setTime(a.e.getTime()-(a.e.getDay()+6)%7*24*60*60*1E3);var e=d.getDate();d.setTime(d.getTime()+5184E5);b.innerHTML="Ver semana del "+e+" al "+d.getDate();break;case 1:b.innerHTML="Ver "+a.G[a.e.getMonth()];break;case 2:b.innerHTML="Ver "+a.Oa[(a.e.getMonth()-a.e.getMonth()%3)/3];break;case 3:b.innerHTML="Ver "+a.e.getFullYear();break}A(b,"click",a,a.vb,null)}return b}
function Va(a){var b=document.createElement("p");b.className="finMigas";switch(a.g){case 0:b.innerHTML=a.ia[a.e.getDay()]+" "+a.e.getDate();break;case 1:var d=new Date;d.setTime(a.e.getTime()-(a.e.getDay()+6)%7*24*60*60*1E3);a=d.getDate();d.setTime(d.getTime()+5184E5);b.innerHTML="Semana del "+a+" al "+d.getDate();break;case 2:b.innerHTML=a.G[a.e.getMonth()];break;case 3:b.innerHTML=a.Oa[(a.e.getMonth()-a.e.getMonth()%3)/3];break;case 4:b.innerHTML=a.e.getFullYear();break}return b}
function Ua(a){var b=document.createElement("div");b.className="dias";caja_nueva=document.createElement("span");caja_nueva.className="subeDias";caja_nueva.title="Ver "+O(a.wa)+" anterior";A(caja_nueva,"click",a,a.Ua,false);b.appendChild(caja_nueva);var d=document.createElement("ul");d.className="diasBox";a.ha.childNodes.length>0&&a.ha.removeChild(a.p);a.ha.innerHTML="";a.ha.appendChild(a.p);for(var e=null,f=0;f<a.b.length;f++){caja_nueva=document.createElement("li");caja_nueva.innerHTML=a.b[f][1];
a.b[f][1]=caja_nueva;A(caja_nueva,"click",a,a.Tb,a.b[f][0]);d.appendChild(caja_nueva);e=a.b[f][3];e.className="eventosDia diaSuperior";U(a,e,"A&uacute;n no tenemos eventos es"+(a.ja?"a ":"e ")+a.la+". Prueba a alejar el mapa o a eliminar filtros.");e.style.display="none";if(a.g==0){e.className="eventosDia";e.style.vc="none";e.style.border="none";e.style.height="100%";var i=document.createElement("a"),h=new Date;h.setTime(a.e.getTime()-864E5);i.innerHTML="< Ver "+a.ia[h.getDay()]+" "+h.getDate();i.style.cursor=
"pointer";A(i,"click",a,a.Ua,false);var g=document.createElement("a");g.style.cursor="pointer";h.setTime(h.getTime()+1728E5);g.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ver "+a.ia[h.getDay()]+" "+h.getDate()+" >";A(g,"click",a,a.Ua,true);V(a,e,i,g)}else V(a,e,a.b[f][2]);A(caja_nueva,"mouseover",a,a.rb,[e,caja_nueva]);A(caja_nueva,"mouseout",a,a.qb,caja_nueva);A(e,"mouseover",a,a.rb,
[e,caja_nueva]);A(e,"mouseout",a,a.qb,caja_nueva);f<10&&a.ha.appendChild(e)}b.appendChild(d);caja_nueva=document.createElement("span");caja_nueva.className="bajaDias";caja_nueva.title="Ver "+O(a.wa)+" siguiente";A(caja_nueva,"click",a,a.Ua,true);b.appendChild(caja_nueva);return b}
T.prototype.ka=function(){this.V.innerHTML="";this.D.innerHTML="";(this.M=Ta(this))&&this.D.appendChild(this.M);this.da=Va(this);this.D.appendChild(this.da);this.V.appendChild(Ua(this));V(this,this.p,"Eventos destacados en "+this.da.innerHTML.replace("Semana","la semana"));if(this.g==0){this.b[0][3].style.display="block";this.b[0][3].style.left="0px";this.b[0][3].style.width="506px";this.b[0][3].style.overflow="auto";this.w=this.b[0][3];this.p.style.display="none"}};T.prototype.ua=La;
T.prototype.Ab=function(a,b,d,e,f,i,h,g,m,l,k){i=a.split("/");h=b.split("/");e=new Date;e.setYear(i[2]);e.setMonth(i[1]-1);e.setDate(i[0]);i=new Date;i.setYear(h[2]);i.setMonth(h[1]-1);i.setDate(h[0]);if(this.Fa<10){if(this.Fa==0){U(this,this.p,"Esto es un resumen. Pasa el rat&oacute;n sobre cada "+this.la+" para verl"+(this.ja?"a":"o")+" en detalle");for(var p in this.b)U(this,p[3],"Eventos destacados. Pulsa en el nombre de"+(this.ja?" la ":"l ")+this.la+" para ver todos los eventos")}p=null;if(k)if(this.hb<
2||this.g==0){this.hb++;p=k}Wa(this,this.fb,l,this.p,f,d,m,a,b,p,this.Hb);this.Fa++}p=this.b.length;for(h=0;h<p;h++){g=null;if(h<p-1)g=this.b[h+1][0];if(this.b[h][0]<=i&&(g==null||g>=e)){if(typeof this.pa[f]=="undefined")this.pa[f]=[];this.pa[f][h]=1;if(k)if(this.b[h][5]<2||this.g==0)this.b[h][5]++;else k=null;if(this.b[h][4].length<=0)U(this,this.b[h][3],"Eventos destacados. Pulsa el nombre de"+(this.ja?" la ":"l ")+this.la+" para ver todos los eventos.");Wa(this,this.b[h][4],l,this.b[h][3],f,d,
m,a,b,k,this.b[h][6])}}};
function Wa(a,b,d,e,f,i,h,g,m,l,k){if(typeof k[f]=="undefined"){if(typeof b[d]=="undefined"){var p=document.createElement("div");p.className="porCategoria";var u=document.createElement("h3");u.innerHTML=x[d-1];var q=document.createElement("a");if(a.Ja){q.innerHTML="Ver otro tipo de eventos ";q.title="Pulsa para ver todo tipo de eventos";A(q,"click",a,a.Xb,null)}else{q.innerHTML="Ver +\t";q.title="Ver solamente "+O(x[d-1]);A(q,"click",a,a.rc,d)}u.appendChild(q);p.appendChild(u);u=document.createElement("div");
u.style.clear="both";p.appendChild(u);if(e&&e.lastChild){e.lastChild.className="aviso";e.insertBefore(p,e.lastChild);if(a.g==0)e.lastChild.style.display="none"}b[d]=a.g>0?p:[p,null,u]}e=document.createElement("div");e.className="eventoCalendario";if(a.g==0){e.style.styleFloat="left";e.style.cssFloat="left";e.style.clear="none";e.style.width="50%";e.style.borderBottom="none"}p=null;if(l&&l!=""){u=document.createElement("div");u.className="imgW";p=document.createElement("img");p.src=a.B+"uploads/th/"+
l;if(a.g==0)p.title="Del "+g+" al "+m;u.appendChild(p);e.appendChild(u)}p=document.createElement("span");p.className="nombre";if(i.length<50){p.innerHTML=i;if(a.g==0)p.title="Del "+g+" al "+m}else{a:{l=65;u=i.length;l-=7;if(u<=l)l=i;else{q=false;for(var w=0;w<7;w++){if(l+w>=u)break;q=q||i[l+w]==";"}if(q)for(w=0;w<7;w++){q=q&&i[l-w]!="&";if(!q){l=i.substring(0,l-w)+"...";break a}}l=i.substring(0,l)+"..."}}p.innerHTML=l;p.title=O(i);if(a.g==0)p.title+=" - Del "+g+" al "+m}e.appendChild(p);p=document.createElement("span");
p.className="datos";if(a.g==0)p.title="Del "+g+" al "+m;p.innerHTML=h+(a.g>0?" - "+g+" - "+m:"");e.appendChild(p);A(e,"mouseover",a,a.Z,f);A(e,"mouseout",a,a.X,f);A(e,"click",a,a.fa,f);if(a.g>0)b[d].appendChild(e);else if(g=b[d][1]){g.insertBefore(e,g.firstChild.nextSibling);b[d][1]=null}else{g=document.createElement("div");g.style.borderBottom="1px solid #DEDEDE";g.appendChild(e);m=document.createElement("div");m.style.clear="both";g.appendChild(m);b[d][0].insertBefore(g,b[d][2]);b[d][1]=g}if(typeof a.o[f]==
"undefined")a.o[f]=[];a.o[f][a.o[f].length]=e;k[f]=e}else{a=k[f];a=a.lastChild;b=a.innerHTML;b=b.split(" - ");f=b[b.length-1];d=b.length-1;if(f!="Varias fechas"){k=b[b.length-2];if(k.length==10&&k[2]=="/"&&k[5]=="/"){f=k+" - "+f;d=b.length-2}}else f=a.title;f=g+" - "+m+"    \n"+f;a.title=f;a.innerHTML="";for(g=0;g<d;g++)a.innerHTML+=b[g]+" - ";a.innerHTML+="Varias fechas"}}o=T.prototype;
o.Z=function(a,b){if(typeof b=="undefined")b=a;if(a=this.o[b])for(var d=0;d<a.length;d++)a[d].className="eventoCalendarioD";if(this.g>0)if(a=this.pa[b])for(d in a)this.b[d][1].className="destacado";this.a&&Oa(this.a,b)};o.X=function(a,b){if(typeof b=="undefined")b=a;if(a=this.o[b])for(var d=0;d<a.length;d++)a[d].className="eventoCalendario";if(this.g>0)if(a=this.pa[b])for(d in a)this.b[d][1].className="";this.a&&Pa(this.a,b)};
o.rb=function(a,b){a=b[0];b=b[1];if(this.w&&this.w!=a)this.w.style.display="none";if(this.za)this.za.id="";if(this.oa){this.oa.className="";this.oa.id=""}var d=document.getElementById("po_ocultando");if(d)d.id="";this.za=this.oa=null;if(this.g>0)b.className="seleccionado";this.p.style.display="none";this.w=a;this.Gb=b;a.style.display="block"};
o.qb=function(a,b){if(this.g>0)if(this.w){this.w.id="po_ocultando";b.id="po_diaocultando";this.oa=b;setTimeout("var d=document.getElementById('po_ocultando'); if (d) {d.style.display='none';d=document.getElementById('po_generico'); d.style.display='block';d=document.getElementById('po_diaocultando'); if (d) d.className='';}",50);this.za=this.w}else this.p.style.display="block"};o.ya=function(a){this.Z(a);this.a!=null&&Oa(this.a,a)};o.xa=function(a){this.X(a);this.a!=null&&Pa(this.a,a)};
o.fa=function(a,b){this.a!=null&&this.a.fa(b)};o.Kb=function(){var a=new Array(2);a[0]=this.ua(this.e);a[1]=this.ua(this.sa);a[2]=null;return a};o.La=function(){this.p&&U(this,this.p,"Cargando...");this.w&&U(this,this.w,"Cargando...")};o.Aa=function(){};o.rc=function(a,b){this.Ja=true;this.a&&Xa(this.a,b)};o.Xb=function(){this.Ja=false;this.a&&Ya(this.a)};function Za(a){a.Ja=true}function $a(a){a.Ja=false}T.prototype.ca=n("a");T.prototype.gb=function(){return this.g<4};
T.prototype.tb=function(){this.g<4&&this.vb()};function Q(a,b,d,e,f,i,h,g,m,l,k,p,u,q){this.i=a;this.h=b;this.j=d;this.B=e;this.tipos=f;this.tipo=null;this.zb=i;this.Fb=0;this.Ta=m;this.Sa=l;this.wc=k;this.festival=h&&!isNaN(parseInt(h))&&parseInt(h)==h?h:null;this.Pb=g&&!isNaN(parseInt(g))&&parseInt(g)==g?g:null;this.Ob=null;this.Wa=0;this.o=null;this.mb=false;this.ba=p?p:"toda Espa&ntilde;a";this.na=true;this.ra=!u;this.Jb=q}
Q.prototype.A=function(){if(this.Ta&&!this.festival&&!this.ra){var a="Eventos";if(this.tipos)a=ab(this.tipos);var b;b=this.h?this.h.ba:this.Eb?this.Eb:"toda Espa&ntilde;a";var d=this.Ta;d.d.innerHTML=a+(b?" en "+b:d.wb)}bb(this);this.j&&this.j.La();this.h&&this.h.La();a=this.B+"buscaEventosJSON2.php";b="?";if(this.h)if(d=cb(this.h)){a+=b+"soln="+d[0]+"&solt="+d[1];a+="&neln="+d[2]+"&nelt="+d[3];b="&"}if(this.tipos){d=this.tipos.jb();for(var e=0;e<d.length;e++){a+=b+"t"+e+"="+d[e];b="&"}}else if(this.tipo){a+=
b+"t0="+this.tipo;b="&"}if(this.j){d=this.j.Kb();if(d[2]==null){a+=b+"fi="+d[0]+"&ff="+d[1];b="&"}else for(e=0;e<d[2].length;e++){a+=b+"f"+e+"="+d[2][e];b="&"}}else{d=Ea();a+=b+"fi="+La(d);b="&"}if(this.festival){a+=b+"g="+this.festival;b="&"}if(this.Pb){a+=b+"u="+this.Pb;b="&"}this.Wa=Math.floor(Math.random()*5E4);a+=b+"s="+this.Wa;b="&";if(this.Ob!=null)a+="&t="+this.Ob;a=a+b+"c=po_cb";b=document.getElementsByTagName("head").item(0);d=document.createElement("script");d.type="text/javascript";d.src=
a;d.id="po_ult_s";b.appendChild(d)};function db(a,b){if(b&&(!a.Wa||b.s==a.Wa)){a.j&&a.j.Aa();if(a.h){a.h.xb();a.h.Aa()}if(b){a.j&&a.j.Qb();if(!a.mb)a.o=b.ev;a.Sa&&a.na&&b.ev.length>0&&a.Sa.xb();eb(a,b.ev);b.x==1&&a.h&&fb(a.h)}}}
function eb(a,b,d){if(b)for(var e=0;e<b.length;e++){var f=b[e];if(f){var i=f.I,h=f.L,g=null;if(a.h&&typeof google!="undefined")g=new google.maps.LatLng(h.Lt,h.Ln);h=h.C;var m=f.T,l=f.N,k=f.F,p=k.I;k=k.F;var u=f.P,q=null;if(typeof(f.Fs!="undefined"))q=f.Fs;var w=null,ea=null;f=f.Ft;if(q!=null){w=q.N;ea=q.I}a.Za(l,m,g,p,k,i,u,w,ea,h,m,f,d)}}}
Q.prototype.Za=function(a,b,d,e,f,i,h,g,m,l,k,p,u){var q=null,w=aa[k-1];if(h>0)w=w.replace(".","_p.");if(this.h)q=this.Fb==0?this.h.Za(w,d,i,a,h):gb(this.h,w,d,i,a,l,e,f,b,h);!u&&this.j&&this.j.Ab(e,f,a,q,i,h,g,m,l,k,p);this.Sa&&this.Sa.Ya(i,a,p,e,f,l)};function Sa(a){a.na=true;a.A()}Q.prototype.ya=function(a){this.h&&this.h.Z(a);this.j&&this.j.Z(a)};Q.prototype.xa=function(a){this.h&&this.h.X(a);this.j&&this.j.X(a)};function Oa(a,b){a.h&&a.h.Z(b)}function Pa(a,b){a.h&&a.h.X(b)}
function hb(a,b){a.j&&a.j.Z(b)}function ib(a,b){a.j&&a.j.X(b)}Q.prototype.fa=function(a){this.zb&&this.zb(a)};function jb(a){a.na=true;if(a.j&&a.tipos)a.tipos.jb().length==1?Za(a.j):$a(a.j);a.A()}function Xa(a,b){a.na=true;a.tipo=b;if(a.tipos){a.tipos.u=[];kb(a.tipos,b);lb(a.tipos)}a.A()}function Ya(a){a.na=true;if(a.tipos){a.tipos.u=[];a.tipos.Ea()}a.tipo=null;a.A()}function mb(a,b){a.na=true;a.ra=false;b||a.A();a.ba="tu zona";a.Jb&&a.Jb()}Q.prototype.Ra=function(){this.h&&this.h.Ra()};
function nb(a){if(!a.mb){a.mb=true;a.o&&a.o.length>0?eb(a,a.o,true):a.A();a.o=null}}function ob(a,b){a.h=b}Q.prototype.db=function(a,b,d,e){this.h&&this.h.db(a,b,d,e)};function bb(a){a.j&&a.j.Aa();a.h&&a.h.Aa();(a=document.getElementById("po_ult_s"))&&a.parentNode.removeChild(a)}function pb(a,b){a.ra=true;a.h&&qb(a.h,b);a.Eb=b;if(a.Ta){var d="Eventos";if(a.tipos)d=ab(a.tipos);var e=a.Ta;e.d.innerHTML=d+(b?" en "+b:e.wb)}a.ba=b}Q.prototype.pc=function(){this.h&&this.h.tb()};
Q.prototype.oc=function(){this.j&&this.j.tb()};Q.prototype.qc=function(){if(this.tipos){this.tipos.u=[];this.tipos.Ea();this.A()}};function rb(a,b,d,e){var f;a:{try{f=new XMLHttpRequest}catch(i){try{f=new ActiveXObject("Msxml2.XMLHTTP")}catch(h){try{f=new ActiveXObject("Microsoft.XMLHTTP")}catch(g){f=false;break a}}}f=f}if(f){f.open("GET",a.B+"aL.php?lt="+b+"&ln="+d+(e?"&l=1":""),true);f.send(null)}}
function sb(a,b,d,e,f){this.i=b;this.tipos=[];this.d=a;this.u=[];this.cc=d;this.a=e;this.B=f;this.n=null}sb.prototype.A=function(){for(var a=0;a<x.length;a++)this.Ya(this.B+aa[a],x[a],a+1);this.Ea()};sb.prototype.mc=function(a,b){kb(this,b);this.a!=null&&jb(this.a)};function kb(a,b){if(a.cc){for(var d=0,e=0;e<a.u.length;e++)if(a.u[e]==b){a.u.splice(e,1);d=1}d==0&&a.u.push(b)}else{a.u=[];a.u.push(b);lb(a)}}
function lb(a){for(var b=0;b<a.u.length;b++)for(var d=0;d<a.tipos.length;d++)if(a.tipos[d][0]==a.u[b]){var e=a.tipos[d][3].src,f=e.lastIndexOf("/");if(e.substring(f+1,f+5)!="sel_")a.tipos[d][3].src=e.substring(0,f+1)+"sel_"+e.substring(f+1)}}o=sb.prototype;
o.Ea=function(){this.d.innerHTML="";for(var a=0;a<this.tipos.length;a++){var b;b=a;if(b>this.tipos.length)b=null;else{var d=this.tipos[b],e=document.createElement("img");e.src=d[1];e.alt=d[2];A(e,"click",this,this.mc,d[0]);A(e,"mouseout",this,this.jc,b);A(e,"mouseover",this,this.kc,b);A(e,"mousemove",this,this.ic,null);b=e}if(b){this.d.appendChild(b);this.tipos[a][3]=b}}lb(this)};
o.kc=function(a,b){var d=this.tipos[b][3].src,e=d.lastIndexOf("/");if(d.substring(e+1,e+5)!="sel_")this.tipos[b][3].src=d.substring(0,e+1)+"sel_"+d.substring(e+1);b=this.tipos[b][3].alt;if(!this.n){this.n=document.createElement("div");this.n.className="po_tooltip";document.body.appendChild(this.n)}if(y())$(this.n).fadeTo("fast",0.7);else this.n.style.display="block";this.n.innerHTML=b;b=a.pageY;if(!b&&document.documentElement)b=a.clientY+document.documentElement.scrollTop;d=a.pageX;if(!d&&document.documentElement)d=
a.clientX+document.documentElement.scrollLeft;if(d&&b){this.n.style.top=b+25+"px";this.n.style.left=d+10+"px"}};o.jc=function(a,b){for(var d=a=0;d<this.u.length&&a==0;d++)if(this.u[d]==this.tipos[b][0])a=1;if(a==0){a=this.tipos[b][3].src;d=a.lastIndexOf("/");this.tipos[b][3].src=a.substring(0,d+1)+a.substring(d+5)}if(this.n){this.n.parentNode.removeChild(this.n);this.n=null}};
o.ic=function(a){if(this.n){var b=a.pageY;if(!b&&document.documentElement)b=a.clientY+document.documentElement.scrollTop;var d=a.pageX;if(!d&&document.documentElement)d=a.clientX+document.documentElement.scrollLeft;if(d&&b){this.n.style.top=b+25+"px";this.n.style.left=d+10+"px"}}};o.jb=function(){return this.u};o.Ya=function(a,b,d){var e=new Array(4);e[0]=d;e[1]=a;e[2]=b;e[3]=null;this.tipos.push(e)};o.ca=n("a");
function ab(a){if(!a.u||a.u.length>1||a.u.length<=0||a.u[0]<=0)return"Eventos";return x[a.u[0]-1]}
function R(a,b,d,e,f,i,h,g,m,l,k,p,u,q,w,ea,Ib,Jb){this.i=a;this.map=null;if(k)this.map=k;this.R=null;this.sb=p;this.latitud=b;this.longitud=d;this.Ma=f&&i==null;this.eb=i;this.d=e;this.Va=h;this.a=g;this.o=[];this.Ib=[];this.B=m;this.Yb=this.yb=false;this.va=[];this.Ub=false;this.n=this.ga=this.U=null;this.cb=false;this.Zb=q;this.ta=w;this.Qa=ea;this.$=Ib;this.aa=Jb;this.Na=l;if(this.latitud==null)this.latitud=this.$;else this.Na=l?2:1;if(this.latitud==null){this.latitud=40;if(l==null)this.Na=0}if(this.longitud==
null)this.longitud=this.aa;if(this.longitud==null)this.longitud=-3.71;this.ba="toda Espa&ntilde;a";this.Xa=this.lb=this.kb=null;this.bb=false;this.map&&tb(this)}
function tb(a){if(!a.map){var b=a.latitud,d=a.longitud,e=5;if(a.Yb)e=4;if(a.Na)e=8;if(a.Na==2)e=16;b={zoom:e,center:new google.maps.LatLng(b,d),navigationControl:true,scaleControl:true,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:false,navigationControlOptions:{position:google.maps.ControlPosition.RIGHT,style:google.maps.NavigationControlStyle.ZOOM_PAN},streetViewControl:false,scrollwheel:true};a.d=document.getElementById(a.d);if(!a.d)return;a.map=new google.maps.Map(a.d,b);if(a.Va){b=new google.maps.LatLng(a.latitud,
a.longitud);a.R=new google.maps.Marker(b);a.R.setMap(a.map)}}if(a.eb!=null){qb(a,a.eb);a.ba=a.eb}a.a!=null&&P(a.map,"idle",a.dc,a);a.Ra();if(a.Ub)if(navigator.geolocation){b=document.createElement("DIV");new ub(b,a.map);b.index=1;a.map.controls[google.maps.ControlPosition.LEFT_TOP].push(b)}}
R.prototype.dc=function(a){return function(){if(a.sb){a.sb=false;a.a&&nb(a.a)}else if(a.yb)a.yb=false;else{var b=a.map.getCenter(),d=b.lng();b=b.lat();var e=a.map.getZoom();a.ba=a.bb?a.Xa:e>8&&a.kb&&a.lb&&Math.abs(a.kb-b)<0.2&&Math.abs(a.lb-d)<0.2?a.Xa:e>8&&a.$&&a.aa&&Math.abs(a.$-b)<0.2&&Math.abs(a.aa-d)<0.2?"tu zona":e>=7?"la zona":"toda Espa&ntilde;a";a.bb=false;b=a.a;b.na=b.ra;b.A();b.ra=false;if(b.h.cb){b.h.cb=false;mb(b,true)}else if(b.Wb&&!b.ra)b.ba="toda Espa&ntilde;a";else b.Wb=true}}};
R.prototype.Ra=function(){if(this.Ma&&this.$&&this.aa){this.map.setCenter(new google.maps.LatLng(this.$,this.aa));this.map.setZoom(11)}this.sb=false;if(navigator.geolocation)navigator.geolocation.getCurrentPosition(vb(this,this),wb(this,this));else if(this.a&&cb(this)&&this.Ma&&this.$&&this.aa){mb(this.a);this.ba="tu zona"}};function wb(a,b){return function(){b.Zb();this.a&&cb(this)&&this.$&&this.aa&&mb(this.a)}}
function vb(a,b){return function(d){if(b.Ma){var e=false;if(!b.$||!b.aa){b.Qa&&b.Qa("Hemos establecido tu ubicaci&oacute;n. Puedes cambiar de zona con el desplegable de la derecha.");e=true}else if(Math.abs(b.$-d.coords.latitude)>0.2||Math.abs(b.aa-d.coords.longitude)>0.2){b.Qa&&b.Qa("Hemos establecido tu ubicaci&oacute;n. Puedes cambiar de zona con el desplegable de la derecha.");e=true}if(e){b.a&&rb(b.a,d.coords.latitude,d.coords.longitude,true);initialLocation=new google.maps.LatLng(d.coords.latitude,
d.coords.longitude);b.map.setCenter(initialLocation);b.map.setZoom(11)}b.cb=true;this.ba="tu zona";b.a&&cb(b)&&mb(b.a)}b.Ma=true;b.$=d.coords.latitude;b.aa=d.coords.longitude}}function qb(a,b){b=b.replace(/'/g,"");b+=", spain";(new google.maps.Geocoder).geocode({address:b},xb(a,a,b))}
function xb(a,b,d){return function(e,f){if(e&&f==google.maps.GeocoderStatus.OK&&e[0]){b.bb=true;if(e=e[0].geometry)if(f=e.location){b.Xa=d.substring(0,d.length-7);b.kb=e.location.lat();b.lb=e.location.lng();b.ba=b.Xa;b.map.fitBounds(e.bounds);b.a&&rb(b.a,e.location.lat(),e.location.lng(),false);if(b.Va==1)if(b.R)b.R.setPosition(f);else{b.R=new google.maps.Marker({position:f,map:b.map});b.R.setMap(b.map)}}else{e=d+" no se ha encontrado";b.ta?b.ta(e):alert(e)}else{e=d+" no se ha encontrado";b.ta?b.ta(e):
alert(e)}}else{e=d+" no se ha encontrado";b.ta?b.ta(e):alert(e)}}}R.prototype.xb=function(){if(this.map)if(this.va!=null){for(var a=0;a<this.va.length;a++)this.va[a].setMap(null);this.va=[]}this.o=[];this.R&&this.Va&&this.R.setMap(this.map);if(this.U){this.U.parentNode.removeChild(this.U);this.U=null}};
R.prototype.Za=function(a,b,d,e,f){if(typeof google!="undefined"){a=new google.maps.Marker({position:b,map:this.map,icon:this.B+a,zIndex:f>0?1E3:0});if(this.a!=null){P(a,"click",function(i){return function(){i[0].fa(i[1])}},[this,d]);P(a,"mouseover",function(i){return function(){i[0].ya(i[1],i[2])}},[this,d,e]);P(a,"mouseout",function(i){return function(){i[0].xa(i[1])}},[this,d])}this.o[d]=a;this.va.push(a);return a}return null};
function gb(a,b,d,e,f,i,h,g,m,l){if(typeof google!="undefined"){d=new google.maps.Marker({position:d,map:a.map,icon:a.B+b,zIndex:l>0?1E3:0});l=h+" - "+g;if(h==g)l=h;b='<div class="po_info"><h2><a href="'+a.B+"evento/"+e+"/"+S(f)+"-en-"+S(i)+'" target="_blank"><img src="'+a.B+b+'" alt="'+m+'"/>'+f+"</a></h2><span>"+l+"</span></div>";d.setMap(a.map);if(a.a!=null){P(d,"click",function(k){return function(){Ja(k[0],k[1])}},[a,e]);P(d,"mouseover",function(k){return function(){k[0].ya(k[1],k[2])}},[a,e,
f]);P(d,"mouseout",function(k){return function(){k[0].xa(k[1])}},[a,e])}a.o[e]=d;a.Ib[e]=b;a.va.push(d);return d}return null}function cb(a){if(a.map){var b=new Array(4);if(a=a.map.getBounds()){b[0]=a.getSouthWest().lng();b[1]=a.getSouthWest().lat();b[2]=a.getNorthEast().lng();b[3]=a.getNorthEast().lat();return b}}return null}
function Ja(a,b){google.maps.event.clearListeners(a.map,"bounds_changed");bb(a.a);var d=new google.maps.InfoWindow({content:a.Ib[b]});function e(){}eval("v = function() {google.maps.event.addListener("+a.i+'.map, "bounds_changed", function (){if ('+a.i+".getAM()) "+a.i+".setAM(false); else {"+a.i+".getGE().onCambiaMapa("+a.i+".getGE());}});};");if(!navigator||navigator.appName!="Microsoft Internet Explorer")google.maps.event.addListener(a.map,"bounds_changed",e);google.maps.event.addListener(d,"closeclick",
e);d.open(a.map,a.o[b])}o=R.prototype;o.fa=function(a){this.a&&this.a.fa(a)};o.ya=function(a,b){if(!this.n){this.n=document.createElement("div");this.n.className="po_tooltip";this.n.style.right="10px";this.n.style.top="10px";this.d.appendChild(this.n)}if(y())$(this.n).fadeTo("fast",0.7);else this.n.style.display="block";this.n.innerHTML=Ka(b);this.a&&hb(this.a,a);this.Z(a)};o.xa=function(a){if(this.n)this.n.style.display="none";this.a&&ib(this.a,a);this.X(a)};
o.Z=function(a){if(a=this.o[a]){var b=a.getIcon(),d=b.lastIndexOf("/"),e=b.substring(d+1,b.length);if(e.substring(0,4)!="sel_")e="sel_"+e;a.setIcon(b.substring(0,d+1)+e);if(typeof a.qa=="undefined"||a.qa==null){a.qa=a.getZIndex();a.setZIndex(1E4)}}};o.X=function(a){if(a=this.o[a]){var b=a.getIcon(),d=b.lastIndexOf("/"),e=b.substring(d+1,b.length);if(e.substring(0,4)=="sel_")e=e.substring(4,e.length);a.setIcon(b.substring(0,d+1)+e);typeof a.qa!="undefined"&&a.qa!=null&&a.setZIndex(a.qa);a.qa=null}};
o.La=function(){if(!this.ga){this.ga=document.createElement("div");this.ga.className="po_cubre";this.d.appendChild(this.ga)}};o.Aa=function(){if(this.ga){this.ga.parentNode.removeChild(this.ga);this.ga=null}};
function fb(a){if(!a.U){var b=a.d.clientWidth;a.U=document.createElement("div");a.U.className="po_cubre_extra";a.U.innerHTML="";a.U.innerHTML=parseInt(b)>400?"Hay m&aacute;s eventos de los que se pueden mostrar. Ac&eacute;rcate para verlos.":"Ac&eacute;rcate para ver m&aacute;s eventos";a.d.appendChild(a.U)}}R.prototype.ca=n("a");
R.prototype.db=function(a,b,d,e){if(this.map){a=new google.maps.LatLng(b,a);this.map.setCenter(a);this.map.setZoom(d);if(e){this.Va=1;if(this.R)this.R.setPosition(a);else{this.R=new google.maps.Marker({position:a,map:this.map});this.R.setMap(this.map)}}}};R.prototype.gb=function(){return!this.map||this.map.getZoom()>0};R.prototype.tb=function(){this.map&&this.map.getZoom()>1&&this.map.setZoom(this.map.getZoom()-2)};function yb(a){this.d=document.getElementById(a);this.wb="";this.A()}
yb.prototype.A=function(){if(this.d){var a=this.d.innerHTML.split(" en ");if(a&&a.length>1)this.wb=this.d.innerHTML.substring(a[0].length)}};function W(a,b,d){this.d=a;this.bc=b;this.Da=[];this.ma=[];this.Ga=0;this.a=d}W.prototype.xb=function(){this.d.innerHTML="";this.Da=[];this.Ga=0;this.ma=[]};
W.prototype.Ya=function(a,b,d,e,f,i){if(this.Ga<this.bc){if(typeof this.Da[a]=="undefined"){this.Ga++;var h;e=i+" - "+(e==f?e:"Del "+e+" al "+f);f=document.createElement("div");f.className="eventoDestacadoHome dest"+this.Ga;zb(this,f,a,b,d,e);h=f;if(d&&this.ma.length>0)this.d.insertBefore(h,this.ma[0]);else{d||this.ma.push(h);this.d.appendChild(h)}if(this.Ga>=4)this.d.lastChild.style.marginRight="0px";this.Da[a]=h}}else if(typeof this.Da[a]=="undefined"&&d&&this.ma.length>0){this.ma[0].innerHTML=
"";zb(this,this.ma[0],a,b,d,i+" - "+(e==f?e:"Del "+e+" al "+f));this.ma.splice(0,1);this.Da[a]=h}};
function zb(a,b,d,e,f,i){var h=document.createElement("img");h.src=s+(f?"uploads/"+f:"images/noimagen.png");h.alt=e;h.title=O(e+" - "+i);b.appendChild(h);h=document.createElement("a");h.title=O(e+" - "+i);A(h,"click",a,a.gc,d);A(h,"mouseover",a,a.fc,d);A(h,"mouseout",a,a.ec,d);a=document.createElement("span");a.className="nb";a.innerHTML=e;h.appendChild(a);a=document.createElement("span");a.className="dt";a.innerHTML=i;h.appendChild(a);b.appendChild(h)}W.prototype.gc=function(a,b){this.a&&this.a.fa(b)};
W.prototype.fc=function(a,b){this.a&&this.a.ya(b)};W.prototype.ec=function(a,b){this.a&&this.a.xa(b)};W.prototype.ca=n("a");function Ab(a,b){this.d=a;this.a=b;if(this.d){for(a=0;a<this.d.options.length;a++)this.d.options[a].value=this.d.options[a].innerHTML;A(this.d,"change",this,this.Vb,null);this.a&&Bb(this)}}
function Bb(a){if(navigator.geolocation){var b=document.createElement("span");b.className="botonHome";b.title="Pulsa aqu\ufffd; para centrar el mapa en tu localizaci\ufffdn";A(b,"click",a,a.hc,null);a.d.parentNode.insertBefore(b,a.d)}}Ab.prototype.Vb=function(){this.d.selectedIndex!=0&&this.a&&this.d&&pb(this.a,this.d.value)};Ab.prototype.ca=function(a){this.a=a;Bb(this)};Ab.prototype.hc=function(){if(this.a){this.d.selectedIndex=0;this.a.Ra()}};
function X(a){this.K=0;this.d=a;this.ab=this.O=this.q=null;this.J=[];this.Ea()}X.prototype.Ea=function(){if(this.d){var a=document.createElement("span");a.className="enlaceT";a.innerHTML="&iquest;C&oacute;mo funciona?";A(a,"click",this,this.ka,null);this.ab=a;this.d.parentNode.appendChild(a)}};
X.prototype.ka=function(){if(!this.q){this.q=document.createElement("div");this.q.className="infoTut";var a=document.createElement("div");a.className="cb";var b=document.createElement("span");b.className="t";a.appendChild(b);b=document.createElement("a");b.className="btnC";b.innerHTML="X";b.title="Pulsa para cerrar la ayuda";A(b,"click",this,this.Db,false);a.appendChild(b);b=document.createElement("span");b.className="n";a.appendChild(b);this.q.appendChild(a);a=document.createElement("div");this.q.appendChild(a);
a=document.createElement("div");b=document.createElement("a");b.className="btnS";b.innerHTML="Siguiente";A(b,"click",this,this.Bb,null);a.appendChild(b);b=document.createElement("a");b.innerHTML="<";b.className="btnV";b.title="Volver";A(b,"click",this,this.Bb,true);a.appendChild(b);b=document.createElement("a");b.className="btnS";b.innerHTML="Vale, &iexcl;a planociear!";A(b,"click",this,this.Db,true);a.appendChild(b);this.q.appendChild(a);this.d.parentNode.parentNode.appendChild(this.q)}if(this.J.length>
0){this.q.firstChild.firstChild.innerHTML=this.J[this.K][2];this.q.firstChild.lastChild.innerHTML=this.K+1+"/"+this.J.length;this.q.firstChild.nextSibling.innerHTML=this.J[this.K][3];this.q.lastChild.firstChild.style.display=this.K<this.J.length-1?"block":"none";this.q.lastChild.firstChild.nextSibling.style.display=this.K>0?"block":"none";this.q.lastChild.lastChild.style.display=this.K>=this.J.length-1?"block":"none";this.q.style.top=this.J[this.K][0]+"px";this.q.style.left=this.J[this.K][1]+"px";
this.q.style.width=this.J[this.K][4]?"140px":"";this.q.style.display="block";this.ab.style.display="none"}};X.prototype.Bb=function(a,b){if(b)this.K>0&&this.K--;else this.K<this.J.length-1&&this.K++;this.ka()};X.prototype.Db=function(){if(this.q)if(y())$(this.q).fadeOut(250);else this.q.style.display="none";this.K=0;this.ab.style.display="block"};
function Cb(a,b,d,e){if(!a.O){a.O=document.createElement("div");a.O.className="mensT "+(e?"avisoBox":"okBox");a.O.style.top="244px";a.O.style.left="302px";a.O.style.display="none";a.d.parentNode.parentNode.appendChild(a.O)}a.O.innerHTML=b;if(y())$(a.O).fadeIn(250);else a.O.style.display="block";d&&setTimeout(a.ib(a),1E4)}X.prototype.ib=function(a){return function(){if(a.O)if(y())$(a.O).fadeOut(500);else a.O.style.display="none"}};
function ub(a){a.style.paddingLeft="35px";a.style.paddingTop="20px";var b=document.createElement("DIV");b.style.backgroundColor="white";b.style.borderStyle="solid";b.style.borderWidth="1px";b.style.borderColor="#AAAAAA";b.style.cursor="pointer";b.style.textAlign="center";b.title="Centrar en mi posici\ufffdn";a.appendChild(b);a=document.createElement("DIV");a.style.fontFamily="Arial,sans-serif";a.style.fontSize="12px";a.style.paddingLeft="4px";a.style.paddingRight="4px";a.innerHTML='<img src="'+s+
'images/bullet1.gif" alt="H" />';b.appendChild(a);google.maps.event.addDomListener(b,"click",function(){navigator.geolocation.getCurrentPosition(function(d){d.coords.longitude>-18.1&&d.coords.longitude<4.6&&d.coords.latitude>27&&d.coords.latitude<44&&po_rel.db(d.coords.longitude,d.coords.latitude,14,true)},function(){})})}var r=null,Db=false,Y=null,Eb=false;
if(po_le){function Fb(){return function(){Cb(Y,"No podemos obtener tu posici&oacute;n. Puedes seleccionarla con el desplegable de la derecha.",true,true)}}function Gb(){return function(a){Cb(Y,a,true,true)}}function Hb(){return function(a){Cb(Y,a,true,false)}}var Kb=document.createElement("div");Kb.className="mapa";Kb.id="mapa";var Lb=null,Mb=null;if(po_le.lt)Lb=po_le.lt;if(po_le.ln)Mb=po_le.ln;var Nb=new R("m",Lb,Mb,"mapa",!po_le.lt&&!po_le.ln&&!po_le.ft&&!po_le.l,po_le.l,null,null,s,po_le.z,null,
!po_le.lt&&!po_le.ln,true,Fb(),Gb(),Hb(),po_le.xc,po_le.nc),Ob=document.createElement("div");Ob.className="categorias";var Z=new sb(Ob,Z,true,null,s);Z.A();if(po_le.t){kb(Z,po_le.t);lb(Z)}function Pb(){if(Eb){document.getElementById("caja").style.width="";typeof r!="undefined"&&r&&ob(r,Nb);tb(Nb);Db=true}else setTimeout(Pb,100)}window.po_in=Pb;var Qb=document.createElement("script");Qb.type="text/javascript";Qb.src="http://maps.google.com/maps/api/js?sensor=false&callback=po_in";(K=document.$b)||
(K=document.getElementsByTagName("head")[0]);K.appendChild(Qb);function Rb(){Eb=true;var a=document.getElementById("pC");if(a)a=new W(a,4,null);Y=new X(document.getElementById("cajaMigas"));Y.J.push([210,330,"&iexcl;Bienvenido!","<p>Planocio te ayuda a encontrar ocio de cualquier tipo, d&oacute;nde y cu&aacute;ndo t&uacute; quieras.</p>",false]);Y.J.push([330,180,"Calendario",'<p>Utiliza los controles del calendario para seleccionar las fechas.<br /><br />Puedes moverte de semana en semana utilizando las flechas arriba y abajo o elegir un periodo m&aacute;s amplio pulsando el bot&oacute;n "Ver ..." que aparece debajo del t&iacute;tulo.<br /><br />Al pasar el rat&oacute;n sobre un d&iacute;a te mostraremos un resumen de los eventos de ese d&iacute;a. Cuando lo pulses, te mostraremos solo eventos del mismo.</p>',
false]);Y.J.push([390,580,"Tipos","<p>Utiliza los iconos de tipos para marcar qu&eacute; tipo de eventos quieres que te mostremos.<br /><br />Si no marcas ninguno, te mostraremos eventos de cualquier tipo.</p>",true]);Y.J.push([340,730,"Mapa","<p>Con los controles del mapa podr&aacute;s seleccionar la zona de la que quieres que te mostremos eventos.<br /><br />Tambi&eacute;n puedes arrastrar con el rat&oacute;n para moverte y usar la rueda del mismo para hacer zoom.<br /><br />Si quieres ir a una zona directamente, utiliza la lista desplegable que aparece encima del mapa.</p>",
true]);navigator.geolocation||Cb(Y,"Tu navegador no soporta detecci&oacute;n de ubicaci&oacute;n. Utiliza el desplegable de la derecha para elegir la zona que te interesa.",true);var b=new yb("po_titulo"),d=document.getElementById("cajaGrande");d.style.height="408px";d.style.overflow="hidden";var e=document.getElementById("clear");d.insertBefore(Ob,e);d.insertBefore(Kb,e);d=1;if(typeof po_le.m=="number")d=po_le.m;d=new T("c","caja","cajaMigas",null,po_le.f,s,d);d.ka();if(e=document.getElementById("cL")){e.innerHTML=
"";for(var f=null,i=0;i<v.length;i++){f=document.createElement("option");f.value=v[i][0];f.innerHTML=v[i][1];if(!v[i][2])f.disabled=true;e.appendChild(f)}e=new Ab(e,null)}(f=document.getElementById("btnIr"))&&f.parentNode.removeChild(f);f=null;if(po_le.ft)f=po_le.ft;r=new Q("r",Db?Nb:null,d,s,Z,ra,f,null,b,a,e,po_le.l,!po_le.lt&&!po_le.ln,function(){});Nb.ca(r);d.ca(r);Z.ca(r);a.ca(r);e.ca(r);po_le&&db(r,po_le)}}function Sb(a){r&&db(r,a)}window.po_cb=Sb;
fa(function(){ia();ma();var a=document.getElementById("btnSubs"),b=0;if(typeof idEv!="undefined")b=idEv;a&&xa(a,b);Rb()});

