function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function CB_WriteFooter() {
	var footer = "";	
	footer += "<table class=\"table-footer\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">";
	footer += "<tr>";
	footer += "<td style=\"width:95px\">&copy; 2005 Publigu&#237;as</td>";
	footer += "<td style=\"width:13px\" align=\"center\">|</td>";
	footer += "<td style=\"width:60px\"><a href=\"/corporative/avisoLegal.html\" class=\"footer\" target=\"_blank\">Aviso Legal</a></td>";
	footer += "<td style=\"width:13px\" align=\"center\">|</td>";
	footer += "<td style=\"width:96px\">";
	footer += "<div id=\"clientes\" style=\"position:absolute; width:150px; height:54px; z-index:1; margin-left:-3px; visibility: hidden;\" onMouseOver=\"MM_showHideLayers('clientes','','show')\" onMouseOut=\"MM_showHideLayers('clientes','','hide')\">";
	footer += "<table style=\"width:100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\"  class=table-footer>";
	footer += "<tr>";
	footer += "<td scope=\"row\">";
	footer += "<table style=\"width:100%\"  border=\"0\" cellpadding=\"2\" cellspacing=\"0\">";
	footer += "<tr>";
	footer += "<td height=\"8\">";
	footer += "</td>";
	footer += "</tr>";
	footer += "<tr>";
	footer += "<td>";
	footer += "<a href=\"http://www.sacpubliguias.cl\" class=\"footer\" target=\"_blank\">Atenci&#243;n a Clientes</a></td>";
	footer += "</tr>";
	footer += "<tr>";
	footer += "<td>";
	footer += "<a href=\"http://www.amarillas.cl/dbproductos/servicio_cliente/revise_correo.htm\" class=\"footer\" target=\"_blank\">Revisa tu correo</a> </td>";
	footer += "</tr>";
	/*
	footer += "<tr>";
	footer += "<td>";
	footer += "<a href=\"/servicios/admin\" class=\"footer\" target=\"_blank\">Revisar Cotizaciones</a>";
	footer += "</td>";
	footer += "</tr>";
	*/
	footer += "</table>";
	footer += "</td>";
	footer += "</tr>";
	footer += "</table>";
	footer += "</div>";
	footer += "<a href=\"#\" class=\"footer\" onMouseOver=\"MM_showHideLayers('clientes','','show')\" onMouseOut=\"MM_showHideLayers('clientes','','hide')\">Servicio a Clientes</a>";
	footer += "</td>";
	footer += "<td style=\"width:13px\" align=\"center\">|</td>";
	footer += "<td style=\"width:64px\">";
	footer += "<a target=\"_blank\" href=\"https://securesac.publiguias.cl/contactoMail.do?servicio=AMARILLAS\" class=\"footer\">Cont&#225;ctanos</a>";
	footer += "</td>";
	footer += "<td style=\"width:13px\" align=\"center\">|</td>";
	footer += "<td style=\"width:63px\">";
	footer += "<div id=\"sitios\" style=\"position:absolute; width:220px; height:54px; z-index: 1; visibility: hidden;\" onMouseOver=\"MM_showHideLayers('sitios','','show')\" onMouseOut=\"MM_showHideLayers('sitios','','hide')\">";
	footer += "<table style=\"width:100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\"  class=table-footer>";
	footer += "<tr>";
	footer += "<td scope=\"row\">";
	footer += "<table style=\"width:100%\"  border=\"0\" cellpadding=\"2\" cellspacing=\"0\">";
	footer += "<tr>";
	footer += "<td height=\"8\">";
	footer += "</td>";
	footer += "</tr>";
        footer += "<tr>";
        footer += "<td>";
        footer += "<a class=\"footer\" href=\"http://www.007depubliguias.cl\" target=\"_blank\">007 de Publigu&#237;as</a>";
        footer += "</td>";
        footer += "</tr>";
        footer += "<tr>";
        footer += "<td>";
        footer += "<a class=\"footer\" href=\"http://www.amarillas.cl/dbproductos/servicios/index.htm\">Servicios de Informaci&#243;n Telef&#243;nica</a>";
        footer += "</td>";
        footer += "</tr>";
	footer += "<tr>";
	footer += "<td>";
	footer += "<a href=\"http://www.websites.cl\" class=\"footer\" target=\"_blank\">websites.cl</a>";
	footer += "</td>";
	footer += "</tr>";
	footer += "<tr>";
	footer += "<td>";
	footer += "<a href=\"/servicios/inscripcion\" class=\"footer\" target=\"_blank\">Inscripci&#243;n Gratuita</a>";
	footer += "</td>";
	footer += "</tr>";
	/*
	footer += "<tr>";
	footer += "<td>";
	footer += "<a href=\"http://yellowbar.amarillas.cl\" class=\"footer\" target=\"_blank\">YellowB@r</a>";
	footer += "</td>";
	footer += "</tr>";
	*/
    footer += "<tr><td>";
    footer += "<a href=\"http://www.amarillas.cl/dbproductos/guias/index.htm\" class=\"footer\" target=\"_self\">Gu&#237;as en el Mundo</a>";
    footer += "</td></tr>";
	footer += "<tr>";
	footer += "<td>";
	footer += "<a href=\"http://blog.publiguias.cl\" class=\"footer\" target=\"_blank\">Blog</a>";
	footer += "</td>";
	footer += "</tr>";
	footer += "</table>";
	footer += "</td>";
	footer += "</tr>";
	footer += "</table>";
	footer += "</div>";
	footer += "<a href=\"#\" class=footer onMouseOver=\"MM_showHideLayers('sitios','','show')\" onMouseOut=\"MM_showHideLayers('sitios','','hide')\">Otros Sitios</a>";
	footer += "</td>";
	//footer += "</td>";
	footer += "<td style=\"width:13px\" align=\"center\">|</td>";
	footer += "<td style=\"width:110px\">";
	footer += "<a href=\"/dbproductos/index.htm\" class=\"footer\">Productos Publigu&#237;as</a>";
	footer += "</td>";
	footer += "<td style=\"width:10px\" align=\"center\">|</td>";
	footer += "<td style=\"width:86px\">";
	footer += "<a href=\"http://www.amarillas.cl/mapadelsitio\" class=\"footer\">Mapa del Sitio</a>";
	footer += "</td>";
	footer += "<td style=\"width:10px\" align=\"center\">|</td>";
	footer += "<td style=\"width:40px\">";
	footer += "<a href=\"http://blog.publiguias.cl\" class=\"footer\" target=\"_blank\">Blog</a>";
	footer += "</td>";
	footer += "</tr>";
	footer += "</table>";
	footer += "<br><br><br><br>";

	document.write(footer);
}
