// JScript source code
//the map object
var map = null;
var pinID = 1;
var pin = null;
var store = new Array(19);
function generatePins()
{
   store[1] = AddPin(40, -105.2666, 'United States', 'Contact: Patrick McConnell, MM<br />Tel: +1 720.381.1444<br />Email: <a href="mailto:patmcc@microsoft.com">patmcc@microsoft.com</a>');
   store[2] = AddPin(35.650, 139.667, 'Japan', 'Mirukuru<br />Contact: Shinji Inaba<br />Tel:  +81-3-4360-5557<br />Fax: +81-3-4360-5790<br />Email: <a href="mailto:inaba@mirukuru.co.jp">Shinji Inaba</a><br /> <br />Address: 22F Shibuya Mark City West <br /> 1-2-1 Dougenzaka Shibuya-ku<br /> Tokyo 150-0043 Japan');
   store[3] = AddPin(48.2, 16.367, 'Austria', 'Microsoft Vexcel Imaging GmbH<br />Contact: Mr. Engelbert Breg<br/>Business Development Manager<br />Tel:  +43 316 84 90 66 922<br />Fax: +43 316 84 90 66 999<br />Mobile: +43 676 830 648 22<br />Email: <a href="engelb@microsoft.com">engelb@microsoft.com</a><br /> <br />Address: Anzengrubergasse 8, 8010 Graz Austria<br /><a href="http://www.microsoft.com/ultracam/">http://www.microsoft.com/ultracam/</a>');
   store[4] = AddPin(39.57, 32.53, 'Turkey', 'Atay Engineering Co.<br />Contact: Mr. Arif  Ali Atay<br/>CEO<br />Tel: +90 312 21 222 11<br />Fax: +90 312 21 222 75 <br />Mobile: +90 532 241 39 44<br />Email: <a href="mailto:atay@ataymuhendislik.com">atay@ataymuhendislik.com</a><br /><a href="http://www.ataymuhendislik.com ">www.ataymuhendislik.com </a><br /> <br />Address: DEGOL str. Mechul Asker No:18/9, 06580  Tandogan / ANKARA Turkey');
   store[5] = AddPin(50.50, 13.650, 'Czech Republic', 'PAP&spol. s.r.o.<br />Contact: Mr.Pavel Pap<br/>General Manager<br />Tel: +420 476 703 516<br />Fax: +420 476 701 389<br />Mobile: +420 602 410423<br />Email: <a href="mailto:papaspol@mail.mus.cz">papaspol@mail.mus.cz    </a><br /><a href="http://www.papaspol.cz">www.papaspol.cz</a><br /> <br />Address: Vancurova 1868, CZ-434 01 Most, Czech Republic');
     store[6] = AddPin(48.833, 2.333, 'France', 'Latitude Geosystems<br />Contact: Arnaud Le Guellec <br/>Executive Manager<br />Tel:  + 33 1 34 17 23 84 <br />Fax: + 33 (0) 1 39 64 04 86<br />Mobile: + 33 1 39 64 04 86<br />Email: <a href="mailto:aleguellec@latitude-geosystems.com">aleguellec@latitude-geosystems.com </a><br /><a href="http://www.latitude-geosystems.com ">www.latitude-geosystems.com </a><br /> <br />Address: 47, avenue de la Division Leclerc, 95170 Deuil-la-Barre, France');
     store[7] = AddPin(41.9, 12.483, 'Italy', 'Geotop s.r.l.<br />Contact: Mr. Massimiliano Toppi<br/>Commercial Director<br />Tel:  Tel.:  +39 071 21 325 211<br />Fax: +39 071 21 325 282<br />Email: <a href="mailto:m.toppi@geotop.it">m.toppi@geotop.it</a><br /><br /><a href="http: www.geotop.it">http: www.geotop.it </a> <br />Address: Via Brecce Bianche 152, 60131 ANCONA Italy'); 
   store[8] = AddPin(52.216, 21.0, 'Poland', 'Ecogis Sp. z o.o.<br />Contact: Mr. Krysztof Konieczny<br/>General Director<br />Tel: +48 22 649 25 55<br />Fax: +48 22 649 25 55<br />Mobile: +48 609 114 605<br />Email: <a href="mailto:krzysztof.konieczny@ecogis.pl">krzysztof.konieczny@ecogis.pl </a><br /><a href="http://www.ecogis.pl">www.ecogis.pl</a><br /> <br />Address: ul. Jana Sengera "Cichego" 3/21, 02-790  Warschau Poland');
   store[9] = AddPin(48.7,  21.25, 'Slovak Republic', 'Expert_for_3D_Landscape spol. s r.o.<br />Contact: Mr. Marko Pasko<br/>General Manager<br />Tel: +421 915 767 586<br />Fax: +421 910 907 670<br />Mobile: +421 915 767 586<br />Email: <a href="mailto:office@x3d.sk ">office@x3d.sk </a><br /><a href="http://www.x3d.sk">http: www.x3d.sk </a><br /> <br />Address: Záhradnícka 51, 821 08  Bratislava  Slovak Republic');
   store[10] = AddPin(40.26, -3.42, 'Spain', 'GeoToolBox Ibérica S.L.<br />Contact: Mr. Miguel Pelaz<br/>Director<br />Tel: +34 913 455 598<br />Fax: +34 913 452 713<br />Mobile: +34 615 287150<br />Email: <a href="mailto:miguel.pelaz@gtbi.net">miguel.pelaz@gtbi.net </a><br /><a href="http://www.gtbi.net">www.gtbi.net</a><br /> <br />Address: c/ Felix Boix 14, 5ºB, 28036  Madrid Spain');
   store[11] = AddPin(33.54, 35.28, 'Lebanon', 'Vexcel Imaging Middle East<br />Contact: Mr. Kamal Azar<br/>President<br />Tel: +961 1 259 4467<br />Fax: +961 1 259 451<br />Mobile: +961 3 820 507<br />Email: <a href="mailto:kazar@vexcelme.com">kazar@vexcelme.com </a><br /><a href="http://www.vexcelme.com">www.vexcelme.com </a><br /> <br />Address: Karantina Bridge, Azar Bldg, 6th Fl., Beirut P.C. 2601 0506  Lebanon');
   store[12] = AddPin(37.58, 23.43, 'Greece', 'BTA Photogrammetric Consultants Ltd.<br />Contact: Mr. Vass Tsivos<br/>President<br />Tel: +30 210 88 40 667<br />Fax: +30 210 82 16 544<br />Mobile: +30 69 32 740 255<br />Email: <a href="mailto:btao@otenet.gr">btao@otenet.gr  </a><br /> <br />Address: 26, Drosopoulou Street, TK 112 57  Athens Greece');
   store[13] = AddPin(55.46, 37.40, 'Russia', 'GeoLidar Company<br />Contact: Evgueny M. Medvedev<br/>General Manager<br />Tel: +7 495 953 0100<br />Fax: +7 495 953 0470<br />Mobile: +7 926 205 3720<br />Email: <a href="mailto:evgeny_medvedev@geolidar.ru">evgeny_medvedev@geolidar.ru </a><br /><a href="http://www.geokosmos.ru">www.geokosmos.ru</a><br /> <br />Address: 14, build. 20, Ordynka str., 119017  Moscow Russia');
   store[14] = AddPin(30.36, 114.16, 'China', 'Vexcel Spatial Information Technical Co. Ltd.<br />Contact: NingJun You<br/>General Manager<br />Tel: +86 27 878 75875<br />Fax: +86 27 878 72881<br />Mobile: +86 13 607 145 720<br />Email: <a href="mailto:maxyounj@yahoo.com">maxyounj@yahoo.com </a><br /><a href="http://www.vexcel-china.com">www.vexcel-china.com  </a><br /> <br />Address: 2501 Room Cherry Blossom Building, No.2 , LuoShi North Road 2501, WuHan China');
   store[15] = AddPin(17.2, 78.30, 'India', 'Sierra Atlantic Software Services Ltd<br />Contact: Venugopal Parasuraman<br/>Head-Imaging Solutions Division <br />Tel: +91 40 55436358<br />Fax: +91 40 55436111<br />Email: <a href="mailto:Venugopal.Parasuraman@Sierraatlantic.com ">Venugopal.Parasuraman@Sierraatlantic.com </a><br /><a href="http://isd.sierraatlantic.com/">http://isd.sierraatlantic.com/</a><br /> <br />Address: #8-2-624/1 Road No. 10, Banjara Hills, Hyderabad 500 034 India');
   store[16] = AddPin(25.2, 121.31, 'Taiwan', 'Kang Ying Enterprises Ltd.<br />Contact: Chi Lin<br/>Sales Manager<br />Tel: +886 (2) 2256 6542<br />Fax: +886 (2) 2918 7081<br />Email: <a href="mailto:kangying@saturn.seed.net.tw">kangying@saturn.seed.net.tw </a><br /> <br />Address: 6FI, No. 7, Alley 16 Lane 235, Pao-Chio Road, Hsin Tien City, Taipei, Taiwan');
   store[17] = AddPin(37.15, 127, 'South Korea', 'Kye Boram Corp.<br />Contact: Chul Sung Kye<br/>Managing Director<br />Tel: +82 331 2126 430<br />Fax: +82 331 2164 839<br />Mobile: +82 19 299 1359<br />Email: <a href="mailto:CSKye@chollian.net">CSKye@chollian.net</a><br /> <br />Address: DaeWoo MiRaeSaRang 1011-10, 1011-10, GwonSeonDong, GwonSeonGu, SuWon City, 441-822  South Korea');
   store[18] = AddPin(-31.57, 115.51, 'Australia', 'Vexcel Australia PTY Ltd<br />Contact: Peter W. Jones<br/>Managing Director<br />Tel: +61 8 9593 3322 <br />Fax: +61 8 9593 3322<br />Mobile: +61 4399 44100<br />Email: <a href="mailto:pwjones@iinet.net.au">pwjones@iinet.net.au </a><br /> <br />Address: 12 Capella Pass, Warnbro, 6169 <br /> PO Box 7111, Secret Harbour, 6173, Western Australia');
  
    store[19] = AddPin(1.29, 103.8, 'Singapore', 'Vexcel S.E. Asia<br />Contact: Dr. Ing. Enrico Clerici<br/>Regional Contact. Technical, marketing, support<br />Tel: + 65 633 85 264<br />HP: + 65-98197441<br />Fax: + 65-62273115<br />Email: <a href="mailto:vexcel_sea@pacific.net.sg">vexcel_sea@pacific.net.sg</a><br /> <br />Address: No.80, Robinson Road, #08-01/02, Singapore 0668898, Singapore');








}



