var map = null;
var manager = null;
var downloaded = 0;
var displayable;
var maxLevel = -1;
var ajaxMarkers = Array();

var normalIcon = new GIcon();
normalIcon.image = "http://labs.google.com/ridefinder/images/mm_20_yellow.png";
normalIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
normalIcon.iconSize = new GSize(12, 20);
normalIcon.shadowSize = new GSize(22, 20);
normalIcon.iconAnchor = new GPoint(6, 20);
normalIcon.infoWindowAnchor = new GPoint(5, 1);

var focusIcon = new GIcon();
focusIcon.image = "http://labs.google.com/ridefinder/images/mm_20_orange.png";
focusIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
focusIcon.iconSize = new GSize(12, 20);
focusIcon.shadowSize = new GSize(22, 20);
focusIcon.iconAnchor = new GPoint(6, 20);
focusIcon.infoWindowAnchor = new GPoint(5, 1);

var normalIconFilm = new GIcon();
normalIconFilm.image = "http://labs.google.com/ridefinder/images/mm_20_yellow.png";
normalIconFilm.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
normalIconFilm.iconSize = new GSize(12, 20);
normalIconFilm.shadowSize = new GSize(22, 20);
normalIconFilm.iconAnchor = new GPoint(6, 20);
normalIconFilm.infoWindowAnchor = new GPoint(5, 1);

var focusIconFilm = new GIcon();
focusIconFilm.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
focusIconFilm.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
focusIconFilm.iconSize = new GSize(12, 20);
focusIconFilm.shadowSize = new GSize(22, 20);
focusIconFilm.iconAnchor = new GPoint(6, 20);
focusIconFilm.infoWindowAnchor = new GPoint(5, 1);

function galleryMarker(id, latitude, longitude, title)
{
	var marker = new GMarker(new GLatLng(latitude, longitude), {title:title});
	finishMarker(marker, id, title);	
	return marker;
}

function normalMarker(id, latitude, longitude, title)
{
	var marker = new GMarker(new GLatLng(latitude, longitude), {title:title, icon:normalIcon});	
	finishMarker(marker, id, title);	
	return marker;
}

function focusMarker(id, latitude, longitude, title)
{
	var marker = new GMarker(new GLatLng(latitude, longitude), {title:title, icon:focusIcon});
	finishMarker(marker, id, title);	
	return marker;
}

function normalMarkerFilm(id, latitude, longitude, title)
{
	var marker = new GMarker(new GLatLng(latitude, longitude), {title:title, icon:normalIconFilm});	
	finishMarker(marker, id, title);	
	return marker;
}

function focusMarkerFilm(id, latitude, longitude, title)
{
	var marker = new GMarker(new GLatLng(latitude, longitude), {title:title, icon:focusIconFilm});
	finishMarker(marker, id, title);	
	return marker;
}

function finishMarker(marker, id, title)
{
	GEvent.addListener(marker, "mouseover", function() {window.status = title});	
	GEvent.addListener(marker, "mouseout", function() {window.status = ""});		
	GEvent.addListener(marker, "click", function() {window.location.href = "index.php?gallery=" + id});
}

function wheelZoom(event)
{
	if (event.detail) // Firefox
	{
		if (event.detail < 0) map.zoomIn();
		if (event.detail > 0) map.zoomOut();
	}
	else if (event.wheelDelta) // IE
	{
		if (event.wheelDelta > 0)	map.zoomIn();
		if (event.wheelDelta < 0)	map.zoomOut();
	}
		
	if (event.preventDefault) // Firefox
	{
		event.preventDefault();
		event.stopPropagation();
	}
	else // IE
	{
		event.returnValue = false;
		event.cancelBubble = true;
	}		
}

function updateMapInfo()
{
	if (!document.getElementById('mapinfo'))
		return;
	var toMark = Math.min(displayable, downloaded);
	if (toMark < all)
		document.getElementById('mapinfo').innerHTML = 
			mapBest + ' ' + toMark + ' ' + mapOf + ' ' + all + ' ' + mapGalleries;
	else
		document.getElementById('mapinfo').innerHTML = 
			mapAll + ' ' + mapOf + ' ' + all + ' ' + mapGalleries;
}

function markersDownloaded(zoom) 
{
	if (ajaxMarkers[zoom].readyState == 4 && ajaxMarkers[zoom].status == 200)
	{
		var markers = Array();
		eval(ajaxMarkers[zoom].responseText);
		downloaded += markers.length;
		if (!manager)
			manager = new GMarkerManager(map);
		manager.addMarkers(markers, zoom);
		manager.refresh();
	}
	updateMapInfo();
}

