// accueil
	// animation gamme
	swfobject.embedSWF('swf/ban.swf', 'animationGammeWrapper', '700', '230', '6');

// presentation
	// animation voiture
	swfobject.embedSWF('swf/vroom.swf', 'vroom', '950', '316', '6');
	// vidéo youtube
	swfobject.embedSWF('http://www.youtube.com/v/0HdNxOnnAIc', 'youtube', '950', '400', '6', null, {
			allowScriptAccess: "always"
		}, {
			color1: '0xb1b1b1',
			color2: '0xcfcfcf',
			feature: 'player_embedded',
			fs: 1
		}
	);

$(document).ready(function() {

	// modeles
		// Fancybox
		$("a.button.operations").fancybox({
			padding: 20,
			frameWidth: 300,
			frameHeight: 300
		});

	// plan
		// google map
		if ($('#map').length>0 && GBrowserIsCompatible()) {
			var map = new GMap2(document.getElementById("map"));
			map.addControl(new GLargeMapControl());
			map.addControl(new GMapTypeControl()); //Type de carte (satellite / plan / mixte)
			var coord_p1 = new GLatLng(48.555442,7.745097);
			map.setCenter(coord_p1, 8);
			var icon = new GIcon();
			icon.image = "./img/icone-gmaps.png";
			icon.iconSize=new GSize(50,39);
			icon.iconAnchor=new GPoint(29,32);
			function createMarker(point, texte, icon) {
				var marker = new GMarker(point, {icon:icon, title:"Cliquez pour voir les coordonnées"});
				map.addOverlay(marker);
				GEvent.addListener(marker, "mouseover", function() {
					map.openInfoWindowHtml(point, texte);
				});
			}
			createMarker(coord_p1, '<div align="center" style="width: 320px; height: 250px; color: #000;"><br /><img src="./img/concessions/strasbourg/1.jpg" /><br />AUTO RELAIS SAGLIO<br>232, avenue de Colmar<br>67100 STRASBOURG<br>Tel: 03.88.79.16.79<br>Fax: 03.88.79.29.83<br>E-mail: <a class="mailto" href="mailto:a.r.s.strasbourg@csubaru.net">a.r.s.strasbourg@csubaru.net</a></div>', icon);
		}

});