﻿var LOCALE__='en';
var SORT_BY='Sort by:';
var SPEED__='speed';
var CHANGES__='changes';
var POINTS__='points';
var WALK__='walking';
var COST__='cost';
var ORDER_TAXI='8-903-199-77-00';
var TAXI_LINK ='By taxi';

var WORD_SHEDULE='schedule';
var WORD_JAMS='jams';
var WORD_JAMS_HIGH='Dead traffic';
var WORD_JAMS_MEDIUM='Jam';
var WORD_JAMS_LOW='Slow traffic';
var MINI_WORD_JAMS_HIGH='dead';
var MINI_WORD_JAMS_MEDIUM='jam';
var MINI_WORD_JAMS_LOW='slow';
var MINI_FREE_WAY='free';
var FREE_WAY='free traffic';
var UNIT_STRUCTURE='Unit structure';
//var TRAFFIC_PRELUDE='speed is calculated';
var TRAFFIC_PRELUDE='';
var COUNT_WITH_TRAFFIC='according to traffic';
var COUNT_WITHOUT_TRAFFIC='without traffic';
var NOT_SUPPORTED_BROWSER = 'Your browser don\'t support Google Maps. Try to download new browser from opera.com or firefox.com';
var START_POINT = 'Start point';
var DESTINATION_POINT = 'Destination point';
var SIMILAR_START_DEST_POINTS_ERROR = 'Start point and destination point are equal. Please, enter two different points.';
var POINT_INSIDE_OBSTACLE_ERROR = 'Departure or destination point is inside of an impassable obstacle. Put them somewhere you can walk, please :)';
var NO_GOOD_ROUTES_FOUND = 'Shortest city transport route is much more longer than just walking.';
var TRY_WALK_1 = 'There\'s only ';
var TRY_WALK_2 = ' m. from start to destination.\r\n';
var TRY_WALK_3 = 'You can get to destination on foot in ';
var TRY_WALK_4 = ' minutes :)';
var ROUTES_NOT_FOUND_TRY_MORE_TRANS = 'No routes found. Maybe, You should try to unlock some type of transport?';
var ROUTES_NOT_FOUND_POINTS_TOO_FAR = 'No routes found. Maybe, You entered points too far from the city?';
var ENTER_POINTS = 'Please, enter start and destination point by clicking a map or by entering an address.';
var ENTER_SEARCH_STRING = 'Please, enter a string to found.';
var STREET_STRING = 'Street';
var HOUSE_STRING = 'house';
var CORP_STRING = 'corp.';
var BUILD_STRING = 'build.';
var CORP_STRING_SHORT = 'К';
var BUILD_STRING_SHORT = 'С';
var TELL_ADMIN_ABOUT_ERROR = 'Please, inform us about this error.';
var ENTER_START_POINT = 'Please, enter start point by clicking a map or by entering an address.';
var ENTER_DESTINATION_POINT = 'Please, enter destination point by clicking a map or by entering an address.';
var RESULT_ROUTES = 'Search results';
var THE_BEST_ROUTES='The best routes';
var REVERSE_ROUTES='reverse routes';
var NEW_SEARCH = 'New search';
var EXPLANATION = [];
EXPLANATION[1] = '<p id="exp-msk"><em>*</em> There are several information sources for routes generation including: <a href="http://www.mosgortrans.net/">www.mosgortrans.net</a>. The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on subway ticket cost equals 19 rubles and upway ticket cost equals 17 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[2] = '<p><em>*</em> There are several information sources for routes generation including: <a href="http://www.orgp.ru/">www.orgp.ru</a>. The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on subway ticket cost equals 17 rubles and upway ticket cost equals 16 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[3] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on subway ticket cost equals 14 rubles and upway ticket cost equals 14 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[68] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 20 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[419] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 9 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[420] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 12 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[423] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on bus ticket cost equals 14 rubles and upway ticket cost equals 9 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[443] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 8 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[518] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 2 hryvnias and upway ticket cost equals 1 hryvnia. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[517] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway and electric train speed about 45 km/h, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 12 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[28] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on shared taxies speed about 40 km/h, bus/trolley speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 20 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[521] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on shared taxies speed about 40 km/h, bus/trolley speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 9 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[522] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 1 hryvnia. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[422] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway speed about 45 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on bus ticket cost equals 15 rubles, on tram ticket cost equal 10 rubles and upway ticket cost equals 12 rubles. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[523] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on bus ticket cost equals 11 rubles and upway ticket cost equals 8 rubles. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';
EXPLANATION[4] = '<p><em>*</em> The displayed information can be inexact. Duration of the route calculation based on subway, shared taxies speed about 40 km/h, bus/trolley/tram speed about 30 km/h, walking speed &mdash; 4 km/h plus some time on each change depends on concrete transport. Route cost is based on upway ticket cost equals 2 hryvnias. Shared taxies ticket cost depends on concrete route. If there are several routes on one unit &mdash; statistics are calculated using both the best speed and price.</p>';

