function ELM(id,doc)
{if(typeof(doc)=='undefined')doc=document;return doc.getElementById(id);}
function DISABLE(id,option)
{var elm=ELM(id);var bDisabled;switch(option)
{case true:bDisabled=true;break;case false:bDisabled=false;break;case'switch':bDisabled=!elm.disabled;break;}
elm.disabled=bDisabled;return bDisabled;}
function DISPLAY(id,option)
{var elm=ELM(id);var bDisplay;switch(option)
{case'1':case true:option='block';bDisplay=true;break;case'0':case false:option='none';bDisplay=false;break;case'block':case'inline':case'table-row':bDisplay=true;break;case'none':bDisplay=false;break;case'switch':if(elm.style.display=='none')
{option='block';bDisplay=true;}
else
{option='none';bDisplay=false;}
break;}
elm.style.display=option;return bDisplay;}
function MOVE(id,x,y)
{elm=ELM(id);elm.style.left=x+'px';elm.style.top=y+'px';}
function POPUP(url,name,size,scrollbars)
{var nLeft=((.8*1024-size.width)/2);var nTop=((.8*screen.height-size.height)/2);var wnd=window.open(url,name,'menubar=0,toolbar=0,location=0,status=1,scrollbars='+(typeof('scrollbars')=='undefined'?0:scrollbars)+',resizable=0,width='+size.width+',height='+size.height+',left='+nLeft+',top='+nTop);wnd.focus();}
function FULLSCREEN(url,name,bFullWidth)
{var config=((bFullWidth)||(screen.width<=1024)?'fullscreen=1':'top=0,left=0,width=1070,height='+screen.height);wnd=window.open('',name,config+',menubar=1,toolbar=1,location=1,status=1,scrollbars=1,resizable=1');wnd.focus();}
function MAXCANVAS()
{top.window.moveTo(0,0);}
function SUBDOMINIO_PHOTOS_IDX(alias_photo)
{return(parseInt(alias_photo.charAt(alias_photo.length-1),16)%4)+1;}
function SEMAFORO(id_control,semaforo,valor_ok,valor_ko)
{ELM('semaforo_'+id_control).className='semaforo '+(semaforo?'verde':'rojo');valor=(semaforo?(typeof(valor_ok)=='undefined'?'':valor_ok):(typeof(valor_ko)=='undefined'?'':valor_ko));if(valor!='')ELM('semaforo_'+id_control).innerHTML=valor;if(ELM('boton_'+id_control+'_ok')!=null)DISPLAY('boton_'+id_control+'_ok',semaforo?'none':'inline');if(ELM('boton_'+id_control+'_ko')!=null)DISPLAY('boton_'+id_control+'_ko',semaforo?'inline':'none');if(ELM('boton_'+id_control+'_ok_1')!=null)DISPLAY('boton_'+id_control+'_ok_1',semaforo?'none':'inline');if(ELM('boton_'+id_control+'_ko_1')!=null)DISPLAY('boton_'+id_control+'_ko_1',semaforo?'inline':'none');if(ELM('boton_'+id_control+'_ok_2')!=null)DISPLAY('boton_'+id_control+'_ok_2',semaforo?'none':'inline');if(ELM('boton_'+id_control+'_ko_2')!=null)DISPLAY('boton_'+id_control+'_ko_2',semaforo?'inline':'none');}
var bAjaxSemaphore=true;function Ajax(url,params,bDebug,bExternalSemaphore)
{if(typeof(params)=='undefined')params='';if(typeof(bDebug)=='undefined')bDebug=false;if(typeof(bExternalSemaphore)=='undefined')bExternalSemaphore=false;if((!bExternalSemaphore)&&(!bAjaxSemaphore))return;bAjaxSemaphore=false;params+=(params==''?'':'&')+'ajax=1';var xmlhttp=new XMLHttpRequest();xmlhttp.open('POST',url,true);xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(params);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{var js=xmlhttp.responseText;if(bDebug)
{document.write(js);}
else
{switch(xmlhttp.status)
{case 0:alert("Error de conexión al servidor. Vuelva a intentarlo.");break;case 200:eval(js);break;default:alert(xmlhttp.status);}}
bAjaxSemaphore=true;}}}
function GetPostParams(id_form)
{var params=[];var grupos=[];var elm_form=ELM(id_form);var i=0;var bSkip;while(i<elm_form.elements.length)
{var elm=elm_form.elements[i];if(elm.id!='')
{var value='';bSkip=false;switch(elm.type)
{case'text':case'password':case'hidden':case'textarea':case'select-one':value=elm.value;break;case'checkbox':value=(elm.checked?elm.value:'');break;case'radio':var grupo=eval('elm_form.elements.'+elm.name);if(typeof(grupos[elm.name])!='undefined')
{bSkip=true;break;}
if(typeof(grupo.length)=='undefined')
{value=elm.value;}
else
{for(j=0;j<grupo.length;j++)
{if(grupo[j].checked)
{value=grupo[j].value;break;}}}
grupos[elm.name]=true;break;}
if(!bSkip)
{value=value.replace(/\+/g,"%2B");value=value.replace(/&/g,"%26");params[params.length]=elm.name+'='+value;}}
i++;}
return params.join('&');}
function SetCursorPos(elm,pos)
{if((typeof(document.selection)!='undefined')&&(document.selection))
{var text=elm.value;elm.value='';elm.focus();var str=document.selection.createRange();elm.value=text;str.move('character',pos);str.moveEnd('character',0);str.select();}
else if(typeof(elm.selectionStart!='undefined'))
{elm.setSelectionRange(pos,pos);}
elm.focus();}
function SetCursorPosAtEnd(elm)
{SetCursorPos(elm,elm.value.length);}
function TRIM(s)
{return s.replace(/\b/g,'');}
function STRIP_PX(s)
{return parseInt(new String(s).split('px')[0]);}
function RIGHT(s,n)
{return(s.substring(s.length-Math.min(s.length,n)));}
function EsNumero(valor)
{var regexp=/^\d+$/;return(regexp.test(valor));}
function IsSafari()
{var regexp=/Safari/i;return(regexp.test(navigator.userAgent));}
function IsIE()
{return document.all&&window.ActiveXObject&&navigator.userAgent.toLowerCase().indexOf("msie")>-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1;}
function SetEventListener(elm,sEvent,fn)
{if(IsSafari())elm['on'+sEvent]=fn;else if(elm.addEventListener)elm.addEventListener(sEvent,fn,false);else if(elm.attachEvent)elm.attachEvent('on'+sEvent,fn);}
function StopEvent(ev)
{if(window.event)
{window.event.cancelBubble=true;window.event.returnValue=false;}
else
{if(ev.stopPropagation)ev.stopPropagation();if(ev.preventDefault)ev.preventDefault();}}
function GetEventElement(ev)
{return(window.event?window.event.srcElement:ev.target);}
function GetEventLink(ev)
{var elm=GetEventElement(ev);while(elm.nodeName.toLowerCase()!='a')elm=elm.parentNode;return elm;}
function GetScrollX()
{if(typeof(window.pageXOffset)=='number')return window.pageXOffset;else if(document.body&&document.body.scrollLeft)return document.body.scrollLeft;else if(document.documentElement&&document.documentElement.scrollLeft)return document.documentElement.scrollLeft;else return 0;}
function GetScrollY()
{if(typeof(window.pageYOffset)=='number')return window.pageYOffset;else if(document.body&&document.body.scrollTop)return document.body.scrollTop;else if(document.documentElement&&document.documentElement.scrollTop)return document.documentElement.scrollTop;else return 0;}
function GetMouseX(ev)
{if(ev.pageX)return STRIP_PX(ev.pageX);else if(ev.clientX)return GetScrollX(ev)+STRIP_PX(ev.clientX);else return 0;}
function GetMouseY(ev)
{if(ev.pageY)return STRIP_PX(ev.pageY);else if(ev.clientY)return GetScrollY(ev)+STRIP_PX(ev.clientY);else return 0;}
function GetEventElmXY(ev)
{if(ev.offsetX)return{'x':ev.offsetX+1,'y':ev.offsetY+1};var x=0;var y=0;elm=GetEventElement(ev);if(elm.offsetParent)
{do
{x+=elm.offsetLeft;y+=elm.offsetTop;}
while(elm=elm.offsetParent);}
return{'x':ev.pageX-x-1,'y':ev.pageY-y-1};}
function GetPageSize()
{if((window.innerHeight)&&(window.scrollMaxY))
{x=window.innerWidth+window.scrollMaxX;y=window.innerHeight+window.scrollMaxY;}
else if(document.body.scrollHeight>document.body.offsetHeight)
{x=document.body.scrollWidth;y=document.body.scrollHeight;}
else
{x=document.body.offsetWidth+document.body.offsetLeft;y=document.body.offsetHeight+document.body.offsetTop;}
return{'x':x,'y':y};}
function DatePicker(dia,mes,anyo)
{eval("var opts = {formElements: {"+anyo+": 'Y' , "+mes+": 'm' , "+dia+": 'd'} , showWeeks: true , statusFormat: 'l-cc-sp-d-sp-F-sp-Y'}");datePickerController.createDatePicker(opts);}
function str_replace(cadena,cambia_esto,por_esto)
{return cadena.split(cambia_esto).join(por_esto);}
function NUMERO(numero,separador_miles)
{sNumero_in=new String(numero);sNumero_aux="";for(i=0,ni=sNumero_in.length;i<ni;i++)
{if((i!=0)&&(i%3==0))sNumero_aux+=separador_miles;sNumero_aux+=sNumero_in.charAt(ni-(i+1));}
sNumero_out="";for(i=0,ni=sNumero_aux.length;i<ni;i++)
{sNumero_out+=sNumero_aux.charAt(ni-(i+1));}
return sNumero_out;}function marqueeInit(config){if(!document.createElement)return;marqueeInit.ar.push(config);marqueeInit.run(config.uniqueid);}
(function(){if(!document.createElement)return;marqueeInit.ar=[];document.write('<style type="text/css">.marquee{white-space:nowrap;overflow:hidden;visibility:hidden;}'+'#marq_kill_marg_bord{border:none!important;margin:0!important;}<\/style>');var c=0,tTRE=[new RegExp('^\\s*$'),new RegExp('^\\s*'),new RegExp('\\s*$')],req1={'position':'relative','overflow':'hidden'},defaultconfig={style:{'margin':'0 auto'},direction:'left',inc:2,mouse:'pause'},dash,ie=false,oldie=0,ie5=false,iever=0;if(!ie5){dash=new RegExp('-(.)','g');function toHump(a,b){return b.toUpperCase();};String.prototype.encamel=function(){return this.replace(dash,toHump);};}
if(ie&&iever<8){marqueeInit.table=[];window.attachEvent('onload',function(){marqueeInit.OK=true;for(var i=0;i<marqueeInit.table.length;++i)
marqueeInit.run(marqueeInit.table[i]);});}
function intable(el){while((el=el.parentNode))
if(el.tagName&&el.tagName.toLowerCase()==='table')
return true;return false;};marqueeInit.run=function(id){if(ie&&!marqueeInit.OK&&iever<8&&intable(document.getElementById(id))){marqueeInit.table.push(id);return;}
if(!document.getElementById(id))
setTimeout(function(){marqueeInit.run(id);},300);else
new Marq(c++,document.getElementById(id));}
function trimTags(tag){var r=[],i=0,e;while((e=tag.firstChild)&&e.nodeType==3&&tTRE[0].test(e.nodeValue))
tag.removeChild(e);while((e=tag.lastChild)&&e.nodeType==3&&tTRE[0].test(e.nodeValue))
tag.removeChild(e);if((e=tag.firstChild)&&e.nodeType==3)
e.nodeValue=e.nodeValue.replace(tTRE[1],'');if((e=tag.lastChild)&&e.nodeType==3)
e.nodeValue=e.nodeValue.replace(tTRE[2],'');while((e=tag.firstChild))
r[i++]=tag.removeChild(e);return r;}
function Marq(c,tag){var p,u,s,a,ims,ic,i,marqContent,cObj=this;this.mq=marqueeInit.ar[c];for(p in defaultconfig)
if((this.mq.hasOwnProperty&&!this.mq.hasOwnProperty(p))||(!this.mq.hasOwnProperty&&!this.mq[p]))
this.mq[p]=defaultconfig[p];this.mq.style.width=!this.mq.style.width||isNaN(parseInt(this.mq.style.width))?'100%':this.mq.style.width;if(!tag.getElementsByTagName('img')[0])
this.mq.style.height=!this.mq.style.height||isNaN(parseInt(this.mq.style.height))?tag.offsetHeight+3+'px':this.mq.style.height;else
this.mq.style.height=!this.mq.style.height||isNaN(parseInt(this.mq.style.height))?'auto':this.mq.style.height;u=this.mq.style.width.split(/\d/);this.cw=this.mq.style.width?[parseInt(this.mq.style.width),u[u.length-1]]:['a'];marqContent=trimTags(tag);tag.className=tag.id='';tag.removeAttribute('class',0);tag.removeAttribute('id',0);if(ie)
tag.removeAttribute('className',0);tag.appendChild(tag.cloneNode(false));tag.className=['marquee',c].join('');tag.style.overflow='hidden';this.c=tag.firstChild;this.c.appendChild(this.c.cloneNode(false));this.c.style.visibility='hidden';a=[[req1,this.c.style],[this.mq.style,this.c.style]];for(i=a.length-1;i>-1;--i)
for(p in a[i][0])
if((a[i][0].hasOwnProperty&&a[i][0].hasOwnProperty(p))||(!a[i][0].hasOwnProperty))
a[i][1][p.encamel()]=a[i][0][p];this.m=this.c.firstChild;if(this.mq.mouse=='pause'){this.c.onmouseover=function(){cObj.mq.stopped=true;};this.c.onmouseout=function(){cObj.mq.stopped=false;};}
this.m.style.position='absolute';this.m.style.left='-10000000px';this.m.style.whiteSpace='nowrap';if(ie5)this.c.firstChild.appendChild((this.m=document.createElement('nobr')));if(!this.mq.noAddedSpace)
this.m.appendChild(document.createTextNode('\xa0'));for(i=0;marqContent[i];++i)
this.m.appendChild(marqContent[i]);if(ie5)this.m=this.c.firstChild;ims=this.m.getElementsByTagName('img');if(ims.length){for(ic=0,i=0;i<ims.length;++i){ims[i].style.display='inline';ims[i].style.verticalAlign=ims[i].style.verticalAlign||'top';if(typeof ims[i].complete=='boolean'&&ims[i].complete&&!window.opera)
ic++;else{ims[i].onload=function(){if(++ic==ims.length)
cObj.setup();};}
if(ic==ims.length)
this.setup();}}
else this.setup()}
Marq.prototype.setup=function(){if(this.mq.setup)return;this.mq.setup=this;var s,cObj=this;if(this.c.style.height==='auto')
this.c.style.height=this.m.offsetHeight+4+'px';this.c.appendChild(this.m.cloneNode(true));this.m=[this.m,this.m.nextSibling];if(this.mq.mouse=='cursor driven'){this.r=this.mq.neutral||16;this.sinc=this.mq.inc;this.c.onmousemove=function(e){cObj.mq.stopped=false;cObj.directspeed(e)};if(this.mq.moveatleast){this.mq.inc=this.mq.moveatleast;if(this.mq.savedirection){if(this.mq.savedirection=='reverse'){this.c.onmouseout=function(e){if(cObj.contains(e))return;cObj.mq.inc=cObj.mq.moveatleast;cObj.mq.direction=cObj.mq.direction=='right'?'left':'right';};}else{this.mq.savedirection=this.mq.direction;this.c.onmouseout=function(e){if(cObj.contains(e))return;cObj.mq.inc=cObj.mq.moveatleast;cObj.mq.direction=cObj.mq.savedirection;};}}else
this.c.onmouseout=function(e){if(!cObj.contains(e))cObj.mq.inc=cObj.mq.moveatleast;};}
else
this.c.onmouseout=function(e){if(!cObj.contains(e))cObj.slowdeath();};}
this.w=this.m[0].offsetWidth;this.m[0].style.left=0;this.c.id='marq_kill_marg_bord';this.m[0].style.top=this.m[1].style.top=Math.floor((this.c.offsetHeight-this.m[0].offsetHeight)/2-oldie)+'px';this.c.id='';this.c.removeAttribute('id',0);this.m[1].style.left=this.w+'px';s=this.mq.moveatleast?Math.max(this.mq.moveatleast,this.sinc):(this.sinc||this.mq.inc);while(this.c.offsetWidth>this.w-s)
this.c.style.width=isNaN(this.cw[0])?this.w-s+'px':--this.cw[0]+this.cw[1];this.c.style.visibility='visible';this.runit();}
Marq.prototype.slowdeath=function(){var cObj=this;if(this.mq.inc){this.mq.inc-=1;this.timer=setTimeout(function(){cObj.slowdeath();},100);}}
Marq.prototype.runit=function(){var cObj=this,d=this.mq.direction=='right'?1:-1;if(this.mq.stopped||this.mq.stopMarquee){setTimeout(function(){cObj.runit();},300);return;}
if(this.mq.mouse!='cursor driven')
this.mq.inc=Math.max(1,this.mq.inc);if(d*parseInt(this.m[0].style.left)>=this.w)
this.m[0].style.left=parseInt(this.m[1].style.left)-d*this.w+'px';if(d*parseInt(this.m[1].style.left)>=this.w)
this.m[1].style.left=parseInt(this.m[0].style.left)-d*this.w+'px';this.m[0].style.left=parseInt(this.m[0].style.left)+d*this.mq.inc+'px';this.m[1].style.left=parseInt(this.m[1].style.left)+d*this.mq.inc+'px';setTimeout(function(){cObj.runit();},30+(this.mq.addDelay||0));}
Marq.prototype.directspeed=function(e){e=e||window.event;if(this.timer)clearTimeout(this.timer);var c=this.c,w=c.offsetWidth,l=c.offsetLeft,mp=(typeof e.pageX=='number'?e.pageX:e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft)-l,lb=(w-this.r)/2,rb=(w+this.r)/2;while((c=c.offsetParent))mp-=c.offsetLeft;this.mq.direction=mp>rb?'left':'right';this.mq.inc=Math.round((mp>rb?(mp-rb):mp<lb?(lb-mp):0)/lb*this.sinc);}
Marq.prototype.contains=function(e){if(e&&e.relatedTarget){var c=e.relatedTarget;if(c==this.c)return true;while((c=c.parentNode))if(c==this.c)return true;}
return false;}
function resize(){for(var s,m,i=0;i<marqueeInit.ar.length;++i){if(marqueeInit.ar[i]&&marqueeInit.ar[i].setup){m=marqueeInit.ar[i].setup;s=m.mq.moveatleast?Math.max(m.mq.moveatleast,m.sinc):(m.sinc||m.mq.inc);m.c.style.width=m.mq.style.width;m.cw[0]=m.cw.length>1?parseInt(m.mq.style.width):'a';while(m.c.offsetWidth>m.w-s)
m.c.style.width=isNaN(m.cw[0])?m.w-s+'px':--m.cw[0]+m.cw[1];}}}
if(window.addEventListener)
window.addEventListener('resize',resize,false);else if(window.attachEvent)
window.attachEvent('onresize',resize);})();var Button={Iniciar:function(obj_button,bCur)
{if(typeof(bCur)=='undefined')bCur=false;var elm_button=ELM(obj_button.id_element);SetEventListener(elm_button,'mouseover',obj_button.OnHover);SetEventListener(elm_button,'click',obj_button.OnClick);SetEventListener(elm_button,'mouseout',obj_button.OnOut);if(bCur)
{elm_button.style.backgroundPosition=eval(obj_button.id_css+'_CLICKED');eval(obj_button.id_grupo+'_cur = obj_button.id_element');}},OnHover:function(ev,obj_button)
{var elm=GetEventElement(ev);if((obj_button.id_grupo=='')||(elm.id!=eval(obj_button.id_grupo+'_cur')))elm.style.backgroundPosition=eval(obj_button.id_css+'_HOVER');return elm;},OnClick:function(ev,obj_button)
{StopEvent(ev);elm=GetEventElement(ev);if(obj_button.id_grupo!='')
{ELM(eval(obj_button.id_grupo+'_cur')).style.backgroundPosition=eval(obj_button.id_css+'_NORMAL');eval(obj_button.id_grupo+'_cur = elm.id');}
elm.style.backgroundPosition=eval(obj_button.id_css+(obj_button.id_grupo!=''?'_CLICKED':'_NORMAL'));if(elm.blur)elm.blur();return elm;},OnOut:function(ev,obj_button)
{var elm=GetEventElement(ev);if(typeof(elm)=='undefined')return;if((obj_button.id_grupo=='')||(elm.id!=eval(obj_button.id_grupo+'_cur')))elm.style.backgroundPosition=eval(obj_button.id_css+'_NORMAL');return elm;}};var Espacio={espacios:[],anuncios:[],Iniciar:function()
{for(var id_tipo_espacio=1;id_tipo_espacio<Espacio.espacios.length;id_tipo_espacio++)
{if(typeof(Espacio.espacios[id_tipo_espacio])!='undefined')
{for(var i=0;i<Espacio.espacios[id_tipo_espacio].length;i++)
{var id_subespacio=Espacio.espacios[id_tipo_espacio][i].id_subespacio;var elm_subespacio=ELM('subespacio_'+id_tipo_espacio+'_'+id_subespacio);if(elm_subespacio!=null)SetEventListener(elm_subespacio,'click',Espacio.OnClick);for(var j=1;j<Espacio.anuncios[id_tipo_espacio][id_subespacio].length;j++)
{Anuncio.Iniciar(id_tipo_espacio,id_subespacio,j);}}}}},OnClick:function(ev)
{StopEvent(ev);var elm=GetEventElement(ev);var id_partes=elm.id.split('_');ELM('id_subespacio_filtro').value=id_partes[2];Buscador.Buscar(ev);}};var Anuncio={id_tipo_espacio:'',id_subespacio:'',idx_anuncio:'',Iniciar:function(id_tipo_espacio,id_subespacio,idx_anuncio)
{var ad=ELM('ad_'+id_tipo_espacio+'_'+id_subespacio+'_'+idx_anuncio);SetEventListener(ad,'mouseover',Anuncio.OnMouseOver);SetEventListener(ad,'mouseout',Anuncio.OnMouseOut);SetEventListener(ad,'click',Anuncio.OnClick);},OnMouse:function(ev)
{StopEvent(ev);var elm=GetEventLink(ev);var id_partes=elm.id.split('_');Anuncio.id_tipo_espacio=id_partes[1];Anuncio.id_subespacio=id_partes[2];Anuncio.idx_anuncio=id_partes[3];return elm;},OnMouseOver:function(ev)
{Anuncio.OnMouse(ev);elm=ELM('ad_'+Anuncio.id_tipo_espacio+'_'+Anuncio.id_subespacio+'_'+Anuncio.idx_anuncio+'_titulo');switch(elm.className)
{case'titulo':elm.className='titulo_hover';break;case'titulo_grande':elm.className='titulo_hover_grande';break;case'titulo_pequeno':elm.className='titulo_hover_pequeno';break;}
elm.style.cursor='pointer';},OnMouseOut:function(ev)
{Anuncio.OnMouse(ev);elm=ELM('ad_'+Anuncio.id_tipo_espacio+'_'+Anuncio.id_subespacio+'_'+Anuncio.idx_anuncio+'_titulo');switch(elm.className)
{case'titulo_hover':elm.className='titulo';break;case'titulo_hover_grande':elm.className='titulo_grande';break;case'titulo_hover_pequeno':elm.className='titulo_pequeno';break;}},OnClick:function(ev)
{elm=Anuncio.OnMouse(ev);var form=ELM('content');if(typeof(form.id_poblacion)!='undefined')form.id_poblacion.value=Anuncio.id_subespacio;form.action=elm.href;form.method='post';form.target='_blank';form.submit();}};var but_NORMAL='0px   0px';var but_HOVER='0px -22px';var but_CLICKED='0px -44px';var but_modo_busqueda_avanzada_NORMAL='0px   0px';var but_modo_busqueda_avanzada_HOVER='0px -22px';var but_modo_busqueda_simple_NORMAL='0px -44px';var but_modo_busqueda_simple_HOVER='0px -66px';var ATRIBUTO_SLIDER_LENGTH=136;var ATRIBUTO_SLIDER_OFFSET=22;var Telefono={Iniciar:function(alias)
{var elm=ELM('telefono_'+alias);if(elm==null)return;SetEventListener(elm,'click',Telefono.OnClick);Telefono.VerTelefono[alias]=new objVerTelefono(alias);Telefono.VerTelefono[alias].Iniciar(alias);DISPLAY('nos_has_visto_'+alias,false);DISPLAY('but_ver_telefono_'+alias,true);},OnClick:function(ev)
{StopEvent(ev);var elm=GetEventElement(ev);var alias=RIGHT(elm.id,40);ELM('telefono_'+alias).src="http://www.photoescorts.com/es/es/anunciado-telefono-click-"+alias;DISPLAY('but_ver_telefono_'+alias,false);DISPLAY('nos_has_visto_'+alias,true);},VerTelefono:[]};var objVerTelefono=function(alias)
{this.id_element='but_ver_telefono_'+alias;this.id_grupo='';this.id_css='but';this.Iniciar=function(){Button.Iniciar(Telefono.VerTelefono[alias]);};this.OnHover=function(ev){Button.OnHover(ev,Telefono.VerTelefono[alias]);};this.OnOut=function(ev){Button.OnOut(ev,Telefono.VerTelefono[alias]);};this.OnClick=function(ev)
{Telefono.OnClick(ev);}}
Espacio.espacios[3]=[];Espacio.anuncios[3]=[];switch('barcelona')
{case'madrid':Espacio.espacios[3][Espacio.espacios[3].length]={'id_subespacio':'madrid'};Espacio.anuncios[3]['madrid']=[];Espacio.anuncios[3]['madrid'][1]={};Espacio.anuncios[3]['madrid'][2]={};Espacio.Iniciar();Telefono.Iniciar('c88b1e1a680311fcb8059604861494ecca6e383c');marqueeInit
({uniqueid:'carrusel_c88b1e1a680311fcb8059604861494ecca6e383c',style:{'top':'-2px'},inc:5,mouse:'cursor driven',moveatleast:2,neutral:150,savedirection:true});Telefono.Iniciar('111db87b989acab56bf6e6d97355d2d6bf8eeef3');marqueeInit
({uniqueid:'carrusel_111db87b989acab56bf6e6d97355d2d6bf8eeef3',style:{'top':'-2px'},inc:5,mouse:'cursor driven',moveatleast:2,neutral:150,savedirection:true});break;case'barcelona':case'barcelone':Espacio.espacios[3][Espacio.espacios[3].length]={'id_subespacio':'barcelona'};Espacio.anuncios[3]['barcelona']=[];Espacio.anuncios[3]['barcelona'][1]={};Espacio.anuncios[3]['barcelona'][2]={};Espacio.Iniciar();Telefono.Iniciar('31f0fdf036ebbef9739c95ec4d6c4cd0f46bf853');marqueeInit
({uniqueid:'carrusel_31f0fdf036ebbef9739c95ec4d6c4cd0f46bf853',style:{'top':'-2px'},inc:5,mouse:'cursor driven',moveatleast:2,neutral:150,savedirection:true});Telefono.Iniciar('d3f5ec598334a2eb045d46b77da853f9572c29ef');marqueeInit
({uniqueid:'carrusel_d3f5ec598334a2eb045d46b77da853f9572c29ef',style:{'top':'-2px'},inc:5,mouse:'cursor driven',moveatleast:2,neutral:150,savedirection:true});break;case'valencia':case'valence':Espacio.espacios[3][Espacio.espacios[3].length]={'id_subespacio':'valencia'};Espacio.anuncios[3]['valencia']=[];Espacio.anuncios[3]['valencia'][1]={};Espacio.Iniciar();Telefono.Iniciar('25f6a4ae505a23fa19d47f20201a3c59ffe9fa3f');marqueeInit
({uniqueid:'carrusel_25f6a4ae505a23fa19d47f20201a3c59ffe9fa3f',style:{'top':'-2px'},inc:5,mouse:'cursor driven',moveatleast:2,neutral:150,savedirection:true});break;case'pamplona':case'pampelune':Espacio.espacios[3][Espacio.espacios[3].length]={'id_subespacio':'pamplona'};Espacio.anuncios[3]['pamplona']=[];Espacio.anuncios[3]['pamplona'][1]={};Espacio.Iniciar();Telefono.Iniciar('cfd31d369acc1b222b448565386dc1d6fbac89dd');marqueeInit
({uniqueid:'carrusel_cfd31d369acc1b222b448565386dc1d6fbac89dd',style:{'top':'-2px'},inc:5,mouse:'cursor driven',moveatleast:2,neutral:150,savedirection:true});break;}document.getElementById('top').innerHTML+='<div class="addthis_toolbox addthis_default_style" style="margin-top:1px">'+'<a class="addthis_button_email"   addthis:url="http%3A%2F%2Fwww.photoescorts.com%2Fes%2Fes%2Fapartamentos-y-habitaciones-por-horas-barcelona" style="float:right"></a>'+'<a class="addthis_button_twitter"  addthis:url="http%3A%2F%2Fwww.photoescorts.com%2Fes%2Fes%2Fapartamentos-y-habitaciones-por-horas-barcelona" style="float:right"></a>'+'<a class="addthis_button_facebook" addthis:url="http%3A%2F%2Fwww.photoescorts.com%2Fes%2Fes%2Fapartamentos-y-habitaciones-por-horas-barcelona" style="float:right"></a>'+
('pees'=='pabr'?'<a class="addthis_button_orkut" addthis:url="http%3A%2F%2Fwww.photoescorts.com%2Fes%2Fes%2Fapartamentos-y-habitaciones-por-horas-barcelona" style="float:right"></a>':'')+'<div class="gplus" style="margin-right:10px;width:70px;position:relative;top:-2px;float:right"><g:plusone size="medium" href="http%3A%2F%2Fwww.photoescorts.com%2Fes%2Fes%2Fapartamentos-y-habitaciones-por-horas-barcelona"></g:plusone></div>'+'</div>';var gplus=document.createElement('script');gplus.type='text/javascript';gplus.async=true;gplus.src='https://apis.google.com/js/plusone.js';try{gplus.innerHTML="{lang: 'es'}";}catch(err){}
var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(gplus,s);var addthis=document.createElement('script');addthis.type='text/javascript';addthis.async=true;addthis.src='http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e0e98a23de06cd4';s=document.getElementsByTagName('script')[1];s.parentNode.insertBefore(addthis,s);image_small=new Array();image_big=new Array();GoTo=new Array();if(location.pathname.indexOf('/escorts-madrid')!=-1)
{image_small[0]='http://gfx-1.photoescorts.com/pe/gfx/luxtal_mad_small.swf';image_small[1]='http://gfx-1.photoescorts.com/pe/gfx/diosas_escorts_small.swf';image_big[0]='http://gfx-1.photoescorts.com/pe/gfx/luxtal_mad_big.jpg';image_big[1]='http://gfx-1.photoescorts.com/pe/gfx/diosas_escorts_big_v2.jpg';GoTo[0]='http://www.photoescorts.com/es/es/banner-5052';GoTo[1]='http://www.photoescorts.com/es/es/banner-7148';}
else if((location.pathname.indexOf('/escorts-barcelona')!=-1)||(location.pathname.indexOf('/escorts-barcelone')!=-1))
{image_small[0]='http://gfx-1.photoescorts.com/pe/gfx/luxtal_bcn_small.swf';image_big[0]='http://gfx-1.photoescorts.com/pe/gfx/luxtal_bcn_big.jpg';GoTo[0]='http://www.photoescorts.com/es/es/banner-7408';}
else
{image_small[0]='http://gfx-1.photoescorts.com/pe/gfx/donsexshop_small.swf';image_small[1]='http://gfx-1.photoescorts.com/pe/gfx/dsses_small.swf';image_big[0]='http://gfx-1.photoescorts.com/pe/es/gfx/donsexshop_big.gif';image_big[1]='http://gfx-1.photoescorts.com/pe/es/gfx/dsses_big.gif';GoTo[0]='http://www.donsexshop.com/sexshop.asp';GoTo[1]='http://www.donsexshop.es';}
var anzahl=image_small.length;var nr=Math.round((anzahl-1)*Math.random());var Link=GoTo[nr];var Image1=image_small[nr];var Image2=image_big[nr];var esel=new Object();esel.ad_url=escape(Link);esel.small_path='http://gfx-1.photoescorts.com/pe/gfx/cornersmall.swf';esel.small_image=escape(Image1);esel.small_width='100';esel.small_height='100';esel.small_params='ico='+esel.small_image;esel.big_path='http://gfx-1.photoescorts.com/pe/gfx/cornerbig.swf';esel.big_image=escape(Image2);esel.big_width='650';esel.big_height='650';esel.big_params='big='+esel.big_image+'&ad_url='+esel.ad_url;function sizeup987()
{document.getElementById('eselcornerBig').style.top=0;document.getElementById('eselcornerSmall').style.top='-1000px';}
function sizedown987()
{document.getElementById("eselcornerSmall").style.top=0;document.getElementById("eselcornerBig").style.top="-1000px";}
esel.putObjects=function()
{document.write('<div id="eselcornerSmall" style="position:fixed;width:'+esel.small_width+'px;height:'+esel.small_height+'px;z-index:1;right:0px;top:0px;">');document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');document.write(' id="eselSmallcornerObject" width="'+esel.small_width+'" height="'+esel.small_height+'">');document.write(' <param name="allowScriptAccess" value="always"/> ');document.write(' <param name="movie" value="'+esel.small_path+'?'+esel.small_params+'"/>');document.write(' <param name="wmode" value="transparent" />');document.write(' <param name="quality" value="high" /> ');document.write(' <param name="FlashVars" value="'+esel.small_params+'"/>');document.write('<embed src="'+esel.small_path+'?'+esel.small_params+'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+esel.small_width+'" height="'+esel.small_height+'" flashvars="'+esel.small_params+'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');document.write('</object>');document.write('</div>');document.write('<div id="eselcornerBig" style="position:fixed;width:'+esel.big_width+'px;height:'+esel.big_height+'px;z-index:9999;right:0;top:0px;">');document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');document.write(' id="eselcornerBigObject" width="'+esel.big_width+'" height="'+esel.big_height+'" style="float:right">');document.write(' <param name="allowScriptAccess" value="always"/> ');document.write(' <param name="movie" value="'+esel.big_path+'?'+esel.big_params+'"/>');document.write(' <param name="wmode" value="transparent"/>');document.write(' <param name="quality" value="high" /> ');document.write(' <param name="FlashVars" value="'+esel.big_params+'"/>');document.write('<embed src="'+esel.big_path+'?'+esel.big_params+'" id="eselcornerBigEmbed" name="eselcornerBigObject" wmode="transparent" quality="high" width="'+esel.big_width+'" height="'+esel.big_height+'" flashvars="'+esel.big_params+'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');document.write('</object>');document.write('</div>');setTimeout('document.getElementById("eselcornerBig").style.top = "-1000px";',1000);}
esel.putObjects();var Footer=[];Footer.push('');Footer.push('<div id="footer_webs">'+'   <div class="titulo_sec">WEBS DEL GRUPO :</div>'+'   <ul class="lista"><li><img id="fw_pees" src="http://gfx-1.photoescorts.com/pe/es/gfx/pees.gif" alt="PhotoEscorts.com" /></li><li><img id="fw_tpes" src="http://gfx-1.photoescorts.com/pe/es/gfx/tpes.gif" alt="TravestisPro.com" /></li><li><img id="fw_dss" src="http://gfx-1.photoescorts.com/pe/es/gfx/dss.gif" alt="DonSexShop.com" /></li><li><img id="fw_pkpe" src="http://gfx-1.photoescorts.com/pe/es/gfx/pkpe.gif" alt="PhotoKinesiologas.com" /></li><li><img id="fw_ppco" src="http://gfx-1.photoescorts.com/pe/es/gfx/ppco.gif" alt="PhotoPrepagos.com" /></li><li><img id="fw_pabr" src="http://gfx-1.photoescorts.com/pe/es/gfx/pabr.gif" alt="PhotoAcompanhantes.com" /></li></ul>'+'</div>');Footer.push('<ul id="footer_toolbar"><li><a class="sociedad" href="http://www.photoescorts.com/es/es/contactar" rel="nofollow"><span class="copyright">&copy;</span>&nbsp;Photo Interactive Services, S.L.</a></li><li><a class="contactar" href="http://www.photoescorts.com/es/es/contactar" rel="nofollow">Contactar</a></li><li><a class="privacidad" href="http://www.photoescorts.com/es/es/politica-privacidad" rel="nofollow">Política de Privacidad</a></li><li><a class="nota_legal" href="http://www.photoescorts.com/es/es/nota-legal" rel="nofollow">Nota Legal</a></li></ul>');ELM('footer').innerHTML=Footer.join('\n');if(ELM('content'))typeof(ELM('content').parentNode.clientHeight);
