var map = null;
var last_info_open = -1;
var urlBase="../";
zoomInit=0
centerInit=0
var info_open = -1;
var affiche = false;
var zoomLevel = 0;
var tousLesMarkers = new google.maps.LatLngBounds();
var my_style = [{
        url: "../templates/v2/img/marker_agence.png",
        height: 39,
        width: 55,
        opt_textColor: "#ffffff",
        opt_anchor: [13, 0],
        opt_textSize: 10
      }, {
        url: "../templates/v2/img/marker_agence.png",
        height: 39,
        width: 55,
        opt_textColor: "#ffffff",
        opt_anchor: [13, 0],
        opt_textSize: 10
      }, {
        url: "../templates/v2/img/marker_agence_2.png",
        height: 39,
        width: 55,
        opt_textColor: "#ffffff",
        opt_anchor: [13, 0],
        opt_textSize: 10
      }]
var image_icon = new Array();
var shadow_icon = new Array();
var shape_icon = new Array();
image_icon[0] = new google.maps.MarkerImage("http://www.cimm-immobilier.fr/templates/v2/img/logo-carre-30-30.gif", new google.maps.Size(30,30), new google.maps.Point(0,0),
new google.maps.Point(15,15));
shape_icon[0] = {coord: [1,1,1,30,30,30,30,1], type: "poly"};
image_icon[1] = new google.maps.MarkerImage("http://www.cimm-immobilier.fr/templates/v2/img/logo-carre-30-30-centre.gif", new google.maps.Size(30,30), new google.maps.Point(0,0),
new google.maps.Point(15,15));
shape_icon[1] = {coord: [1,1,1,30,30,30,30,1], type: "poly"};
function onLoadMap() {
var myLatlng = new google.maps.LatLng(45.339200,4.313120);
var map_options = {
zoom: 14,
scrollwheel: false,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var mapObj = document.getElementById("map");
if (mapObj != "undefined" && mapObj != null) {
var map = new google.maps.Map(mapObj,map_options);
bubble_d = new EBubble(map, "../templates/v2/img/ebubble_d.png",new google.maps.Size(384,132), new google.maps.Size(325,104), new google.maps.Point(55,20), new google.maps.Point(0,100),true,false,false);
bubble_g = new EBubble(map, "../templates/v2/img/ebubble_g.png",new google.maps.Size(384,132), new google.maps.Size(325,104), new google.maps.Point(27,20), new google.maps.Point(380,100),true,false,true);
bubble_double_d = new EBubble(map, "../templates/v2/img/ebubble_double_d.png",new google.maps.Size(405,272), new google.maps.Size(325,218), new google.maps.Point(55,22), new google.maps.Point(0,189),true,true,false);
bubble_double_g = new EBubble(map, "../templates/v2/img/ebubble_double_g.png",new google.maps.Size(405,272), new google.maps.Size(325,218), new google.maps.Point(30,22), new google.maps.Point(400,189),true,true,true);
marker = new Array();
libelleMarker = "biens";
var info = new Array();

						controlDiv = document.createElement("div");
						controlDiv.id = "controlDIV";
						controlDiv.style.display = "none";
						controlDiv.style.padding = "5px";
						var zoomImg = document.createElement("img");
						zoomImg.src = "../templates/v2/img/zoomMaxi.png";
						zoomImg.style.width = "210px";
						zoomImg.style.height = "30px";
						controlDiv.appendChild(zoomImg);
						controlDiv.index = 1;
						map.controls[google.maps.ControlPosition.TOP_LEFT].push(controlDiv);
					
function makeMarker(options)
					{
	  					var pushPin = new google.maps.Marker({map:map});
	 					pushPin.setOptions(options);
	 					google.maps.event.addListener(pushPin, "click", function()
						{
							if(!bubble_d.getGD(pushPin.getPosition()))
							{
								bubble_d.hide();
								bubble_double_g.hide();
								bubble_double_d.hide();
								bubble_g.openOnMap(options.position,options.content,false);
							}
							else
							{
								bubble_g.hide();
								bubble_double_g.hide();
								bubble_double_d.hide();
								bubble_d.openOnMap(options.position,options.content,false);
							}
	  					});
	 					tousLesMarkers.extend(options.position);
  	  					marker.push(pushPin);
	  					return pushPin;
					}
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[0] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.140.html\">Location - Appartement - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.140.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/location-appartement-43240-saint-just-malmont-16955-1798-1-140-0.jpg\" alt=\"LOCATION - Appartement - SAINT-JUST-MALMONT (43240) - 78 m2 - 4 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=SJM+813\">SJM 813</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">450 &euro; / mois</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(0);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.140.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[0],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.339200,4.313120),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[1] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.162.html\">Location - appartement - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.162.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/location-appartement-43240-saint-just-malmont-16955-1798-1-162-0.jpg\" alt=\"LOCATION - appartement - SAINT-JUST-MALMONT (43240) - 80 m2 - 4 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=SJM+916\">SJM 916</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">450 &euro; / mois</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(1);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.162.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[1],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.339700,4.313540),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[2] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-43240-saint-just-malmont-1798.1.142.html\">Vente - Appartement - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-43240-saint-just-malmont-1798.1.142.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/vente-appartement-43240-saint-just-malmont-16955-1798-1-142-0.jpg\" alt=\"VENTE - Appartement - SAINT-JUST-MALMONT (43240) - 95.21 m2 - 5 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=SJM+901\">SJM 901</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">100 000 &euro;</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(2);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-43240-saint-just-malmont-1798.1.142.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[2],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.338200,4.313580),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[3] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-42700-firminy-1798.1.131.html\">Vente - appartement - FIRMINY</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-42700-firminy-1798.1.131.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/vente-appartement-42700-firminy-16955-1798-1-131-0.jpg\" alt=\"VENTE - appartement - FIRMINY (42700) - 85 m2 - 4 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=SJM+888\">SJM 888</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">117 000 &euro;</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(3);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-42700-firminy-1798.1.131.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[3],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.340800,4.313160),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[4] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-maison-43240-saint-just-malmont-1798.1.145.html\">Vente - Maison - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-maison-43240-saint-just-malmont-1798.1.145.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/vente-maison-43240-saint-just-malmont-16955-1798-1-145-0.jpg\" alt=\"VENTE - Maison - SAINT-JUST-MALMONT (43240) - 88 m2 - 6 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=SJM+906\">SJM 906</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">166 000 &euro;</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(4);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-maison-43240-saint-just-malmont-1798.1.145.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[4],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.340700,4.314250),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[5] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.166.html\">Location - Appartement - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.166.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/location-appartement-43240-saint-just-malmont-16955-1798-1-166-0.jpg\" alt=\"LOCATION - Appartement - SAINT-JUST-MALMONT (43240) - 41.4 m2 - 2 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=CG+542\">CG 542</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">250 &euro; / mois</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(5);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.166.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[5],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.337600,4.314420),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[6] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.127.html\">Location - Appartement - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.127.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/location-appartement-43240-saint-just-malmont-16955-1798-1-127-0.jpg\" alt=\"LOCATION - Appartement - SAINT-JUST-MALMONT (43240) - 61.01 m2 - 3 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=SJM+882\">SJM 882</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">390 &euro; / mois</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(6);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.127.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[6],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.344000,4.313390),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[7] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.52.html\">Location - Appartement - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.52.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/defaut.jpg\" alt=\"LOCATION - Appartement - SAINT-JUST-MALMONT (43240) - 38 m2 - 2 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=CG+262\">CG 262</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">310 &euro; / mois</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(7);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.52.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[7],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.333300,4.316670),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[8] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.165.html\">Location - Appartement - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.165.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/location-appartement-43240-saint-just-malmont-16955-1798-1-165-0.jpg\" alt=\"LOCATION - Appartement - SAINT-JUST-MALMONT (43240) - 38 m2 - 2 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=CG+278\">CG 278</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">310 &euro; / mois</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(8);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/location-appartement-43240-saint-just-malmont-1798.1.165.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[8],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.333300,4.316670),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
if (shadow_icon[0] != "undefined" && shadow_icon[0] != null) {
var shadow = shadow_icon[0];
} else var shadow = null;
if (image_icon[0] != "undefined" && image_icon[0] != null) {
var icon = image_icon[0];
} else var icon = null;
if (shape_icon[0] != "undefined" && shape_icon[0] != null) {
var shape = shape_icon[0];
} else var shape = null;
info[9] = '<div class=\"ib_conteneur\"><div class=\"ib_cont_1\"><div class=\"ib_titre\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-43240-saint-just-malmont-1798.1.64.html\">Vente - Appartement - SAINT-JUST-MALMONT</a></div></div><div class=\"ib_cont_2\"><div class=\"ib_photo\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-43240-saint-just-malmont-1798.1.64.html\"/><img title=\"photo\" src=\"http://www.cimm-immobilier.fr/biens/img/micro/vente-appartement-43240-saint-just-malmont-16955-1798-1-64-0.jpg\" alt=\"VENTE - Appartement - SAINT-JUST-MALMONT (43240) - 50.12 m2 - 3 pi&egrave;ce(s)\" /></a></div></div><div class=\"ib_cont_3\"><div class=\"ib_ref\">Ref : <a href=\"http://www.cimm-immobilier.fr/biens/?rbien=814\">814</a></div></div><div class=\"ib_cont_4\"><div class=\"ib_prix\">74 000 &euro;</div></div><div class=\"ib_cont_5\"><div class=\"ib_info\"></div></div><div class=\"ib_cont_6\"><div class=\"ib_liste\"><a href=\"javascript:versAncre(9);\" title=\"Voir dans la liste\" target=\"_self\">Voir dans la liste</a></div></div><div class=\"ib_cont_7\"><div class=\"ib_detail\"><a href=\"http://www.cimm-immobilier.fr/biens/vente-appartement-43240-saint-just-malmont-1798.1.64.html\"> Voir le bien </a></div></div></div>';
var myop = {
										content : info[9],
										pixelOffset : new google.maps.Size(0,15),
										position : new google.maps.LatLng(45.333300,4.316670),
										title : "",
										shadow: shadow,
										icon: icon,
										shape: shape
										}
