ADS.addEvent(window,'load',function() {

      if (GBrowserIsCompatible()) {                                         // Checks if the browser is compatible with all the Google Maps API.

        // Instantiate the map API (version 2)
        var map = new GMap2(document.getElementById("map"));               // GMap object.

        // Instantiate a new latitude and longitude coordinate
        var location = new GLatLng(40.932, 24.41);                   // GLatLng object. GLatLng(πλάτος, μήκος) ----- (38.95, 20.75)
        // Set the center of the map to location with a zoom level of 13
        map.setCenter(location, 9);
		
		
		/************************************ Εμφάνιση κειμένου  ************************************************/ 
		//map.openInfoWindow(map.getCenter(), document.createTextNode("Hello, world"));
		
		//GMap2.disableDragging();		
			
		//
		
		/********************************** Δημιουργία του δείκτη 1 ************************************************/ 
        // Instantiate a new marker using the location                   
        var marker = new GMarker(location);                               // Αρχικοποίηση του Marker. 
        // Add the marker to the map
        map.addOverlay(marker);                                           //	
		
		//  Δείκτης 2  - Keramoti port//
		var location2 = new GLatLng(40.86, 24.7);
		var marker2 = new GMarker(location2);
		map.addOverlay(marker2);
		
		//  Δείκτης 3  - Thassos port//
		var location3 = new GLatLng(40.778, 24.70);
		var marker3 = new GMarker(location3);
		map.addOverlay(marker3);
		
		//  Δείκτης 4  - Nea Karvali port//
		var location4 = new GLatLng(40.95, 24.470);
		var marker4 = new GMarker(location4);
		map.addOverlay(marker4);
		
		//  Δείκτης 5  - Nea Peramos port//
		var location5 = new GLatLng(40.849, 24.32);
		var marker5 = new GMarker(location5);
		map.addOverlay(marker5);
		
		/********************************** Σχετικά με τα Controls του χάρτη **************************************/ 
        // Add a zoom/pan and type control
        map.addControl(new GLargeMapControl());
		map.addControl(new GScaleControl());		
        map.addControl(new GMapTypeControl());		
		
		
		GEvent.addListener(marker,'mouseover',function() {
                //marker.openInfoWindow(node);
				//alert('ssss');
				map.openInfoWindow(map.getCenter(), document.createTextNode("Kavala port"));
            });
		
		GEvent.addListener(marker2,'mouseover',function() {
                //marker.openInfoWindow(node);
				map.openInfoWindowHtml(new GLatLng(40.86, 24.7), document.createTextNode("Keramoti port"));
            });
		
		GEvent.addListener(marker3,'mouseover',function() {
                //marker.openInfoWindow(node);
				map.openInfoWindowHtml(new GLatLng(40.778, 24.70), document.createTextNode("Thassos port"));
            });
		
		GEvent.addListener(marker4,'mouseover',function() {
                //marker.openInfoWindow(node);
				map.openInfoWindowHtml(new GLatLng(40.95, 24.470), document.createTextNode("Nea Karvali port"));
            });
		
		GEvent.addListener(marker5,'mouseover',function() {
                //marker.openInfoWindow(node);
				map.openInfoWindowHtml(new GLatLng(40.849, 24.32), document.createTextNode("Nea Peramos port"));
            });
		/*
		movement=setTimeout("movemap()",5000);
		
		function movemap(){
		  map.panTo(new GLatLng(37.4569, -122.1569));
	  	}*/
		
      }
	  
	 
      
});

ADS.addEvent(window,'unload',GUnload);