var CITY_LAT = [];
CITY_LAT[1] = 55.757287;
CITY_LAT[2] = 59.935408;
CITY_LAT[3] = 56.836767;
CITY_LAT[68] = 55.083332;
CITY_LAT[419] = 47.265475;
CITY_LAT[420] = 57.996635;
CITY_LAT[423] = 56.329918;
CITY_LAT[443] = 57.780739;
CITY_LAT[518] = 46.461397;
CITY_LAT[517] = 53.510204;
CITY_LAT[28] = 55.556728;
CITY_LAT[521] = 56.137325;
CITY_LAT[522] = 48.008335;
CITY_LAT[422] = 55.789380;
CITY_LAT[523] = 56.026417;
CITY_LAT[4] = 50.448978;

var CITY_LNG = [];
CITY_LNG[1] = 37.620217;
CITY_LNG[2] = 30.309562;
CITY_LNG[3] = 60.596981;
CITY_LNG[68] = 38.783333;
CITY_LNG[419] = 39.728164;
CITY_LNG[420] = 56.234894;
CITY_LNG[423] = 44.009193;
CITY_LNG[443] = 40.936691;
CITY_LNG[518] = 30.708925;
CITY_LNG[517] = 49.414616;
CITY_LNG[28] = 37.712471;
CITY_LNG[521] = 47.244041;
CITY_LNG[522] = 37.806038;
CITY_LNG[422] = 49.136184;
CITY_LNG[523] = 92.897469;
CITY_LNG[4] = 30.518646;

var CITY_ZOOM = [];
CITY_ZOOM[1] = 12;
CITY_ZOOM[2] = 12;
CITY_ZOOM[3] = 12;
CITY_ZOOM[68] = 13;
CITY_ZOOM[419] = 13;
CITY_ZOOM[420] = 12;
CITY_ZOOM[423] = 13;
CITY_ZOOM[443] = 13;
CITY_ZOOM[518] = 13;
CITY_ZOOM[517] = 14;
CITY_ZOOM[28] = 14;
CITY_ZOOM[521] = 13;
CITY_ZOOM[522] = 13;
CITY_ZOOM[422] = 13;
CITY_ZOOM[523] = 13;
CITY_ZOOM[4] = 13;

var CITY_ZOOM_OVI = [];
CITY_ZOOM_OVI[1] = 3082;
CITY_ZOOM_OVI[2] = 3082;
CITY_ZOOM_OVI[3] = 3082;
CITY_ZOOM_OVI[68] = 3082;
CITY_ZOOM_OVI[419] = 3082;
CITY_ZOOM_OVI[420] = 3082;
CITY_ZOOM_OVI[423] = 3082;
CITY_ZOOM_OVI[443] = 3082;
CITY_ZOOM_OVI[518] = 3082;
CITY_ZOOM_OVI[517] = 3082;
CITY_ZOOM_OVI[28] = 3082;
CITY_ZOOM_OVI[521] = 3082;
CITY_ZOOM_OVI[522] = 3082;
CITY_ZOOM_OVI[422] = 3082;
CITY_ZOOM_OVI[523] = 3082;
CITY_ZOOM_OVI[4] = 3082;


var COUNTRY_NAME = [];
COUNTRY_NAME[1] = 'Россия';
COUNTRY_NAME[2] = 'Россия';
COUNTRY_NAME[3] = 'Россия';
COUNTRY_NAME[68] = 'Россия';
COUNTRY_NAME[419] = 'Россия';
COUNTRY_NAME[420] = 'Россия';
COUNTRY_NAME[423] = 'Россия';
COUNTRY_NAME[443] = 'Россия';
COUNTRY_NAME[518] = 'Украина';
COUNTRY_NAME[517] = 'Россия';
COUNTRY_NAME[28] = 'Россия';
COUNTRY_NAME[521] = 'Россия';
COUNTRY_NAME[522] = 'Украина';
COUNTRY_NAME[422] = 'Россия';
COUNTRY_NAME[523] = 'Россия';
COUNTRY_NAME[4] = 'Украина';

