// Remplacement de la police Broadsheet
Cufon.replace('h2');
Cufon.replace('#nav li, #carte #categories_liste li', {	hover: { color: '#ae2001' } });
// Cufon.replace('#liste_plats li h3');
Cufon.replace('#hotel #tarifs dl dt');
Cufon.replace('#hotel #tarifs dl dd dl dt span');
Cufon.replace('a.broadsheet', {	hover: { color: '#5a4f4a' } });
Cufon.replace('#contact p.submit input', {	hover: { color: '#5a4f4a' } });

$(document).ready(function(){
	
	// Anneaux
	var hauteurAnneaux = [131, 181, 231, 281, 373, 420, 466, 514, 560, 607, 654];
	$.each(hauteurAnneaux, function(index) {
		$('#wrapper').append('<div id="anneau'+index+'" class="anneau">');
		$('#anneau'+index).css({top: hauteurAnneaux[index]});
	});
	
	// Pageflip
	$("#pageflip").jFlip(593, 224, {
		background:"#F5E9C0",
		cornersTop:false,
		curlSize: 0.15,
		gradientColors: ["#78684C","#9D8D6E","#C5B794"]
	});
	
	// PNG fix
	$(document).pngFix();
	
	// Google Map
	if($('#map').length>0) {
		if (GBrowserIsCompatible()) {
			var map = new GMap2(document.getElementById("map"));
			map.addControl(new GSmallMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(30,13)));
			map.addControl(new GMapTypeControl()); // Type de carte (satellite / plan / mixte)
			var coord_p = new GLatLng(48.752249,7.939918);
			var coord_centre = new GLatLng(48.691584,7.880802);
			map.setCenter(coord_centre, 10);     
			var icon = new GIcon();
			icon.image = "./img/icone-gmaps.png";
			icon.iconSize=new GSize(64,59);
			icon.iconAnchor=new GPoint(32,30);
			var marker_p = new GMarker(coord_p, {icon:icon, title:"Cliquez pour voir les coordonnées"});
			map.addOverlay(marker_p);
			GEvent.addListener(marker_p, "click", function() {
				map.openInfoWindowHtml(coord_p,'<div align="center" style="height: 90px; color: #000;"><br /><strong>Auberge du Gourmet</strong><br/>4, route de Herrlisheim<br/>67410 DRUSENHEIM<br/>Tel. : 03 88 53 30 60</div>');
			});
		}
	}
	
});