makeMarker(myop);
markerCluster = new MarkerClusterer(map, marker, {
			maxZoom: 14,
			info:info,
          	gridSize: 45,
          	styles: my_style});
var inc = 0.000200; var sudOuest = tousLesMarkers.getSouthWest(); var nordEst = tousLesMarkers.getNorthEast();
var nordEstLng = nordEst.lng();var nordEstLat = nordEst.lat(); var sudOuestLng = sudOuest.lng(); var sudOuestLat = sudOuest.lat();
tousLesMarkers.extend(new google.maps.LatLng(sudOuestLat-(inc*sudOuestLat),sudOuestLng-(inc*sudOuestLng*20)));
tousLesMarkers.extend(new google.maps.LatLng(nordEstLat+(inc*nordEstLat),nordEstLng+(inc*nordEstLng*20)));
if(tousLesMarkers!=null) map.fitBounds(tousLesMarkers);
google.maps.event.addListener(map,'zoom_changed', function() { zoomLevel = map.getZoom(); if(zoomLevel > 14) { map.setZoom(14);controlDiv.style.display='block';} else controlDiv.style.display='none';});
}
}
	function afficher()
						{
							if(dragObject.style.left=="0px" && dragObject.style.top=="0px")
							{
								clearInterval(timer);
								markerCluster.redraw();
								for (var j = 0, leCluster; leCluster = markerCluster.getCluster(j); j++)
								{
									if(leCluster.isMarkerAlreadyAdded(marker[theI])) break;
								}
								if(leCluster.getNbMarkerByCluster() > 1) 
									markerCluster.afficheBubble(leCluster.getClusterIcon(),markerCluster.getMarkers(),theI);
								else 
									google.maps.event.trigger(marker[theI], "click");
							}
						}

function myclick(i) {		theI = i;
												bubble_d.hide();
												bubble_g.hide();
												bubble_double_d.hide();
												bubble_double_g.hide();
												dragObject = bubble_double_g.getPanes().mapPane.parentNode;
												markerCluster.getMap().fitBounds(tousLesMarkers);
												timer=setInterval(afficher, 100);
										}
function versAncre(i) {document.location="#link"+i;}
