/* slideshow home page */

	var  carrousel;
function dispArrows(car) {

}

jQuery(document).ready(function () {	
					
	jQuery("#slideshow_home ul").moodular({
		speed           : 2000,
		dispTimeout     : 3000
	});
	
		carrousel = jQuery("#slideshow ul").moodular({
					speed 		: 1000,
					dispTimeout 	: 3000,
					auto		: false,
					api		: true,
					continuous	: true,
					callbacks	: [dispArrows],
					startOn : 0				});
	
				jQuery('#next').click(function () { 
					carrousel.next(); 
					return false;
				});
				jQuery('#prev').click(function () { 
					carrousel.prev();
					return false;
				});

/* pour transparence png IE 6 */

$(document).pngFix();
	
});

/* function Google Map */
function load()
        {
        if (GBrowserIsCompatible())
          {
 var map = new GMap2(document.getElementById("map"));
          map.setCenter(new GLatLng(44.8415322, -0.5802201), 16);
// Ajout de la propriété "Marker" (repère personnalisé)
          var point = new GLatLng(44.8415322, -0.5802201); // Position du marker
// Initialisation d'un nouvel objet GIcon et de ses propriétés
          var MonIcon = new GIcon(G_DEFAULT_ICON);
          MonIcon.shadow = "http://leregent.cupcake.fr/wp-content/themes/LeRegent/images/logoMs.png"; // Image "Ombre"
          MonIcon.shadowSize=new GSize(110,48); // Dimensions de l'image "Ombre"
          MonIcon.iconSize=new GSize(96,48);
          MonIcon.iconAnchor=new GPoint(48,48);
          MonIcon.image="http://leregent.cupcake.fr/wp-content/themes/LeRegent/images/logoM.png";
// Affichage du marker (repère)
          var marker = new GMarker(point,MonIcon);
          map.addOverlay(marker);
          // ajout de la propriete zoom a la carte "map"
          //map.addControl(new GSmallMapControl);
		  map.addControl(new GSmallZoomControl3D(), new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10)));
          }
        }