function downloadMarkers(zoom)
{
	ajaxMarkers[zoom] = GXmlHttp.create();
	if (ajaxMarkers[zoom] == null)
		return;
	 
	ajaxMarkers[zoom].onreadystatechange = function(){markersDownloaded(zoom)};
	ajaxMarkers[zoom].open('GET', 'ajax/map.php?zoom=' + zoom + markerRequest, true);
	ajaxMarkers[zoom].send(null);
}

function zoomEnd(oldLevel, newLevel)
{
	displayable = 10 * Math.pow(2, newLevel);
	updateMapInfo();
	while (maxLevel < newLevel)
	{
		maxLevel++;
		if (downloaded < all)
			downloadMarkers(maxLevel);
	}
}	

function mapOn()
{
	document.getElementById('nomap').style.display = 'none';
	document.getElementById('wraper').style.display = 'block';
	document.getElementById('map').style.display = 'block';
	if (!map)
	{
		if (document.getElementById('mapinfo'))
			document.getElementById('mapinfo').innerHTML = mapLoading + ' ...';
		load();
	}
	else
		updateMapInfo();
}

function mapOff()
{
	document.getElementById('wraper').style.display = 'none';
	document.getElementById('map').style.display = 'none';
	document.getElementById('nomap').style.display = 'block';
	if (document.getElementById('mapinfo'))
		document.getElementById('mapinfo').innerHTML =
			mapTurnOff + ' (<a class="normal" onclick="mapOn();">' + mapTurnOn + '</a>)';
}

function start()
{
	if (window.navigator.cookieEnabled)
	{
		var cookie = getCookie('map');
		if (cookie == 'off')
			mapOff();
		else
			mapOn();
	}
	else
		mapOn();
}

function end()
{
	if (document.getElementById('map').style.display == 'block')
	{
		if (window.navigator.cookieEnabled)
			setYearCookie('map', 'on');
	}
	else
	{
		if (window.navigator.cookieEnabled)
			setYearCookie('map', 'off');
	}
	if (map)
		unload();
}

function unload()
{
	if (window.navigator.cookieEnabled)
	{
		var type = -1;
		for (var i = 0; i < map.getMapTypes().length; i++)
   		if (map.getMapTypes()[i] == map.getCurrentMapType())
   			type = i;
		if (type > -1)
			setYearCookie('type', type);
	}
	GUnload();
}

function load() 
{
	if (GBrowserIsCompatible())
	{
		var element = document.getElementById('map');
		GEvent.addDomListener(element, 'DOMMouseScroll', wheelZoom); // Firefox
		GEvent.addDomListener(element, 'mousewheel', wheelZoom); // IE
		
		map = new GMap2(element);
		map.enableContinuousZoom();
		map.enableDoubleClickZoom();
		if (element.className == 'mapWide')
		{
			map.addControl(new GLargeMapControl());
			map.addControl(new GScaleControl());
			map.addControl(new GMapTypeControl());
		}
		else
		{
			map.addControl(new GSmallMapControl());
		}	
		GEvent.addListener(map, 'zoomend', zoomEnd);
		positionMap();
		
		if (window.navigator.cookieEnabled)
		{
			var cookie = getCookie('type');
			if (cookie != '')
				map.setMapType(map.getMapTypes()[cookie]);
		}
	}
}

function moveToCountry()
{
	id_country = document.getElementById('id_country').value;
	
	if(typeof(id_country) != 'undefined' && id_country != '')
	{
		bounds = new GLatLngBounds(
			new GLatLng(countries[id_country]['south'], countries[id_country]['west']), 
			new GLatLng(countries[id_country]['north'], countries[id_country]['east']));
		var zoom = map.getBoundsZoomLevel(bounds);
		var center = bounds.getCenter();
	}
	else
	{
		var zoom = 1;
		var center = new GLatLng(0,0);		
	}
	map.setCenter(center, zoom);
}

