    var map = null;
    var geocoder = null;
    var icon = new GIcon();
	//document.getElementById('map').innerHTML="";
	//
	//document.getElementById('map-error').innerHTML="We could not understand the location "+callvalue(val);
	icon.image = "http://www.google.com/mapfiles/marker.png";
	icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	icon.iconSize = new GSize(20, 34);
	icon.shadowSize = new GSize(37, 34);
	icon.iconAnchor = new GPoint(10, 34); 
    
	function load() {  
		document.getElementById('map').style.display="inline";
		document.getElementById('loader').style.display="none";
 		document.getElementById('map-error').style.display="none";
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(53.548412, -2.005742), 5, G_PHYSICAL_MAP);
		map.addControl(new GMapTypeControl());
		//map.addControl(new GLargeMapControl());
		//map.addControl(new GScaleControl());
		//map.addControl(new GOverviewMapControl());
        geocoder = new GClientGeocoder();
		
       } 
    }
	
	var maps=new Array();
	
	var  geocoder = new GClientGeocoder();
	
	 function Newload(i) {
		document.getElementById("map"+i).style.display="inline";
		document.getElementById("loader"+i).style.display="none";
 		document.getElementById("map-error"+i).style.display="none";
      if (GBrowserIsCompatible()) {
        maps[i] = new GMap2(document.getElementById("map"+i));
       maps[i].setCenter(new GLatLng(53.548412, -2.005742),5,G_PHYSICAL_MAP);
		
       	
		
       } 
	   
    }
	
	function showMarker2(i,address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
			  if (!point) {
              //alert(address + " not found");
			  //document.getElementById('map-error').style.display="inline";
            } else {				
              maps[i].setCenter(point, 13);
              var marker = new GMarker(point);
              maps[i].addOverlay(marker);
			  		 		   
            }
          }
        );
      }
    }

    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
			  if (!point) {
              //alert(address + " not found");
			  //document.getElementById('map-error').style.display="inline";
            } else {				
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
			  details= showAddr();
			  
			  marker.openInfoWindowHtml(details);
			   GEvent.addListener(marker, "click", function() {
                  marker.openInfoWindowHtml(details);
			   });
			   
            }
          }
        );
      }
    }
	
	
	function showMarker(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
			  if (!point) {
              //alert(address + " not found");
			  //document.getElementById('map-error').style.display="inline";
            } else {				
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
			  details= '';			  
			  //marker.openInfoWindowHtml(details);
			  /* GEvent.addListener(marker, "click", function() {
                  marker.openInfoWindowHtml(details);
			   });*/
			   
            }
          }
        );
      }
    }
	
	 function callvalue(val){
	 var details=val;
	  //var  map= document.getElementById('map').innerHTML ;
 	  return details;
  	 } 
  
