var m_strClass_Code, m_strClass_Name, m_strCity_Code, m_strCity_Name, m_strSearch_data, m_strNew_Page = 0, m_strLanguage_Code = "es", m_strSearchType = "neg", m_strSearchAction = "", m_objMapCoordenates = [], obj_Map_div = document.getElementById("map_canvas") ? document.getElementById("map_canvas") : null, obj_Map_Base = null, gdir, m_strBgColor = "", mblnIndicadorInicio = !1, mstrDefFont = "10pt", m_Search_Seccions = "getListingsData,getListingsData,sendFriend,SaveClickMap,SaveStatistics,SaveClickSection,SaveClickTelefono,SaveClickNewModel".split(","), g_objXmlHttp =
null, gmarkers = [], customers = [], geocoder, l_strModule, viaqstr = !1, initlat = 18.875103, initlong = -70.120239, findneg = !0, Nombresitio, txt = "", markersPage = [], isMozilla = !1, isPostBack = !0, levelMap = "http://www.paginasamarillas.com.do/", letras = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(","), g_objXmlHttp = window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"); function trim(a) { try { return ("" + a).replace(/^\s*([\s\S]*\S+)\s*$|^\s*$/, "$1") } catch (b) { } }
function replaceAll(a, b, c) { try { for (var d = new String, d = a; d.indexOf(b) > -1; ) d = d.replace(b, c); return d } catch (e) { return "" } } function PagesSincronizer(a, b) { PagesSincronizerGeneral(a, b, "") }
function PagesSincronizerGeneral(a, b) {
    try {
        if (m_Search_Seccions[a]) {
            l_strModule = ""; if (!isPostBack) if (l_strModule = queryStringValue("sid"), isPostBack = !0, l_strModule != "null" && l_strModule != "") viaqstr = !0; else return; g_objXmlHttp.open("POST", "http://www.paginasamarillas.com.do/ajaxServices/paelAjaxServer.asmx/" + m_Search_Seccions[a], !1); g_objXmlHttp.setRequestHeader("Content-Type", "Application/x-www-form-urlencoded; charset=UTF-8"); var c = ""; m_Search_Seccions[a] == "getListingsData" ? (c = "p_strCurrent_SID=" + encodeURIComponent(l_strModule),
c += "&p_strSearch_Criteria=" + m_strSearch_data, c += "&p_strClass_Code=" + m_strClass_Code, c += "&p_strClass_Name=" + m_strClass_Name, c += "&p_strCity_Code=" + m_strCity_Code, c += "&p_strCity_Name=" + m_strCity_Name, c += "&p_strNew_Page=" + m_strNew_Page, c += "&p_strSeachType=" + m_strSearchType, c += "&p_strSeachAction=" + m_strSearchAction) : c = b; g_objXmlHttp.send(c); if (m_Search_Seccions[a] == "getListingsData") {
                var d = getElementDHTML("ui_obj_genral_division"), e = getXMLDocument(""); isMozilla ? e = g_objXmlHttp.responseXML : e.loadXML(g_objXmlHttp.responseText);
                getXMLDocument("http://www.paginasamarillas.com.do/Data/maps/adGPSStyle.xsl"); d.visible = !0; var f; f = isMozilla ? e.getElementsByTagName("newDataTable") : e.documentElement.selectNodes("//NewDataSet/newDataTable"); prepareVariables(f); return ""
            } 
        } 
    } catch (g) { alert(g + "; sincroniza...") } 
}
function queryStringValue(a) { var b = new String, c = new String, d = document.location.href; if (d.indexOf("?") == -1) return "null"; d = d.split("?"); d = d[1].split("&"); for (q = 0; q < d.length; q++) if (c = d[q].split("="), b = c[0].toLowerCase(), c = c[1], a.toLowerCase() == b) return c }
function setGeneralData(a, b, c, d, e, f, g, h, k) {
    try {
        return m_strSearch_data = a == "" ? "" : a, m_strClass_Code = b == "" ? getElementValue("__class_code") : b, m_strClass_Name = c == "" ? getElementValue("__class_name") : c, m_strCity_Code = d == "" ? getElementValue("__class_code") : d, m_strCity_Name = e == "" ? getElementValue("__class_name") : e, m_strNew_Page = f == "" ? getElementValue("__class_name") : f, m_strLanguage_Code = k == "" ? getElementValue("__lang_code") : k, m_strSearchType = g == "" ? getElementValue("__search_type") : g, m_strSearchAction = h == "" ? getElementValue("__search_action") :
h, PagesSincronizerGeneral(1, null, levelMap)
    } catch (l) { alert(l.description) } return ""
} function LoadDataByName(a, b) { if (a == "Clasificado_code") return setGeneralData("", b, "", "", "", "", "", "", ""); else if (a == "City_code") return setGeneralData("", "", "", b, "", "", "", "", ""); return "" }
function maxWindow() { window.moveTo(0, 0); if (document.all) top.window.resizeTo(screen.availWidth, screen.availHeight); else if (document.layers || document.getElementById) if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) top.window.outerHeight = screen.availHeight, top.window.outerWidth = screen.availWidth } function getSelectName(a) { var b = document.all.tags("SELECT"), c = new String, d = ""; for (i = 0; i < b.length; i++) if (c = b(i).name, a + "_" == c.substr(0, 4)) { d = c; break } return d }
function removeAll(a, b) { try { for (i = a.length - 1; i > b; i--) a.remove(i) } catch (c) { alert("0000111" + c.description) } }
function PagesSincronizer2() {
    try {
        var a = new ActiveXObject("Microsoft.XMLHTTP"), b = new ActiveXObject("Microsoft.XMLDOM"), c = ""; strModule = ""; if (getElementDHTML("__UserIdentify") != null) c = getElementDHTML("__UserIdentify").value; if (getElementDHTML("__ActualModule") != null) strModule = getElementDHTML("__ActualModule").value; if (!(strModule == "" || c == "")) if (b.async = !1, a.open("POST", "BusinessRule.asmx/getNewDocumentInfo", !1), a.setRequestHeader("Content-Type", "Application/x-www-form-urlencoded"), a.send("pstrType=__ONLYNEW&pstrModule=" +
strModule + "&pstrUserID=" + c), b.loadXML(a.responseText), !(b == null || b.documentElement == null)) if (objNodes = b.documentElement.selectNodes("/string"), objNodes != null && objNodes.length > 0 && objNodes.item(0) != null && objNodes.item(0).text != "") {
            window.open("blankpage.htm", "_scsWindow001", "titlebar=no,fullscreen=no,height=0,width=0,status=no,toolbar=no,menubar=no,location=no,top=1500,left=1500,scrollbars=no,resizable=false", !1); var d = window.open("blankpage.htm", "_scsWindow001", "titlebar=no,fullscreen=yes,height=10,width=10,status=no,toolbar=no,menubar=no,location=no,top=1000,left=1000,scrollbars=no,resizable=no",
!1); moveWindowSpecial(d); d.active = !0; moveWindowSpecial(d); d.active = !0; var e = d.document.all.tags("body"); if (e != null && e(0) != null) e(0).innerHTML = objNodes.item(0).text
        } 
    } catch (f) { alert("Problemas de sincronizacion") } 
} function moveWindowSpecial(a) { try { a.moveTo(screen.availWidth, screen.availHeight); for (i = 0; i < 200; i++) a.resizeTo(i, i), a.moveTo(screen.availWidth - (i + 200), screen.availHeight - (i + 200)) } catch (b) { } }
function visibleObject(a, b, c) { try { var d = "hidden"; c.checked && (d = "visible"); var e = document.all.tags(a), f = "", g = "", h = new String, k = !1, h = b, l = h.length; for (i = 0; i < e.length; i++) if (f = e(i).name, g = e(i).id, k = (k = f != null && f.substr(0, l) == h) || g != null && g.substr(0, l) == h) e(i).style.visibility = d; a == "input" && visibleObject("P", b, c) } catch (j) { } } function changeOrder(a, b, c) { try { var d = getInputValues(""); d += "&__orderColumn=" + a; d += "&__orderDirection=" + b; window.navigate(c + "?" + d) } catch (e) { } }
function getInputValues(a) { try { var b = null; document.all.tags("input"); var c = ["INPUT", "SELECT"], d = ""; new String(a); for (var a = "", e = 0; e < 2; e++) for (var b = document.all.tags(c[e]), f = 0; f < b.length; f++) b(f).value != "" && (d += a + b(f).name + "=" + b(f).value), a = "&"; return d } catch (g) { } }
function addItem(a, b) { try { objSelect = getElementDHTML(a).options; var c; if (getElementDHTML(b).value != "") c = document.createElement("OPTION"), objSelect.add(c), c.innerText = getElementDHTML(b).value, c.value = getElementDHTML(b).value, c.selected = !0, getElementDHTML(b).value = "" } catch (d) { } } function getElementDHTML(a) { var b; document.all ? b = document.all[a] : document.layers ? b = document.layers[a] : document.getElementById && (b = document.getElementById(a)); return b }
function getElementValue(a) { return (a = getElementDHTML(a)) ? a.value : "" } function getXMLDocument() { var a; try { window.ActiveXObject ? a = new ActiveXObject("Microsoft.XMLDOM") : document.implementation && document.implementation.createDocument ? (a = document.implementation.createDocument("", "", null), isMozilla = !0) : alert("Your browser cannot handle this script"), a.async = !1 } catch (b) { } return a }
function displayResult() { xml = loadXMLDoc("cdcatalog.xml"); xsl = loadXMLDoc("cdcatalog.xsl"); window.ActiveXObject ? (ex = xml.transformNode(xsl), document.getElementById("example").innerHTML = ex) : document.implementation && document.implementation.createDocument && (xsltProcessor = new XSLTProcessor, xsltProcessor.importStylesheet(xsl), resultDocument = xsltProcessor.transformToFragment(xml, document), document.getElementById("example").appendChild(resultDocument)) }
function getNodeValue(a, b) { try { var c; isMozilla ? (c = a.getElementsByTagName(b), c = c[0]) : c = a.selectSingleNode(b); return c.firstChild != null ? c.firstChild.nodeValue : "" } catch (d) { return "" } } function setNodeValue(a, b, c) { try { if (a.selectSingleNode(b).firstChild != null) a.selectSingleNode(b).firstChild.nodeValue = c; return !0 } catch (d) { return !1 } }
function prepareVariables(a) {
    if (a != null) {
        var b = a.length; isMozilla && (b /= 2); for (i = 0; i < b; i++) m_objMapCoordenates[i] = [], m_objMapCoordenates[i][0] = getNodeValue(a[i], "SUBSCR_ID"), m_objMapCoordenates[i][1] = getNodeValue(a[i], "LATITUD"), m_objMapCoordenates[i][2] = getNodeValue(a[i], "LONGITUD"), m_objMapCoordenates[i][3] = getNodeValue(a[i], "NOMBRE"), m_objMapCoordenates[i][4] = getNodeValue(a[i], "M"), m_objMapCoordenates[i][5] = getNodeValue(a[i], "CLASIF_ID"), m_objMapCoordenates[i][6] = getNodeValue(a[i], "CLASIFICADO"),
m_objMapCoordenates[i][7] = getNodeValue(a[i], "DIRECCION"), m_objMapCoordenates[i][8] = getNodeValue(a[i], "CIUDAD"), m_objMapCoordenates[i][9] = getNodeValue(a[i], "CITYNAME"), m_objMapCoordenates[i][10] = getNodeValue(a[i], "TELCODE"), m_objMapCoordenates[i][11] = getNodeValue(a[i], "TELEFONO"), m_objMapCoordenates[i][12] = getNodeValue(a[i], "EMAIL"), m_objMapCoordenates[i][13] = getNodeValue(a[i], "WEB"), m_objMapCoordenates[i][14] = getNodeValue(a[i], "ORDEN"), m_objMapCoordenates[i][15] = getNodeValue(a[i], "IMAP"), m_objMapCoordenates[i][16] =
getNodeValue(a[i], "FOT1"), m_objMapCoordenates[i][17] = getNodeValue(a[i], "FOT2"), m_objMapCoordenates[i][18] = getNodeValue(a[i], "FOT3"), m_objMapCoordenates[i][19] = getNodeValue(a[i], "MMAP"), m_objMapCoordenates[i][20] = getNodeValue(a[i], "mapa")
    } 
} function LoadLocalData(a, b) { obj_Map_Base != null && (removePoint(), LoadDataByName(a, b), LoadBounds(), m_objMapCoordenates && m_objMapCoordenates.length > 0 && obj_Map_Base.setCenter(new google.maps.LatLng(m_objMapCoordenates[0][1], m_objMapCoordenates[0][2]), 16)) }
function LoadMaps() {
    try {
        findneg && setGeneralData("", "", "", "", "", "", "", "", ""); obj_Map_Base || (obj_Map_Base = new google.maps.Map2(document.getElementById("map_canvas"))); var a = new google.maps.LatLng(initlat, initlong), b = 8; m_objMapCoordenates != null && m_objMapCoordenates.length > 0 && (a = new google.maps.LatLng(m_objMapCoordenates[0][1], m_objMapCoordenates[0][2]), b = 16); if (!findneg) {
            b = 16; removePoint(); document.getElementById("listapuntos").innerHTML = ""; var c = new GLatLng(initlat, initlong); obj_Map_Base.addOverlay(createMarker(c,
i))
        } obj_Map_Base.setCenter(a, b); obj_Map_Base.addControl(new GLargeMapControl3D); obj_Map_Base.addControl(new GScaleControl); obj_Map_Base.setUIToDefault(); LoadBounds(); viaqstr && l_strModule != "null" && l_strModule != "" && (GEvent.trigger(gmarkers[0], "click"), viaqstr = !1)
    } catch (d) { alert(d.Description) } 
}
function LoadMapsNewLookAndFeel() {
    try {
        findneg && setGeneralData("", "", "", "", "", "", "", "", ""); obj_Map_Base || (obj_Map_Base = new google.maps.Map2(document.getElementById("mapadiv"))); var a = new google.maps.LatLng(initlat, initlong), b = 8; m_objMapCoordenates != null && m_objMapCoordenates.length > 0 && (a = new google.maps.LatLng(m_objMapCoordenates[0][1], m_objMapCoordenates[0][2]), b = 16); if (!findneg) {
            b = 16; removePoint(); document.getElementById("listapuntos").innerHTML = ""; var c = new GLatLng(initlat, initlong); obj_Map_Base.addOverlay(createMarker(c,
i))
        } obj_Map_Base.setCenter(a, b); obj_Map_Base.addControl(new GLargeMapControl3D); obj_Map_Base.addControl(new GScaleControl); obj_Map_Base.setUIToDefault(); LoadBounds(); viaqstr && l_strModule != "null" && l_strModule != "" && (GEvent.trigger(gmarkers[0], "click"), viaqstr = !1)
    } catch (d) { } 
} function LoadMaps2(a, b, c) { initlat = a; initlong = b; findneg = !1; m_objMapCoordenates = null; Nombresitio = c; LoadMaps(); findneg = !0 }
function googleFind() {
    var a = document.getElementById("ctl00_MainContent_SearchBoxId_searchTypeHidden").value; if (a == "calle") { var b = document.getElementById("ctl00_MainContent_SearchBoxId_busquedaTxt").value; try { b != null && b != "" && (geocoder = new GClientGeocoder, geocoder.getLocations(b + " Republica Dominicana", addToMap)) } catch (c) { } } else if (a == "categoria") b = document.getElementById("cbxClasificados").value, LoadLocalData("Clasificado_code", "'" + b + "'"), SaveClick("", "click_class_mapa", "'" + b + "'"); else if (a == "interes") {
        if (b =
document.getElementById("cbxSitios"), b != null) { var d = b.options[b.selectedIndex].text, a = [], a = b[b.selectedIndex].value.split(","); LoadMaps2(a[0], a[1], "'" + d + "'") } 
    } else if (a == "entidadesFinancieras") { document.getElementById("listapuntos").innerHTML = ""; a = document.getElementById("ciudadesEntidadesFinancieras"); document.getElementById("sector"); var e = document.getElementById("EntidadesFinancieras"); if (a != null) b = a[a.selectedIndex].value; if (e != null) d = e[e.selectedIndex].value; try { getEntidades(d, b, "") } catch (f) { alert(f) } } 
}
function addToMap(a) {
    if (obj_Map_Base != null) if (txt = document.getElementById("listapuntos").innerHTML = "", document.getElementById("listapuntostd").style.height = "1px", removePoint(), a.Placemark) {
        for (var b = 0, c = 0; c < a.Placemark.length; c++) {
            place = a.Placemark[c]; var d = place.address; if (d.toUpperCase().indexOf("BANCO POPULAR") == -1 && d.toUpperCase().indexOf("LA SIRENA") == -1 && d.toUpperCase().indexOf("CAROL MORGAN") == -1) {
                try {
                    a.Placemark[c].AddressDetails.Country.AdministrativeArea.Locality.DependentLocality.AddressLine &&
(addres = a.Placemark[c].AddressDetails.Country.AdministrativeArea.Locality.DependentLocality.AddressLine[0])
                } catch (e) { } d = d.indexOf(",", d.indexOf(",") + 1) != -1 ? d.substring(0, d.indexOf(",", d.indexOf(",") + 1)) : d.substring(0, d.indexOf(",")); txt += fillTable(b, '<a class="negro11menu" style="text-decoration:underline;color:Black;" href="javascript:obj_Map_Base.setCenter(new GLatLng(' + place.Point.coordinates[1].toString() + ", " + place.Point.coordinates[0].toString() + '), 18);">' + d + "</a>", 5); b++; point = new GLatLng(place.Point.coordinates[1],
place.Point.coordinates[0]); obj_Map_Base.setCenter(point, 18)
            } 
        } b == 0 ? document.getElementById("listapuntos").innerHTML = '<a class="rojo10mapa">La b&uacute;squeda no produjo resultados</a>' : document.getElementById("listapuntos").innerHTML = openDiv("Resultados Encontrados", b) + txt + "</table></div>"
    } else document.getElementById("listapuntos").innerHTML = '<a class="rojo10mapa">La b&uacute;squeda no produjo resultados</a>'
}
function removePoint() { try { m_objMapCoordenates = [], obj_Map_Base.clearOverlays() } catch (a) { alert(a.description) } } function fillTable(a, b, c) { var d = ""; c--; a == 0 ? d += '<tr><td style="vertical-align:top;">' + b + "</td>" : a % c == 0 ? d += '<td style="vertical-align:top;">' + b + "</td></tr>" : a % c != 0 && (d += '<td style="vertical-align:top;">' + b + "</td>"); return d }
function createMarker(a, b) {
    try {
        if (!(letras.length <= b)) {
            var c = new GIcon(G_DEFAULT_ICON); c.image = findneg ? "http://www.paginasamarillas.com.do/images/NuevoLookAndFeel/punteros-grises/Letras/" + letras[b] + ".png" : "http://www.paginasamarillas.com.do/images/NuevoLookAndFeel/punteros-grises/punteros-mapa.png"; c.iconSize = new GSize(32, 31); c.shadowSize = new GSize(0, 0); markerOptions = b < 0 ? { icon: c, labelText: "A", labelOffset: new GSize(-6, -10), title: Nombresitio} : { icon: c, labelText: "A", labelOffset: new GSize(-6, -10), title: m_objMapCoordenates[b][3] };
            var d = new GMarker(a, markerOptions); d.value = b; var e, f = findneg; GEvent.addListener(d, "click", function() {
                if (f) {
                    var c = !1, d = "<tr><td colspan='2' align='center' height='0px'>", g = ""; m_objMapCoordenates[b][16] != null && m_objMapCoordenates[b][16] != "" && (c = !0, d += "<img src='http://ads.amarillas.com.do/FOT1/" + m_objMapCoordenates[b][16] + "s.jpg' border='0' onmouseover=\"this.style.cursor='pointer';\" onmouseout=\"this.style.cursor='pointer';\" onclick=\"javascript:viewFotMap('1','" + m_objMapCoordenates[b][16] + "')\" />");
                    if (m_objMapCoordenates[b][17] != null && m_objMapCoordenates[b][17] != "") { var c = !0, j = "<img src='http://ads.amarillas.com.do/FOT2/" + m_objMapCoordenates[b][17] + "-1s.jpg' border='0' onmouseover=\"this.style.cursor='pointer';\" onmouseout=\"this.style.cursor='pointer';\" onclick=\"javascript:viewFotMap('2','" + m_objMapCoordenates[b][17] + "-1')\"/>"; d += j + "&nbsp;" + replaceAll(j, "-1", "-2") } m_objMapCoordenates[b][18] != null && m_objMapCoordenates[b][18] != "" && (c = !0, j = "<img src='http://ads.amarillas.com.do/FOT3/" + m_objMapCoordenates[b][18] +
"-1s.jpg' border='0' onmouseover=\"this.style.cursor='pointer';\" onmouseout=\"this.style.cursor='pointer';\" onclick=\"javascript:viewFotMap('3','" + m_objMapCoordenates[b][18] + "-1')\"/>", d += j + "&nbsp;" + replaceAll(j, "-1", "-2") + "&nbsp;" + replaceAll(j, "-1", "-3")); m_objMapCoordenates[b][19] != null && m_objMapCoordenates[b][19] != "" && (c = !0, g = "<a href='http://" + m_objMapCoordenates[b][13] + "' target='_blank'><img id=img0" + b + " src='http://ads.amarillas.com.do/MMAP/" + m_objMapCoordenates[b][19] + ".gif' border=0></a>");
                    m_objMapCoordenates[b][15] != null && m_objMapCoordenates[b][15] != "" && (c = !0, d += "<tr><td colspan='2'><hr style='width:410px; border-style:solid; border-color:Black; border-width:1px;' />" + m_objMapCoordenates[b][15] + "</td></tr>\n"); d += "</td></tr>"; e = "<table width='" + (c ? "350" : "0") + "' height='0' border=0 class=negro11 ><tr><td colspan=2><strong>" + m_objMapCoordenates[b][3] + "</strong>"; e += " ( Class:" + m_objMapCoordenates[b][6] + ")</td></tr>\n"; e += "<tr><td>" + m_objMapCoordenates[b][10] + "-" + m_objMapCoordenates[b][11] +
"</td>\n"; e += "<td rowspan=3>" + g + "</td></tr>\n"; e += "<tr><td>" + m_objMapCoordenates[b][9] + ", " + m_objMapCoordenates[b][7] + "</td></tr>\n"; e += "<tr><td><a href='mailto:" + m_objMapCoordenates[b][12] + "'>" + m_objMapCoordenates[b][12] + "</a><br/><a href='http://" + m_objMapCoordenates[b][13] + "'>" + m_objMapCoordenates[b][13] + "</a></td></tr>\n"; e += d; e += "</table>"; document.getElementById("hdClienteMap").value = m_objMapCoordenates[b][3]; document.getElementById("hdQuerystringMap").value = m_objMapCoordenates[b][20]; viaqstr ||
SaveClick(m_objMapCoordenates[b][0], "click_marker", m_objMapCoordenates[b][5])
                } else e = "<table width='0' height='0' border=0 class=negro11 ><tr><td colspan=2><strong>" + Nombresitio + "</strong></td></tr></table>"; obj_Map_Base.openInfoWindowHtml(a, e)
            }); gmarkers[b] = d; findneg && (txt += fillTable(b, '<a class="negro11menu" style="text-decoration:underline;color:black;" href="javascript:GEvent.trigger(gmarkers[' + b.toString() + "], 'click'); obj_Map_Base.setCenter(new google.maps.LatLng(" + a.y + ", " + a.x + '), 16);"><font style="font-weight:bold;">' +
letras[b] + "</font>&nbsp;-&nbsp;" + m_objMapCoordenates[b][3] + "</a>", 5)); return d
        } 
    } catch (g) { return null } 
} function SaveClick(a, b, c) { a = "cust_id=" + a; a += "&source=" + b; a += "&class_code=" + c; PagesSincronizerGeneral(3, a, levelMap) } function onGDirectionsLoad() { document.getElementById("getDistance").innerHTML = gdir.getSummaryHtml() }
function mostrarError() {
    gdir.getStatus().code == G_GEO_UNKNOWN_ADDRESS ? alert("No se ha encontrado una ubicaci\u00f3n geogr\u00e1fica que se corresponda con la direcci\u00f3n especificada.") : gdir.getStatus().code == G_GEO_SERVER_ERROR ? alert("No se ha podido procesar correctamente la solicitud de ruta o de c\u00f3digos geogr\u00e1ficos, sin saberse el motivo exacto del fallo.") : gdir.getStatus().code == G_GEO_MISSING_QUERY ? alert("Falta el par\u00e1metro HTTP q o no tiene valor alguno. En las solicitudes de c\u00f3digos geogr\u00e1ficos, esto significa que se ha especificado una direcci\u00f3n vac\u00eda.") :
gdir.getStatus().code == G_GEO_BAD_KEY ? alert("La clave proporcionada no es v\u00e1lida o no coincide con el dominio para el cual se ha indicado.") : gdir.getStatus().code == G_GEO_BAD_REQUEST ? alert("No se ha podido analizar correctamente la solicitud de ruta.") : alert("Error desconocido.")
} function obtenerRuta(a, b) { gdir.load("from: " + a + " to: " + b, { locale: "es_DR", travelMode: G_TRAVEL_MODE_DRIVING }) }
function viewFotMap(a, b) { displayWindow("windowfotmap", "http://www.paginasamarillas.com.do/", 315, 493, 1); document.getElementById("divfotmap").style.width = (315).toString() + "px"; document.getElementById("divfotmap").style.height = (493).toString() + "px"; document.getElementById("divfotmap").style.background = "url('http://ads.amarillas.com.do/FOT" + a + "/" + b + ".jpg')" }
function LoadBounds() {
    if (!(m_objMapCoordenates == null || m_objMapCoordenates.length == 0)) {
        var a = obj_Map_Base.getBounds(), b = a.getSouthWest(), a = a.getNorthEast(); a.lng(); b.lng(); a.lat(); b.lat(); txt = ""; b = 0; document.getElementById("listapuntos").innerHTML = ""; document.getElementById("listapuntostd").style.height = "0px"; for (a = 0; a < m_objMapCoordenates.length; a++) try { var c = new GLatLng(m_objMapCoordenates[a][1], m_objMapCoordenates[a][2]); obj_Map_Base.addOverlay(createMarker(c, a)); b++ } catch (d) { } document.getElementById("listapuntos").innerHTML =
openDiv("Negocios Encontrados", b) + txt + "</table></div>"
    } 
}
function openDiv(a) {
    a = '<a class="azul10mapa">' + a + ":</a>"; a += "<br/>"; a += "<div id=\"resultados\" style=\" border-style:solid; border-width:1px; border-color:#BFBFBF; width:825px; height:37px; background-color:white; position:absolute;\" onmouseover=\"javascript:document.getElementById('resultados').style.zIndex = document.getElementById('resultados').style.zIndex + 1; document.getElementById('resultados').style.height = ((document.getElementById('tableresult').style.height >= 37) ? document.getElementById('tableresult').style.height : 37);\" onmouseout=\"javascript:document.getElementById('resultados').style.zIndex = document.getElementById('resultados').style.zIndex - 1;document.getElementById('resultados').style.height = 37 + 'px';\">"; a +=
'<table id="tableresult" width="100%" bgcolor="White">'; document.getElementById("listapuntostd").style.height = "35px"; return a
} function TileToQuadKey(a, b, c) { for (var d = ""; c > 0; c--) { var e = 1 << c - 1, f = 0; (a & e) != 0 && f++; (b & e) != 0 && (f += 2); d += f } return d } function sendMail(a, b, c, d, e, f, g, h) { a = "from=" + a; a += "&to=" + b; a += "&subject=" + c; a += "&fromName=" + d; a += "&message=" + e; a += "&toName=" + f; a += "&cliente=" + g; a += "&querystring=" + encodeURIComponent(h); PagesSincronizerGeneral(2, a, levelMap) }
function addEntMapElement2(a, b, c, d, e, f, g, h, k, l, j) { m_objMapEntidadesCoord[a - 1] = []; m_objMapEntidadesCoord[a - 1][0] = b; m_objMapEntidadesCoord[a - 1][1] = c; m_objMapEntidadesCoord[a - 1][2] = d; m_objMapEntidadesCoord[a - 1][3] = e; m_objMapEntidadesCoord[a - 1][4] = f; m_objMapEntidadesCoord[a - 1][5] = g; m_objMapEntidadesCoord[a - 1][6] = h; m_objMapEntidadesCoord[a - 1][7] = k; m_objMapEntidadesCoord[a - 1][8] = l; m_objMapEntidadesCoord[a - 1][9] = j }
function localizarPuntoEntMapPage() { obj_Map_Base != null && (obj_Map_Base.clearOverlays(), markersPage = [], LoadEntFinBoundsMapPage(null), markersPage.length > 0 ? AutoPositionAndZoomPage() : obj_Map_Base.setZoom(8)) }
function LoadEntFinBoundsMapPage(a) { if (m_objMapEntidadesCoord == null || m_objMapEntidadesCoord.length == 0) alert("No existen entidades financieras en esta localidad."); else { txt = ""; for (var b = 1, c = null, d = 0; d < m_objMapEntidadesCoord.length; d++) try { var e = new GLatLng(m_objMapEntidadesCoord[d][2], m_objMapEntidadesCoord[d][1]), f = createEntFinMarkerMapPage(e, d, m_objMapEntidadesCoord[d][9]); a != d ? obj_Map_Base.addOverlay(f) : c = f; b++ } catch (g) { } c != null && obj_Map_Base.addOverlay(c); is_AutoZoomMap = !0 } }
function createEntFinMarkerMapPage(a, b, c) {
    try {
        var d = m_objMapEntidadesCoord[b][0], e = buildHtml2(m_objMapEntidadesCoord[b]), f = m_objMapEntidadesCoord[b][9], g = new GIcon; g.iconSize = new GSize(30, 36); g.iconAnchor = new GPoint(16, 11); g.shadowSize = new GSize(0, 0); g.image = "http://www.paginasamarillas.com.do/images/new/Mapa/Marker/" + c + ".png"; markerOptions = f == "cajeros" ? { icon: g, title: "CAJERO " + d} : { icon: g, title: "SUCURSAL " + d }; var h = new GMarker(a, markerOptions); h.value = b; GEvent.addListener(h, "click", function() {
            obj_Map_Base.openInfoWindowHtml(a,
e); obj_Map_Base.getZoom() < 15 && obj_Map_Base.setCenter(a, 15)
        }); return markersPage[b] = h
    } catch (k) { return null } 
}
function buildHtml2(a) {
    var b = a[0], c = a[5], d = a[7], e = a[9], f = ""; a[8] == 1 ? (f += "<table border='0' cellpadding='0' cellspacing='0'>", e != 0 && (f += "<tr>", f += "<td style='padding-right:6px;'>", f += "<img src='http://ads.amarillas.com.do/MarcaRegistrada/" + e + ".gif' alt='' height='25' />", f += "</td>")) : (f += "<table border='0' cellpadding='0' cellspacing='0'>", f += "<tr>"); f += "<td class='textMapa'>"; e == "cajeros" || e == "bancos" ? (e == "cajeros" ? f += "<b>Cajero Autom\u00e1tico " + d + "</b><br />" : (f += "<b>Banco: " + d + "</b><br />", f +=
"<b>Tel\u00e9fono: " + a[8] + "</b><br />"), f += "<b>Lugar: " + b + "</b><br />") : (f += "<b>" + b + "</b><br />", f += d + "<br />"); f += c + "<br />"; f += "</td>"; f += "</tr>"; f += "</table>"; return f
}
function getEntidades(a, b, c) {
    var d = null, d = window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject("Microsoft.XMLHTTP"); m_objMapEntidadesCoord = []; d.open("POST", "http://www.paginasamarillas.com.do/ajaxServices/paelAJAXServer.asmx/getEntidadesFinancierasXml", !1); d.setRequestHeader("Content-Type", "Application/x-www-form-urlencoded; charset=UTF-8"); d.send("entidad_ID=" + a + "&ciudadValue=" + b + "&sector=" + c); a = d.responseXML; b = getXMLDocumentByUrl("http://www.paginasamarillas.com.do/Data/Entidades_Financieras/entidadesFinancierasParser.xslt");
    transformAjaxXsl(a, b, "div_obj_full_result_map_2"); localizarPuntoEntMapPage()
} function AutoPositionAndZoomPage() { try { canSearch = !1; for (var a = new GLatLngBounds, b = 0; b < markersPage.length; b++) try { if (markersPage[b] != null && !markersPage[b].isHidden()) { var c = markersPage[b].getPoint(); a.extend(c) } } catch (d) { } obj_Map_Base.setZoom(obj_Map_Base.getBoundsZoomLevel(a)); obj_Map_Base.setCenter(a.getCenter()) } catch (e) { alert(e) } }
function getXMLDocumentByUrl(a) { var b; try { window.ActiveXObject ? b = new ActiveXObject("Microsoft.XMLDOM") : document.implementation && document.implementation.createDocument ? (b = document.implementation.createDocument("", "doc", null), isMozilla = !0) : alert("Your browser cannot handle this script"), b.async = !1, a != "" && b.load(a) } catch (c) { b = LoadXSLDocument(a) } return b }
function LoadXSLDocument(a) { try { var b = new window.XMLHttpRequest; b.open("GET", a, !1); b.setRequestHeader("Content-Type", "text/xml; charset=UTF-8"); b.send(""); var c = b.responseXML; c == null && window.DOMParser && (c = (new DOMParser).parseFromString(b.responseText, "text/xml")); return c } catch (d) { return alert(d + " HttpGet Load....."), null } }
function transformAjaxXsl(a, b, c) { try { var d = ""; if (window.ActiveXObject) d = a.transformNode(b); else if (document.implementation && document.implementation.createDocument) { var e = new XSLTProcessor; e.importStylesheet(b); var f = e.transformToFragment(a, document); document.getElementById(c).innerHTML = ""; document.getElementById(c).appendChild(f); d = document.getElementById(c).innerHTML } eval(d) } catch (g) { alert(g) } return "" };
