function createMarker(index)
{
	if(tabMarker.length > index)
	{
		markerOptions = { icon:tabIcone[tabMarker[index]["icone"]] };
		var gMarker = new GMarker(new GLatLng(tabMarker[index]["posX"], tabMarker[index]["posY"]), markerOptions);
		
		if(tabMarker[index]["lien"] != "")
			GEvent.addListener(gMarker, "click", function() { window.parent.window.location.replace(tabMarker[index]["lien"]); } );
		if(tabMarker[index]["textInfoBulle"] != "")
		{
			gMarker.info = tabMarker[index]["textInfoBulle"];
			GEvent.addListener(gMarker, "mouseover", function() { afficheBulle(gMarker); } );
			GEvent.addListener(gMarker,"mouseout", function() { bulle.style.visibility = "hidden"; } );
		}
	
		return gMarker;
	}
	else
		return false;
}

function afficheBulle(marker)
{
	bulle.innerHTML = marker.info;
	var point = map.getCurrentMapType().getProjection().fromLatLngToPixel(map.fromDivPixelToLatLng(new GPoint(0, 0), true), map.getZoom());
	var offset = map.getCurrentMapType().getProjection().fromLatLngToPixel(marker.getPoint(), map.getZoom());
	var anchor = marker.getIcon().iconAnchor;
	var width = marker.getIcon().iconSize.width;
	var height = bulle.clientHeight;
	var pos = new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(offset.x - point.x - anchor.x - Math.floor((bulle.offsetWidth - width) / 2), offset.y - point.y - anchor.y - height));
	pos.apply(bulle);
	bulle.style.visibility = "visible";
}