jQuery(document).ready(function($) {
    $('#slideshow').cycle({
		fx: 'fade',
		next:   '.rightArrow', 
		prev:   '.leftArrow' 
	});
});

var hover=false;

jQuery(document).ready(function($)
		{
			$('.goToGallery').hover(
				function() { hover = true; },
				function () { hover = false; }
			)
		}
		);

jQuery(document).ready(function($) {
		$('#slideshow').hover(
			function()
			{
				$('.goToGallery').fadeIn(800);
			},
			function()
			{
				window.setTimeout(function() {
					if (!hover)
					{
						$('.goToGallery').fadeOut(1000);
					}
				}, 500);
				
			}
		)
	}
)

jQuery(document).ready(function($) {
    $('tr').hover(function(){
        $(this).css('background', '#fff4b4');
    },function(){
        $(this).css('background', 'none');
    })
});





function initialize() {
  var map = new GMap2(document.getElementById("map_canvas"));
  
  
  var baseIcon = new GIcon(G_DEFAULT_ICON);
        baseIcon.iconSize = new GSize(20, 34);
        baseIcon.shadowSize = new GSize(37, 34);
        baseIcon.iconAnchor = new GPoint(9, 34);
        baseIcon.infoWindowAnchor = new GPoint(9, 2);

        // Creates a marker whose info window displays the letter corresponding
        // to the given index.
        function createMarker(point, iconSrc, desc) {
          // Create a lettered icon for this point using our icon class
          
          var letteredIcon = new GIcon(baseIcon);
          letteredIcon.image = iconSrc;

          // Set up our GMarkerOptions object
          markerOptions = { icon:letteredIcon };
          var marker = new GMarker(point, markerOptions);

          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(desc);
          });
          return marker;
        }
  
  map.setCenter(new GLatLng(51.427792,21.161063), 15);
 
  map.addControl(new GLargeMapControl());
  map.addControl(new GMapTypeControl());
  //map.openInfoWindowHtml(new GLatLng(51.422554,21.165311), ("<strong>EWIDENT</strong> <br /> ul. Rapackiego 1/3"));
  //map.openInfoWindowHtml(new GLatLng(51.432404,21.156036), ("<strong>EWIDENT</strong> <br /> ul. Łokietka 12/3"));
    
    
  map.addOverlay(createMarker(new GLatLng(51.422554,21.165311), 'http://www.google.com/mapfiles/markerA.png', '<strong>EWIDENT</strong> <br /> ul. Rapackiego 1/3'));
 
  map.addOverlay(createMarker(new GLatLng(51.432404,21.156036), 'http://www.google.com/mapfiles/markerB.png', '<strong>EWIDENT</strong> <br /> ul. Łokietka 12/3'));
  
  
}