var CITY_SUBDOMAIN = [];
CITY_SUBDOMAIN[1] = 'msk';
CITY_SUBDOMAIN[2] = 'spb';
CITY_SUBDOMAIN[3] = 'eka';
CITY_SUBDOMAIN[68] = 'kolomna';
CITY_SUBDOMAIN[419] = 'rostov';
CITY_SUBDOMAIN[420] = 'perm';
CITY_SUBDOMAIN[423] = 'nn';
CITY_SUBDOMAIN[443] = 'kostroma';
CITY_SUBDOMAIN[518] = 'odessa';
CITY_SUBDOMAIN[517] = 'tlt';
CITY_SUBDOMAIN[28] = 'vidnoe';
CITY_SUBDOMAIN[521] = 'cheb';
CITY_SUBDOMAIN[522] = 'donetsk';
CITY_SUBDOMAIN[422] = 'kazan';
CITY_SUBDOMAIN[523] = 'krsk';
CITY_SUBDOMAIN[4] = 'kiev';

var CITY_NAME = [];
CITY_NAME[1] = 'Moscow';
CITY_NAME[2] = 'Saint-Petersburg';
CITY_NAME[3] = 'Ekaterinburg';
CITY_NAME[68] = 'Kolomna';
CITY_NAME[419] = 'Rostov-on-Don';
CITY_NAME[420] = 'Perm';
CITY_NAME[423] = 'Nijniy Novgorod';
CITY_NAME[443] = 'Kostroma';
CITY_NAME[518] = 'Odessa';
CITY_NAME[517] = 'Tolyatti';
CITY_NAME[28] = 'Vidnoe';
CITY_NAME[521] = 'Cheboksary';
CITY_NAME[522] = 'Donetsk';
CITY_NAME[422] = 'Kazan';
CITY_NAME[523] = 'Krasnoyarsk';
CITY_NAME[4] = 'Kiev';

var NEXT_WAYS = 'next';
var PREV_WAYS = 'prev';
var PUT_TO_MAP = 'to map';
var PUT_TO_PRINT = 'to print';
var ON_MAP = 'on map';
var ENTER_ADDRESS = 'Please, enter address.';
var SLASH_HOUSE = 'If house number contains slash — write it down with slash into "house" input. Thanks.';
var ADDRESS_NOT_FOUND_1 = 'Address "';
var ADDRESS_NOT_FOUND_2 = '" not found. Please, check the street name and house number.';
var CLOSE_WINDOW = 'Close window';
var DO_PRINT = 'Print';
var PRINT_PAGE='print page';
var LINK_TO_ROUTES='link to routes';
var LINK_WORD='Link';
var BLOGOCODE_WORD='Code for blogs';

var CITY_ROUTES = [];
CITY_ROUTES[1] = 'Moscow Transport';
CITY_ROUTES[2] = 'Saint-Petersburg Transport';
CITY_ROUTES[3] = 'Ekaterinburg Transport';
CITY_ROUTES[68] = 'Kolomna Transport';
CITY_ROUTES[419] = 'Rostov-on-Don Transport';
CITY_ROUTES[420] = 'Perm Transport';
CITY_ROUTES[423] = 'Nijniy Novgorod Transport';
CITY_ROUTES[443] = 'Kostroma Transport';
CITY_ROUTES[518] = 'Odessa Transport';
CITY_ROUTES[517] = 'Tolyatti Transport';
CITY_ROUTES[28] = 'Vidnoe Transport';
CITY_ROUTES[521] = 'Cheboksary Transport';
CITY_ROUTES[522] = 'Donetsk Transport';
CITY_ROUTES[521] = 'Kazan Transport';
CITY_ROUTES[522] = 'Krasnoyarsk Transport';
CITY_ROUTES[4] = 'Kiev Transport';

