function SaisieEntier(e)
{	
	var IE5 = false; 

	if (!e) 
		var e = window.event; 
	if (e.keyCode) 
		{ IE5= true; code = e.keyCode;} 
	else if (e.which) 
		code = e.which ; 

	//test du code 
	if (code < 48 || code > 57) 
	{ 
		if(IE5) 
			e.returnValue = false; 
		else 
			e.preventDefault(); 
	} 
} 

function choix_region($region,$r,$l)
{
	if ($l=='fr') {	document.Frm_Choix_Region.action='Parcs-et-jardins-en-'+$r+'_'+$region+'_'+$l; }
	if ($l=='uk') {	document.Frm_Choix_Region.action='Parks-and-gardens-in-'+$r+'_'+$region+'_'+$l; }
	if ($l=='sp') {	document.Frm_Choix_Region.action='Parques-y-jardines-en-'+$r+'_'+$region+'_'+$l; }
	if ($l=='de') {	document.Frm_Choix_Region.action='Parks-und-garten-in-'+$r+'_'+$region+'_'+$l; }
	if ($l=='it') {	document.Frm_Choix_Region.action='Parchi-y-gardini-in-'+$r+'_'+$region+'_'+$l;}
	document.Frm_Choix_Region.region.value=$region;
	document.Frm_Choix_Region.submit();
}

var map = null;
var geocoder = null;

function initialize(address, address2, address3, latitude, longitude) {
//address='Digne les bains';  if (GBrowserIsCompatible()) {
	geocoder = new GClientGeocoder();
  if (geocoder) {
	if ((latitude!='' && longitude!='')||(latitude!=0 && longitude!=0))
	{
		map = new GMap2(document.getElementById("map"));
		point = new GLatLng(latitude, longitude);
		map.setCenter(point, 10);
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		var icon = new GIcon();
		icon.image = "img/citrouille.gif";                
		icon.shadow = "img/citrouille.gif";
		icon.iconSize = new GSize(24, 38);
		icon.shadowSize = new GSize(24, 38);
		icon.iconAnchor = new GPoint(6, 38);
		icon.infoWindowAnchor = new GPoint(5, 1);
		var marker = new GMarker(point,icon);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml('<FONT face="Comic Sans MS" size=2>'+address.replace(/,/g, "<br/>")+'</font>');
		});
	}
	else
	{				geocoder.getLatLng(address,
		  function(point) {
			if (!point) {
			  geocoder.getLatLng(address2,
			  function(point) {
				if (!point) {
					  geocoder.getLatLng(address3,
					  function(point) {
						if (!point) {
						  reponse = false;
						} else {
							map = new GMap2(document.getElementById("map"));
							//point = new GLatLng(44.091006, 6.231478);
							map.setCenter(point, 10);
							map.addControl(new GLargeMapControl());
							map.addControl(new GMapTypeControl());
							var icon = new GIcon();
							icon.image = "img/citrouille.gif";                
							icon.shadow = "img/citrouille.gif";
							icon.iconSize = new GSize(24, 38);
							icon.shadowSize = new GSize(24, 38);
							icon.iconAnchor = new GPoint(6, 38);
							icon.infoWindowAnchor = new GPoint(5, 1);
							var marker = new GMarker(point,icon);
							map.addOverlay(marker);
							GEvent.addListener(marker, "click", function() {
							marker.openInfoWindowHtml('<FONT face="Comic Sans MS" size=2>'+address.replace(/,/g, "<br/>")+'</font>');
							});
						}
					  }
					);
				} else {
					map = new GMap2(document.getElementById("map"));
					//point = new GLatLng(44.091006, 6.231478);
					map.setCenter(point, 10);			       
					map.addControl(new GLargeMapControl());
					map.addControl(new GMapTypeControl());
					var icon = new GIcon();
					icon.image = "img/citrouille.gif";                
					icon.shadow = "img/citrouille.gif";
					icon.iconSize = new GSize(24, 38);
					icon.shadowSize = new GSize(24, 38);
					icon.iconAnchor = new GPoint(6, 38);
					icon.infoWindowAnchor = new GPoint(5, 1);
					var marker = new GMarker(point,icon);
					map.addOverlay(marker);
					GEvent.addListener(marker, "click", function() {
					marker.openInfoWindowHtml('<FONT face="Comic Sans MS" size=2>'+address.replace(/,/g, "<br/>")+'</font>');
					});
				}
			  }
			);
			} else {
				map = new GMap2(document.getElementById("map"));
				//point = new GLatLng(44.091006, 6.231478);
				map.setCenter(point, 10);
				map.addControl(new GLargeMapControl());
				map.addControl(new GMapTypeControl());
				var icon = new GIcon();
				icon.image = "img/citrouille.gif";                
				icon.shadow = "img/citrouille.gif";
				icon.iconSize = new GSize(24, 38);
				icon.shadowSize = new GSize(24, 38);
				icon.iconAnchor = new GPoint(6, 38);
				icon.infoWindowAnchor = new GPoint(5, 1);
				var marker = new GMarker(point,icon);
				map.addOverlay(marker);
				GEvent.addListener(marker, "click", function() {				marker.openInfoWindowHtml('<FONT face="Comic Sans MS" size=2>'+address.replace(/,/g, "<br/>")+'</font>');
				});
			}
		  }
		);
		}
	}
  }
}

function showAddress(address) {
}

function favoris() { 
if ( navigator.appName != 'Microsoft Internet Explorer' ) 
{ window.sidebar.addPanel("Parcs et Jardins de France et Portail du jardin et du jardinage - Jardinez.com","http://www.jardinez.com/",""); } else { window.external.AddFavorite("http://www.jardinez.com/","Parcs et Jardins de France et Portail du jardin et du jardinage"); } }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}