// Google Map Javascript
    function onMapLoad() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
	map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(53.463978000000000,-2.267551244567871), 15);

	// Our info window content
	var infoTabs = [
  	  new GInfoWindowTab("Address Tab", "<b> Address: </b>" 
                             + "<br>540 Stretford Road" 
                             + "<br>Manchester" 
                             + "<br>Trafford" 
                             + "<br>M16 9AF"
			     + "<br>United Kingdom</br>" 
                             + "<p><b> Tel: </b> (+44) 0161 872 3338" 
                             + "<br><b> Fax: </b> (+44) 0161 872 3334" 
                             + "<br><b> Email: </b> ibps_man_uk@hotmail.com</p>")
	];

	// Place a marker in the center of the map and open the info window
	// automatically
	var marker = new GMarker(map.getCenter());
	GEvent.addListener(marker, "click", function() {
  	marker.openInfoWindowTabsHtml(infoTabs);
	});
	map.addOverlay(marker);
	marker.openInfoWindowTabsHtml(infoTabs);

      }
    } //Eof load()

    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
        var href;
    if (typeof(mylink) == 'string')
        href=mylink;
    else
        href=mylink.href;
        window.open(href, windowname, 'width=800,height=600, resizable=yes, scrollbars=yes, toolbar=yes, status=yes, location=yes');
        return false;
    } //End of popup()
	
	function get_direction(address_form)
    {
    var l_address = address_form.address.value;
    var google_url = "http://maps.google.co.uk/maps?f=d&hl=en&saddr=" + l_address + "&daddr=540+Stretford+Rd,+Manchester,+Trafford,+M16+9AF&layer=&sll=53.47079,-2.25918&sspn=0.018034,0.040169&ie=UTF8&z=16&om=1&iwloc=addr";
    window.open(google_url, 'google_route_planner', 'width=800,height=600, resizable=yes, scrollbars=yes, toolbar=yes, status=yes, location=yes');
    } //Eof get_direction()

	
	