//set page event handlers for onload and unload
if (window.attachEvent) {
 window.attachEvent("onload", Page_Load);
 window.attachEvent("onunload", Page_Unload); 
} else {
 window.addEventListener("DOMContentLoaded", Page_Load, false);
 window.addEventListener("unload", Page_Unload, false);
}

 

//load map    
function Page_Load() {


{
    GetMap();
            	        
} 

}  

 

//Clean up all objects
function Page_Unload() {
    if (map!=null) {
        map.Dispose();
        map = null;
    }
}


function GetMap()         
{            
	map = new VEMap('myMap');            
	map.LoadMap(new VELatLong(47.6, -122.33), 10 ,'h' ,false); 
	map.SetZoomLevel(1);
	map.AttachEvent('onendzoom', onChangeView);
	
}



function AddPin(lat, long, text1, text2)         
{               
    pin = new VEPushpin(pinID,                         
                        new VELatLong(lat, long), 
                        '/library/media/1033/ultracam/images/partners/dist_pins.gif',                         
                        text1,                         
                        text2);                       
    pinID++;
    return pin;         
}   

function onChangeView(e)
{
	if (map.GetZoomLevel() <= 1)	{
		map.Clear()
	}
	else if (map.GetZoomLevel() > 1) {
            map.Clear();
            generatePins();
            for (var i = 1;i<19;i++) {
                map.AddPushpin(store[i]);
            }
        }
}



function doZoomIn()
{
    var zoomSetting = map.GetZoomLevel(); 
    if (zoomSetting > 5)
        zoomSetting = 5; 
    else 
        zoomSetting++;    
    map.SetZoomLevel(zoomSetting);
}	

function doZoomOut()
{
    var zoomSetting = map.GetZoomLevel(); 
    if (zoomSetting < 2)
        zoomSetting = 1; 
    else 
        zoomSetting--;   
    map.SetZoomLevel(zoomSetting);
}	