/* Permission Guidelines for Google Maps and Google Earth

http://code.google.com/apis/maps/terms.html

If you are a licensee of Google Maps and/or Google Earth and wish to use our product(s) in marketing and promotional materials, books, journals, online video streaming, playbacks, labels, packaging or various commercial products, or in any other media, please follow the guidelines in the Google Maps Terms of Use, Google Maps API Terms of Use, and Google Earth End User License – each of these terms of service is an agreement between you and Google about how you may make use of the product, including the content (such as imagery, maps, and local search results) presented in it.

In many cases, as long as you're not violating Google's terms of service, the concept of 'fair use' applies. This content is owned either by Google or its licensors. In certain circumstances, Google may be able to grant you a further license to use the content in a manner not covered by 'fair use' and not described in the terms of service. These guidelines contain further descriptions of permissions relating to the use of content outside of Google Maps, the Google Maps API and Google Earth.
Attribution requirements

All uses of Google Maps and Google Earth must provide attribution to Google and our content providers similar to what is shown to the users of our products today. You may not modify, minimize or obstruct copyright attribution text or the Google logo by any means. The attribution text must be legible and must use a font size of 6 points or greater. If for some reason this cannot be done in a screen shot, separate attribution text must be provided in a reasonably apparent location with special permission.
*/

   function initialize() {
      if (GBrowserIsCompatible())
	  {           var mapOptions = {
            googleBarOptions : {
              style : "new",
              adsOptions : {
                client: "partner-google-maps-api",
                channel: "6328289812",
                adsafe: "high",
                language: "en"
              }
            }
          }

        var map = new GMap2(document.getElementById("map_canvas"));
		map.setMapType(G_SATELLITE_MAP);
        var center = new GLatLng(53.6876, -2.6822);
        map.setCenter(center, 13);
		map.enableGoogleBar();
    
        var marker = new GMarker(center);
		    
        GEvent.addListener(marker, "click", function() {
          map.closeInfoWindow();
        });
    	
        GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml("Weather In A Flash<br />Leyland Weather Station<br />Leyland<br />Lancashire");
        });
    
        map.addOverlay(marker);
		
		var customUI = map.getDefaultUI();
        // Remove MapType.G_HYBRID_MAP
        customUI.maptypes.hybrid = false;
        map.setUI(customUI);
		
		      // Note: replace this publisher ID with your own.
      var publisherID = 'pub-9071330453296550';
 
      var adsManagerOptions = {
        maxAdsOnMap : 2,
        style: 'adunit',
        // The channel field is optional - replace this field with a channel number 
        // of your own for Google AdSense tracking
        channel: '6328289812'  
      };
 
      adsManager = new GAdsManager(map, publisherID, adsManagerOptions);
      adsManager.enable();
	  
	  

   
      }
    }

