$(function(){


	if ($('#imgs').size() > 0) {
		//$('#imgs').cycle();
		
	}
// Google Map

	if ($('#map').size() > 0) {
	
  var myOptions = {




  }

	
		var latlng = new google.maps.LatLng(43.60893, 1.409584),
			myOptions = {
			scrollwheel: false,
			zoom: 16,
			 mapTypeControl: false,
			center: latlng,
			 mapTypeControlOptions: {
      style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
    },
    navigationControlOptions: {
      style: google.maps.NavigationControlStyle.SMALL
    },
			mapTypeId: google.maps.MapTypeId.ROADMAP
			
			
			
			
			
		},
			map = new google.maps.Map($('#map')[0], myOptions),
			marker = new google.maps.Marker({
				map: map,
				title: 'Au pois gourmand',
				position: latlng
			});
			 google.maps.event.addListener(marker, 'click', function() {
    map.setZoom(12);
  });
	}

	// Apparitions des menus
	$('#index').find('nav').find('a').bind('showMenu', function(e) {
		var $this = $(this),
			$next = $this.next();
		$this.animate({
			opacity: 100,
			filter: 'alpha(opacity=100)'
		}, 600, function() {
			$next.length && $next.trigger('showMenu');
		})
	}).eq(0).trigger('showMenu');
	
	// Menu
	$('#menu ul').superfish();
	
	
	$('#contentblockminiimg').find('img').mouseover(function() {
	
			$(this).css("border-color","#EEFF31");
			var src = $(this).attr("src").match(/[^\.]+/) + "_over.jpg";
			$('#apercu').fadeOut(400, function() {

			 $('#apercu').attr("src", src);	


			if (this.complete) $(this).fadeIn(400);

			});
	
	

	});
	
	$('#contentblockminiimg').find('img').mouseout(function() {
	
			$(this).css("border-color","#eeeeee");		
		
	

	});
	
	
	
	
	
	
	

});

