var baseIcon;
var programmeIcon;
var programmeOnIcon;

var host = window.location.host;

// initialisations
function geoInit() {

	// test compatibilite
	if (!GBrowserIsCompatible())
		return;

	// Icon de base
	baseIcon = new GIcon(G_DEFAULT_ICON);
	baseIcon.iconSize = new GSize(19, 19);
	baseIcon.shadow = "http://" + host + "/images/bg-picto-geo-programme.png"; // @todo : constantes
	baseIcon.shadowSize = new GSize(25, 27);
	baseIcon.iconAnchor = new GPoint(10, 10);
	baseIcon.infoWindowAnchor = new GPoint(3, -1);
	baseIcon.image = "http://" + host + "/images/picto-geo-programme.gif"; // @todo : constantes

	// Icon programme
	programmeIcon = new GIcon(baseIcon);
	
	// Icon programme actif
	programmeOnIcon = new GIcon(baseIcon);
	programmeOnIcon.image = "http://" + host + "/images/picto-geo-programme-on.gif"; // @todo : constantes

	// Icon BV actif
	bvOnIcon = new GIcon(baseIcon);
	bvOnIcon.image = "http://" + host + "/images/picto-geo-bv-on.gif"; // @todo : constantes
	
	// Icon de base pour les picto de services
	baseServiceIcon = new GIcon(G_DEFAULT_ICON);
	baseServiceIcon.iconSize = new GSize(25, 25);
	baseServiceIcon.shadow = "";
	baseServiceIcon.shadowSize = new GSize(38, 25);
	baseServiceIcon.iconAnchor = new GPoint(16, 25);
	baseServiceIcon.infoWindowAnchor = new GPoint(3, -1);
	
	// Transport
	transportIcon = new GIcon(baseServiceIcon);
	transportIcon.shadow = "http://" + host + "/images/picto-transport-shadow.png";
	transportIcon.image = "http://" + host + "/images/picto-transport.png"; // @todo : constantes
	
	// Ecoles
	ecoleIcon = new GIcon(baseServiceIcon);
	ecoleIcon.shadow = "http://" + host + "/images/picto-ecole-shadow.png";
	ecoleIcon.image = "http://" + host + "/images/picto-ecole.png"; // @todo : constantes
	
	// Garderie
	garderieIcon = new GIcon(baseServiceIcon);
	garderieIcon.shadow = "http://" + host + "/images/picto-garderie-shadow.png";
	garderieIcon.image = "http://" + host + "/images/picto-garderie.png"; // @todo : constantes

	// Sport
	sportIcon = new GIcon(baseServiceIcon);
	sportIcon.shadow = "http://" + host + "/images/picto-sport-shadow.png";
	sportIcon.image = "http://" + host + "/images/picto-sport.png"; // @todo : constantes
	
	// Sortie
	sortieIcon = new GIcon(baseServiceIcon);
	sortieIcon.shadow = "http://" + host + "/images/picto-sortie-shadow.png";
	sortieIcon.image = "http://" + host + "/images/picto-sortie.png"; // @todo : constantes
	
	// Commerce
	commerceIcon = new GIcon(baseServiceIcon);
	commerceIcon.shadow = "http://" + host + "/images/picto-commerce-shadow.png";
	commerceIcon.image = "http://" + host + "/images/picto-commerce.png"; // @todo : constantes
}
