function initializeMap() {
	var center = new google.maps.LatLng(45.882361,12.317669);
	var latlng = new google.maps.LatLng(45.882361,12.317669);
	var myOptions = {
		zoom: 11,
		center: center,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};
	var map = new google.maps.Map(document.getElementById("map"), myOptions);
	var marker = new google.maps.Marker({
		position: latlng,
		map: map
	});
}

$(document).ready(function() {
/*	$('.home .slideshow').slides({
		width: 1012,
		height: 420,
		//navigation: false,
		//pagination: false,
		playInterval: 5000,
		navigation: "fade",	// [String] Can be either "slide" or "fade"
		pagination: "fade" // [String] Can be either "slide" or "fade"
	});*/
	//setTimeout("$('.home .slideshow').slides('play')", 5000);
	if($(".slideshow")){
		$(".slideshow").cycle();
	}
	//read more apre dettaglio box prodotto
	$('.prodotti a.read_more').click(function(e) {
		var target = $(e.target);
		var id = target.attr('data-product');
		if(!$('#'+id).is(':visible')) {
			$('.prodotti .drawer').slideUp();
			$('#'+id).slideToggle();
		}
		$(".headline").removeClass("active");
		$(this).parent().children(".headline").addClass("active");
		return false;
	});
	
	$('.prodotti .close_button').click(function(e) {
		var target = $(e.target);
		var drawer = target.parents('.drawer');
		drawer.slideUp();
	});

	//select lingue
	$("li.languages").click(function(){
	    $("li.languages ul").show();
	});

	$("li.languages ul").hover(function(){
	   /* nothing */
	},
	function(){
	    $("li.languages ul").hide();
	});

	//click su box prodotto rilancio trigger a read more
	$(".grid_1.product").click(function () {
            $(this).children().children(".text").children("a.read_more").trigger("click");
        });

	//hover grigetto su box prodotto
	$(".grid_1.product").hover(function(){
	    $(this).children().children(".text").children(".headline").addClass("hover");

	},function(){
	    $(this).children().children(".text").children(".headline").removeClass("hover");
	});

	//mappa nel mondo
	$(".mappa_menu td span").click(function(){
	    $(".mappa_menu td span").removeClass("active");
	    var continente= $(this).attr("class");
	    $(".mappa").hide();
	    $(".mappa."+continente).show();
	    $(".nazioni").hide();
	    $(".nazioni."+continente).show();
	    $(this).addClass("active");
	})

});

