function loadGMap() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("gmap"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		var geocoder = new google.maps.ClientGeocoder();
		map.setCenter(new GLatLng(48.74894534343293,4.405517578125), 6);
		geocoder.getLatLng('14 avenue de l\'Opéra 75001 Paris France', function (coord) {
			point1 = coord;
			var infoTabs1 = [
				new GInfoWindowTab("Adresse", "<span style='color:#000000; font-weight:bold; font-size:12px;'>ARCHIMEST Paris<\/span><br \/><span style='color:#000000; font-size:12px;'> 14, avenue de l'Opéra<br \/>75001 PARIS<br \/><br \/>Tél : 01 42 60 74 92<\/span>"),
				new GInfoWindowTab("Itinéraire", "<form class=\"gmapDir\" id=\"gmapDirTo\" action=\"http://maps.google.com/maps\" method=\"get\" target=\"_blank\"><label for=\"gmapDirSaddr\">Lieu de départ:<\/label><br \/><input id=\"gmapDirSaddr\" type=\"text\" value=\"\" name=\"saddr\" size=\"30\"/><input type=\"hidden\" value=\" hopital de brabois 54500 Vandoeuvre-lès-Nancy \" name=\"daddr\" /><br \/><br \/><input id=\"gmapDirButtonTo\" class=\"gmapDirButton\" type=\"submit\" value=\"Envoyer\"\/><\/form>")
			];
			
			marker1 = new GMarker(point1);
			GEvent.addListener(marker1, "click", function() {
			  marker1.openInfoWindowTabsHtml(infoTabs1);
			});
			map.addOverlay(marker1);
		});
		geocoder.getLatLng('70 avenue du Général de Gaulle 94022 Creteil France', function (coord) {
			point2 = coord;
			var infoTabs2 = [
				new GInfoWindowTab("Adresse", "<span style='color:#000000; font-weight:bold; font-size:12px;'>ARCHIMEST Ile de France<\/span><br \/><span style='color:#000000; font-size:12px;'>70, avenue du Général de Gaulle<br \/>94022 CRETEIL Cedex<br \/><br \/>Tél : 01 49 81 68 41<\/span>"),
				new GInfoWindowTab("Itinéraire", "<form class=\"gmapDir\" id=\"gmapDirTo\" action=\"http://maps.google.com/maps\" method=\"get\" target=\"_blank\"><label for=\"gmapDirSaddr\">Lieu de départ:<\/label><br \/><input id=\"gmapDirSaddr\" type=\"text\" value=\"\" name=\"saddr\" size=\"30\"/><input type=\"hidden\" value=\" hopital de brabois 54500 Vandoeuvre-lès-Nancy \" name=\"daddr\" /><br \/><br \/><input id=\"gmapDirButtonTo\" class=\"gmapDirButton\" type=\"submit\" value=\"Envoyer\"\/><\/form>")
			];
			marker2 = new GMarker(point2);
			GEvent.addListener(marker2, "click", function() {
			  marker2.openInfoWindowTabsHtml(infoTabs2);
			});
			map.addOverlay(marker2);
		});
		geocoder.getLatLng('1 la Louvière 55300 Sampigny France', function (coord) {
			point3 = coord;
			var infoTabs3 = [
				new GInfoWindowTab("Adresse", "<span style='color:#000000; font-weight:bold; font-size:12px;'>ARCHIMEST Siège Logistique<\/span><br \/><span style='color:#000000; font-size:12px;'>1, la Louvière<br \/>55300 SAMPIGNY<br \/><br \/>Tél : 03 29 90 74 14<\/span>"),
				new GInfoWindowTab("Itinéraire", "<form class=\"gmapDir\" id=\"gmapDirTo\" action=\"http://maps.google.com/maps\" method=\"get\" target=\"_blank\"><label for=\"gmapDirSaddr\">Lieu de départ:<\/label><br \/><input id=\"gmapDirSaddr\" type=\"text\" value=\"\" name=\"saddr\" size=\"30\"/><input type=\"hidden\" value=\" hopital de brabois 54500 Vandoeuvre-lès-Nancy \" name=\"daddr\" /><br \/><br \/><input id=\"gmapDirButtonTo\" class=\"gmapDirButton\" type=\"submit\" value=\"Envoyer\"\/><\/form>")
			];
			marker3 = new GMarker(point3);
			GEvent.addListener(marker3, "click", function() {
			  marker3.openInfoWindowTabsHtml(infoTabs3);
			});
			map.addOverlay(marker3);
		});
	}
}


/***************************************************************************************************************************/


var Timer;

var	timer = 0;
var	mem = 0;

function move_text(mode, mem_actual) {
	var	doc;
	var	x;
	var	max;

	if (mem != mem_actual) {
		return ;
	}

	/*On recupere */
	doc = document.getElementById('scroll_content');
	x = doc.offsetTop;
	if (doc.offsetHeight) {
		max = doc.offsetHeight - 300;
	}
	else if (doc.style.pixelHeight) {
		max = doc.style.pixelHeight - 300;
	}

	if (max < 0) {
		max = 0;
	}
	
	max = -max;

		/* On deplace */
	if (mode == 'bottom') {
		x -= 10;
	}
	else {
		x += 10;
	}

	if (x < max) {
		x = max;
	}

	if (x > 0) {
		x = 0;
	}

	doc.style.top = x + "px";
	mem = 1;
	timer = setTimeout('move_text(\'' + mode + '\', 1);', 100);
}

function stop_moving_text() {
	mem = 0;
	clearTimeout(timer);
}

function move_tems(mode, mem_actual) {
	var	doc;
	var	x;
	var	max;

	if (mem != mem_actual) {
		return ;
	}

	/*On recupere */
	doc = document.getElementById('scroll_content');
	x = doc.offsetTop;
	if (doc.offsetHeight) {
		max = doc.offsetHeight - 230;
	}
	else if (doc.style.pixelHeight) {
		max = doc.style.pixelHeight - 230;
	}

	if (max < 0) {
		max = 0;
	}
	
	max = -max;

		/* On deplace */
	if (mode == 'bottom') {
		x -= 10;
	}
	else {
		x += 10;
	}

	if (x < max) {
		x = max;
	}

	if (x > 0) {
		x = 0;
	}

	doc.style.top = x + "px";
	mem = 1;
	timer = setTimeout('move_tems(\'' + mode + '\', 1);', 100);
}

function stop_moving_tems() {
	mem = 0;
	clearTimeout(timer);
}