var PRINT_ALL = 'print all routes';
var YOUR_ROUTE = 'Your route';
var YOUR_MAIL = 'Your e-mail';
var MESSAGE_TRANSFER_ERROR = 'There was an error while sending a message. Please, try again later.';
var MESSAGE_SENT_RENEW = 'Message sent. Renew form.';
var SEND_MESSAGE = 'Send quick message';
// типы транспорта
var types = [];
types[0] = 'on foot';
types[2] = 'bus';
types[3] = 'tram';
types[4] = 'trolley';
types[5] = 'shared taxi';
types[6] = 'subway';
types[7] = 'monorail';
types[8] = 'electric train';
types[11] = 'aeroexpress';
types[12] = 'electric train «Sputnik»';

var types1 = [];
types1[0] = 'on foot';
types1[2] = 'buses';
types1[3] = 'trams';
types1[4] = 'trolleys';
types1[5] = 'shared taxies';
types1[6] = 'subway';
types1[7] = 'monirail';
types1[8] = 'electric train';
types1[11] = 'aeroexpress';
types1[12] = 'electric trains «Sputnik»';

// и их иконки
var ticons = [];
ticons[2] = 'bus.gif';
ticons[3] = 'tram.gif';
ticons[4] = 'tbus.gif';
ticons[5] = 'marw.gif';
ticons[6] = 'metr.gif';
ticons[7] = 'mon.gif';
// стили для текста общие
var styles = [];
styles['тат'] = 'tat_';
styles['walk'] = 'tat_';
styles['электричка'] = 'rzd_';
styles['аэроэкспресс'] = 'aer_';
styles['спутник'] = 'rzd_';
styles['такси'] = 'taxi';
// msk
styles['Monorels-1'] = 'mon_';
styles['Sokolnicheskaya'] = 'sl_';
styles['Zamoskvoretskaya'] = 'zml_';
styles['Arbatsko-Pokrovskaya'] = 'apl_';
styles['Filevskaya'] = 'fl_';
styles['Filevskaya novaya'] = 'fl_';
styles['Koltsevaya'] = 'kl_';
styles['Kalujsko-Rijskaya'] = 'krl_';
styles['Tagansko-Krasnopresnenskaya'] = 'tkl_';
styles['Kalininskaya'] = 'kll_';
styles['Serpuhovsko-Timiryazevskaya'] = 'stl_';
styles['Lublinskaya'] = 'll_';
styles['Kahovskaya'] = 'khl_';
styles['Butovskaya'] = 'btl_';
styles['Монорельс-1'] = 'mon_';
styles['Сокольническая'] = 'sl_';
styles['Замоскворецкая'] = 'zml_';
styles['Арбатско-Покровская'] = 'apl_';
styles['Филевская'] = 'fl_';
styles['Филевская новая'] = 'fl_';
styles['Кольцевая'] = 'kl_';
styles['Калужско-Рижская'] = 'krl_';
styles['Таганско-Краснопресненская'] = 'tkl_';
styles['Калининская'] = 'kll_';
styles['Серпуховско-Тимирязевская'] = 'stl_';
styles['Люблинская'] = 'll_';
styles['Каховская'] = 'khl_';
styles['Бутовская'] = 'btl_';
// spb
styles['Kirovsko-Viborgskaya'] = 'sl_';
styles['Moskovsko-Petrogradskaya'] = 'apl_';
styles['Nevsko-Vasileostrovskaya'] = 'zml_';
styles['Pravoberezhnaya'] = 'krl_';
styles['Ohtinsko-Petrogradskaya'] = 'stl_';
styles['Кировско-Выборгская'] = 'sl_';
styles['Московско-Петроградская'] = 'apl_';
styles['Невско-Василеостровская'] = 'zml_';
styles['Правобережная'] = 'krl_';
styles['Охтинско-Петроградская'] = 'stl_';
// eka
styles['Uralskaya'] = 'sl_';
styles['Уральская'] = 'sl_';
//nn
styles['Первая'] = 'sl_';
styles['Pervaya'] = 'sl_';
//kazan
styles['Центральная'] = 'sl_';
styles['Centralnaya'] = 'sl_';

//kiev
styles['Куреневско-Красноармейская'] = 'apl_';
styles['Kurenevsko-Krasnoarmejskaya'] = 'apl_';
styles['Святошинско-Броварская'] = 'sl_';
styles['Svyatoshinsko-Brovarskaya'] = 'sl_';
styles['Сырецко-Печерская'] = 'zml_';
styles['Syrecko-Pecherskaya'] = 'zml_';

