function getMapType(tmp)
{
	switch(tmp)
	{
		case 'roadmap'	 : return google.maps.MapTypeId.ROADMAP;
		case 'satellite' : return google.maps.MapTypeId.SATELLITE;
		case 'hybryd'	 : return google.maps.MapTypeId.HYBRID;
		case 'terrain'	 : return google.maps.MapTypeId.TERRAIN;
	}
}
function getZoomType(tmp)
{
	switch(tmp)
	{
		case 'pan' : return google.maps.NavigationControlStyle.ZOOM_PAN;
		case 'android' : return google.maps.NavigationControlStyle.ANDROID;
		case 'small' : return google.maps.NavigationControlStyle.SMALL;
	}
}
function getPosition(tmp)
{
	switch(tmp)
	{
		case 'top' : return google.maps.ControlPosition.TOP;
		case 'bottom' : return google.maps.ControlPosition.BOTTOM;
		case 'left' : return google.maps.ControlPosition.LEFT;
		case 'right' : return google.maps.ControlPosition.RIGHT;
		case 'top_left' : return google.maps.ControlPosition.TOP_LEFT;
		case 'top_right' : return google.maps.ControlPosition.TOP_RIGHT;
		case 'bottom_left' : return google.maps.ControlPosition.BOTTOM_LEFT;
		case 'bottom_right' : return google.maps.ControlPosition.BOTTOM_RIGHT;
	}
}
function getTrybMapy(tmp)
{
	switch(tmp)
	{
		case 'dropdown' : return google.maps.MapTypeControlStyle.DROPDOWN_MENU;
		case 'bar' : return google.maps.MapTypeControlStyle.HORIZONTAL_BAR;
	}
}

function updateMarkers2()
{
	for(i=0;i<markers.length;i++)
	{
		if(markers[i])
		{
			insertMarker2(markers[i]);
		}
	}
}

function insertMarker2(tmp)
{
	new google.maps.Marker({
		position: tmp.position,
		map: mapa,
		draggable: true,
		icon: tmp.icon,
		mynr: tmp.mynr,
		title: tmp.title,
		flat: true
	});
}

