$(document).ready(function(){
		
	$(".picture").hover(
		function(){
			$(this).stop().animate({
				width: 120,
				left: -15,
				bottom: -10
			}, 150);
		},
		function(){
			$(this).stop().animate({
				width: 90,
				left: 0,
				bottom: 0
			}, 150);
		}
	);
	
	$('#coin-slider').coinslider({ width: 704, height: 256});
	
	$(".thumbnail").hover(
		function(){
			$(this).find(".cover").stop().animate({
				top: '-96px'
			}, {queue:false,duration:300});
		},
		function(){
			$(this).find(".cover").stop().animate({
				top: 0
			}, {queue:false,duration:300});
		}
	);
	
	$("a.group").fancybox({
		titleShow     : false,
		transitionIn  : 'elastic',
		transitionOut : 'elastic',
		easingIn      : 'easeOutBack',
		easingOut     : 'easeInBack'
	});
	
	if($("#googlemap").length){
	
		var lat=48.818111;
		var lng=2.329617;
		var geocoder = new google.maps.Geocoder();
		
		var latlng = new google.maps.LatLng(lat,lng);
		geocoder.geocode({ 'location': latlng}, function(results, status){
			
			if(status == google.maps.GeocoderStatus.OK){
				var myOptions={
					zoom: 14,
					center: results[0].geometry.location,
					mapTypeId: google.maps.MapTypeId.ROADMAP
				}
				
				var icon = new google.maps.MarkerImage("img/icon.png");
				
				var map = new google.maps.Map(document.getElementById("googlemap"), myOptions);
				
				var marker = new google.maps.Marker({
					map: map, 
					position: results[0].geometry.location,
					icon : icon
				});
			}
		});
    }

	
});