// иконки для точек общие
var iconurls = [];
iconurls['тат'] = 'tat';
iconurls['walk'] = 'walk';
iconurls['электричка'] = 'rzd';
iconurls['аэроэкспресс'] = 'aer_';
iconurls['спутник'] = 'rzd';
iconurls['такси'] = 'taxi';
// msk
iconurls['Monorels-1'] = 'mon';
iconurls['Sokolnicheskaya'] = 'sl';
iconurls['Zamoskvoreckaya'] = 'zml';
iconurls['Arbatsko-Pokrovskaya'] = 'apl';
iconurls['Filevskaya'] = 'fl';
iconurls['Filevskaya novaya'] = 'fl';
iconurls['Kolcevaya'] = 'kl';
iconurls['Kaluzhsko-Rizhskaya'] = 'krl';
iconurls['Tagansko-Krasnopresnenskaya'] = 'tkl';
iconurls['Kalininskaya'] = 'kll';
iconurls['Serpuhovsko-Timiryazevskaya'] = 'stl';
iconurls['Ljublinskaya'] = 'll';
iconurls['Kahovskaya'] = 'khl';
iconurls['Butovskaya'] = 'btl';
iconurls['Монорельс-1'] = 'mon';
iconurls['Сокольническая'] = 'sl';
iconurls['Замоскворецкая'] = 'zml';
iconurls['Арбатско-Покровская'] = 'apl';
iconurls['Филевская'] = 'fl';
iconurls['Филевская новая'] = 'fl';
iconurls['Кольцевая'] = 'kl';
iconurls['Калужско-Рижская'] = 'krl';
iconurls['Таганско-Краснопресненская'] = 'tkl';
iconurls['Калининская'] = 'kll';
iconurls['Серпуховско-Тимирязевская'] = 'stl';
iconurls['Люблинская'] = 'll';
iconurls['Каховская'] = 'khl';
iconurls['Бутовская'] = 'btl';
// spb
iconurls['Kirovsko-Viborgskaya'] = 'sl';
iconurls['Moskovsko-Petrogradskaya'] = 'apl';
iconurls['Nevsko-Vasileostrovskaya'] = 'zml';
iconurls['Pravoberezhnaya'] = 'krl';
iconurls['Ohtinsko-Petrogradskaya'] = 'stl';
iconurls['Кировско-Выборгская'] = 'sl';
iconurls['Московско-Петроградская'] = 'apl';
iconurls['Невско-Василеостровская'] = 'zml';
iconurls['Правобережная'] = 'krl';
iconurls['Охтинско-Петроградская']  = 'stl';
// eka
iconurls['Uralskaya'] = 'sl';
iconurls['Уральская'] = 'sl';
// aero
iconurls['Савеловский-Шереметьево'] = 'aero_sav_wer';
iconurls['Савеловский-Шереметьево-2'] = 'aero_sav_wer';
iconurls['Savelovskij-Sheremetevo'] = 'aero_sav_wer';
iconurls['Savelovskij-Sheremetevo-2'] = 'aero_sav_wer';
iconurls['Шереметьево-2 - Савеловский вокзал'] = 'aero_sav_wer';
iconurls['Sheremetevo-2 - Savelovskij vokzal'] = 'aero_sav_wer';
iconurls['Павелецкая-Домодедово'] = 'aero_dom';
iconurls['Paveleckaya-Domodedovo'] = 'aero_dom';
iconurls['Киевская-Внуково'] = 'aero_kiev_vnu';
iconurls['Kievskaya-Vnukovo'] = 'aero_kiev_vnu';
//nn
iconurls['Первая'] = 'sl';
iconurls['Pervaya'] = 'sl';

//kazan
iconurls['Центральная'] = 'sl';
iconurls['Centralnaya'] = 'sl';

//kiev
iconurls['Kurenevsko-Krasnoarmejskaya'] = 'apl';
iconurls['Куреневско-Красноармейская'] = 'apl';
iconurls['Святошинско-Броварская'] = 'sl';
iconurls['Svyatoshinsko-Brovarskaya'] = 'sl';
iconurls['Сырецко-Печерская'] = 'zml';
iconurls['Syrecko-Pecherskaya'] = 'zml';

