﻿       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 vit1()
        { 
			var x = new VELatLong(55.0586,26.608);
			kamai = new VEShape(VEShapeType.Pushpin, x); kamai.SetCustomIcon("<div class=obj30>●</div>");kamai.SetTitle('Камаи');
			kamai.SetDescription('<a href=http://globus.tut.by/kamai/index.htm target=_blank>Смотреть Камаи на глобусе</a><br><br><a href=/map/index.php?map=N-35-30.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/kamai/index.htm#kostel target=_blank>Костел св. Иоанна Крестителя</a><li> <a href=http://globus.tut.by/kamai/index.htm#cross target=_blank>Каменный крест</a><li> <a href=http://globus.tut.by/kamai/index.htm#kbrama target=_blank>Брама и ограда</a><li> <a href=http://globus.tut.by/kamai/index.htm#evr_graves target=_blank>Еврейское кладбище</a></ul>');
	map.AddShape(kamai);
	
			var x = new VELatLong(55.9129,27.8872);
			sarja = new VEShape(VEShapeType.Pushpin, x); sarja.SetCustomIcon("<div class=obj30>●</div>");sarja.SetTitle('Сарья');
			sarja.SetDescription('<a href=http://globus.tut.by/sarya/index.htm target=_blank>Смотреть Сарья на глобусе</a><br><br><a href=/map/index.php?map=N-35-8.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/sarya/index.htm#kostel target=_blank>Успенская церковь</a><li> <a href=http://globus.tut.by/sarya/index.htm#brama target=_blank>Брама усадьбы Лопатинских</a></ul>');
	map.AddShape(sarja);
	
			var x = new VELatLong(55.1921,30.2095);
			vitebsk = new VEShape(VEShapeType.Pushpin, x); vitebsk.SetCustomIcon("<div class=obj30>●</div>");vitebsk.SetTitle('Витебск');
			vitebsk.SetDescription('<a href=http://globus.tut.by/vitebsk/index.htm target=_blank>Смотреть Витебск на глобусе</a><br><br><a href=/map/index.php?map=N-36-25.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/vitebsk/index3.htm#church_blagov target=_blank>Благовещенская церковь</a><li> <a href=http://globus.tut.by/vitebsk/index2.htm#ratusha target=_blank>Ратуша</a><li> <a href=http://globus.tut.by/vitebsk/index.htm#varvara target=_blank>Костел св. Варвары</a><li> <a href=http://globus.tut.by/vitebsk/index.htm#veteri target=_blank>Поземельно-крестьянский банк</a><li> <a href=http://globus.tut.by/vitebsk/index.htm#gubernpalace target=_blank>Дворец губернатора</a><li> <a href=http://globus.tut.by/vitebsk/index2.htm#sobor_pokrov target=_blank>Покровский собор</a><li> <a href=http://globus.tut.by/vitebsk/index3.htm#church_voskres target=_blank>Воскресенская церковь</a><li> <a href=http://globus.tut.by/vitebsk/index.htm#shagal_house target=_blank>Дом-музей Марка Шагала</a></ul>');
	map.AddShape(vitebsk);
	
			var x = new VELatLong(55.2334,27.45);
			mosar = new VEShape(VEShapeType.Pushpin, x); mosar.SetCustomIcon("<div class=obj30>●</div>");mosar.SetTitle('Мосар');
			mosar.SetDescription('<a href=http://globus.tut.by/mosar/index.htm target=_blank>Смотреть Мосар на глобусе</a><br><br><a href=/map/index.php?map=N-35-31.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/mosar/index.htm#kostel target=_blank>Костел св. Анны</a><li> <a href=http://globus.tut.by/mosar/index.htm#brama target=_blank>Брама и ограда</a><li> <a href=http://globus.tut.by/mosar/index.htm#zvon target=_blank>Колокольня</a><li> <a href=http://globus.tut.by/mosar/index.htm#katol_graves target=_blank>Кладбище католическое</a></ul>');
	map.AddShape(mosar);
	
			var x = new VELatLong(54.6004,30.0476);
			smoliany = new VEShape(VEShapeType.Pushpin, x); smoliany.SetCustomIcon("<div class=obj30>●</div>");smoliany.SetTitle('Смоляны');
			smoliany.SetDescription('<a href=http://globus.tut.by/smolyany/index.htm target=_blank>Смотреть Смоляны на глобусе</a><br><br><a href=/map/index.php?map=N-36-49.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/smolyany/index.htm#castle target=_blank>Руины замка</a><li> <a href=http://globus.tut.by/smolyany/index.htm#kostel target=_blank>Костел Девы Марии</a><li> <a href=http://globus.tut.by/smolyany/index2.htm#church_spas target=_blank>Церковь Спасо-Преображенская</a><li> <a href=http://globus.tut.by/smolyany/index2.htm#church_alex target=_blank>Церковь св. Алексея</a><li> <a href=http://globus.tut.by/smolyany/index2.htm#chapel_alex target=_blank>Часовня-усыпальница</a></ul>');
	map.AddShape(smoliany);
	
			var x = new VELatLong(55.4952,28.8048);
			polock = new VEShape(VEShapeType.Pushpin, x); polock.SetCustomIcon("<div class=obj30>●</div>");polock.SetTitle('Полоцк');
			polock.SetDescription('<a href=http://globus.tut.by/polock/index.htm target=_blank>Смотреть Полоцк на глобусе</a><br><br><a href=/map/index.php?map=N-35-22.gif>Скачать карту района</a><ul><li> <a href=http://globus.tut.by/polock/index3.htm#sofijs target=_blank>Софийский Собор</a><li> <a href=http://globus.tut.by/polock/index2.htm#evfr_monast_main target=_blank>Монастырь Евфросинии Полоцкой</a><li> <a href=http://globus.tut.by/polock/index2.htm#evfros_church target=_blank>Церковь Спасо-Преображенская</a><li> <a href=http://globus.tut.by/polock/index.htm#stone target=_blank>Борисов камень</a><li> <a href=http://globus.tut.by/polock/index2.htm#kresto target=_blank>Крестовоздвиженский собор</a></ul>');
	map.AddShape(polock);        
         }  
