
var minMapScale = 9; 
var maxMapScale = 12 ; 

var couleurUPinactiv = '#6d6d6d';
var couleurUP = couleurUPinactiv;
var imageMarqueur = '';

function load() {
	if (GBrowserIsCompatible())
	{
		var mapZoom = new GMap2(document.getElementById("mapZoom"));

        mapZoom.setCenter(mapCenter, zoomFactor);
        mapZoom.addControl(new GLargeMapControl());

		afficherUP(mapZoom, 0, '#ffffff');

// Nyon Terre Sainte
		if(UP_ACTUELLE==214 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#dd2238'; 
			imageMarqueur =  cheminMarqueur+'214.png';
			afficherParoisse(mapZoom, 215, imageMarqueur); // Nyon
			afficherParoisse(mapZoom, 216, imageMarqueur); // Coppet
		}
		afficherUP(mapZoom, 214, couleurUP);
		couleurUP = couleurUPinactiv;

 // La Venoge - L'aubonne
		if(UP_ACTUELLE==189 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#dd228c';
			imageMarqueur =  cheminMarqueur+'189.png';
			afficherParoisse(mapZoom, 190, imageMarqueur); // Aubonne
			afficherParoisse(mapZoom, 191, imageMarqueur); // St-Prex
			afficherParoisse(mapZoom, 192, imageMarqueur); // Rolle
			afficherParoisse(mapZoom, 193, imageMarqueur); // Morges 
		}
		afficherUP(mapZoom, 189, couleurUP);
		couleurUP = couleurUPinactiv;

 // Dent de Vaulion
		if(UP_ACTUELLE==171 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#dd22d2';
			imageMarqueur =  cheminMarqueur+'171.png';
			afficherParoisse(mapZoom, 172, imageMarqueur); // Valée de Joux 
			afficherParoisse(mapZoom, 173, imageMarqueur); // Vallorbe
			afficherParoisse(mapZoom, 174, imageMarqueur); // Orbe
			afficherParoisse(mapZoom, 175, imageMarqueur); // Cossonay 
		}
		afficherUP(mapZoom, 171, couleurUP);
		couleurUP = couleurUPinactiv;

 // Renens Busigny
		if(UP_ACTUELLE==222 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#af22dd';
			imageMarqueur =  cheminMarqueur+'222.png';
			afficherParoisse(mapZoom, 223, imageMarqueur); // Bussigny
			afficherParoisse(mapZoom, 224, imageMarqueur); // Renens
		}
		afficherUP(mapZoom, 222, couleurUP);
		couleurUP = couleurUPinactiv;

 // Prilly
		if(UP_ACTUELLE==218 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#6822dd';
			imageMarqueur =  cheminMarqueur+'218.png';
			afficherParoisse(mapZoom, 219, imageMarqueur); // Prilly
			afficherParoisse(mapZoom, 220, imageMarqueur); // St-Joseph
		}
		afficherUP(mapZoom, 218, couleurUP);
		couleurUP = couleurUPinactiv;

 // Lausanne Lac
		if(UP_ACTUELLE==195 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#2245dd';
			imageMarqueur =  cheminMarqueur+'195.png';
			afficherParoisse(mapZoom, 196, imageMarqueur); // Sacré-Coeur
			afficherParoisse(mapZoom, 197, imageMarqueur); // Ste-Thérèse
		}
		afficherUP(mapZoom, 195, couleurUP);
		couleurUP = couleurUPinactiv;

 // Notre Dame
		if(UP_ACTUELLE==205 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#2294dd';
			imageMarqueur =  cheminMarqueur+'205.png';
			afficherParoisse(mapZoom, 206, imageMarqueur); // St-Esprit
			afficherParoisse(mapZoom, 207, imageMarqueur); // Notre Dame
			afficherParoisse(mapZoom, 208, imageMarqueur); // St-André
			afficherParoisse(mapZoom, 209, imageMarqueur); // St-Amédée
		}
		afficherUP(mapZoom, 205, couleurUP);
		couleurUP = couleurUPinactiv;

 // St-Etienne
		if(UP_ACTUELLE==236 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#22dbdd';
			imageMarqueur =  cheminMarqueur+'236.png';
			afficherParoisse(mapZoom, 237, imageMarqueur); // St-Nicolas
			afficherParoisse(mapZoom, 238, imageMarqueur); // St-Etienne
		}
		afficherUP(mapZoom, 236, couleurUP);
		couleurUP = couleurUPinactiv;

 // L'orient
		if(UP_ACTUELLE==199 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#22dd9d';
			imageMarqueur =  cheminMarqueur+'199.png';
			afficherParoisse(mapZoom, 200, imageMarqueur); // Cully
			afficherParoisse(mapZoom, 201, imageMarqueur); // Lutry
			afficherParoisse(mapZoom, 202, imageMarqueur); // St-Maurice
			afficherParoisse(mapZoom, 203, imageMarqueur); // St-Rédempteur
		}
		afficherUP(mapZoom, 199, couleurUP);
		couleurUP = couleurUPinactiv;

 // Gros de Vaud
		if(UP_ACTUELLE==181 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#22dd64';
			imageMarqueur =  cheminMarqueur+'181.png';
			afficherParoisse(mapZoom, 182, imageMarqueur); // Assens
			afficherParoisse(mapZoom, 183, imageMarqueur); // Villars-le-Terroir
			afficherParoisse(mapZoom, 184, imageMarqueur); // Bottens
			afficherParoisse(mapZoom, 185, imageMarqueur); // Echallens
			afficherParoisse(mapZoom, 186, imageMarqueur); // St-Barthélemy
			afficherParoisse(mapZoom, 187, imageMarqueur); // Poliez-Pittet
		}
		afficherUP(mapZoom, 181, couleurUP);
		couleurUP = couleurUPinactiv;

 // Chasseron Lac
		if(UP_ACTUELLE==166 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#22dd26';
			imageMarqueur =  cheminMarqueur+'166.png';
			afficherParoisse(mapZoom, 167, imageMarqueur); // Yverdon
			afficherParoisse(mapZoom, 168, imageMarqueur); // Grandson
			afficherParoisse(mapZoom, 169, imageMarqueur); // Ste-Croix
		}
		afficherUP(mapZoom, 166, couleurUP);
		couleurUP = couleurUPinactiv;

 // St-Pierre Les Roches
		if(UP_ACTUELLE==240 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#6ddd22';
			imageMarqueur =  cheminMarqueur+'240.png';
			afficherParoisse(mapZoom, 241, imageMarqueur); // Lucens
			afficherParoisse(mapZoom, 242, imageMarqueur); // Oron
			afficherParoisse(mapZoom, 243, imageMarqueur); // Moudon
		}
		afficherUP(mapZoom, 240, couleurUP);
		couleurUP = couleurUPinactiv;

 // Grand Vevey
		if(UP_ACTUELLE==177 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#aadd22';
			imageMarqueur =  cheminMarqueur+'177.png';
			afficherParoisse(mapZoom, 178, imageMarqueur); // Vevey Notre-Dame
			afficherParoisse(mapZoom, 179, imageMarqueur); // Vevey St-Jean
		}
		afficherUP(mapZoom, 177, couleurUP);
		couleurUP = couleurUPinactiv;

 // St-Barnabé
		if(UP_ACTUELLE==232 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#d2dd22';
			imageMarqueur =  cheminMarqueur+'232.png';
			afficherParoisse(mapZoom, 233, imageMarqueur); // Payerne
			afficherParoisse(mapZoom, 234, imageMarqueur); // Granges-Marnand
		}
		afficherUP(mapZoom, 232, couleurUP);
		couleurUP = couleurUPinactiv;

 // Riviera
		if(UP_ACTUELLE==226 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#ddb822';
			imageMarqueur =  cheminMarqueur+'226.png';
			afficherParoisse(mapZoom, 227, imageMarqueur); // Montreux
			afficherParoisse(mapZoom, 228, imageMarqueur); // Villeneuve
			afficherParoisse(mapZoom, 229, imageMarqueur); // Châteaux-d'Oex
			afficherParoisse(mapZoom, 230, imageMarqueur); // Clarens
		}
		afficherUP(mapZoom, 226, couleurUP);
		couleurUP = couleurUPinactiv;

 // Aigle
		if(UP_ACTUELLE==245 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#dd8722';
			imageMarqueur =  cheminMarqueur+'245.png';
			afficherParoisse(mapZoom, 246, imageMarqueur); // Aigle
			afficherParoisse(mapZoom, 247, imageMarqueur); // Lavey
			afficherParoisse(mapZoom, 248, imageMarqueur); // Leysin
			afficherParoisse(mapZoom, 249, imageMarqueur); // Ollon
			afficherParoisse(mapZoom, 250, imageMarqueur); // Villars sur Ollon
			afficherParoisse(mapZoom, 251, imageMarqueur); // Roche
			afficherParoisse(mapZoom, 252, imageMarqueur); // Bex
		}
		afficherUP(mapZoom, 245, couleurUP);
		couleurUP = couleurUPinactiv;

 // Notre Dame de Tours
		if(UP_ACTUELLE==211 || UP_ACTUELLE==-1)
		{ 
			couleurUP='#dd5722';
			imageMarqueur =  cheminMarqueur+'211.png';
			afficherParoisse(mapZoom, 212, imageMarqueur); // Avenches
		}
		afficherUP(mapZoom, 211, couleurUP);
		couleurUP = couleurUPinactiv;


		var mapTypes = mapZoom.getMapTypes(); 
		for (var i=0; i<mapTypes.length; i++)
		{ 
			mapTypes[i].getMinimumResolution = function() {return minMapScale;} 
			mapTypes[i].getMaximumResolution = function() {return maxMapScale;} 
		} // for
	}  // if
} // function load()