// короткие названия
var shortways = [];
// msk
shortways['Sokolnicheskaya'] = 'Sokolnicheskaya';
shortways['Zamoskvoretskaya'] = 'Zamoskvoretskaya';
shortways['Arbatsko-Pokrovskaya'] = 'Arbatsko-Pokrovskaya';
shortways['Filevskaya'] = 'Filevskaya';
shortways['Filevskaya novaya'] = 'Filevskaya novaya';
shortways['Koltsevaya'] = 'Koltsevaya';
shortways['Kalujsko-Rijskaya'] = 'Kalujsko-Rijskaya';
shortways['Tagansko-Krasnopresnenskaya'] = 'Tagansko-Krasnopresnenskaya';
shortways['Kalininskaya'] = 'Kalininskaya';
shortways['Serpuhovsko-Timiryazevskaya'] = 'Serpuhovsko-Timiryazevskaya';
shortways['Lublinskaya'] = 'Lublinskaya';
shortways['Kahovskaya'] = 'Kahovskaya';
shortways['Butovskaya'] = 'Butovskaya';
shortways['Сокольническая'] = 'Сокольническая';
shortways['Замоскворецкая'] = 'Замоскворецкая';
shortways['Арбатско-Покровская'] = 'АП';
shortways['Филевская'] = 'Филевская';
shortways['Филевская новая'] = 'Филевская нов.';
shortways['Кольцевая'] = 'Кольцевая';
shortways['Калужско-Рижская'] = 'КР';
shortways['Таганско-Краснопресненская'] = 'ТК';
shortways['Калининская'] = 'Калининская';
shortways['Серпуховско-Тимирязевская'] = 'СТ';
shortways['Люблинская'] = 'Люблинская';
shortways['Каховская'] = 'Каховская';
shortways['Бутовская'] = 'Бутовская';
// spb
shortways['Kirovsko-Viborgskaya'] = 'Kirovsko-Viborgskaya';
shortways['Moskovsko-Petrogradskaya'] = 'Moskovsko-Petrogradskaya';
shortways['Nevsko-Vasileostrovskaya'] = 'Nevsko-Vasileostrovskaya';
shortways['Pravoberezhnaya'] = 'Pravoberezhnaya';
shortways['Ohtinsko-Petrogradskaya'] = 'OP';
shortways['Кировско-Выборгская'] = 'КВ';
shortways['Московско-Петроградская'] = 'МП';
shortways['Невско-Василеостровская'] = 'НВ';
shortways['Правобережная'] = 'Правобережная';
shortways['Охтинско-Петроградская'] = 'ОП';
// eka
shortways['Uralskaya'] = 'Uralskaya';
shortways['Уральская'] = 'Уральская';
// aero
shortways['Савеловский-Шереметьево'] = 'Савеловский-Шереметьево';
shortways['Savelovskij-Sheremetevo'] = 'Savelovskij-Sheremetevo';
shortways['Павелецкая-Домодедово'] = 'Павелецкая-Домодедово';
shortways['Paveleckaya-Domodedovo'] = 'Paveleckaya-Domodedovo';
shortways['Киевская-Внуково'] = 'Киевская-Внуково';
shortways['Kievskaya-Vnukovo'] = 'Kievskaya-Vnukovo';

//nn
shortways['Первая'] = 'Первая';
shortways['Pervaya'] = 'Pervaya';

//kazan
shortways['Центральная'] = 'Центральная';
shortways['Centralnaya'] = 'Centralnaya';

//kiev
shortways['Куреневско-Красноармейская'] = 'Куреневско-Красноармейская';
shortways['Kurenevsko-Krasnoarmejskaya'] = 'Kurenevsko-Krasnoarmejskaya';
shortways['Святошинско-Броварская'] = 'Святошинско-Броварская';
shortways['Svyatoshinsko-Brovarskaya'] = 'Svyatoshinsko-Brovarskaya';
shortways['Сырецко-Печерская'] = 'Сырецко-Печерская';
shortways['Syrecko-Pecherskaya'] = 'Syrecko-Pecherskaya';

var spec = [];
spec['Савеловский-Шереметьево'] = 5450;
spec['Savelovskij-Sheremetevo'] = 5450;
spec['Павелецкая-Домодедово'] = 5883;
spec['Paveleckaya-Domodedovo'] = 5883;
spec['Киевская-Внуково'] = 5891;
spec['Kievskaya-Vnukovo'] = 5891;
spec['Шереметьево-2 - Савеловский вокзал'] = 7155;
spec['Sheremetevo-2 - Savelovskij vokzal'] = 7155;

