function googlemap_show(w,h) {
	
	/* carte */
	mapdiv = document.getElementById('map');
	mapdiv.style.width=w+"px";
	mapdiv.style.height=h+"px";
	gmap = new GMap2(mapdiv);
	gmap.addControl(new GSmallMapControl());
	gmap.addControl(new GMapTypeControl());
	gmap.setCenter(new GLatLng(37.4419, -122.1419), 13);

	/* icon utilisateur */
	iconUser = new GIcon();
    iconUser.image = "./inter/images/map/icon_user_00.png";
	iconUser.shadow = './inter/images/map/icon_user_shadow.png';
	iconUser.iconSize = new GSize(16, 28);
	iconUser.shadowSize = new GSize(30, 30);
	iconUser.iconAnchor = new GPoint(8, 28);
	iconUser.infoWindowAnchor = new GPoint(5, 1);
	
	/* icon expositions en cours*/
	iconExpo = new GIcon();
	iconExpo.image = './inter/images/map/mm_20_green.png';
	iconExpo.shadow = './inter/images/map/mm_20_shadow.png';
	iconExpo.iconSize = new GSize(12, 20);
	iconExpo.shadowSize = new GSize(22, 20);
	iconExpo.iconAnchor = new GPoint(6, 20);
	iconExpo.infoWindowAnchor = new GPoint(5, 1);
	
	/* icon expositions passés */
	iconOldExpo = new GIcon();
	iconOldExpo.image = './inter/images/map/mm_20_yellow.png';
	iconOldExpo.shadow = './inter/images/map/mm_20_shadow.png';
	iconOldExpo.iconSize = new GSize(12, 20);
	iconOldExpo.shadowSize = new GSize(22, 20);
	iconOldExpo.iconAnchor = new GPoint(6, 20);
	iconOldExpo.infoWindowAnchor = new GPoint(5, 1);
	
	/* scroll */
	gmap.enableScrollWheelZoom();
	gmap.enableContinuousZoom();
	
	function wheelevent(e)
	{
		if (!e){
			e = window.event
		}
		if (e.preventDefault){
			e.preventDefault()
		}
		e.returnValue = false;
	}
	GEvent.addDomListener(gmap.getContainer(), "DOMMouseScroll", wheelevent);
	gmap.getContainer().onmousewheel = wheelevent;
}

function googlemap_save(id,type,lng,lat) {
	ChargerContenu('./googlemap.php5?id='+id+'&type='+type+'&lng='+lng+'&lat='+lat,null);
}  

