﻿var _0x8f99=["\x5F\x69\x64","\x5F\x6C\x69\x6E\x65","\x5F\x64\x69\x72\x65\x63\x74\x69\x6F\x6E","\x5F\x74\x79\x70\x65","\x5F\x6C\x61\x74","\x5F\x6C\x6E\x67","\x5F\x68\x65\x61\x64\x69\x6E\x67","\x5F\x6D\x61\x72\x6B\x65\x72","\x5F\x6C\x61\x73\x74\x53\x74\x6F\x70","\x5F\x63\x75\x72\x72\x65\x6E\x74\x53\x74\x6F\x70","\x5F\x75\x70\x64\x61\x74\x65\x54\x69\x6D\x65","\x5F\x76\x65\x68\x54\x79\x70\x65","\x5F\x74\x72\x61\x6E\x73\x70\x6F\x72\x74\x4F\x70\x65\x72\x61\x74\x6F\x72","\x5F\x64\x65\x70\x61\x72\x74\x75\x72\x65","\x5F\x6E\x61\x6D\x65","\x5F\x73\x70\x65\x65\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x67\x65\x74\x49\x64","\x67\x65\x74\x48\x65\x61\x64\x69\x6E\x67","\x72\x6F\x75\x6E\x64","\x67\x65\x74\x54\x79\x70\x65","\x74\x72\x61\x6D","\x69\x6D\x61\x67\x65\x73\x2F\x76\x65\x68\x69\x63\x6C\x65\x73\x2F\x74\x72\x61\x6D","\x6D\x65\x74\x72\x6F","\x69\x6D\x61\x67\x65\x73\x2F\x76\x65\x68\x69\x63\x6C\x65\x73\x2F\x6D\x65\x74\x72\x6F","\x74\x75\x6F\x6D\x61\x61\x6C\x61\x54\x6E\x74","\x69\x6D\x61\x67\x65\x73\x2F\x76\x65\x68\x69\x63\x6C\x65\x73\x2F\x74\x72\x75\x63\x6B","\x6A\x63\x64","\x69\x6D\x61\x67\x65\x73\x2F\x76\x65\x68\x69\x63\x6C\x65\x73\x2F\x74\x72\x75\x63\x6B\x5F\x73\x6D\x61\x6C\x6C","\x69\x6D\x61\x67\x65\x73\x2F\x76\x65\x68\x69\x63\x6C\x65\x73\x2F\x62\x75\x73","\x5F\x73\x65\x6C\x65\x63\x74\x65\x64","\x2E\x70\x6E\x67","\x73\x65\x74\x49\x6D\x61\x67\x65","\x67\x65\x74\x4D\x61\x72\x6B\x65\x72","\x67\x65\x74\x4C\x61\x74","\x67\x65\x74\x4C\x6E\x67","\x73\x65\x74\x50\x6F\x69\x6E\x74","\x56\x65\x68\x69\x63\x6C\x65","\x72\x65\x67\x69\x73\x74\x65\x72\x43\x6C\x61\x73\x73","\x76\x65\x68\x69\x63\x6C\x65\x41\x72\x72\x61\x79","\x6C\x65\x6E\x67\x74\x68","\x67\x65\x74\x54\x69\x6D\x65","\x67\x65\x74\x55\x70\x64\x61\x74\x65\x54\x69\x6D\x65","\x72\x65\x6D\x6F\x76\x65\x4F\x76\x65\x72\x6C\x61\x79","\x73\x70\x6C\x69\x63\x65","\x66\x69\x6E\x64\x56\x65\x68\x69\x63\x6C\x65","\x69\x6D\x61\x67\x65\x73\x2F\x76\x65\x68\x69\x63\x6C\x65\x73\x2F\x62\x75\x73\x73\x69\x30\x2E\x70\x6E\x67","\x69\x63\x6F\x6E\x53\x69\x7A\x65","\x69\x63\x6F\x6E\x41\x6E\x63\x68\x6F\x72","\x73\x68\x61\x64\x6F\x77","\x69\x6D\x61\x67\x65\x73\x2F\x76\x65\x68\x69\x63\x6C\x65\x73\x2F","\x73\x68\x61\x64\x6F\x77\x53\x69\x7A\x65","\x61\x64\x64\x4F\x76\x65\x72\x6C\x61\x79","\x73\x65\x74\x4C\x69\x6E\x65","\x73\x65\x74\x44\x69\x72\x65\x63\x74\x69\x6F\x6E","\x73\x65\x74\x54\x79\x70\x65","\x73\x65\x74\x4C\x61\x74","\x73\x65\x74\x4C\x6E\x67","\x73\x65\x74\x48\x65\x61\x64\x69\x6E\x67","\x73\x65\x74\x55\x70\x64\x61\x74\x65\x54\x69\x6D\x65","\x73\x65\x74\x4C\x61\x73\x74\x53\x74\x6F\x70","\x73\x65\x74\x43\x75\x72\x72\x65\x6E\x74\x53\x74\x6F\x70","\x73\x65\x74\x4E\x61\x6D\x65","\x73\x65\x74\x56\x65\x68\x54\x79\x70\x65","\x73\x65\x74\x4F\x70\x65\x72\x61\x74\x6F\x72","\x73\x65\x74\x44\x65\x70\x61\x72\x74\x75\x72\x65","\x73\x65\x74\x53\x70\x65\x65\x64","\x75\x70\x64\x61\x74\x65\x49\x63\x6F\x6E","\x56\x65\x68\x69\x63\x6C\x65\x73"];var imageUrl;var imageDirection;var index;var currentTime;Vehicle=function (_0xb687x5,_0xb687x6,_0xb687x7,_0xb687x8,_0xb687x9,_0xb687xa,_0xb687xb,_0xb687xc,_0xb687xd,_0xb687xe,_0xb687xf,_0xb687x10,_0xb687x11,_0xb687x12,_0xb687x13){this[_0x8f99[0]]=_0xb687x5;this[_0x8f99[1]]=_0xb687x6;this[_0x8f99[2]]=_0xb687x7;this[_0x8f99[3]]=_0xb687x8;this[_0x8f99[4]]=_0xb687x9;this[_0x8f99[5]]=_0xb687xa;this[_0x8f99[6]]=_0xb687xb;this[_0x8f99[7]]=_0xb687xc;this[_0x8f99[8]]=_0xb687xd;this[_0x8f99[9]]=_0xb687xe;this[_0x8f99[10]]= new Date();this[_0x8f99[11]]=_0xb687xf;this[_0x8f99[12]]=_0xb687x11;this[_0x8f99[13]]=_0xb687x13;this[_0x8f99[14]]=_0xb687x10;this[_0x8f99[15]]=_0xb687x12;} ;Vehicle[_0x8f99[16]]={getId:function (){return this[_0x8f99[0]];} ,getLine:function (){return this[_0x8f99[1]];} ,getDirection:function (){return this[_0x8f99[2]];} ,getType:function (){return this[_0x8f99[3]];} ,getLat:function (){return this[_0x8f99[4]];} ,getLng:function (){return this[_0x8f99[5]];} ,getHeading:function (){return this[_0x8f99[6]];} ,getMarker:function (){return this[_0x8f99[7]];} ,getLastStop:function (){return this[_0x8f99[8]];} ,getCurrentStop:function (){return this[_0x8f99[9]];} ,getUpdateTime:function (){return this[_0x8f99[10]];} ,setId:function (_0xb687x5){this[_0x8f99[0]]=_0xb687x5;} ,setLine:function (_0xb687x6){this[_0x8f99[1]]=_0xb687x6;} ,setDirection:function (_0xb687x7){this[_0x8f99[2]]=_0xb687x7;} ,setType:function (_0xb687x8){this[_0x8f99[3]]=_0xb687x8;} ,setLat:function (_0xb687x9){this[_0x8f99[4]]=_0xb687x9;} ,setLng:function (_0xb687xa){this[_0x8f99[5]]=_0xb687xa;} ,setHeading:function (_0xb687xb){this[_0x8f99[6]]=_0xb687xb;} ,setMarker:function (_0xb687xc){this[_0x8f99[7]]=_0xb687xc;} ,setLastStop:function (_0xb687xd){this[_0x8f99[8]]=_0xb687xd;} ,setCurrentStop:function (_0xb687xe){if(vehiclePopupVehicle!=null){if(_0xb687xe!=this[_0x8f99[9]]&&vehiclePopupVehicle[_0x8f99[17]]()==this[_0x8f99[17]]()){setVehiclePopup();} ;} ;this[_0x8f99[9]]=_0xb687xe;} ,setUpdateTime:function (_0xb687x14){this[_0x8f99[10]]=_0xb687x14;} ,setName:function (_0xb687x10){this[_0x8f99[14]]=_0xb687x10;} ,setOperator:function (_0xb687x11){this[_0x8f99[12]]=_0xb687x11;} ,setDeparture:function (_0xb687x13){this[_0x8f99[13]]=_0xb687x13;} ,setVehType:function (_0xb687xf){this[_0x8f99[11]]=_0xb687xf;} ,setSpeed:function (_0xb687x12){this[_0x8f99[15]]=_0xb687x12;} ,getOperator:function (){return this[_0x8f99[12]];} ,getDeparture:function (){return this[_0x8f99[13]];} ,getSpeed:function (){return this[_0x8f99[15]];} ,getVehType:function (){return this[_0x8f99[11]];} ,getName:function (){return this[_0x8f99[14]];} ,updateIcon:function (){imageUrl;imageDirection=Math[_0x8f99[19]](this[_0x8f99[18]]()/45)*45;if(imageDirection>315){imageDirection=0;} ;if(this[_0x8f99[20]]()==_0x8f99[21]){imageUrl=_0x8f99[22]+imageDirection;} else {if(this[_0x8f99[20]]()==_0x8f99[23]){imageUrl=_0x8f99[24]+imageDirection;} else {if(this[_0x8f99[20]]()==_0x8f99[25]){imageUrl=_0x8f99[26]+imageDirection;} else {if(this[_0x8f99[20]]()==_0x8f99[27]){imageUrl=_0x8f99[28];} else {imageUrl=_0x8f99[29]+imageDirection;} ;} ;} ;} ;if(vehiclePopupVehicle!=null){if(vehiclePopupVehicle[_0x8f99[17]]()==this[_0x8f99[17]]()){imageUrl+=_0x8f99[30];} ;} ;imageUrl+=_0x8f99[31];try{this[_0x8f99[33]]()[_0x8f99[32]](imageUrl);this[_0x8f99[33]]()[_0x8f99[36]]( new GLatLng(this[_0x8f99[34]](),this[_0x8f99[35]]()));} catch(error){} ;} };Vehicle[_0x8f99[38]](_0x8f99[37],null,Sys.IDisposable);Vehicles=function (){this[_0x8f99[39]]= new Array();} ;Vehicles[_0x8f99[16]]={findVehicleByMarker:function (_0xb687xc){for(index=0;index<this[_0x8f99[39]][_0x8f99[40]];index++){if(this[_0x8f99[39]][index][_0x8f99[33]]()==_0xb687xc){return this[_0x8f99[39]][index];} ;} ;return null;} ,findVehicle:function (_0xb687x5){if(this[_0x8f99[39]][_0x8f99[40]]==0){return 0;} ;for(index=0;index<this[_0x8f99[39]][_0x8f99[40]];index++){if(this[_0x8f99[39]][index][_0x8f99[17]]()==_0xb687x5){return index;} ;} ;return index;} ,removeOldVehicles:function (){currentTime= new Date();for(index=this[_0x8f99[39]][_0x8f99[40]]-1;index>=0;index--){if(currentTime[_0x8f99[41]]()-this[_0x8f99[39]][index][_0x8f99[42]]()[_0x8f99[41]]()>1000){if(vehiclePopupVehicle!=null){if(vehiclePopupVehicle[_0x8f99[17]]==this[_0x8f99[39]][index][_0x8f99[17]]()){onCloseVehiclePopup();} ;} ;map[_0x8f99[43]](this[_0x8f99[39]][index][_0x8f99[33]]());this[_0x8f99[39]][_0x8f99[44]](index,1);} ;} ;} ,removeAllVehicles:function (){for(index=this[_0x8f99[39]][_0x8f99[40]]-1;index>=0;index--){if(vehiclePopupVehicle!=null){if(vehiclePopupVehicle[_0x8f99[17]]==this[_0x8f99[39]][index][_0x8f99[17]]()){onCloseVehiclePopup();} ;} ;map[_0x8f99[43]](this[_0x8f99[39]][index][_0x8f99[33]]());this[_0x8f99[39]][_0x8f99[44]](index,1);} ;this[_0x8f99[39]]= new Array();} ,addVehicle:function (_0xb687x5,_0xb687x6,_0xb687x7,_0xb687x8,_0xb687x9,_0xb687xa,_0xb687xb,_0xb687xd,_0xb687xe,_0xb687xf,_0xb687x10,_0xb687x11,_0xb687x12,_0xb687x13){index=this[_0x8f99[45]](_0xb687x5);if(index==this[_0x8f99[39]][_0x8f99[40]]){var _0xb687x15= new GIcon(false,_0x8f99[46]);_0xb687x15[_0x8f99[47]]= new GSize(55,55);_0xb687x15[_0x8f99[48]]= new GPoint(27,27);_0xb687x15[_0x8f99[49]]=_0x8f99[50]+_0xb687x6+_0x8f99[31];_0xb687x15[_0x8f99[51]]= new GSize(55,67);var _0xb687xc= new GMarker( new GLatLng(_0xb687x9,_0xb687xa),{icon:_0xb687x15,draggable:false});map[_0x8f99[52]](_0xb687xc);this[_0x8f99[39]][index]= new Vehicle(_0xb687x5,_0xb687x6,_0xb687x7,_0xb687x8,_0xb687x9,_0xb687xa,_0xb687xb,_0xb687xc,_0xb687xd,_0xb687xe,_0xb687xf,_0xb687x10,_0xb687x11,_0xb687x12,_0xb687x13);} ;this[_0x8f99[39]][index][_0x8f99[53]](_0xb687x6);this[_0x8f99[39]][index][_0x8f99[54]](_0xb687x7);this[_0x8f99[39]][index][_0x8f99[55]](_0xb687x8);this[_0x8f99[39]][index][_0x8f99[56]](_0xb687x9);this[_0x8f99[39]][index][_0x8f99[57]](_0xb687xa);this[_0x8f99[39]][index][_0x8f99[58]](_0xb687xb);this[_0x8f99[39]][index][_0x8f99[59]]( new Date());this[_0x8f99[39]][index][_0x8f99[60]](_0xb687xd);this[_0x8f99[39]][index][_0x8f99[61]](_0xb687xe);this[_0x8f99[39]][index][_0x8f99[62]](_0xb687x10);this[_0x8f99[39]][index][_0x8f99[63]](_0xb687xf);this[_0x8f99[39]][index][_0x8f99[64]](_0xb687x11);this[_0x8f99[39]][index][_0x8f99[65]](_0xb687x13);this[_0x8f99[39]][index][_0x8f99[66]](_0xb687x12);this[_0x8f99[39]][index][_0x8f99[67]]();} ,getVehicles:function (){return this[_0x8f99[39]];} };Vehicles[_0x8f99[38]](_0x8f99[68],null,Sys.IDisposable);