// тайлы для обозначения линий
var lineurls = [];
lineurls['тат'] = 'tatunit';
lineurls['walk'] = 'walkunit';
lineurls['такси'] = 'taxi';
lineurls['пробка-нет'] = 'traf-out-unit';
lineurls['пробка-0'] = 'traf-0-unit';
lineurls['пробка-1'] = 'traf-1-unit';
lineurls['пробка-2'] = 'traf-2-unit';
lineurls['пробка-3'] = 'traf-3-unit';
lineurls['пробка-4'] = 'traf-4-unit';
lineurls['пробка-5'] = 'traf-5-unit';
lineurls['пробка-6'] = 'traf-6-unit';
lineurls['пробка-7'] = 'traf-7-unit';
lineurls['пробка-8'] = 'traf-8-unit';
lineurls['пробка-9'] = 'traf-9-unit';
lineurls['пробка-10'] = 'traf-10-unit';
lineurls['метро'] = 'metrounit';
lineurls['Монорельс-1'] = 'metrounit';
lineurls['электричка'] = 'metrounit';
lineurls['аэроэкспресс'] = 'metrounit';
lineurls['спутник'] = 'metrounit';

// заголовки маршрутов
var headers = [];
headers['speed'] = 'Fastest';
headers['comfort'] = 'Easiest';
headers['nearest'] = 'Nearest points';

// слова для склонения
var FELLA_WORD = 'fellow';
var NO_FELLA_WORD = '&nbsp;';
var TYPE_WORD = 'type';
var CHANGE_WORD = 'change';
var POINT_WORD = 'point';
var MINUTE_WORD = 'minute';
var RUBLE_WORD = 'ruble';
var GRN_WORD = 'hryvnia';
var METER_WORD = 'meter';
var VARIANT_WORD = 'variant';
var WORD_BALL = 'point';

var TARGET_HEADER=[];
TARGET_HEADER['speed']='Minimal time';
TARGET_HEADER['changes']='Minimal changes';
TARGET_HEADER['walk']='Minimal walking';
TARGET_HEADER['cost']='Minimal cost';

var words=[];
words[FELLA_WORD]=[];
words[FELLA_WORD][0]='fellow';
words[FELLA_WORD][1]='fellows';
words[FELLA_WORD][2]='fellows';
words[TYPE_WORD]=[];
words[TYPE_WORD][0]='type';
words[TYPE_WORD][1]='types';
words[TYPE_WORD][2]='types';
words[CHANGE_WORD]=[];
words[CHANGE_WORD][0]='change';
words[CHANGE_WORD][1]='changes';
words[CHANGE_WORD][2]='changes';
words[POINT_WORD]=[];
words[POINT_WORD][0]='point';
words[POINT_WORD][1]='points';
words[POINT_WORD][2]='points';
words[MINUTE_WORD]=[];
words[MINUTE_WORD][0]='minute';
words[MINUTE_WORD][1]='minutes';
words[MINUTE_WORD][2]='minutes';
words[RUBLE_WORD]=[];
words[RUBLE_WORD][0]='ruble';
words[RUBLE_WORD][1]='rubles';
words[RUBLE_WORD][2]='rubles';
words[GRN_WORD]=[];
words[GRN_WORD][0]='hryvnia';
words[GRN_WORD][1]='hryvnias';
words[GRN_WORD][2]='hryvnias';
words[METER_WORD]=[];
words[METER_WORD][0]='meter';
words[METER_WORD][1]='meters';
words[METER_WORD][2]='meters';
words[VARIANT_WORD]=[];
words[VARIANT_WORD][0]='variant';
words[VARIANT_WORD][1]='variants';
words[VARIANT_WORD][2]='variants';
words[WORD_BALL]=[];
words[WORD_BALL][0]='point';
words[WORD_BALL][1]='points';
words[WORD_BALL][2]='points';

var BY_WALK='on foot';
var ON_MAP='on map';
var FOR_TICKETS='for tickets';
var DURATION='on way (estimate)';
var ELECTRIC_TRAIN='electric train';
var POINT_SHORT='st.';
var STATION_SHORT='st.';
var LINE_STRING='line';
var PAGE_WORD='page';
var FROM_WORD='from';
var TOGGLE_OBJ_OFF='toggle objects off';
var TOGGLE_OBJ_ON='toggle objects on';
var TOGGLE_MAP_OFF='toggle map off';
var TOGGLE_MAP_ON='toggle map on';
var ADS_ADD='create ads';
var OBJS_ADD='create objects';

var IMAGES_ROOT='images_en';
