function TLabel(){}TLabel.prototype.initialize=function(B){this.parentMap=B;var A=document.createElement("span");A.setAttribute("id",this.id);A.appendChild(this.content);document.body.appendChild(A);A.style.position="absolute";A.style.block;this.w=this.content.childNodes[0].offsetWidth;this.h=this.content.childNodes[0].offsetHeight;this.mapTray=B.getPane(G_MAP_MAP_PANE);this.mapTray.appendChild(A);A.parentNode.style.zIndex=1000;if(!this.markerOffset){this.markerOffset=new GSize(0,0)}this.setPosition();GEvent.bind(B,"zoomend",this,function(){this.setPosition()})};TLabel.prototype.setPosition=function(C){var D=document.getElementById(this.id);if(D!==null){if(C){this.anchorLatLng=C}var B=this.parentMap.fromLatLngToDivPixel(this.anchorLatLng);var A=parseInt(B.x);var E=parseInt(B.y);switch(this.anchorPoint){case"topLeft":break;case"topRight":A-=this.w;break;case"bottomRight":A-=this.w;E-=this.h;break;case"bottomLeft":E-=this.h;break;default:break}D.style.left=A-this.markerOffset.width+"px";D.style.top=E-this.markerOffset.height+"px";D.style.zIndex=100}};GMap2.prototype.addTLabel=function(A){A.initialize(this)};GMap2.prototype.removeTLabel=function(B){var A=document.getElementById(B.id);x6r(A);this.getPane(G_MAP_MAP_PANE).removeChild(A);delete (A)};function Tooltip(A,C,B){this.marker_=A;this.text_=C;this.padding_=B}Tooltip.prototype=new GOverlay();Tooltip.prototype.initialize=function(A){var B=document.createElement("div");B.appendChild(document.createTextNode(this.text_));B.className="tooltip";B.style.position="absolute";B.style.visibility="hidden";A.getPane(G_MAP_FLOAT_PANE).appendChild(B);this.map_=A;this.div_=B};Tooltip.prototype.remove=function(){x6r(this.div_);this.div_.parentNode.removeChild(this.div_)};Tooltip.prototype.copy=function(){return new Tooltip(this.marker_,this.text_,this.padding_)};Tooltip.prototype.redraw=function(D){if(!D){return }var B=this.map_.fromLatLngToDivPixel(this.marker_.getPoint());var A=this.marker_.getIcon().iconAnchor;var E=Math.round(B.x-this.div_.clientWidth/2);var C=B.y-A.y-this.div_.clientHeight-this.padding_;this.div_.style.top=C+"px";this.div_.style.left=E+"px"};Tooltip.prototype.show=function(){this.div_.style.visibility="visible"};Tooltip.prototype.hide=function(){this.div_.style.visibility="hidden"};function hh2(A){for(var B=0;B<w7e.length;B++){if(A==w7e[B][0]){A=w7e[B][1]}}return A}function hh4(B,A){B=B.trim();A=A.trim();B=B.bb4();A=A.bb4();A=A.replace(/Spain/g,"España");B=B.toLowerCase();A=A.toLowerCase();B=B.replace(/'/g,"");A=A.replace(/'/g,"");B=B.replace(/\s+/g," ");A=A.replace(/\s+/g," ");B=B.replace(/\W/g," ");A=A.replace(/\W/g," ");B=B.bb3();A=A.bb3();var C=true;B=B.trim();A=A.trim();if(B.dentro(A)||A.dentro(B)){C=false}return(C)}function hh7(E,F,B,A){w2q="buscar";var D=new GLatLng(E-0.000005,F);w2e.setCenter(D,A);var G="./img/bola_donde.png";var C=x0r(D,w3w,G);var I=new Tooltip(C,B,4);C.tooltip=I;hh9(C,I);n4c=C;h3s=I;var H=document.getElementById("search");document.getElementById("sinopsis1").innerHTML="";if(w2b!==undefined||r5r!==undefined){x4d()}B=B.replace(/Spain/g,"España");H.value=B;n9n("buscar")}function hh9(B,A){if(n4c!==undefined){w2e.removeOverlay(n4c);GEvent.clearInstanceListeners(n4c);GEvent.clearNode(n4c);if(h3s!==undefined){w2e.removeOverlay(h3s)}delete n4c}w2e.addOverlay(B);w2e.addOverlay(A)}function hhh(){var C;var A="es";w2q="buscar";v0v.setBaseCountryCode("es");w2q="buscar";var B=document.getElementById("search").value;v0v.getLocations(B,function(E){a1r();if(E.Status.code==G_GEO_SUCCESS){var D="";if(E.Placemark.length>1){if(E.Placemark.length>3){E.Placemark.length=3}D="<span style = 'line-height: 20px;'>Quizás quisiste decir:";var F="";for(var G=0;G<E.Placemark.length;G++){F=E.Placemark[G].address.replace(/, Spain/g," ");var J=E.Placemark[G].Point.coordinates;D+="<br>"+(G+1)+":<b> <a href='javascript:hh7("+J[1]+","+J[0]+',"'+F+"\", 13);'>"+F+"</a></b>"}D+="</span>";hh1(D)}else{if(hh4(B,E.Placemark[0].address)){J=E.Placemark[0].Point.coordinates;if(E.Placemark[0].address!="España"){F=E.Placemark[0].address.replace(/, Spain/g," ");D="Quizás quisiste decir: <b><a href='javascript:hh7("+J[1]+","+J[0]+',"'+F+"\", 13);'>"+F+"</a></b>";hh1(D)}else{J=E.Placemark[0].Point.coordinates;F=E.Placemark[0].address.replace(/, Spain/g," ");hh7(J[1],J[0],F,9)}}else{J=E.Placemark[0].Point.coordinates;F=E.Placemark[0].address.replace(/, Spain/g," ");hh7(J[1],J[0],F,13)}}}else{var I="Code "+E.Status.code;if(w4h[E.Status.code]){I=w4h[E.Status.code]}D="No se en entrado este lugar.";var H=B;D=D+"<b>"+H+"</b>";hh1(D)}},{locale:"es"});w2q="buscar"}function hh1(B){x2c("dentro del hh1(texto, sugerencia)");var A=document.getElementById("sinopsis1");x6r(A);A.innerHTML=B;A.style.visibility="visible";h4o=false;n9n("buscar")};
