 /**
  * Google Map Setup
  * 
  * 20081212 (AK)
  * 
  */
 
        var map, london, bangkok, ldn_marker, bkk_marker, ldn_box, bkk_box;
 
        function Gload() {
          if (GBrowserIsCompatible()) {
            map = new GMap2(document.getElementById("home-image"));
            
            // http://maps.google.com/maps?f=q&hl=en&geocode=&q=bangkok,+wireless+road,+all+seasons+place&sll=37.0625,-95.677068&sspn=51.443116,75.849609&ie=UTF8&ei=SAUZSaHhDojqugPb2Nz4DA&view=map&attrid=&ll=13.73951,100.547884&spn=0.011777,0.020213&z=16
            //http://maps.google.com/?ie=UTF8&ll=34.452218,53.613281&spn=68.244437,188.085938&z=3 
            london  = new GLatLng(51.489303,-0.119729);
            bangkok = new GLatLng(13.73951,100.547884);
            world   = new GLatLng(34.452218,53.613281);
            
            map.setCenter(london, 15);  // 2
            
            var mapControl = new GLargeMapControl();
            map.addControl(mapControl);
            //map.addControl(new GScaleControl());
            //map.addControl(new GOverviewMapControl());
            
            ldn_marker = new GMarker(london);
            bkk_marker = new GMarker(bangkok);
            
            GEvent.addListener(ldn_marker, 'click', function() {
                ldn_marker.openInfoWindowHtml(ldn_box);
            });
            GEvent.addListener(bkk_marker, 'click', function() {
                bkk_marker.openInfoWindowHtml(bkk_box);
            });
            
            map.addOverlay(ldn_marker);
            map.addOverlay(bkk_marker);

//            ldn_box = '<h3 style="font-size: 100%; color: #F10F83; visibility: visible; padding: 0;margin: 0;">Landau Reece - London Office</h3>';
//            bkk_box = '<h3 style="font-size: 100%; color: #F10F83; visibility: visible; padding: 0;margin: 0;">Landau Reece</h3>(Bangkok Office)';
            ldn_box = '<div style="color: black;"><strong>Landau Reece (London Office)</strong><br />First Floor, Spring House<br />1 Graphite Square, London, SE11 5EE<br />Tel: +44 (0)20 7820 7979<br /><a href="http://www.landaureece.com" class="gmap">www.landaureece.com</a></div>';
            bkk_box = '<div style="color: black;"><strong>Landau Reece (Bangkok Office)</strong><br />36/F CRC Tower, All Seasons Place<br />87/2 Wireless Road, Phatumwan, Bangkok 10330<br />Tel: +66 (0)2 625 3010<br /><a href="http://www.landaureece.com" class="gmap">www.landaureece.com</a></div>';
            ldn_marker.openInfoWindowHtml(ldn_box);
            //bkk_marker.openInfoWindowHtml(bkk_box);

          }
        }
        
        function gotoLondon() { 
            window.setTimeout(function() {
                map.panTo(london);
                map.setZoom(15);
                ldn_marker.openInfoWindowHtml(ldn_box);
            }, 500);  
        }
        
        function gotoBangkok() { 
            window.setTimeout(function() {
                map.panTo(bangkok);
                map.setZoom(15);
//                map.closeInfoWindow()
                bkk_marker.openInfoWindowHtml(bkk_box);               
            }, 500);  
        }
        
         $(window).load(function () { Gload() });
         $(window).unload( function () { GUnload(); } );
