﻿       function SwapPoints()
        {
            //Switch the points between the two shapes, making them trade places
            var pts = shape01.GetPoints();
            if (pts[0].Latitude == "44.88980971906551")
            {
                shape01.SetPoints(points02);
                shape02.SetPoints(points01);
            }
            else
            {
                shape01.SetPoints(points01);
                shape02.SetPoints(points02);
            }
        }



























































































































































































        function bre1()
        { 

			var x = new VELatLong(52.127,25.0075);
			zakozel = new VEShape(VEShapeType.Pushpin, x); zakozel.SetCustomIcon("<div class=obj30>●</div>");zakozel.SetTitle('Закозель');
			zakozel.SetDescription('<a href=http://globus.tut.by/zakozel/index.htm target=_blank>Смотреть Закозель на глобусе</a><br><br><a href=/map/index.php?map=N-35-135.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/zakozel/index.htm#chapel target=_blank>часовня-усыпальница Ожешко</a></ul>');
	map.AddShape(zakozel);
	
			var x = new VELatLong(52.4005,23.8252);
			kamenec = new VEShape(VEShapeType.Pushpin, x); kamenec.SetCustomIcon("<div class=obj30>●</div>");kamenec.SetTitle('Каменец');
			kamenec.SetDescription('<a href=http://globus.tut.by/kamenec/index.htm target=_blank>Смотреть Каменец на глобусе</a><br><br><a href=/map/index.php?map=N-34-132.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/kamenec/index.htm#tower target=_blank>Белая вежа</a><li> <a href=http://globus.tut.by/kamenec/index.htm#osnovat target=_blank>памятник основателю Каменецкой крепости</a><li> <a href=http://globus.tut.by/kamenec/index.htm#church target=_blank>церковь св. Симеона</a><li> <a href=http://globus.tut.by/kamenec/index.htm#kostel target=_blank>костел св. Петра и Павла</a></ul>');
	map.AddShape(kamenec);
	
			var x = new VELatLong(52.1238,26.0989);
			pinsk = new VEShape(VEShapeType.Pushpin, x); pinsk.SetCustomIcon("<div class=obj30>●</div>");pinsk.SetTitle('Пинск');
			pinsk.SetDescription('<a href=http://globus.tut.by/pinsk/index.htm target=_blank>Смотреть Пинск на глобусе</a><br><br><a href=/map/index.php?map=N-35-137.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/pinsk/index2.htm#kostelfranc target=_blank>Успенский костел</a><li> <a href=http://globus.tut.by/pinsk/index2.htm#franc_main target=_blank>монастырь францисканцев</a><li> <a href=http://globus.tut.by/pinsk/index.htm#iezuitcollegium target=_blank>коллегиум иезуитов</a><li> <a href=http://globus.tut.by/pinsk/index2.htm#zvon_franc target=_blank>монастырь францисканцев: колокольня</a><li> <a href=http://globus.tut.by/pinsk/index.htm#kostelborom target=_blank>костел св. Карла Баромея</a><li> <a href=http://globus.tut.by/pinsk/index.htm#varvar_church target=_blank>собор св. Варвары</a><li> <a href=http://globus.tut.by/pinsk/index.htm#neogothic_church target=_blank>церковь</a><li> <a href=http://globus.tut.by/pinsk/index3.htm#chapelpenkov target=_blank>часовня придорожная</a><li> <a href=http://globus.tut.by/pinsk/index2.htm#sobor_fyodor target=_blank>собор св. Феодора</a><li> <a href=http://globus.tut.by/pinsk/index3.htm#nem_memor target=_blank>памятник немецким солдатам</a></ul>');
	map.AddShape(pinsk);
	
			var x = new VELatLong(52.2265,23.7382);
			chernavchicy = new VEShape(VEShapeType.Pushpin, x); chernavchicy.SetCustomIcon("<div class=obj30>●</div>");chernavchicy.SetTitle('Чернавчицы');
			chernavchicy.SetDescription('<a href=http://globus.tut.by/chernavchi/index.htm target=_blank>Смотреть Чернавчицы на глобусе</a><br><br><a href=/map/index.php?map=N-34-144.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/chernavchi/index.htm#kostel target=_blank>Троицкий костел</a><li> <a href=http://globus.tut.by/chernavchi/index.htm#church target=_blank>церковь св. Параскевы Пятницы (дерев.)</a></ul>');
	map.AddShape(chernavchicy);
	
			var x = new VELatLong(53.0248,26.3398);
			grushevka = new VEShape(VEShapeType.Pushpin, x); grushevka.SetCustomIcon("<div class=obj30>●</div>");grushevka.SetTitle('Грушевка');
			grushevka.SetDescription('<a href=http://globus.tut.by/grushevka/index.htm target=_blank>Смотреть Грушевка на глобусе</a><br><br><a href=/map/index.php?map=N-35-101.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/grushevka/index.htm#chapel target=_blank>часовня-усыпальница</a><li> <a href=http://globus.tut.by/grushevka/index.htm#manor_house target=_blank>усадебный дом (дерев.)</a></ul>');
	map.AddShape(grushevka);
	
			var x = new VELatLong(53.3384,26.3571);
			ishkold = new VEShape(VEShapeType.Pushpin, x); ishkold.SetCustomIcon("<div class=obj30>●</div>");ishkold.SetTitle('Ишкольдь');
			ishkold.SetDescription('<a href=http://globus.tut.by/ishkold/index.htm target=_blank>Смотреть Ишкольдь на глобусе</a><br><br><a href=/map/index.php?map=N-35-89.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/ishkold/index.htm#kostel target=_blank>Троицкий костел</a></ul>');
	map.AddShape(ishkold);
	
			var x = new VELatLong(52.7578,25.158);
			kossovo = new VEShape(VEShapeType.Pushpin, x); kossovo.SetCustomIcon("<div class=obj30>●</div>");kossovo.SetTitle('Коссово');
			kossovo.SetDescription('<a href=http://globus.tut.by/kossovo/index.htm target=_blank>Смотреть Коссово на глобусе</a><br><br><a href=/map/index.php?map=N-35-111.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/kossovo/index.htm#palace target=_blank>дворец Пусловских</a><li> <a href=http://globus.tut.by/kossovo/index.htm#kostel target=_blank>Троицкий костел</a><li> <a href=http://globus.tut.by/kossovo/index.htm#manor_main target=_blank>усадьба Костюшко</a><li> <a href=http://globus.tut.by/kossovo/index.htm#outside_chapel target=_blank>часовня католич.</a><li> <a href=http://globus.tut.by/kossovo/index.htm#church target=_blank>церковь св. Антония</a></ul>');
	map.AddShape(kossovo);
	
			var x = new VELatLong(52.8651,24.8938);
			ruzhany = new VEShape(VEShapeType.Pushpin, x); ruzhany.SetCustomIcon("<div class=obj30>●</div>");ruzhany.SetTitle('Ружаны');
			ruzhany.SetDescription('<a href=http://globus.tut.by/ruzhany/index.htm target=_blank>Смотреть Ружаны на глобусе</a><br><br><a href=/map/index.php?map=N-35-110.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/ruzhany/index.htm#palace target=_blank>дворцовый комплекс Сапегов</a><li> <a href=http://globus.tut.by/ruzhany/index.htm#kostel target=_blank>Троицкий костел</a><li> <a href=http://globus.tut.by/ruzhany/index.htm#church target=_blank>церковь св. Петра и Павла</a><li> <a href=http://globus.tut.by/ruzhany/index2.htm#sinag target=_blank>синагога</a><li> <a href=http://globus.tut.by/ruzhany/index2.htm#kazimir_kostel target=_blank>костел св. Казимира</a></ul>');
	map.AddShape(ruzhany);
	
			var x = new VELatLong(52.098,23.715);
			brest = new VEShape(VEShapeType.Pushpin, x); brest.SetCustomIcon("<div class=obj30>●</div>");brest.SetTitle('Брест');
			brest.SetDescription('<a href=http://globus.tut.by/brest/index.htm target=_blank>Смотреть Брест на глобусе</a><br><br><a href=/map/index.php?map=N-34-144.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/brest/index.htm#castle target=_blank>Брестская крепость</a><li> <a href=http://globus.tut.by/brest/index2.htm#sobor_nikolay target=_blank>собор св. Николая</a><li> <a href=http://globus.tut.by/brest/index.htm#kostel target=_blank>Крестовоздвиженский костел</a><li> <a href=http://globus.tut.by/brest/index.htm#berest target=_blank>музей археологический "Берестье"</a><li> <a href=http://globus.tut.by/brest/index2.htm#sobor_symeon target=_blank>Симеоновский собор</a><li> <a href=http://globus.tut.by/brest/index2.htm#church_nikolay_brat target=_blank>церковь св. Николая (братская)</a></ul>');
	map.AddShape(brest);	        
         }  
