/*
var icon_ville1 = new GIcon();
icon_ville1.image = "images/push_rouge.png";
icon_ville1.iconSize = new GSize(16, 28);
icon_ville1.iconAnchor = new GPoint(8, 28);
icon_ville1.infoWindowAnchor = new GPoint(8, 8);

var icon_ville2 = new GIcon();
icon_ville2.image = "images/push_bleu.png";
icon_ville2.iconSize = new GSize(14, 24);
icon_ville2.iconAnchor = new GPoint(7, 24);
icon_ville2.infoWindowAnchor = new GPoint(7, 7);

var icon_photo = new GIcon();
icon_photo.image = "images/photo.png";
icon_photo.iconSize = new GSize(18, 18);
icon_photo.iconAnchor = new GPoint(9, 18);
icon_photo.infoWindowAnchor = new GPoint(9, 9);

var icon_photo2 = new GIcon();
icon_photo2.image = "images/photo2.png";
icon_photo2.iconSize = new GSize(25, 25);
icon_photo2.iconAnchor = new GPoint(12, 25);
icon_photo2.infoWindowAnchor = new GPoint(12, 12);

var icon_hotel = new GIcon();
icon_hotel.image = "images/hotel_gg.gif";
icon_hotel.iconSize = new GSize(33, 33);
icon_hotel.iconAnchor = new GPoint(16, 16);
icon_hotel.infoWindowAnchor = new GPoint(16, 16);

var icon_parking = new GIcon();
icon_parking.image = "images/parking_gg.gif";
icon_parking.iconSize = new GSize(21, 21);
icon_parking.iconAnchor = new GPoint(10, 10);
icon_parking.infoWindowAnchor = new GPoint(10, 10);

var icon_gare = new GIcon();
icon_gare.image = "images/gare_gg.gif";
icon_gare.iconSize = new GSize(21, 21);
icon_gare.iconAnchor = new GPoint(10, 10);
icon_gare.infoWindowAnchor = new GPoint(10, 10);

var icon_aero = new GIcon();
icon_aero.image = "images/aero_gg.gif";
icon_aero.iconSize = new GSize(21, 21);
icon_aero.iconAnchor = new GPoint(10, 10);
icon_aero.infoWindowAnchor = new GPoint(10, 10);

var icon_porte = new GIcon();
icon_porte.image = "images/porte_gg.gif";
icon_porte.iconSize = new GSize(21, 21);
icon_porte.iconAnchor = new GPoint(10, 10);
icon_porte.infoWindowAnchor = new GPoint(10, 10);

var icon_metro = new GIcon();
icon_metro.image = "images/metro_gg.gif";
icon_metro.iconSize = new GSize(21, 21);
icon_metro.iconAnchor = new GPoint(10, 10);
icon_metro.infoWindowAnchor = new GPoint(10, 10);

var icon_annonce = new GIcon();
icon_annonce.image = "images/push_bleu.png";
icon_annonce.iconSize = new GSize(14, 24);
icon_annonce.iconAnchor = new GPoint(7, 24);
icon_annonce.infoWindowAnchor = new GPoint(7, 7);

var icon_poly = new GIcon();
//icon_poly.image = "http://maps.google.com/mapfiles/kml/pal2/icon10.png";
icon_poly.image = "http://maps.google.com/mapfiles/kml/pal2/icon2.png";
icon_poly.iconSize = new GSize(32, 32);
icon_poly.iconAnchor = new GPoint(16, 16);
icon_poly.infoWindowAnchor = new GPoint(16, 16);

var icon_drapeau = new GIcon();
icon_drapeau.image = "images/drapeau.png";
icon_drapeau.iconSize = new GSize(21, 32);
icon_drapeau.iconAnchor = new GPoint(1, 32);
icon_drapeau.infoWindowAnchor = new GPoint(10, 10);

var icon_tour_paris = [];
for(var h=1; h<=15; h++){
	icon_tour_paris[h] = new GIcon();
	icon_tour_paris[h].image = "images/paris_c" + h + ".png";
	icon_tour_paris[h].iconSize = new GSize(18, 18);
	icon_tour_paris[h].iconAnchor = new GPoint(9, 18);
	icon_tour_paris[h].infoWindowAnchor = new GPoint(9, 9);
}

*/

function affiche_marker(i) {
	cloudMap.panTo(aMarkers[i].getPoint());
	aMarkers[i].openInfoWindowHtml(aMarkersHtml[i]);
	aMarkers[i].setImage(baseIcon[23].image);
	
}

/*
function affiche_marker2(i) {
	cloudMap.panTo(aMarkers[i].getPoint());
	aMarkers[i].openInfoWindowHtml(aMarkersHtml[i]);
}
*/

function revert_marker(i) {
  switch (i)   {
    case 1: aMarkers[i].setImage(baseIcon[21].image);;   break;
    case 2: aMarkers[i].setImage(baseIcon[26].image);; break;
    default:  aMarkers[i].setImage(baseIcon[26].image);;
  }
}


/*
function createMarker(point, contenu_html, vide, index_gg, type_icon) {
	var marker = new GMarker(point, type_icon);
	GEvent.addListener(marker, "mouseover", function() {
		marker.openInfoWindowHtml(contenu_html);
	});
	return marker;
}
*/

function createMarker2(point, contenu_html, vide, index_gg, type_icon) {
	var marker = new GMarker(point, type_icon);
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(contenu_html);
	});
	aMarkers[index_gg] = marker;
	aMarkersHtml[index_gg] = contenu_html;
	return marker;
}
var aMarkers = new Array();
var aMarkersHtml = new Array();

/*
function createDragMarker(point, contenu_html, vide, index_gg, type_icon) {
	var marker = new GMarker(point, {draggable: true});
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(contenu_html);
	});
	return marker;
}


var icon_arrdt = new Array();
for(var i=1; i<=20; i++){
	icon_arrdt[i] = new GIcon();
	icon_arrdt[i].image = "images/label_arrdt_" + i + ".png";
	icon_arrdt[i].iconSize = new GSize(32, 32);
	icon_arrdt[i].iconAnchor = new GPoint(16, 16);
	icon_arrdt[i].infoWindowAnchor = new GPoint(16, 16);
}

var icon_prov = new Array();
for(var i=0; i<=28; i++){
	icon_prov[i] = new GIcon();
	icon_prov[i].image = "http://www.cybevasion.fr/lib/icones/tourisme/google/" + i + ".png";
	icon_prov[i].iconSize = new GSize(18, 18);
	icon_prov[i].iconAnchor = new GPoint(9, 9);
	icon_prov[i].infoWindowAnchor = new GPoint(9, 9);
}


var icon_num = new Array();
for(var i=1; i<=50; i++){
	icon_num[i] = new GIcon();
	icon_num[i].image = "images/push_" + i + ".png";
	icon_num[i].iconSize = new GSize(22, 37);
	icon_num[i].iconAnchor = new GPoint(11, 37);
	icon_num[i].infoWindowAnchor = new GPoint(11, 11);
}

*/


