// GOOGLE MAPS
	 //<![CDATA[
    function load(x,y,zoom,text) {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(x, y), zoom);
		//55.297100, 24.003350
		map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
		
		
		 // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon();
        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon.iconSize = new GSize(20, 34);
        baseIcon.shadowSize = new GSize(37, 34);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);
        baseIcon.infoShadowAnchor = new GPoint(18, 25);

        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index, title, text) {
          // Create a lettered icon for this point using our icon class
          var letter = title;
          var letteredIcon = new GIcon(baseIcon);
          letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";

          // Set up our GMarkerOptions object
          markerOptions = { icon:letteredIcon };
          var marker = new GMarker(point, markerOptions);

          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml("<b>" + text + "</b>");
          });
          return marker;
        }
		
		
      	  var contacts = text;
          var latlng = new GLatLng(x, y);
          map.addOverlay(createMarker(latlng, 1, 'A', contacts));
		 
       
		
		
		
      }
    }
    //]]>
	 
	  //<![CDATA[
    function load2() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map2"));
        map.setCenter(new GLatLng(55.297100, 24.003350), 12);
		//55.297100, 24.003350
		map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
		
		
		 // Create a base icon for all of our markers that specifies the
        // shadow, icon dimensions, etc.
        var baseIcon = new GIcon();
        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
        baseIcon.iconSize = new GSize(20, 34);
        baseIcon.shadowSize = new GSize(37, 34);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);
        baseIcon.infoShadowAnchor = new GPoint(18, 25);

        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, index, title, text) {
          // Create a lettered icon for this point using our icon class
          var letter = title;
          var letteredIcon = new GIcon(baseIcon);
          letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";

          // Set up our GMarkerOptions object
          markerOptions = { icon:letteredIcon };
          var marker = new GMarker(point, markerOptions);

          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml("Marker <b>" + text + "</b>");
          });
          return marker;
        }
		
		
      
          var latlng = new GLatLng(55.297100, 24.003350);
          map.addOverlay(createMarker(latlng, 1, 'A', ''));
		 
       
		
		
		
      }
    }
    //]]>
	  
	 //some of the globals
	var map;
	
	
	// map and its equipment
	map = new GMap2(document.getElementById("map2"));
	map.setCenter(new GLatLng(0,0),1);
	map.addControl(new GMapTypeControl(1));
	map.addControl(new GLargeMapControl());
	map.enableDoubleClickZoom();
	map.enableScrollWheelZoom();
	
	
	///continuous zoom
	function cont(check) {
	if (check) {
	map.enableContinuousZoom();
	} else {
	map.disableContinuousZoom();
	}}
	
	
	///hide overflow
	function hideOverflow(check) {
	if (check) {
	map.getContainer().style.overflow="hidden";
	} else {
	map.getContainer().style.overflow="visible";
	}}
	
	
	///prevent page scroll	
	function wheelevent(e)
	{
	if(document.getElementById("prevent").checked){
	if (!e){
	e = window.event
	}
	if (e.preventDefault){
	e.preventDefault()
	}
	e.returnValue = false;
	}}
	GEvent.addDomListener(map.getContainer(), "DOMMouseScroll", wheelevent);
	map.getContainer().onmousewheel = wheelevent; 
	
	
	
	/// Automatic zoomOut from 'sorry..' tiles
	function esasZoomOut(){
	var paragraphs = map.getContainer().getElementsByTagName('p').length;
	if(paragraphs > 6){
	map.zoomOut();
	}}
	interval = setInterval("esasZoomOut()",500);
	// GOOGLE MAPS 