// JavaScript Document
var bluecount;
	bluecount = 1;
/*Function that creates the markers.  You can pass the function a marker */
	/* color if you want to alter colors for different points*/

	function createMarker(point, html, zicon) 
	{
	var icon = new GIcon();
	if(zicon == 'blue')
	{
		//icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
		icon.image = "http://poczta-cetus.home.pl/includes/ajax/logo.png";
		bluecount = bluecount + 1;
	}
	
	/*Adds a shadow to the icon*/			
	//icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
	//icon.shadow = "http://poczta-cetus.home.pl/includes/ajax/logoshadow.png";
	icon.iconSize = new GSize(30, 30);
	//icon.shadowSize = new GSize(35, 35);
	icon.iconAnchor = new GPoint(6, 20);
	icon.infoWindowAnchor = new GPoint(5, 1);	
	

	/*Adds the balloon event*/	
	var marker = new GMarker(point,icon);
	GEvent.addListener(marker, 'click', function() {marker.openInfoWindowHtml(html);});
	return marker;
	};
    
    /*Do not change the order below.  SetCenter is from the first address found*/      
    function load() 
    {	
      if (GBrowserIsCompatible()) 
      {
		var letter;	
		var gmap = new GMap2(document.getElementById("gmap"));
		gmap.addControl(new GSmallMapControl()); 
		gmap.addControl(new GMapTypeControl());
       
 
gmap.setCenter(new GLatLng(53.427895,14.55063), 15);

		var bounds = gmap.getBounds();
		var southWest = bounds.getSouthWest();
		var northEast = bounds.getNorthEast();
		var lngSpan = northEast.lng() - southWest.lng();
		var latSpan = northEast.lat() - southWest.lat();
				var point = new GLatLng(53.427700, 14.55051);
var marker = createMarker(point,"<b>CETUS<br />ul. Kaszubska 67<br />Szczecin", "blue");
gmap.addOverlay(marker);

var point1 = new GLatLng(53.429506, 14.54912);
var marker1 = createMarker(point1,"<b>CETUS<br />ul. Wojciecha 11/2<br />Szczecin", "blue");
gmap.addOverlay(marker1);

		
	}else
	{
	  alert('Używana przeglądarka nie jest zgodna z Google Maps!');	
	}
	};	
