// JavaScript Document

<!--Google maps API-->
 var directionDisplay;
  var directionsService = new google.maps.DirectionsService();
  var map;

  function initialize() {
	//window.open('http://asosal.org/bicentenario.html', 'Bicentenario', 'toolbar=0,status=0,scrollbars=0,menubar=0,resizable=0,width=840px,height=545px');
    directionsDisplay = new google.maps.DirectionsRenderer();
    var myLatlng = new google.maps.LatLng(34.056497, -118.273775);
    var myOptions = {
      zoom:12,
      mapTypeId: google.maps.MapTypeId.ROADMAP,
      center: myLatlng
    }
    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    directionsDisplay.setMap(map);  
    directionsDisplay.setPanel(document.getElementById("directionsPanel"));
	
	
	
    var contentString = '<div id="content">'+
        '<div id="siteNotice">'+
        '</div>'+
        '<div id="bodyContent">'+
        '<p><b>ASOSAL.ORG</b> <br />' +
        'Asociaci&oacute;n Salvadore&ntilde;a de Los Angeles <br /> '+ 
        '660 S. Bonnie Brae St., Los Angeles, CA 90057<br />'+
        'Ayuda Legal, Promoci&oacute;n de nuestra cultura salvadore&ntilde;a, y mucho m&aacute;s!' +
        '</div>'+
        '</div>';

    var infowindow = new google.maps.InfoWindow({
        content: contentString
    });

    var marker = new google.maps.Marker({
        position: myLatlng,
        map: map,
        title: 'Asosal.org'
    });
    google.maps.event.addListener(marker, 'mouseover', function() {
      infowindow.open(map,marker);
    });
	
  }
  
  
  function calcRoute() {
    var start = document.getElementById("txt_ClientAddress").value;
    var end = document.getElementById("lbl_Aso").innerHTML.toString();
    var request = {
        origin:start, 
        destination:end,
        travelMode: google.maps.DirectionsTravelMode.DRIVING
    };
    directionsService.route(request, function(response, status) {
      if (status == google.maps.DirectionsStatus.OK) {
        directionsDisplay.setDirections(response);
      }
    });
  }
  
  
<!--paypal link-->