function loadCountries()
{
	countries = new Array();var countryLine = new Array();
	countryLine['north'] = 42.65;
	countryLine['south'] = 42.43;
	countryLine['east'] = 1.78;
	countryLine['west'] = 1.4;
	countries['ad'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 26.07;
	countryLine['south'] = 22.63;
	countryLine['east'] = 56.37;
	countryLine['west'] = 51.58;
	countries['ae'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 38.48;
	countryLine['south'] = 29.4;
	countryLine['east'] = 74.87;
	countryLine['west'] = 60.48;
	countries['af'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 18.13;
	countryLine['south'] = 16.53;
	countryLine['east'] = -61.21;
	countryLine['west'] = -62.81;
	countries['ag'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 42.65;
	countryLine['south'] = 39.63;
	countryLine['east'] = 21.07;
	countryLine['west'] = 19.27;
	countries['al'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 41.33;
	countryLine['south'] = 38.83;
	countryLine['east'] = 46;
	countryLine['west'] = 43.5;
	countries['am'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -5.68;
	countryLine['south'] = -17.75;
	countryLine['east'] = 24.05;
	countryLine['west'] = 11.67;
	countries['ao'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -21.77;
	countryLine['south'] = -55.05;
	countryLine['east'] = -53.63;
	countryLine['west'] = -73.58;
	countries['ar'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 49.03;
	countryLine['south'] = 46.33;
	countryLine['east'] = 17.15;
	countryLine['west'] = 9.5;
	countries['at'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -9.92;
	countryLine['south'] = -43.65;
	countryLine['east'] = 153.7;
	countryLine['west'] = 113.15;
	countries['au'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 41.92;
	countryLine['south'] = 38.33;
	countryLine['east'] = 50.5;
	countryLine['west'] = 44.83;
	countries['az'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 45.28;
	countryLine['south'] = 42.53;
	countryLine['east'] = 19.67;
	countryLine['west'] = 15.75;
	countries['ba'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 14.5;
	countryLine['south'] = 12.5;
	countryLine['east'] = -58.5;
	countryLine['west'] = -60.5;
	countries['bb'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 26.75;
	countryLine['south'] = 20.5;
	countryLine['east'] = 92.93;
	countryLine['west'] = 88;
	countries['bd'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 51.5;
	countryLine['south'] = 49.5;
	countryLine['east'] = 6.4;
	countryLine['west'] = 2.53;
	countries['be'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 15.1;
	countryLine['south'] = 9.38;
	countryLine['east'] = 2.37;
	countryLine['west'] = -5.52;
	countries['bf'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 44.2;
	countryLine['south'] = 41.23;
	countryLine['east'] = 28.6;
	countryLine['west'] = 22.35;
	countries['bg'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 26.87;
	countryLine['south'] = 25.27;
	countryLine['east'] = 51.33;
	countryLine['west'] = 49.73;
	countries['bh'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -2.75;
	countryLine['south'] = -4.47;
	countryLine['east'] = 30.88;
	countryLine['west'] = 29;
	countries['bi'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 12.42;
	countryLine['south'] = 6.25;
	countryLine['east'] = 3.75;
	countryLine['west'] = 0.67;
	countries['bj'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 5.34;
	countryLine['south'] = 3.74;
	countryLine['east'] = 115.52;
	countryLine['west'] = 113.92;
	countries['bn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -9.57;
	countryLine['south'] = -22.87;
	countryLine['east'] = -57.45;
	countryLine['west'] = -69.63;
	countries['bo'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 5.27;
	countryLine['south'] = -33.75;
	countryLine['east'] = -34.77;
	countryLine['west'] = -73.65;
	countries['br'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 26.67;
	countryLine['south'] = 22.42;
	countryLine['east'] = -72.83;
	countryLine['west'] = -80.83;
	countries['bs'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 28;
	countryLine['south'] = 26.72;
	countryLine['east'] = 92;
	countryLine['west'] = 88.75;
	countries['bt'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -17.78;
	countryLine['south'] = -26.85;
	countryLine['east'] = 28.38;
	countryLine['west'] = 22;
	countries['bw'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 56.17;
	countryLine['south'] = 51.23;
	countryLine['east'] = 32.75;
	countryLine['west'] = 23.18;
	countries['by'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 18.48;
	countryLine['south'] = 15.9;
	countryLine['east'] = -87.83;
	countryLine['west'] = -89.25;
	countries['bz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 74.2;
	countryLine['south'] = 41.68;
	countryLine['east'] = -52.53;
	countryLine['west'] = -141;
	countries['ca'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 5.33;
	countryLine['south'] = -13.5;
	countryLine['east'] = 31.13;
	countryLine['west'] = 12.17;
	countries['cd'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 11;
	countryLine['south'] = 2.33;
	countryLine['east'] = 27.5;
	countryLine['west'] = 14.5;
	countries['cf'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 3.73;
	countryLine['south'] = -4.9;
	countryLine['east'] = 18.77;
	countryLine['west'] = 11.22;
	countries['cg'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 47.8;
	countryLine['south'] = 45.82;
	countryLine['east'] = 10.48;
	countryLine['west'] = 5.95;
	countries['ch'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 10.75;
	countryLine['south'] = 4.37;
	countryLine['east'] = -2.5;
	countryLine['west'] = -8.62;
	countries['ci'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -17.5;
	countryLine['south'] = -55.98;
	countryLine['east'] = -67;
	countryLine['west'] = -75.7;
	countries['cl'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 13.22;
	countryLine['south'] = 1.62;
	countryLine['east'] = 16.22;
	countryLine['west'] = 8.33;
	countries['cm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 53.52;
	countryLine['south'] = 3.83;
	countryLine['east'] = 135.17;
	countryLine['west'] = 73.83;
	countries['cn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 12.43;
	countryLine['south'] = -4.22;
	countryLine['east'] = -66.85;
	countryLine['west'] = -79.03;
	countries['co'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 11.27;
	countryLine['south'] = 8;
	countryLine['east'] = -81.58;
	countryLine['west'] = -85.67;
	countries['cr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 23.22;
	countryLine['south'] = 19.8;
	countryLine['east'] = -74.12;
	countryLine['west'] = -84.95;
	countries['cu'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 17.5;
	countryLine['south'] = 14.5;
	countryLine['east'] = -22.5;
	countryLine['west'] = -25.5;
	countries['cv'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 35.7;
	countryLine['south'] = 34.57;
	countryLine['east'] = 34.6;
	countryLine['west'] = 32.28;
	countries['cy'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 51.07;
	countryLine['south'] = 48.55;
	countryLine['east'] = 18.85;
	countryLine['west'] = 12.08;
	countries['cz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 54.92;
	countryLine['south'] = 47.28;
	countryLine['east'] = 15.03;
	countryLine['west'] = 5.87;
	countries['de'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 12.72;
	countryLine['south'] = 10.92;
	countryLine['east'] = 43.43;
	countryLine['west'] = 41.8;
	countries['dj'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 57.73;
	countryLine['south'] = 54.55;
	countryLine['east'] = 15.18;
	countryLine['west'] = 8.07;
	countries['dk'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 16.25;
	countryLine['south'] = 14.65;
	countryLine['east'] = -60.55;
	countryLine['west'] = -62.15;
	countries['dm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 19.97;
	countryLine['south'] = 17.62;
	countryLine['east'] = -68.3;
	countryLine['west'] = -72;
	countries['do'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 37.17;
	countryLine['south'] = 19;
	countryLine['east'] = 11.83;
	countryLine['west'] = -8.75;
	countries['dz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 1.43;
	countryLine['south'] = -4.98;
	countryLine['east'] = -75.22;
	countryLine['west'] = -81;
	countries['ec'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 59.75;
	countryLine['south'] = 57.57;
	countryLine['east'] = 28.25;
	countryLine['west'] = 21.8;
	countries['ee'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 31.75;
	countryLine['south'] = 21.73;
	countryLine['east'] = 36.9;
	countryLine['west'] = 24.71;
	countries['eg'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 27.67;
	countryLine['south'] = 21.35;
	countryLine['east'] = -8.67;
	countryLine['west'] = -17.12;
	countries['eh'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 18;
	countryLine['south'] = 12.35;
	countryLine['east'] = 43.12;
	countryLine['west'] = 36.43;
	countries['er'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 43.78;
	countryLine['south'] = 35.97;
	countryLine['east'] = 4.33;
	countryLine['west'] = -9.3;
	countries['es'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 14.86;
	countryLine['south'] = 3.45;
	countryLine['east'] = 48.22;
	countryLine['west'] = 33.05;
	countries['et'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 70.1;
	countryLine['south'] = 59.5;
	countryLine['east'] = 31.58;
	countryLine['west'] = 19.12;
	countries['fi'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -15;
	countryLine['south'] = -22;
	countryLine['east'] = -175;
	countryLine['west'] = 175;
	countries['fj'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 12;
	countryLine['south'] = 0;
	countryLine['east'] = 163;
	countryLine['west'] = 138;
	countries['fm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 51.08;
	countryLine['south'] = 41.37;
	countryLine['east'] = 9.55;
	countryLine['west'] = -4.8;
	countries['fr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 2.05;
	countryLine['south'] = -3.95;
	countryLine['east'] = 14.87;
	countryLine['west'] = 9.1;
	countries['ga'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 13.25;
	countryLine['south'] = 11.65;
	countryLine['east'] = -60.85;
	countryLine['west'] = -62.45;
	countries['gd'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 43.58;
	countryLine['south'] = 41.03;
	countryLine['east'] = 46.72;
	countryLine['west'] = 40;
	countries['ge'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 11.23;
	countryLine['south'] = 4.72;
	countryLine['east'] = 1.18;
	countryLine['west'] = -3.22;
	countries['gh'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 13.82;
	countryLine['south'] = 13.17;
	countryLine['east'] = -13.78;
	countryLine['west'] = -16.85;
	countries['gm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 12.72;
	countryLine['south'] = 7.13;
	countryLine['east'] = -7.67;
	countryLine['west'] = -15;
	countries['gn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 2.35;
	countryLine['south'] = 0.92;
	countryLine['east'] = 11.32;
	countryLine['west'] = 9.35;
	countries['gq'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 41.75;
	countryLine['south'] = 34.97;
	countryLine['east'] = 29.63;
	countryLine['west'] = 19.37;
	countries['gr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 17.8;
	countryLine['south'] = 13.73;
	countryLine['east'] = -88.28;
	countryLine['west'] = -92.25;
	countries['gt'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 12.68;
	countryLine['south'] = 10.93;
	countryLine['east'] = -13.63;
	countryLine['west'] = -16.72;
	countries['gw'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 8.55;
	countryLine['south'] = 1.18;
	countryLine['east'] = -56.48;
	countryLine['west'] = -61.4;
	countries['gy'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 16;
	countryLine['south'] = 13;
	countryLine['east'] = -83.15;
	countryLine['west'] = -89.35;
	countries['hn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 46.55;
	countryLine['south'] = 42.38;
	countryLine['east'] = 19.45;
	countryLine['west'] = 13.5;
	countries['hr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 19.95;
	countryLine['south'] = 18;
	countryLine['east'] = -71.58;
	countryLine['west'] = -74.5;
	countries['ht'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 48.58;
	countryLine['south'] = 45.75;
	countryLine['east'] = 22.9;
	countryLine['west'] = 16.1;
	countries['hu'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 6;
	countryLine['south'] = -11;
	countryLine['east'] = 141;
	countryLine['west'] = 95;
	countries['id'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 55.62;
	countryLine['south'] = 51.45;
	countryLine['east'] = -6;
	countryLine['west'] = -10.4;
	countries['ie'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 33.33;
	countryLine['south'] = 29.5;
	countryLine['east'] = 35.88;
	countryLine['west'] = 34.22;
	countries['il'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 37.1;
	countryLine['south'] = 8.07;
	countryLine['east'] = 97.42;
	countryLine['west'] = 68.12;
	countries['in'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 37.35;
	countryLine['south'] = 29.12;
	countryLine['east'] = 48.58;
	countryLine['west'] = 38.78;
	countries['iq'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 39.77;
	countryLine['south'] = 25.08;
	countryLine['east'] = 63.3;
	countryLine['west'] = 44.05;
	countries['ir'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 66.53;
	countryLine['south'] = 63.4;
	countryLine['east'] = -13.5;
	countryLine['west'] = -24.53;
	countries['is'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 47.08;
	countryLine['south'] = 36.63;
	countryLine['east'] = 18.5;
	countryLine['west'] = 6.63;
	countries['it'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 18.53;
	countryLine['south'] = 17.72;
	countryLine['east'] = -76.17;
	countryLine['west'] = -78.33;
	countries['jm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 33.37;
	countryLine['south'] = 29.18;
	countryLine['east'] = 39.28;
	countryLine['west'] = 34.95;
	countries['jo'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 45.52;
	countryLine['south'] = 30.23;
	countryLine['east'] = 145.82;
	countryLine['west'] = 128.58;
	countries['jp'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 4.62;
	countryLine['south'] = -4.67;
	countryLine['east'] = 41.68;
	countryLine['west'] = 34.08;
	countries['ke'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 43.2;
	countryLine['south'] = 39.2;
	countryLine['east'] = 80.2;
	countryLine['west'] = 69.3;
	countries['kg'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 14.67;
	countryLine['south'] = 10.02;
	countryLine['east'] = 107.54;
	countryLine['west'] = 102.33;
	countries['kh'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 5;
	countryLine['south'] = -11;
	countryLine['east'] = -147;
	countryLine['west'] = 169;
	countries['ki'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -11;
	countryLine['south'] = -13;
	countryLine['east'] = 45;
	countryLine['west'] = 43;
	countries['km'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 18.1;
	countryLine['south'] = 16.5;
	countryLine['east'] = -62;
	countryLine['west'] = -63.6;
	countries['kn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 42.83;
	countryLine['south'] = 37.83;
	countryLine['east'] = 129.25;
	countryLine['west'] = 124.17;
	countries['kp'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 38.67;
	countryLine['south'] = 34.33;
	countryLine['east'] = 129.33;
	countryLine['west'] = 126;
	countries['kr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 30.1;
	countryLine['south'] = 28.53;
	countryLine['east'] = 48.38;
	countryLine['west'] = 46.57;
	countries['kw'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 55.43;
	countryLine['south'] = 40.95;
	countryLine['east'] = 87.3;
	countryLine['west'] = 46.5;
	countries['kz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 22.5;
	countryLine['south'] = 13.9;
	countryLine['east'] = 107.7;
	countryLine['west'] = 100.1;
	countries['la'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 34.83;
	countryLine['south'] = 33;
	countryLine['east'] = 36.83;
	countryLine['west'] = 35;
	countries['lb'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 14.73;
	countryLine['south'] = 13.13;
	countryLine['east'] = -60.2;
	countryLine['west'] = -61.8;
	countries['lc'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 47.27;
	countryLine['south'] = 47.05;
	countryLine['east'] = 9.63;
	countryLine['west'] = 9.47;
	countries['li'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 9.83;
	countryLine['south'] = 5.92;
	countryLine['east'] = 81.88;
	countryLine['west'] = 79.65;
	countries['lk'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 8.54;
	countryLine['south'] = 4.37;
	countryLine['east'] = -7.27;
	countryLine['west'] = -11.53;
	countries['lr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -28.58;
	countryLine['south'] = -30.67;
	countryLine['east'] = 29.08;
	countryLine['west'] = 27.05;
	countries['ls'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 56.45;
	countryLine['south'] = 53.9;
	countryLine['east'] = 26.85;
	countryLine['west'] = 20.93;
	countries['lt'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 50.17;
	countryLine['south'] = 49.47;
	countryLine['east'] = 6.5;
	countryLine['west'] = 5.75;
	countries['lu'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 58.08;
	countryLine['south'] = 55.67;
	countryLine['east'] = 28.23;
	countryLine['west'] = 20.97;
	countries['lv'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 33.13;
	countryLine['south'] = 18.75;
	countryLine['east'] = 25.2;
	countryLine['west'] = 9.33;
	countries['ly'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 35.9;
	countryLine['south'] = 27.67;
	countryLine['east'] = -0.92;
	countryLine['west'] = -13.12;
	countries['ma'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 43.75;
	countryLine['south'] = 43.72;
	countryLine['east'] = 7.44;
	countryLine['west'] = 7.41;
	countries['mc'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 48.47;
	countryLine['south'] = 45.47;
	countryLine['east'] = 30.12;
	countryLine['west'] = 26.62;
	countries['md'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 43.55;
	countryLine['south'] = 41.87;
	countryLine['east'] = 20.38;
	countryLine['west'] = 18.43;
	countries['me'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -11.95;
	countryLine['south'] = -25.56;
	countryLine['east'] = 50.5;
	countryLine['west'] = 43.2;
	countries['mg'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 15;
	countryLine['south'] = 4;
	countryLine['east'] = 173;
	countryLine['west'] = 165;
	countries['mh'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 42.37;
	countryLine['south'] = 40.85;
	countryLine['east'] = 23.03;
	countryLine['west'] = 20.45;
	countries['mk'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 25.72;
	countryLine['south'] = 10.13;
	countryLine['east'] = 4.25;
	countryLine['west'] = -12.17;
	countries['ml'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 28.83;
	countryLine['south'] = 10;
	countryLine['east'] = 101;
	countryLine['west'] = 92;
	countries['mm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 52.15;
	countryLine['south'] = 41.58;
	countryLine['east'] = 119.92;
	countryLine['west'] = 87.83;
	countries['mn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 27.32;
	countryLine['south'] = 14.7;
	countryLine['east'] = -4.85;
	countryLine['west'] = -17.12;
	countries['mr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 36.75;
	countryLine['south'] = 35.15;
	countryLine['east'] = 15.18;
	countryLine['west'] = 13.58;
	countries['mt'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -19.95;
	countryLine['south'] = -21.38;
	countryLine['east'] = 57.8;
	countryLine['west'] = 55.21;
	countries['mu'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 7.17;
	countryLine['south'] = -0.67;
	countryLine['east'] = 73.73;
	countryLine['west'] = 72.55;
	countries['mv'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -9.42;
	countryLine['south'] = -17.17;
	countryLine['east'] = 35.92;
	countryLine['west'] = 32.8;
	countries['mw'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 32.72;
	countryLine['south'] = 14.55;
	countryLine['east'] = -86.77;
	countryLine['west'] = -117.32;
	countries['mx'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 7.37;
	countryLine['south'] = 1.25;
	countryLine['east'] = 119.27;
	countryLine['west'] = 100.12;
	countries['my'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -10.5;
	countryLine['south'] = -26.77;
	countryLine['east'] = 40.78;
	countryLine['west'] = 30.25;
	countries['mz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -16.98;
	countryLine['south'] = -28.98;
	countryLine['east'] = 21;
	countryLine['west'] = 11.67;
	countries['na'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 23.45;
	countryLine['south'] = 11.72;
	countryLine['east'] = 16;
	countryLine['west'] = 0.1;
	countries['ne'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 14.8;
	countryLine['south'] = 4.2;
	countryLine['east'] = 14.17;
	countryLine['west'] = 2.83;
	countries['ng'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 15.03;
	countryLine['south'] = 10.72;
	countryLine['east'] = -83.15;
	countryLine['west'] = -87.7;
	countries['ni'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 53.47;
	countryLine['south'] = 50.75;
	countryLine['east'] = 7.23;
	countryLine['west'] = 3.35;
	countries['nl'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 71.18;
	countryLine['south'] = 57.97;
	countryLine['east'] = 31.18;
	countryLine['west'] = 4.5;
	countries['no'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 30.45;
	countryLine['south'] = 26.37;
	countryLine['east'] = 88.2;
	countryLine['west'] = 80.08;
	countries['np'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 0.27;
	countryLine['south'] = -1.33;
	countryLine['east'] = 167.8;
	countryLine['west'] = 166.2;
	countries['nr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -47.33;
	countryLine['south'] = -34.42;
	countryLine['east'] = 178.58;
	countryLine['west'] = 166.43;
	countries['nz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 26.38;
	countryLine['south'] = 16.65;
	countryLine['east'] = 59.83;
	countryLine['west'] = 52;
	countries['om'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 6.83;
	countryLine['south'] = 9.68;
	countryLine['east'] = -77.92;
	countryLine['west'] = -83.53;
	countries['pa'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -0.02;
	countryLine['south'] = -18.35;
	countryLine['east'] = -68.68;
	countryLine['west'] = -81.32;
	countries['pe'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 0;
	countryLine['south'] = -12;
	countryLine['east'] = 156;
	countryLine['west'] = 141;
	countries['pg'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 21.5;
	countryLine['south'] = 4.5;
	countryLine['east'] = 128;
	countryLine['west'] = 116.98;
	countries['ph'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 37.1;
	countryLine['south'] = 23.7;
	countryLine['east'] = 77.8;
	countryLine['west'] = 60.9;
	countries['pk'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 54.83;
	countryLine['south'] = 49;
	countryLine['east'] = 24.13;
	countryLine['west'] = 14.12;
	countries['pl'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 42.15;
	countryLine['south'] = 36.95;
	countryLine['east'] = -6.18;
	countryLine['west'] = -9.48;
	countries['pt'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 10;
	countryLine['south'] = 2;
	countryLine['east'] = 136;
	countryLine['west'] = 130;
	countries['pw'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -19.3;
	countryLine['south'] = -27.6;
	countryLine['east'] = -54.25;
	countryLine['west'] = -62.64;
	countries['py'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 26.15;
	countryLine['south'] = 24.48;
	countryLine['east'] = 51.63;
	countryLine['west'] = 50.74;
	countries['qa'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 48.25;
	countryLine['south'] = 43.63;
	countryLine['east'] = 29.68;
	countryLine['west'] = 20.25;
	countries['ro'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 46.18;
	countryLine['south'] = 41.87;
	countryLine['east'] = 23.02;
	countryLine['west'] = 18.83;
	countries['rs'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 81.83;
	countryLine['south'] = 41.8;
	countryLine['east'] = -169.67;
	countryLine['west'] = 19.63;
	countries['ru'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -1.08;
	countryLine['south'] = -2.83;
	countryLine['east'] = 30.42;
	countryLine['west'] = 28.83;
	countries['rw'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 32;
	countryLine['south'] = 15;
	countryLine['east'] = 55.83;
	countryLine['west'] = 34;
	countries['sa'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -5;
	countryLine['south'] = -12;
	countryLine['east'] = 169;
	countryLine['west'] = 155;
	countries['sb'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -3.4;
	countryLine['south'] = -5;
	countryLine['east'] = 56;
	countryLine['west'] = 55;
	countries['sc'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 23.13;
	countryLine['south'] = 3.47;
	countryLine['east'] = 38.58;
	countryLine['west'] = 21.23;
	countries['sd'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 69.07;
	countryLine['south'] = 55.33;
	countryLine['east'] = 24.17;
	countryLine['west'] = 10.97;
	countries['se'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 2.15;
	countryLine['south'] = 0.55;
	countryLine['east'] = 104.65;
	countryLine['west'] = 103.05;
	countries['sg'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 46.88;
	countryLine['south'] = 45.42;
	countryLine['east'] = 16.6;
	countryLine['west'] = 13.38;
	countries['si'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 49.62;
	countryLine['south'] = 47.73;
	countryLine['east'] = 22.53;
	countryLine['west'] = 16.88;
	countries['sk'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 10.02;
	countryLine['south'] = 6.92;
	countryLine['east'] = -10.02;
	countryLine['west'] = -13.12;
	countries['sl'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 44;
	countryLine['south'] = 43.89;
	countryLine['east'] = 12.52;
	countryLine['west'] = 12.4;
	countries['sm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 16.68;
	countryLine['south'] = 12.3;
	countryLine['east'] = -11.35;
	countryLine['west'] = -17.53;
	countries['sn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 11.58;
	countryLine['south'] = -1.75;
	countryLine['east'] = 51.42;
	countryLine['west'] = 42.75;
	countries['so'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 6.12;
	countryLine['south'] = 1.83;
	countryLine['east'] = -53.98;
	countryLine['west'] = -58.03;
	countries['sr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 1.72;
	countryLine['south'] = -0.02;
	countryLine['east'] = 7.46;
	countryLine['west'] = 6.43;
	countries['st'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 14.42;
	countryLine['south'] = 13.17;
	countryLine['east'] = -87.67;
	countryLine['west'] = -90.13;
	countries['sv'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 37.3;
	countryLine['south'] = 32.33;
	countryLine['east'] = 42.37;
	countryLine['west'] = 35.72;
	countries['sy'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -25.7;
	countryLine['south'] = -27.47;
	countryLine['east'] = 32.12;
	countryLine['west'] = 30.78;
	countries['sz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 23.45;
	countryLine['south'] = 7.35;
	countryLine['east'] = 24;
	countryLine['west'] = 13.63;
	countries['td'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 11.17;
	countryLine['south'] = 6.17;
	countryLine['east'] = 1.67;
	countryLine['west'] = 0;
	countries['tg'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 20.5;
	countryLine['south'] = 5.58;
	countryLine['east'] = 105.58;
	countryLine['west'] = 97.33;
	countries['th'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 41.03;
	countryLine['south'] = 36.68;
	countryLine['east'] = 75.1;
	countryLine['west'] = 67.38;
	countries['tj'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 42.8;
	countryLine['south'] = 35.13;
	countryLine['east'] = 66.68;
	countryLine['west'] = 52.45;
	countries['tm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 37.67;
	countryLine['south'] = 30.33;
	countryLine['east'] = 11.5;
	countryLine['west'] = 7.33;
	countries['tn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -14;
	countryLine['south'] = -23;
	countryLine['east'] = -170;
	countryLine['west'] = -177;
	countries['to'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 42.1;
	countryLine['south'] = 35.83;
	countryLine['east'] = 44.83;
	countryLine['west'] = 25.65;
	countries['tr'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 11.38;
	countryLine['south'] = 10.03;
	countryLine['east'] = -60.52;
	countryLine['west'] = -61.92;
	countries['tt'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -5;
	countryLine['south'] = -11;
	countryLine['east'] = 180;
	countryLine['west'] = 176;
	countries['tv'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 25.28;
	countryLine['south'] = 21.93;
	countryLine['east'] = 121.97;
	countryLine['west'] = 120.02;
	countries['tw'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -1;
	countryLine['south'] = -11.78;
	countryLine['east'] = 40.43;
	countryLine['west'] = 29.65;
	countries['tz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 52.33;
	countryLine['south'] = 44.42;
	countryLine['east'] = 40;
	countryLine['west'] = 22.08;
	countries['ua'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 4.22;
	countryLine['south'] = -1.47;
	countryLine['east'] = 35.15;
	countryLine['west'] = 29.6;
	countries['ug'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 60.85;
	countryLine['south'] = 49.17;
	countryLine['east'] = 1.75;
	countryLine['west'] = -8.17;
	countries['uk'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 49.38;
	countryLine['south'] = 24.55;
	countryLine['east'] = -66.95;
	countryLine['west'] = -124.5;
	countries['us'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -30.1;
	countryLine['south'] = -34.95;
	countryLine['east'] = -53.08;
	countryLine['west'] = -58.45;
	countries['uy'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 45.6;
	countryLine['south'] = 37.2;
	countryLine['east'] = 73.1;
	countryLine['west'] = 56;
	countries['uz'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 13.83;
	countryLine['south'] = 12.23;
	countryLine['east'] = -60.5;
	countryLine['west'] = -62.1;
	countries['vc'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 12.2;
	countryLine['south'] = 0.75;
	countryLine['east'] = -59.8;
	countryLine['west'] = -73.2;
	countries['ve'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 23.83;
	countryLine['south'] = 8.83;
	countryLine['east'] = 109;
	countryLine['west'] = 101.83;
	countries['vn'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -13;
	countryLine['south'] = -21;
	countryLine['east'] = 171;
	countryLine['west'] = 166;
	countries['vu'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -13;
	countryLine['south'] = -15;
	countryLine['east'] = -171;
	countryLine['west'] = -173;
	countries['ws'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = 19;
	countryLine['south'] = 12.6;
	countryLine['east'] = 53.1;
	countryLine['west'] = 42.6;
	countries['ye'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -22.12;
	countryLine['south'] = -34.87;
	countryLine['east'] = 32.93;
	countryLine['west'] = 16.65;
	countries['za'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -8.25;
	countryLine['south'] = -17.83;
	countryLine['east'] = 33.72;
	countryLine['west'] = 22;
	countries['zm'] = countryLine;
	var countryLine = new Array();
	countryLine['north'] = -15.6;
	countryLine['south'] = -22.5;
	countryLine['east'] = 33.08;
	countryLine['west'] = 25.22;
	countries['zw'] = countryLine;
}
