							function applyHandlersToSearchLinks(){
								var elements = getElementsByClass('srch_link');
								for (i = 0; i < elements.length; i++) {
									elements[i].onclick = function(){
										elements_i = getElementsByClass('srch_link');
										for (j = 0; j < elements_i.length; j++) {
											elements_i[j].style.borderBottom = '';
											elements_i[j].style.color = '#d1d1d1';
										}
										this.blur();
										this.style.borderBottom = '2px solid white';
										this.style.color = 'white';
										if(this.getAttribute('ancestor')!=='null' && this.getAttribute('ancestor')!==''){
											$('searchForm').where.value=this.id;
											$('searchForm').action = this.getAttribute('ancestor');
											if (this.getAttribute('ancestor')!=='/looking-for/') $('searchForm').action+='name='
										}
									}
								}
							}
							function submitLookingForForm(){
								if($('searchForm').namesearch.value!=='Поиск по сайту'){
									// формируем поисковую строку
									$('searchForm').action += escapeEx($('searchForm').namesearch.value);
									// закрывающая подстрока
									$('searchForm').action += $($('searchForm').where.value).getAttribute('close')?$($('searchForm').where.value).getAttribute('close'):'';
									window.location=$('searchForm').action
									return true
								}
								else return false;
							}

							function ludiblock_toggle(obj, divid){
								if(obj.className != 'ludi_button_active'){
								var elements = getElementsByClass('ludi_contentdiv');
								for (i = 0; i < elements.length; i++) {
									var id = elements[i].id;
									if(moving[id])
										return; 
									slideup(elements[i].id);
								}
								
									var elements = getElementsByClass('ludi_button_active');
										elements[0].className = 'ludi_button_passive';
										obj.className = 'ludi_button_active';
										slidedown(divid);
								}
							}