		var mapcenter = new VELatLong( 36.7830, 14.5545 );
		var mapzoom = 10;
		var map = null;
		var r = 1;

		var vtour = new Array();
		vtour[0] = new VELatLong(36.783364666414876, 14.554513692855835);
		vtour[1] = new VELatLong(36.78282331928615, 14.554663896560676);
		vtour[2] = new VELatLong(36.78215307468582, 14.559566974639885);
		vtour[3] = new VELatLong(36.78301236157516, 14.554406404495235);
		vtour[4] = new VELatLong(36.78227337543033, 14.556949138641355);
		vtour[5] = new VELatLong(36.78418956897212, 14.553730487823497);
		vtour[6] = new VELatLong(36.78293502614965, 14.555876255035416);
		vtour[7] = new VELatLong(36.78272020511378, 14.55237329006196);

		function CreateBookmarkLink()
		{
			var title = "Marina di Ragusa";
			var url = "http://www.marinadiragusa.info";
	
			if (window.sidebar)
			{ // Mozilla Firefox Bookmark
				window.sidebar.addPanel(title, url,"");
			}
			else if(window.external)
			{ // IE Favorite
				window.external.AddFavorite( url, title);
			}
			else if(window.opera && window.print)
			{ // Opera Hotlist
				return true;
			}
		}

		function virtualtour( i )
		{
			map.SetCenter( vtour[i] );
      		}

      		function GetMap()
      		{
         		map = new VEMap('myMap');
			map.HideDashboard();
         		map.LoadMap( mapcenter, mapzoom, VEMapStyle.Birdseye, false );
			map.SetBirdseyeScene( mapcenter );
	 		map.SetScaleBarDistanceUnit( VEDistanceUnit.Kilometers );
	        	map.SetShapesAccuracy( VEShapeAccuracy.Pushpin );
			map.AttachEvent('onchangeview', nomode);
      		}

      		function nomode()
		{	
			if ( !map.IsBirdseyeAvailable() )
            		{
				document.getElementById( 'myMap' ).style.display = 'none';
				setTimeout("rotate()", 500);
             		}
			else
           		{
				document.getElementById( 'myMap' ).style.display = 'block';
             		}
		
		}

      		function zoomin()
      		{
			map.ZoomIn();
      		}

      		function zoomout()
      		{
			map.ZoomOut();
      		}

		function rotate()
      		{
			switch( r )
            		{
             	 		case 0: 
					r = 1;
					map.SetBirdseyeOrientation(VEOrientation.North);
                             		break;

               			case 1: 
					r = 2;
					map.SetBirdseyeOrientation(VEOrientation.East);      
                             		break;

               			case 2:  
					r = 3;
					map.SetBirdseyeOrientation(VEOrientation.South);
                             		break;
               			
				default:
					r = 0;
					map.SetBirdseyeOrientation(VEOrientation.West);
                             		break;
      			}
			
      		}
