﻿$(function() {
	$('#entete_anime').cycle({ fx:'fade', speed:2500,timeout:  2500});
	
		$("#contenant_ib_acc_tarif").click(function(){
			window.location.replace("/fr/tarifs/index.php");
		});

		$("#contenant_ib_acc_tarif").hover(function(){
			$(this).fadeTo(200,0.5); },function(){
				$(this).fadeTo(200,1);
		});
		
		$("#contenant_ib_acc_tarif_en").click(function(){
			window.location.replace("/fr/tarifs/index.php");
		});

		$("#contenant_ib_acc_tarif_en").hover(function(){
			$(this).fadeTo(200,0.5); },function(){
				$(this).fadeTo(200,1);
		});
		
		$("#contenant_ib_acc_boutique").click(function(){
			window.open("http://web.me.com/benboudreaugolf/Boutique_de_golf/Boutique_de_Golf.html", target='_blank')
		});

		$("#contenant_ib_acc_boutique").hover(function(){
			$(this).fadeTo(200,0.5); },function(){
				$(this).fadeTo(200,1);
		});
		
		$("#contenant_ib_acc_reservation").click(function(){
			window.open("http://parcoursducerf.caddyweb.caddy.ca/Caddy/entry.cwc", target='_blank')
		});

		$("#contenant_ib_acc_reservation").hover(function(){
			$(this).fadeTo(200,0.5); },function(){
				$(this).fadeTo(200,1);
		});
		
		$("#contenant_ib_acc_visite_photos").click(function(){
			window.location.replace("/fr/visite_photos/index.php");
		});

		$("#contenant_ib_acc_visite_photos").hover(function(){
			$(this).fadeTo(200,0.5); },function(){
				$(this).fadeTo(200,1);
		});
		
		$("#contenant_ib_acc_sondage").hover(function(){
			$(this).fadeTo(200,0.5); },function(){
				$(this).fadeTo(200,1);
		});
		
		
		$("#contenant_ib_acc_visite_photos_en").click(function(){
			window.location.replace("/en/visite_photos/index.php");
		});

		$("#contenant_ib_acc_visite_photos_en").hover(function(){
			$(this).fadeTo(200,0.5); },function(){
				$(this).fadeTo(200,1);
		});
		
		
		$("#lien_google").click(function(){
			$("#carte_google").animate({ height: 620}, 500);
			$("#lien_google").fadeOut();
			$("#lien_google_fermer").css("visibility","visible");
			$("#lien_google_fermer").fadeIn();
		});
		
		$("#lien_google_fermer").click(function(){
			$("#carte_google").animate({ height: 1}, 500);
			$("#lien_google_fermer").fadeOut();
			$("#lien_google").fadeIn();
		});
		
		
		$("#lien_brocard").click(function(){
			$("#carte_brocard").animate({ height: 735}, 500);
			$("#lien_brocard").fadeOut();
			$("#lien_brocard_fermer").css("visibility","visible");
			$("#lien_brocard_fermer").fadeIn();
		});
		
		$("#lien_brocard_fermer").click(function(){
			$("#carte_brocard").animate({ height: 1}, 500);
			$("#lien_brocard_fermer").fadeOut();
			$("#lien_brocard").fadeIn();
		});
		
		$("#lien_faon").click(function(){
			$("#carte_faon").animate({ height: 647}, 500);
			$("#lien_faon").fadeOut();
			$("#lien_faon_fermer").css("visibility","visible");
			$("#lien_faon_fermer").fadeIn();
		});
		
		$("#lien_faon_fermer").click(function(){
			$("#carte_faon").animate({ height: 1}, 500);
			$("#lien_faon_fermer").fadeOut();
			$("#lien_faon").fadeIn();
		});

	
});

