function setTab(name,cursel,n){ for(i=1;i<=n;i++){ var menu=document.getElementById(name+i); var con=document.getElementById("con_"+name+"_"+i); menu.className=i==cursel?name:""; con.style.display=i==cursel?"block":"none"; } } function qymbModule(i, o) { Dd('destoon_search').action = DTPath+'api/search.php'; Dd('destoon_moduleid').value = i; searchid = i; var lis = Dd('search_module').getElementsByTagName('li'); for(var i=0;i ';}} function index_hide() { if(index_l) Dd('index_'+index_l).className = 'catalog_letter_li'; Dd('catalog_index').innerHTML = ''; Dh('catalog_index'); index_out(); } function index_leave(o, e) { if(e.currentTarget) { if(typeof(HTMLElement) != "undefined") { HTMLElement.prototype.contains = function(obj) { if(obj==this) return true; while(obj=obj.parentNode) {if(obj==this) return true;} return false; } } if(o.contains(e.relatedTarget)) return; } else { if(o.contains(e.toElement)) return; } setTimeout(index_hide, 200); }