var loc_pathImage;

function initialize(pathImage) {
	loc_pathImage = pathImage;
	
	if (GBrowserIsCompatible()) {
		Icon = new GIcon(G_DEFAULT_ICON);
		Icon.image = loc_pathImage + "/dealer/marker_red.png";
				    
		map = new GMap2(document.getElementById("googlemap"));
		map.setCenter(new GLatLng(45, 9), 8);
		map.setUIToDefault();
	}
	
}

function createTabbedMarker(point,html1) {
	var marker = new GMarker(point,Icon);
				
	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(html1);
		marker.setImage(loc_pathImage + "/dealer/marker_yellow.png");  
	});
			    
	GEvent.addListener(marker, "infowindowclose", function() {
		marker.setImage(loc_pathImage + "/dealer/marker_red.png");	
	} );
	return marker;
}

function expandcollapse(idChild, nrChildren) {
	for ( var ich = 0; ich < nrChildren; ich++ ) {
		if(ich==idChild) {
			document.getElementById("childarea_" + ich).style.display="block";
		} else {
			document.getElementById("childarea_" + ich).style.display="none";
		}
	}
}

function hidediv(iddiv) {
	document.getElementById(iddiv).style.display="none";
}
