  var googlemap

   function initialize(xlcl,ylcl,zoomlcl) 
   {
     try
     {
        initMap(xlcl,ylcl,zoomlcl);
     }
     catch(exc)
     {
        setTimeout("initialize("+xlcl+","+ylcl+","+zoomlcl+");",50);
     }
  }
   
   function initMap(xlcl,ylcl,zoomlcl)
   {
      x=xlcl;
      y=ylcl;
      zoom=zoomlcl; 
       
      googlemap = new GMap2(document.getElementById("map"));
      googlemap.setCenter(new GLatLng(x,y),zoom);
      googlemap.setMapType(G_PHYSICAL_MAP);
      googlemap.addControl(new GSmallMapControl());
      googlemap.addControl(new GMapTypeControl()); 
   }
   
   
   
      
  function addPaprikaMarker(address,dealershopName,displayAddress,itemnumber){
    setTimeout(function(){
  
    var geocoder = new GClientGeocoder();
    geocoder.getLatLng(
    	address,
    	function(point) {  	
			if(point) {
			    var pictureType	= "boutiques-map-marker"	     
			    var icon = new GIcon();
			    icon.image = '/01/images/paprika/'+ pictureType +'.gif';icon.iconSize = new GSize(18, 30);icon.iconAnchor = new GPoint(0, 0);icon.infoWindowAnchor = new GPoint(0, 0);
				var marker = new GMarker(point, icon);	
				GEvent.addListener(marker,'click', function() {
				marker.openInfoWindowHtml("<strong>" + dealershopName + "</strong> :<br /><span style='font-size:10px;font-family:Arial'>"+ displayAddress + "</span>" ); });		   
			    googlemap.addOverlay(marker);		
			}
			else {
				/*alert("Address not found !");*/
			}
		});
		},500*geoInit++);
    } 
    
   
  var geoInit = 0;

  function addCassisMarker(address,dealershopName,displayAddress,itemnumber){
    setTimeout(function(){
     var geocoder = new GClientGeocoder();
    geocoder.getLatLng(
    	address,
    	function(point) {  	
			if(point) {
			    var pictureType	= "boutiques-map-marker"	     
			    var icon = new GIcon();
			    icon.image = '/01/images/cassis/'+ pictureType +'.gif';icon.iconSize = new GSize(18, 30);icon.iconAnchor = new GPoint(0, 0);icon.infoWindowAnchor = new GPoint(0, 0);
				var marker = new GMarker(point, icon);	
				GEvent.addListener(marker,'click', function() {
				marker.openInfoWindowHtml("<strong>" + dealershopName + "</strong> :<br /><span style='font-size:10px;font-family:Arial'>"+ displayAddress + "</span>" ); });		   
			    googlemap.addOverlay(marker);
			}
			else {
				/*alert("Address not found !");*/
			}
		});
    },500*geoInit++);
    } 
  
    
    
    function GoToCassisMap(address,dealershopName,displayAddress){
      var geocoder = new GClientGeocoder();
	geocoder.getLatLng(
    	address,
    	function(point) {
        	
			if(point) {
			
			    var pictureType="boutiques-map-marker"
                var icon = new GIcon();
			    icon.image = '/01/images/cassis/'+ pictureType  +'.gif';icon.iconSize = new GSize(18,30);icon.iconAnchor = new GPoint(0, 0);icon.infoWindowAnchor = new GPoint(0, 0);
				googlemap.setCenter(new GLatLng(point.y,point.x),15);
                var marker = new GMarker(point, icon);
				googlemap.addOverlay(marker);
				marker.openInfoWindowHtml("<strong>" + dealershopName + "</strong> :<br /><span style='font-size:10px;font-family:Arial'>"+ displayAddress + "</span>" );
			}
		});
     }   
     
     
         function GoToPaprikaMap(address,dealershopName,displayAddress){
    var geocoder = new GClientGeocoder();
	geocoder.getLatLng(
    	address,
    	function(point) {
        	
			if(point) {
			
			    var pictureType="boutiques-map-marker"
                var icon = new GIcon();
			    icon.image = '/01/images/paprika/'+ pictureType  +'.gif';icon.iconSize = new GSize(18,30);icon.iconAnchor = new GPoint(0, 0);icon.infoWindowAnchor = new GPoint(0, 0);
				googlemap.setCenter(new GLatLng(point.y,point.x),15);
                var marker = new GMarker(point, icon);
				googlemap.addOverlay(marker);
				marker.openInfoWindowHtml("<strong>" + dealershopName + "</strong> :<br /><span style='font-size:10px;font-family:Arial'>"+ displayAddress + "</span>" );
			
			}
		});
     }   



   