function mostrar(_1){
document.getElementById(_1).style.visibility="visible";
};
function mostrarel(_2){
document.getElementById(_2).style.position="relative";
document.getElementById(_2).style.visibility="visible";
};
function ocultar(_3){
document.getElementById(_3).style.position="absolute";
document.getElementById(_3).style.visibility="hidden";
};
function activapro(){
var _4=document.getElementById("pro");
if(_4!=null){
rutaiframe="<iframe src='proximosa.asp' frameborder='0' vspace='0' hspace='0' marginwidth='0' marginheight='0' width='600' height='260' scrolling='no'></iframe>";
_4.innerHTML=rutaiframe;
}
};
function cambiarContenedor(_5,_6){
document.getElementById(_5).style.height=_6;
};
function activaprox(){
rutaiframe="<iframe src='proximosa.asp?' frameborder='0' vspace='0' hspace='0' marginwidth='0' marginheight='0' width='200' height='200' scrolling='no'></iframe>";
document.getElementById("prox").innerHTML=rutaiframe;
};
function menu(){
document.write("<ul class='menu'><li class='paes'><a href='http://amarillas.paginasamarillas.es'>P&aacute;ginas Amarillas</a></li><li class='calle'><a href='http://callejero.paginasamarillas.es'>El Callejero</a></li><li class='rest'><a href='http://www.paginasamarillas.es/home_restaurantes.asp'>Gu&iacute;a de Restaurantes</a></li><li class='aloj'><a href='http://www.paginasamarillas.es/home_hoteles.asp'>Gu&iacute;a de Hoteles</a></li><li class='blan'><a href='http://blancas.paginasamarillas.es'>P&aacute;ginas Blancas</a></li></ul>");
};
function desactivapro(){
contenido="";
parent.document.getElementById("pro").style.display="inline";
parent.document.getElementById("pro").innerHTML=contenido;
};
function desactivaprox(){
contenido="<p><a href=\"javascript:activaprox();\">Buscar los <strong>Cercanos a</strong>...</a>";
document.getElementById("prox").innerHTML=contenido;
};
function pie(){
document.write("<div class='pie'><div class='repie'><div class='cierre'><a href='#'>Páginas Amarillas Internacionales</a>  -  <a href='#'>Más contenidos en tu web</a>  -  <a href='http://www.11888.com'>Información 11888</a>  -  <a href='#'>Canal Empleo</a>  -  <a href='#'>Canal Inmobiliario</a> - <a href='#'>Información Legal y Técnica</a>  -  <a href='#'>Condiciones Generales de Contratación</a>  -  <a href='#'>Contáctanos</a>  -  <a href='#'>©2007 Yell Publicidad, S.A.</a>  -  <a href='#'>Mapa web</a></div></div></div>");
};
function bannerright(){
document.write("<p style='text-align:center'><a href='#'><img src='/images/BANNER_RIGHT.gif' /></a><br/><br/><a href='#'><img src='/images/BANNER_RIGHT.gif' /></a></p>");
};
function func(_7){
document.write("<p class='func'><a href='#'>Ver <strong>Web</strong></a> - <a class='tel' href=\"javascript:void(0);\" onClick=\"telefono(this,'"+_7+"');\">Ver tel&eacute;fono</a> - <a href=\"javascript:void(0);\" onClick=\"llamagratis(this,'"+_7+"');\"><img src='images/llama_gratis.gif' alt='Llama GRATIS' align='absmiddle' /></a> - <a href=\"javascript:void(0);\" onClick=\"direccion(this,'"+_7+"');\"><strong>Direcciones / mapa</strong></a> - <a href=\"javascript:void(0);\" onClick=\"sms(this,'"+_7+"');\">Recibir <strong>SMS</strong></a></p><iframe id='"+_7+"' class='iframefunc' frameborder='0'>Cerrar</iframe>");
};
function funcIg(_8){
document.write("<p class='func'><a class='tel' href=\"javascript:void(0);\" onClick=\"telefono(this,'"+_8+"');\">Ver teléfono</a> - <a href=\"javascript:void(0);\" onClick=\"direccion(this,'"+_8+"');\">Ver <strong>mapa</strong></a> - <a href=\"javascript:void(0);\" onClick=\"sms(this,'"+_8+"');\">Recibir <strong>SMS</strong></a></p><iframe id='"+_8+"' class='iframefunc' frameborder='0'>Cerrar</iframe>");
};
function reserva(){
document.write("<p><a href='#' class='tel'>Ver Teléfono</a> <a href='#'><img src='images/llama_gratis.gif' alt='Llama GRATIS' align='absmiddle' /></a> <a href='#'><img src='images/reserva_online.gif' alt='Reserva online' align='absmiddle' /></a></p>");
};
function direcciones(){
document.write("<span class='dir'><a href='#'>Ver mapa</a> - <a href='#'>Otras direcciones</a></span>");
};
function sms(){
document.write("<p class='sms'>Envía <strong>BCDFG</strong> al <strong>7188</strong> y recibirás un SMS con los datos de este resultado. TARIFA: 0,30 € + IVA</p>");
};
function buscadorh(_9){
document.write("<form action='resultados.asp'><fieldset><label class='ancho1'>Actividad/Producto/Marca<input name='actividad' type='text' /></label><label class='ancho1'>Nombre de Empresa<input type='text' name='nombre'/></label><label class='ancho2'>Provincia<select name='provincia'><option value='' selected='selected'>"+_9+"</option><option value=''>Alicante</option><option value=''>etc</option></select></label><label class='ancho2'>Localidad<input type='text' name='localidad'/></label><button><div><div>Encontrar</div></div></button></fieldset></form>");
};
function is_all_ws(_a){
return !(/[^\t\n\r ]/.test(_a.data));
};
function telefono(_b,_c){
document.getElementById(_c).style.height="100px";
document.getElementById(_c).style.visibility="visible";
objetoReferenciado=_b.parentNode.nextSibling;
objetoReferenciado.setAttribute("src","telefono.asp");
};
function direccion(_d,_e){
document.getElementById(_e).style.height="100px";
document.getElementById(_e).style.visibility="visible";
objetoReferenciado=_d.parentNode.nextSibling;
objetoReferenciado.setAttribute("src","direcciones.asp");
};
function llamagratis(_f,_10){
document.getElementById(_10).style.height="100px";
document.getElementById(_10).style.visibility="visible";
objetoReferenciado=_f.parentNode.nextSibling;
objetoReferenciado.setAttribute("src","llamar_gratis.asp");
};
function sms(_11,_12){
document.getElementById(_12).style.height="100px";
document.getElementById(_12).style.visibility="visible";
objetoReferenciado=_11.parentNode.nextSibling;
objetoReferenciado.setAttribute("src","sms.asp");
};
function meCierro(_13){
alert(_13);
_13.style.display="none";
};
function fotohome(){
var _14=Math.floor(Math.random()*8);
var _15="\"url(/images/fotos_home/foto_"+_14+".jpg)\"";
document.getElementById("fotohome").style.background=eval(_15);
};
function bover(_16){
var _17="";
for(i=0;i<_16.length-4;i++){
_17+=_16.charAt(i);
}
_17+="2.gif";
return (_17);
};
function bout(_18){
var _19="";
for(i=0;i<_18.length-5;i++){
_19+=_18.charAt(i);
}
_19+=".gif";
return (_19);
};
function funcionalidad(_1a,_1b,_1c){
var _1d="?";
if(_1b.indexOf("?")!=-1){
_1d="&";
}
var url="/"+_1b+_1d+"capa="+_1a;
var _1f=document.getElementById(_1a);
_1f.setAttribute("src",url);
_1f.style.height=_1c+"px";
_1f.style.visibility="visible";
_1f.style.display="block";
_1f.style.overflow="hidden";
};
function funcionalidad_busqprox(_20,_21,_22,_23){
var _24="?";
var _25=0;
var _26;
if(_21.indexOf("?")!=-1){
_24="&";
}
if(_23=="p"){
_25="418px";
_26="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
}else{
_25="228px";
_26="";
}
var url="/"+_21+_24+"capa="+_20;
var _28=document.getElementById(_20);
_28.setAttribute("src",url);
_28.style.height="100px";
_28.style.visibility="visible";
};
function funcionalidad_el(_29,_2a,_2b){
if(_2b){
contenido="<iframe src=\"/"+_2a+"&capa="+_29+"\" frameborder=\"0\" vspace=\"0\" hspace=\"0\" marginwidth=\"0\" marginheight=\"0\" width=\"100%\" height=\""+_2b+"\" scrolling=\"no\"></iframe>";
}else{
contenido="<iframe src=\"/"+_2a+"&capa="+_29+"\" frameborder=\"0\" vspace=\"0\" hspace=\"0\" marginwidth=\"0\" marginheight=\"0\" width=\"533\" height=\"145\" scrolling=\"no\"></iframe>";
}
document.getElementById(_29).innerHTML=contenido;
};
function funcionalidad_ig(_2c,_2d){
contenido="<iframe src='"+_2d+"&capa="+_2c+"' class='iframefunc' height='170' frameborder='0'>Cerrar</iframe>";
document.getElementById(_2c).innerHTML=contenido;
};
function off(idd){
document.getElementById(idd).style.display="inline";
document.getElementById(idd).innerHTML="";
};
function ocultarcapa(idd){
document.getElementById(idd).style.display="none";
};
function ocultarIframe(_30){
var _31=parent.document.getElementById(_30);
_31.style.height="0px";
_31.style.display="none";
_31.setAttribute("src","");
};
function calendario(_32){
document.getElementById(_32).style.visibility="visible";
};
function imgErrorVideo(_33,_34){
_33.src=_34;
return false;
};
try{
$(document).ready(function(){
$("#ultimas").click(function(){
$("#ultimos").show();
$("#buscador form fieldset select").hide();
});
$("#cerrarultimas").click(function(){
$("#ultimos").hide();
$("#buscador form fieldset select").show();
});
$("#papelera").click(function(){
$("#ultimos").hide();
$("#buscador form fieldset select").show();
});
});
}
catch(e){
}
function ColocarLista(){
if(lateral.izquierda&&lateral.derecha){
document.getElementById("resul").className="resul sibannersilateral";
}else{
if(lateral.izquierda&&!lateral.derecha){
document.getElementById("resul").className="resul nobannersilateral";
}else{
if(!lateral.izquierda&&lateral.derecha){
document.getElementById("resul").className="resul sibannernolateral";
}else{
if(!lateral.izquierda&&!lateral.derecha){
document.getElementById("resul").className="resul nobannernolateral";
}
}
}
}
};
