 function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(54.696042,25.275456), 13);

		// Creates a marker for the venue
        function createMarkerV(point, number) {

		var iconV = new GIcon();
			iconV.image = "http://labs.google.com/ridefinder/images/mm_20_green.png";
			iconV.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
			iconV.iconSize = new GSize(12, 20);
			iconV.shadowSize = new GSize(22, 20);
			iconV.iconAnchor = new GPoint(6, 20);
			iconV.infoWindowAnchor = new GPoint(5, 1);

		  var marker = new GMarker(point, iconV);
          GEvent.addListener(marker, "click", function() {
			if (number==1/*20*/) marker.openInfoWindowHtml("<em>TNC 2010 & Speakers' Reception</em><br /> <strong>Reval Hotel Lietuva</strong><br />Konstitucijos Ave. 20,<br /> Vilnius, 09308, <br /> Lithuania");
			if (number==2) marker.openInfoWindowHtml("<em>Opening Reception</em><br /> <strong>National Art Gallery</strong>   <br />Konstitucijos Ave. 22, <br />Vilnius, 09308, <br /> Lithuania");
			if (number==3/*23*/) marker.openInfoWindowHtml("<em>Gala Evening</em><br /> <strong>Belmontas</strong><br />Belmonto str. 17, 3<br />Vilnius, <br /> Lithuania");


			});
          return marker;
        }


		// Creates a marker for the hotels
        function createMarkerH(point, number) {
        			// blegh, this is the base icon
					var iconA = new GIcon();
					iconA.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
					iconA.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
					iconA.iconSize = new GSize(18, 28);
					iconA.shadowSize = new GSize(22, 20);
					iconA.iconAnchor = new GPoint(6, 20);
					iconA.infoWindowAnchor = new GPoint(5, 1);

					var marker = new GMarker(point, iconA);

					// extend base icon with custom icon stuff
					var lIcon = new GIcon(iconA);
					lIcon.image = "/gfx/icons/marker" + number + ".png";

					// instantiate the GMarket object with custom icon
					var marker = new GMarker(point, {
						draggable:false,
						icon:lIcon
					});

					GEvent.addListener(marker, "click", function() {
						if (number==1) marker.openInfoWindowHtml("<strong>Radisson Sas </strong><br />*****  <br />Didzioji str. 35/2,<br />Vilnius, 01128, <br />Lithuania");
						if (number==2) marker.openInfoWindowHtml("<strong>Best Western Vilnius  </strong><br />**** <br />Konstitucijos Ave. 14,<br />Vilnius, 09308,  <br /> Lithuania");
						if (number==3) marker.openInfoWindowHtml("<strong>Holiday Inn Vilnius </strong><br/>**** <br />Seimyniskiu str. 1,<br />Vilnius, 09312, <br /> Lithuania");
						if (number==4) marker.openInfoWindowHtml("<strong>Hotel Tilto </strong><br />***<br/>Tilto str. 8,<br/>Vilnius, 01101,<br/>Lithuania<br/>");
						if (number==5) marker.openInfoWindowHtml("<strong>Ecotel </strong><br />**<br/>Slucko str. 8, <br /> Vilnius, 09312, <br />Lithuania");if (number==6) marker.openInfoWindowHtml("<strong> Narutis Summit</strong><br /> ***** <br />Pilies str. 24, <br />Vilnius, 01123, <br /> Lithuania");
					});
					return marker;
        }

// Creates a marker for everything else
    function createMarker(point, number) {

		var iconB = new GIcon();
			iconB.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
			iconB.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
			iconB.iconSize = new GSize(12, 20);
			iconB.shadowSize = new GSize(22, 20);
			iconB.iconAnchor = new GPoint(6, 20);
			iconB.infoWindowAnchor = new GPoint(5, 1);

// Sets up the clicking action of showing the info window
	var marker = new GMarker(point, iconB);

  GEvent.addListener(marker, "click", function() {
  	if (number==4) marker.openInfoWindowHtml("<strong>Vilnius Airport</strong> <br />  Vilnius 02007, <br />Lithuania");
    if (number==5) marker.openInfoWindowHtml("<strong>Main Train Station</strong><br />  Vilnius 02007, <br />Lithuania");
	});
   	return marker;
  }

		//Venue
		var Venue = new GLatLng(54.694707,25.275142);
		var NAG = new GLatLng(54.697742,25.270062);
		var Belmontas = new GLatLng(54.683731,25.356188);
		map.addOverlay(createMarkerV(Venue  , 1));
		map.addOverlay(createMarkerV(NAG  , 2));
		map.addOverlay(createMarkerV(Belmontas , 3));

		//Transportation
		var trainstation = new GLatLng(54.671291,25.285847);
		var airport = new GLatLng(54.642918,25.279477);
		map.addOverlay(createMarker(airport, 4));
		map.addOverlay(createMarker(trainstation, 5));

		//Hotels
		var hotel1 = new GLatLng(54.682382,25.289167);
		var hotel2 = new GLatLng(54.680814,25.288801);
		var hotel3 = new GLatLng(54.694354,25.278436);
		var hotel4 = new GLatLng(54.694589,25.282556);
		var hotel5 = new GLatLng(54.687422,25.284212);
		var hotel6 = new GLatLng(54.694790,25.285238);


		map.addOverlay(createMarkerH(hotel2, 1));
		map.addOverlay(createMarkerH(hotel3, 3));
		map.addOverlay(createMarkerH(hotel4, 2));
		map.addOverlay(createMarkerH(hotel5, 4));
		map.addOverlay(createMarkerH(hotel6, 5));
		map.addOverlay(createMarkerH(hotel1, 6));

      }
    }

		window.onload = function() {
			load();
		},
		window.onunload = function() {
			GUnload();
		}

