﻿    //<![CDATA[    // Global Variables    // set map variable    var map = null;    //set up array of locations    var aLocations = new Array;    /*************************** Configuration Options ***************************/    /*PDMarker is used to display tooltips when the user hovers over the markers.    * PDMarker is a LGPL library provided by Peter Jones.     * For details see http://wwww.pixeldevelopment.com/pdmarker.asp    */    var usePDMarker = false;    // Create a base "tiny" red  icon that specifies the shadow, icon dimensions, etc.    var iconsm = new GIcon();    iconsm.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";    iconsm.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";    iconsm.iconSize = new GSize(12, 20);    iconsm.shadowSize = new GSize(20, 18);    iconsm.iconAnchor = new GPoint(6, 20);    iconsm.infoWindowAnchor = new GPoint(5, 1);    // Create a base "large" red icon that specifies the shadow, icon dimensions, etc.    var iconbig = new GIcon();    iconbig.image = "http://www.google.com/mapfiles/marker.png";    iconbig.shadow = "http://www.google.com/mapfiles/shadow50.png";    iconbig.iconSize = new GSize(20, 34);    iconbig.shadowSize = new GSize(37, 34);    iconbig.iconAnchor = new GPoint(6, 34);    iconbig.infoWindowAnchor = new GPoint(5, 1);    // Custom Icon    var iconcustom = new GIcon(iconbig);    iconcustom.shadow = '';    function onLoad() {      if (!GBrowserIsCompatible())       {         document.getElementById("MapBuilderMap").innerHTML = "Unfortunately your browser doesn't support Google Maps.<br /> To check browser compatibility visit the following <a href=\"http://local.google.com/support/bin/answer.py?answer=16532&topic=1499\">link</a>.";         return;      }      map = new GMap2(document.getElementById("MapBuilderMap"));      var MB = new MapBuilder(map);      map.addControl(new GLargeMapControl());      map.addControl(new GMapTypeControl());      // Center the map to the default location and set map type      map.setCenter(new GLatLng(40.804194470596194, -73.14765930175781), 10, map.getMapTypes()[0]);      	        // Initialize variables      var point = null;      var footerHtml = null;      var InfoHTML = null;      var marker = null;      /* Options used for PDMarker initialization:      * label: tooltip text      * opasity: tooltip opasity      */      var options = {};      // Add locations	      point = new GLatLng(40.782637, -73.200078);      footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(0)\">Zoom To</a></div>"  + GetDirectionForm(0);  + "</div>";      // Define Marker      InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Moloney Funeral Home</div><div class=\"IWContent\">130 Carleton Avenue<br>Central Islip, New York 11722<br>(631) 234-6000<br><br></div>" + footerHtml + "</div>";      iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png";      marker = createMarker(point, InfoHTML, iconsm, options);      map.addOverlay(marker);      aLocations[0] = new Array(marker, "Moloney Funeral Home", InfoHTML, point);	      point = new GLatLng(40.775865, -73.107922);      footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(1)\">Zoom To</a></div>"  + GetDirectionForm(1);  + "</div>";      // Define Marker      InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Moloney's Bohemia Funeral Home</div><div class=\"IWContent\">1320 Lakeland Avenue<br>Bohemia, New York 11716<br>(631) 589-1500<br><br></div>" + footerHtml + "</div>";      iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png";      marker = createMarker(point, InfoHTML, iconsm, options);      map.addOverlay(marker);      aLocations[1] = new Array(marker, "Moloney's Bohemia Funeral Home", InfoHTML, point);	      point = new GLatLng(40.823703, -73.206698);      footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(2)\">Zoom To</a></div>"  + GetDirectionForm(2);  + "</div>";      // Define Marker      InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Moloney's Hauppauge Funeral Home</div><div class=\"IWContent\">840 Wheeler Road (Rte. 111)<br>Hauppauge, New York 11788<br>(631) 361-7500<br><br></div>" + footerHtml + "</div>";      iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png";      marker = createMarker(point, InfoHTML, iconsm, options);      map.addOverlay(marker);      aLocations[2] = new Array(marker, "Moloney's Hauppauge Funeral Home", InfoHTML, point);	      point = new GLatLng(40.805098, -73.071139);      footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(3)\">Zoom To</a></div>"  + GetDirectionForm(3);  + "</div>";      // Define Marker      InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Moloney's Holbrook Funeral Home</div><div class=\"IWContent\">825 Main Street<br>Holbrook, New York 11741<br>(631) 981-7500<br><br></div>" + footerHtml + "</div>";      iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png";      marker = createMarker(point, InfoHTML, iconsm, options);      map.addOverlay(marker);      aLocations[3] = new Array(marker, "Moloney's Holbrook Funeral Home", InfoHTML, point);	      point = new GLatLng(40.825589, -73.111383);      footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(4)\">Zoom To</a></div>"  + GetDirectionForm(4);  + "</div>";      // Define Marker      InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Moloney’s Lake Funeral Home</div><div class=\"IWContent\">132 Ronkonkoma Avenue<br>Lake Ronkonkoma, New York 11779<br>(631) 588-1515<br><br></div>" + footerHtml + "</div>";      iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png";      marker = createMarker(point, InfoHTML, iconsm, options);      map.addOverlay(marker);      aLocations[4] = new Array(marker, "Moloney’s Lake Funeral Home", InfoHTML, point);	      point = new GLatLng(40.922333, -73.065605);      footerHtml = "<div class=\"IWFooter\"><div class=\"IWFooterZoom\"><a href=\"javascript:void(0)\" onclick=\"ZoomMapTo(5)\">Zoom To</a></div>"  + GetDirectionForm(5);  + "</div>";      // Define Marker      InfoHTML = "<div class=\"IW\"><div class=\"IWCaption\">Moloney’s Port Jefferson Station Funeral Home</div><div class=\"IWContent\">523 Route 112<br>Port Jefferson Station, New York 11776<br>(631) 473-3800<br><br></div>" + footerHtml + "</div>";      iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png";      marker = createMarker(point, InfoHTML, iconsm, options);      map.addOverlay(marker);      aLocations[5] = new Array(marker, "Moloney’s Port Jefferson Station Funeral Home", InfoHTML, point);    }    //]]>