/*MAP GOOGLE*/
 function initialize() {
    var myLatlng = new google.maps.LatLng(43.897788,10.233194);
    var myOptions = {
      zoom: 16,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }

    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

    var contentString = '<div id="map2">'+
        '<div class="nuvola">'+
		'<br>'+
        '<font color="#000000"><b>Cals </b><br>Circolo Aziendale Lavoratori Salt</font><br>' +
        'Via Don E. Tazzoli, 9<br>'+
        '55043 Lido di Camaiore<br>'+
        '</div>'+
        '</div>';
        
    var infowindow = new google.maps.InfoWindow({
        content: contentString
    });
	var image = 'img/cals.png';
    var marker = new google.maps.Marker({
        position: myLatlng,
        map: map,
        title: 'Cals - Circolo Aziendale Lavoratori Salt',
		icon: image
    });
    google.maps.event.addListener(marker, 'click', function() {
      infowindow.open(map,marker);
    });
	
  }
  /* END MAP GOOGLE*/
  
  
  /* EFFECT FADE MENU*/

    $(document).ready(function(){
      // Get the ID of the body
      var parentID = $("body").attr("id");
      // Loop through the nav list items
      $("#nav li").each(function() {
        // compare IDs of the body and list-items
        var myID = $(this).attr("id");
        // only perform the change on hover if the IDs don't match (so the active link doesn't change on hover)
        if (myID != "n-" + parentID) {
          // for mouse actions
          $(this).children("a").hover(function() {
            // add a class to the list item so that additional styling can be applied to the <em> and the text
            $(this).addClass('over');
	          // add in the span that will be faded in and out
						$(this).append("<span><\/span>");
            $(this).find("span").fadeIn(400);
          }, function() {
            $(this).removeClass('over');
						// fade out the span then remove it completely to prevent the animations from continuing to run if you move over different items quickly
            $(this).find("span").fadeOut(400, function() {
				      $(this).remove();
						});
          });
          // for keyboard actions
          $(this).children("a").focus(function() {
						//check whether the link is already being hovered over before applying the class and extra span
						//required for Firefox which makes the link unclickable if there's two spans layered on top of the anchor
						if ($(this).attr('class')!='over') {
							$(this).addClass('over');
							$(this).append("<span><\/span>");
							$(this).find("span").fadeIn(400);
						}
          });
          $(this).children("a").blur(function() {
						$(this).removeClass('over');
						$(this).find("span").fadeOut(400, function() {
							$(this).remove();
						});
          });
        }
      });
    });
  /*  END EFFECT FADE MENU*/
  
 /*  CHANGE IMAGES ORGANIGRAMMA*/
  if (document.images) {
image1 = new Image
image2 = new Image
image3 = new Image

image1.src = "img/org/no-foto.png"
image2.src = "img/org/no-foto_1.png"
image3.src = "img/org/no-foto_2.png"
}
  
   /* END CHANGE IMAGES ORGANIGRAMMA*/
  
  
  
