_YOUTUBE = 
[
	{url: "https://www.youtube.com/watch?v=FCfcgDX8ezk", name: "Proxy checker", suggestion:"change set proxy proxies ip hide checker loop", lang: "en"},
	{url: "https://www.youtube.com/watch?v=FCfcgDX8ezk", name: "Чеккер прокси", suggestion:"установить сменить поменять прокси ип чеккер чекер циклы цикл", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=lq2Anqlnliw", name: "Change proxy", suggestion:"change set proxy proxies ip hide", lang: "en"},
	{url: "https://www.youtube.com/watch?v=lq2Anqlnliw", name: "Сменить прокси", suggestion:"установить сменить поменять прокси ип", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=64He614lmmg", name: "Solve captcha antigate/dbc", suggestion:"solve resolve captcha capcha antigate rucaptcha 2captha dbc", lang: "en"},
	{url: "https://www.youtube.com/watch?v=64He614lmmg", name: "Решить капчу через антигейт/рукачпу", suggestion:"решить капчу антигейт рукапча 2капча каптча каптчу", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=7MQFctMCNCw", name: "Set user agent", suggestion:"user agent header referrer referer accept language", lang: "en"},
	{url: "https://www.youtube.com/watch?v=7MQFctMCNCw", name: "Установить юзер агент", suggestion:"Юзер агент хедер рефферер реферер", lang: "ru"},

 	{url: "https://www.youtube.com/watch?v=qZ4fuY0Uz2E", name: "Get current browser url", suggestion:"url address", lang: "en"},
 	{url: "https://www.youtube.com/watch?v=qZ4fuY0Uz2E", name: "Получить текущий урл браузера", suggestion:"текущий адрес урл", lang: "ru"},

 	{url: "https://www.youtube.com/watch?v=cbppjfetsiU", name: "Fill form with and without mouse", suggestion:"type key enter escape", lang: "en"},
 	{url: "https://www.youtube.com/watch?v=cbppjfetsiU", name: "Заполнить форму без мыши", suggestion:"ввод клавиша", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=Y5WkLilf5ds", name: "Execute custom javascript", suggestion:"", lang: "en"},
	{url: "https://www.youtube.com/watch?v=Y5WkLilf5ds", name: "Выполнить яваскрипт на элементе", suggestion:"яваскрипт скрипт", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=njXI1bXxlrA", name: "Scroll page", suggestion:"", lang: "en"},
	{url: "https://www.youtube.com/watch?v=njXI1bXxlrA", name: "Прокрутка страницы", suggestion:"скролл", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=3DOzVdGluMY", name: "Make screnshot", suggestion:"render page", lang: "en"},
	{url: "https://www.youtube.com/watch?v=3DOzVdGluMY", name: "Сделать скриншот", suggestion:"скрин снимок экран", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=jscgmDpib_U", name: "Get page from cache", suggestion:"cache download", lang: "en"},
	{url: "https://www.youtube.com/watch?v=jscgmDpib_U", name: "Получить страницу из кеша", suggestion:"кеша кеш скачать загрузить", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=eNhf3XuZxfY", name: "Disable images", suggestion:"restrict images videos", lang: "en"},
	{url: "https://www.youtube.com/watch?v=eNhf3XuZxfY", name: "Запретить картинки", suggestion:"запретить запрещать загрузку изображений", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=3alpI6Gc_yI", name: "Сheck if url is loaded", suggestion:"", lang: "en"},
	{url: "https://www.youtube.com/watch?v=3alpI6Gc_yI", name: "Проверить загрузку урл", suggestion:"", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=i8DxUatkqzs", name: "Set combobox value", suggestion:"dropdown list", lang: "en"},
	{url: "https://www.youtube.com/watch?v=i8DxUatkqzs", name: "Установить значение выпадающего списка", suggestion:"выпадающий список комбобокс", lang: "ru"},


	{url: "https://www.youtube.com/watch?v=ySSY3KNxAF0", name: "Check element existence", suggestion:"visible visibility", lang: "en"},
	{url: "https://www.youtube.com/watch?v=ySSY3KNxAF0", name: "Проверить существование элемента", suggestion:"видимость", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=YF0bgVGWUSI", name: "Image uploader", suggestion:"upload file loop iterations", lang: "en"},
	{url: "https://www.youtube.com/watch?v=YF0bgVGWUSI", name: "Загрузка изображений", suggestion:"аплоадер циклы", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=7qciisy0TL0", name: "Task scheduler", suggestion:"Task scheduler run launch from command line", lang: "en"},
	{url: "https://www.youtube.com/watch?v=7qciisy0TL0", name: "Планировщик заданий", suggestion:"планировщик заданий запустить командная строка", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=UTrYzXNcb_0", name: "Disable iframe loader", suggestion:"", lang: "en"},
	{url: "https://www.youtube.com/watch?v=UTrYzXNcb_0", name: "Запретить загрузку фреймов", suggestion:"", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=U88xUpj2BiI", name: "Apply regexp to page source", suggestion:"regular expression regexpr parse parser", lang: "en"},
	{url: "https://www.youtube.com/watch?v=U88xUpj2BiI", name: "Применить регулярное выражение к коду страницы", suggestion:"регулярка парсить парсер", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=nRwkELvb6vE", name: "Autologin", suggestion:"cookies cookie save cache", lang: "en"},
	{url: "https://www.youtube.com/watch?v=nRwkELvb6vE", name: "Автовход", suggestion:"куки автологин логин куки кукисы", lang: "ru"},
	
	{url: "https://www.youtube.com/watch?v=c-K0Ni8gccs", name: "Write to custom file", suggestion:"write file choose", lang: "en"},
	{url: "https://www.youtube.com/watch?v=c-K0Ni8gccs", name: "Запись в файл выбранный пользователем", suggestion:"запись файл выбрать открыть файл", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=2vbcN95hynw", name: "Temp resource", suggestion:"", lang: "en"},
	{url: "https://www.youtube.com/watch?v=2vbcN95hynw", name: "Временный ресурс", suggestion:"", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=cG_j0QoQfYw", name: "Construct javascript", suggestion:"create script expression editor", lang: "en"},
	{url: "https://www.youtube.com/watch?v=cG_j0QoQfYw", name: "Конструктор яваскрипт", suggestion:"создать сконструировать яваскрипт скрипт джаваскрипт", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=6lr07wMrukM", name: "Use ipv6 proxies", suggestion:"proxy", lang: "en"},
	{url: "https://www.youtube.com/watch?v=6lr07wMrukM", name: "ipv6 прокси", suggestion:"прокси", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=UBgpWayk0SU", name: "Variable inspector", suggestion:"", lang: "en"},
	{url: "https://www.youtube.com/watch?v=UBgpWayk0SU", name: "Инспектор переменных", suggestion:"", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=StmlVY1D5Yg", name: "Ignore errors", suggestion:"error resume break", lang: "en"},
	{url: "https://www.youtube.com/watch?v=StmlVY1D5Yg", name: "Игнорировать ошибки", suggestion:"прерывать ошибок ошибки", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=5ktCtp6jsI0", name: "How to bypass id protection", suggestion:"css xpath match selectors", lang: "en"},
	{url: "https://www.youtube.com/watch?v=5ktCtp6jsI0", name: "Как выбрать элемент со сменным ид", suggestion:"селектор селекторы", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=UkNvH-QNyxc", name: "Regular expression constructor", suggestion:"regexp constructor parsing parser", lang: "en"},
	{url: "https://www.youtube.com/watch?v=UkNvH-QNyxc", name: "Конструктор регулярных выражений", suggestion:"регулярки регулярные выражения выражение конструктор", lang: "ru"},
	
	{url: "https://www.youtube.com/watch?v=oQfhNRhLd4k", name: "Drag and drop", suggestion:"dragging move elements", lang: "en"},
	{url: "https://www.youtube.com/watch?v=oQfhNRhLd4k", name: "Перетаскивание", suggestion:"перетаскивать перетаскивание", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=9wFhvarHRVY", name: "Xpath parser", suggestion:"parser xpath html xml", lang: "en"},
	{url: "https://www.youtube.com/watch?v=9wFhvarHRVY", name: "Xpath парсер", suggestion:"парсер хтмл", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=Ofqvf_Rg_7M", name: "Capmonster image recaptcha", suggestion:"", lang: "en"},
	{url: "https://www.youtube.com/watch?v=Ofqvf_Rg_7M", name: "Решение рекапча с помощью капмонстр", suggestion:"Капмонстр рекаптча рекапча", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=sPR6CnzEA4k", name: "Capmonster audio recaptcha", suggestion:"", lang: "en"},
	{url: "https://www.youtube.com/watch?v=sPR6CnzEA4k", name: "Решение рекапча с помощью капмонстр аудио", suggestion:"Капмонстр рекаптча рекапча", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=jDRFKWUofk0", name: "Solve recaptcha", suggestion:"google recaptcha recapcha", lang: "en"},
	{url: "https://www.youtube.com/watch?v=jDRFKWUofk0", name: "Решение рекапчи", suggestion:"Гугл рекаптча рекапча", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=-zhs0oqUwHc", name: "Change timezone", suggestion:"date time change proxy", lang: "en"},
	{url: "https://www.youtube.com/watch?v=-zhs0oqUwHc", name: "Смена часового пояса", suggestion:"Изменить часовой пояс прокси", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=E7-Xa2Fl4vs", name: "Clear evercookies", suggestion:"clear purge restart reset full remove cookies cookie", lang: "en"},
	{url: "https://www.youtube.com/watch?v=E7-Xa2Fl4vs", name: "Полная очистка куки", suggestion:"Очистка куки кукисы перезапуск перезагрузка чистить полная чистка", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=E7-Xa2Fl4vs", name: "Clear evercookies", suggestion:"clear purge restart reset full remove cookies cookie", lang: "en"},
	{url: "https://www.youtube.com/watch?v=E7-Xa2Fl4vs", name: "Полная очистка куки", suggestion:"Очистка куки кукисы перезапуск перезагрузка чистить полная чистка", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=dkuuHl1LL0U", name: "Phone activation", suggestion:"receive sms text message phone number", lang: "en"},
	{url: "https://www.youtube.com/watch?v=dkuuHl1LL0U", name: "Активация телефона", suggestion:"получить смс подтвердить номер телефон телефона", lang: "ru"},
       
	{url: "https://www.youtube.com/watch?v=EOPqKl9o20o", name: "Working with frames", suggestion:"selector frame", lang: "en"},
	{url: "https://www.youtube.com/watch?v=EOPqKl9o20o", name: "Работа с фреймами", suggestion:"селектор селекторы фрейм", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=3AXjUH08qxg", name: "Cheap solve recaptcha", suggestion:"google recaptcha recapcha", lang: "en"},
	{url: "https://www.youtube.com/watch?v=3AXjUH08qxg", name: "Дешевое решение рекапчи", suggestion:"Гугл рекаптча рекапча", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=ltWy6O9jsTo", name: "Solve invisible recaptcha", suggestion:"google recaptcha recapcha", lang: "en"},
	{url: "https://www.youtube.com/watch?v=ltWy6O9jsTo", name: "Решение невидимой рекапчи", suggestion:"Гугл рекаптча рекапча", lang: "ru"},

	{url: "https://www.youtube.com/watch?v=Pal3HsU_UTA", name: "Change thread number", suggestion:"thread section function", lang: "en"},
	{url: "https://www.youtube.com/watch?v=Pal3HsU_UTA", name: "Смена количества потоков", suggestion:"потоков потоки функции", lang: "ru"}
	
]

_WIKI = 
[
	{
		"url":"https://wiki.bablosoft.com/doku.php?id=tutorial1",
		"name":"Create poster.",
		"suggestion":"", lang: "en"
	},
	{
		"url":"https://wiki.bablosoft.com/doku.php?id=tutorial2",
		"name":"Create parser.",
		"suggestion":"", lang: "en"
	},
	{
		"url":"https://wiki.bablosoft.com/doku.php?id=tutorial3",
		"name":"Create account manager.",
		"suggestion":"", lang: "en"
	},
	{
		"url":"https://wiki.bablosoft.com/doku.php?id=tutorial4",
		"name":"Creating parser with several stages.",
		"suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_set_proxy",
	   "name":"How to set proxy",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=i_heard_that_webrtc_exposes_my_ip_how_to_disable_that",
	   "name":"I heard, that webrtc exposes my ip, how to disable that",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_solve_captcha",
	   "name":"How to solve captcha",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_set_user_agent",
	   "name":"How to set user agent",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_load_url",
	   "name":"How to load url",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_get_current_url",
	   "name":"How to get current url",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_type_text",
	   "name":"How to type text",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_click_on_x_y_coordinates",
	   "name":"How to click on (x,y) coordinates",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_execute_javascript_on_page_and_save_result",
	   "name":"How to execute javascript on page and save result",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_search_for_element",
	   "name":"How to search for element",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_scroll_page",
	   "name":"How to scroll page",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_use_open_file_dialog",
	   "name":"How to use open file dialog",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_make_screenshot",
	   "name":"How to make screenshot",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_wait_on_certain_event_on_page",
	   "name":"How to wait on certain event on page",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_work_with_cookies",
	   "name":"How to work with cookies",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_get_request_result",
	   "name":"How to get request result",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_restrict_access_to_certain_urls",
	   "name":"How to restrict access to certain urls",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_check_if_url_is_loaded",
	   "name":"How to check if url is loaded",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_edit_text_input",
	   "name":"How to edit text input",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_iterate_over_elements",
	   "name":"How to iterate over elements",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_click_on_buttons_and_links",
	   "name":"How to click on buttons and links",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_check_if_page_element_exists",
	   "name":"How to check if page element exists",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_check_if_page_element_is_visible",
	   "name":"How to check if page element is visible",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_set_checkbox",
	   "name":"How to set checkbox",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_set_combobox",
	   "name":"How to set combobox",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_get_page_source",
	   "name":"How to get page source",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_move_mouse",
	   "name":"How to move mouse",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_enable_flash",
	   "name":"How to enable flash",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_change_proxy_if_it_fails",
	   "name":"How to change proxy if it fails",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_optimize_script",
	   "name":"How to optimize script",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_clear_cookies_and_restart_browser",
	   "name":"How to clear cookies and restart browser",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=working_with_browser_tabs",
	   "name":"Working with browser tabs",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=what_is_maximum_thread_number",
	   "name":"What is maximum thread number",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_verify_phone",
	   "name":"How to verify phone",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_sell_your_script_in_shop",
	   "name":"How to sell your script in shop",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_protect_your_script",
	   "name":"How to protect your script",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_prepare_a_script_for_publication_in_the_store",
	   "name":"How to prepare a script for publication in the store",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_make_get_request",
	   "name":"How to make GET request",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_make_post_request",
	   "name":"How to make POST request",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_set_request_headers",
	   "name":"How to set request headers",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_get_response_headers",
	   "name":"How to get response headers",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_get_response_status",
	   "name":"How to get response status",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_get_response_content",
	   "name":"How to get response content",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=browser_is_too_small_how_can_i_enlarge_it",
	   "name":"Browser is too small, how can I enlarge it",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_output_script_result",
	   "name":"How to output script result",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_let_user_to_choose_output_file_name",
	   "name":"How to let user to choose output file name",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_log_data",
	   "name":"How to log data",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_schedule_bas_script",
	   "name":"How to schedule BAS script",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_work_with_strings",
	   "name":"How to work with strings",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=i_don_t_know_javascript_what_should_i_do",
	   "name":"I don't know javascript, what should I do",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_compile_script_and_give_to_customer",
	   "name":"How to compile script and give to customer",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=is_it_possible_to_execute_certain_action_depending_on_condition_if_statement",
	   "name":"Is it possible to execute certain action depending on condition(if statement)",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=is_it_possible_to_use_loops",
	   "name":"Is it possible to use loops",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=functions",
	   "name":"Functions",
	   "suggestion":"", lang: "en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_catch_errors",
	   "name":"How to catch errors",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=multithreading",
	   "name":"Multithreading",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=i_want_to_run_some_actions_on_start_one_time",
	   "name":"I want to run some actions on start one time",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=i_want_my_script_to_repeat_several_times_how_to_implement_that",
	   "name":"I want my script to repeat several times, how to implement that",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_use_variables",
	   "name":"How to use variables",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_view_variables_list",
	   "name":"How to view variables list",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_end_script",
	   "name":"How to end script",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_to_execute_custom_code",
	   "name":"How to execute custom code",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=my_script_is_very_long_how_can_i_break_it_in_sections",
	   "name":"My script is very long, how can I break it in sections",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=where_do_i_get_bas_source_code",
	   "name":"Where do I get BAS source code",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=how_can_i_change_bas_and_compile",
	   "name":"How can I change BAS, and compile",
	   "suggestion":"", lang:"en"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:tutorial1",
	   "name":"Создание постера для твиттера.",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:tutorial2",
	   "name":"Создание парсера выдачи гугл.",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:tutorial3",
	   "name":"Создание менеджера аккаунтов.",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:tutorial4",
	   "name":"Создание парсера в несколько стадий.",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_set_proxy",
	   "name":"Как использовать прокси",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:i_heard_that_webrtc_exposes_my_ip_how_to_disable_that",
	   "name":"Я слышал, что WebRTC показывает мой IP, как отключить его",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_solve_captcha",
	   "name":"Как решать капчу",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_set_user_agent",
	   "name":"Как установить юзер агент",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_load_url",
	   "name":"Как загрузить страницу",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_get_current_url",
	   "name":"Как получить текущий урл",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_type_text",
	   "name":"Как заполнять формы",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_click_on_x_y_coordinates",
	   "name":"Как кликнуть по (x,y) координатам",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_execute_javascript_on_page_and_save_result",
	   "name":"Как выполнить яваскрипт и получить результат",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_search_for_element",
	   "name":"Как найти элемент",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_scroll_page",
	   "name":"Как прокрутить страницу",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_use_open_file_dialog",
	   "name":"Как использовать диалог \"Открыть файл\"",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_make_screenshot",
	   "name":"Как сделать скриншот",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_wait_on_certain_event_on_page",
	   "name":"Как ждать определенного события на странице",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_work_with_cookies",
	   "name":"Как работать с кукисами",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_get_request_result",
	   "name":"Как получить результат выполнения запроса",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_restrict_access_to_certain_urls",
	   "name":"Как запретить загрузку определенных страниц",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_check_if_url_is_loaded",
	   "name":"Как проверить была ли загружена страница",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_edit_text_input",
	   "name":"Как редактировать поля ввода",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_iterate_over_elements",
	   "name":"Как перебрать элементы страницы",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_click_on_buttons_and_links",
	   "name":"Как нажать на кнопку/ссылку",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_check_if_page_element_exists",
	   "name":"Как проверить, существует ли элемент на странице",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_check_if_page_element_is_visible",
	   "name":"Как проверить, виден ли элемент на странице",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_set_checkbox",
	   "name":"Как установить чекбокс",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_set_combobox",
	   "name":"Как установить комбобокс",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_get_page_source",
	   "name":"Как получить код страницы",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_move_mouse",
	   "name":"Как двигать мишь",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_enable_flash",
	   "name":"Как включить флэш",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_change_proxy_if_it_fails",
	   "name":"Как сменить прокси, если он не работает",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_optimize_script",
	   "name":"Как оптимизировать приложение",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_clear_cookies_and_restart_browser",
	   "name":"Как очистить куки и перезапустить браузер",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:working_with_browser_tabs",
	   "name":"Работа с вкладками",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:what_is_maximum_thread_number",
	   "name":"Какое максимальное число потоков",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_verify_phone",
	   "name":"Как подтвердить телефон",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_sell_your_script_in_shop",
	   "name":"Как продать свой скрипт в магазине",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_protect_your_script",
	   "name":"Как защитить свой скрипт",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_prepare_a_script_for_publication_in_the_store",
	   "name":"Как подготовить скрипт к публикации в магазине",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_load_lines_from_file",
	   "name":"Как загрузить строки из файла",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_delete_line_from_file_after_use",
	   "name":"Как удалить строку из файла после использования",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_load_files_from_url",
	   "name":"Как получить файл по урл",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:browser_is_too_small_how_can_i_enlarge_it",
	   "name":"Окно браузера слишком маленькое, как я могу его увеличить",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_output_script_result",
	   "name":"Как вывести результат работы сценария",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_let_user_to_choose_output_file_name",
	   "name":"Как дать возможность пользователю задать имя файла с результатами",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_log_data",
	   "name":"Как писать в лог",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_schedule_bas_script",
	   "name":"Как использовать планировщик задач",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_work_with_strings",
	   "name":"Как работать со строками",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:i_don_t_know_javascript_what_should_i_do",
	   "name":"Я не знаю яваскрипт, что делать",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_compile_script_and_give_to_customer",
	   "name":"Как скомпилировать скрипт и отдать заказчику",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:is_it_possible_to_execute_certain_action_depending_on_condition_if_statement",
	   "name":"Возможно ли выполнять определенные действия в зависимости от условий(if)",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:is_it_possible_to_use_loops",
	   "name":"Возможно ли использовать цикл",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:functions",
	   "name":"Функции",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_catch_errors",
	   "name":"Как игнорировать ошибки",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:multithreading",
	   "name":"Многопоточность",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:i_want_to_run_some_actions_on_start_one_time",
	   "name":"Я хочу чтобы определенное действие выполнялось один раз в начале работы скрипта",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:i_want_my_script_to_repeat_several_times_how_to_implement_that",
	   "name":"Я хочу, чтобы скрипт выполнялся несколько раз",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_use_variables",
	   "name":"Как использовать переменные",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_view_variables_list",
	   "name":"Как посмотреть список переменных",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_end_script",
	   "name":"Как завершить скрипт преждевременно",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_to_execute_custom_code",
	   "name":"Как выполнить пользовательский код",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:my_script_is_very_long_how_can_i_break_it_in_sections",
	   "name":"В моем сценарии слишком много действий, как сделать его более читаемым",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:where_do_i_get_bas_source_code",
	   "name":"Где я могу скачать код БАС",
	   "suggestion":"", lang:"ru"
	},
	{  
	   "url":"https://wiki.bablosoft.com/doku.php?id=ru:how_can_i_change_bas_and_compile",
	   "name":"Как я могу изменить и скомпилировать БАС",
	   "suggestion":"", lang:"ru"
	}

]

BloodhoundActions = null;
BloodhoundVideos = null;
BloodhoundArticles = null;

function BrowserAutomationStudio_InitSearch()
{
	if(!BloodhoundActions || !BloodhoundVideos || !BloodhoundArticles)
	{
		var keys = Object.keys(_A)
		var actions = [];

		keys.forEach(function(k){
			var el = _A[k]
			if(el["class"] != "browser")
			{
				var groupid = ""
				var groupname = ""
				if(_A2G[k])
				{
					groupid = _A2G[k]
					if(_G[groupid])
					{
						groupname = _G[groupid]["name"] + " : "
					}
				}
				
				if(el["suggestion"])
				{
					actions.push( groupname + tr(el["name"]) + " - " + el["suggestion"]["en"] + " , " + el["suggestion"]["ru"] + " ( " + k + " , " + groupid + " ) ")
				}else
				{
					actions.push( groupname + tr(el["name"]) + " - " + " ( " + k + " , " + groupid + " ) ")
				}
			}
		})

		var youtube = [];

		_YOUTUBE.forEach(function(el){
			if(_K == el["lang"])
				youtube.push( el["name"] + " - " + el["suggestion"] + " ( " + el["url"] + " ) ")
		})

		youtube.reverse()


		var wiki = [];

		_WIKI.forEach(function(el){
			if(_K == el["lang"])
				wiki.push( el["name"] + " - " + el["suggestion"] + " ( " + el["url"] + " ) ")
		})

		


		var tokenizer = function(d) {
	        var test = Bloodhound.tokenizers.whitespace(d);
	            $.each(test,function(k,v){
	                var i = 0;
	                while( (i+1) < v.length ){
	                    test.push(v.substr(i,v.length));
	                    i++;
	                }
	            })
	            return test;
	        };
		tokenizer = Bloodhound.tokenizers.whitespace

		BloodhoundActions = new Bloodhound({
			datumTokenizer: tokenizer,
			queryTokenizer: Bloodhound.tokenizers.whitespace,
			local: actions
		});

		BloodhoundVideos = new Bloodhound({
			datumTokenizer: tokenizer,
			queryTokenizer: Bloodhound.tokenizers.whitespace,
			local: youtube
		});

		BloodhoundArticles = new Bloodhound({
			datumTokenizer: tokenizer,
			queryTokenizer: Bloodhound.tokenizers.whitespace,
			local: wiki
		});
	}

	$('.typeahead').typeahead('destroy');

	$('.typeahead').typeahead({
		hint: false,
		highlight: true,
		minLength: 1


	},
	{
		name: 'actions',
		source: BloodhoundActions,
		templates:{
				suggestion: function(text){
					var t = text.split(" - ")[0]
					var groupid = text.split(" ( ")[1].replace(" ) ","").split(" , ")[1]
					var res = $("<div></div>")

					if(groupid && groupid.length > 0)
					{
						var icon = _G[groupid]["icon"]
						if(icon && icon.length > 0)
						{
							res.append($("<img style='width:16px'></img>").attr("src",icon))
						}
					}

					
					res.append($(" <span style='font-size:smaller;margin-left:5px'></span>").text(t))

					return res
				}
			},
		limit: 7
	},
	{
		name: 'videos',
		source: BloodhoundVideos,
		templates:{
				suggestion: function(text){
					var t = text.split(" - ")[0]
					var res = $("<div></div>")

					res.append($("<img style='width:16px'></img>").attr("src","../icons/youtube.png"))
					
					res.append($(" <span style='font-size:smaller;margin-left:5px'></span>").text(t))

					return res
				}
			},
		limit: 4
	},
	{
		name: 'articles',
		source: BloodhoundArticles,
		templates:{
				suggestion: function(text){
					var t = text.split(" - ")[0]
					var res = $("<div></div>")

					res.append($("<img style='width:16px'></img>").attr("src","../icons/wiki.png"))
					
					res.append($(" <span style='font-size:smaller;margin-left:5px'></span>").text(t))

					return res
				}
			},
		limit: 4
	}

	);

	$('.typeahead').bind('typeahead:select', function(ev, suggestion) {
		var action = suggestion.split(" ( ")[1].replace(" ) ","").split(" , ")[0]
		if(action.indexOf("https://") == 0 || action.indexOf("http://") == 0) 
		{
			BrowserAutomationStudio_OpenUrl(action);
			$('.typeahead').typeahead('val', '');
		}else
		{


	    	_Router.navigate("#!/" + action, true);
	    }
	});

	$('.typeahead').bind('typeahead:cursorchange', function(ev, suggestion) {
		if(typeof(suggestion) == "string")
			$(".typeahead").val(suggestion.split(" - ")[0])
		
  		
	});
	
}