// JavaScript Document



    function initialize() {
     
         if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("mapbox"));
        var center = new GLatLng(38.683827,-0.652142);
        map.setCenter(center, 8);
                    
    
     map.addControl(new GSmallMapControl()); // small control
     map.addControl(new GMapTypeControl()); // add option to change format of map to e.g. satellite     
           
    // set out the markers at their given locations      
     // 38.633827,-0.652142
    var valencia = new GMarker(new GLatLng(39.488827,-0.492142));
      
           //create the info window attach it to the marker you are about to create
        GEvent.addListener(valencia, "click", function() {
            valencia.openInfoWindowHtml("Valencia Airport");
          });
       
           // add the marker atthe co-ordinates you have specified above
      map.addOverlay(valencia);  
        
          
        
           
     
    var alicante = new GMarker(new GLatLng(38.285327,-0.582142));
           //create  the info window attach it to the marker you are about to create
        GEvent.addListener(alicante, "click", function() {
             alicante.openInfoWindowHtml("Alicante  Airport - El Altet");
           });  
       
           // add the marker atthe co-ordinates you have  specified above
       map.addOverlay(alicante);  
           
           
           
       
    var sanjavier  = new GMarker(new GLatLng(37.770803,-0.820202));
                  //create  the  info window attach it to the marker you are about to create
         GEvent.addListener(sanjavier, "click", function() {
              sanjavier.openInfoWindowHtml("Murcia Airport - San Javier");
            });                                  
      map.addOverlay(sanjavier);
      }
    }

  
