$(document).ready(function() {
	$("table").mouseover(function() {
		$(this).css("background", "#F4F4F4");
	});

	$("table").mouseout(function() {
		$(this).css("background", "white");
	});
});

var objMap, objGeoCoder, objBreoIcon

function mapInitialize() {
	if (GBrowserIsCompatible()) {
		objMap = new GMap2($("#map")[0]);
		objGeoCoder = new GClientGeocoder();
		objMap.enableContinuousZoom();
		objMap.enableScrollWheelZoom();
		objMap.addControl(new GLargeMapControl3D());
		objMap.addControl(new GScaleControl());
		objMap.addControl(new GHierarchicalMapTypeControl());
		objMap.addMapType(G_PHYSICAL_MAP);
		objMap.setCenter(new GLatLng(49.418121, 17.314453), 7, G_PHYSICAL_MAP);

		var objIcon = new GIcon(G_DEFAULT_ICON);
		objIcon.image = "/Images/Icons/Map-Pointer.png";
		objBreoIcon = {icon:objIcon};
	}
}

function mapAddDealer(numLatitude, numLongitude, strDescription) {
	if (GBrowserIsCompatible()) {
		var objMarker = new GMarker(new GLatLng(numLatitude, numLongitude), objBreoIcon);
		objMap.addOverlay(objMarker);
		GEvent.addListener(objMarker, "click", function() {objMarker.openInfoWindowTabsHtml(strDescription)});
	};
}
