var page_len; var page_curr; var href_string, forward_string, back_string; var lang; //ol_close='Zamknij'; ol_close=''; ol_bgcolor='#666666'; ol_fgcolor='#e8e3d7'; /* function basket_shake(dir) { if(dir == 1) { $("#koszyk").animate({top: "-=4px",},200 ); $("#koszyk").animate({top: "+=8px",},200 ); $("#koszyk").animate({top: "-=4px",},200 ); } else { $("#koszyk").animate({left: "-=4px",},200 ); $("#koszyk").animate({left: "+=8px",},200 ); $("#koszyk").animate({left: "-=4px",},200 ); } } */ $(document).ready(function() { var p; // nawigator $(".navi_no").click(function() { var p_start; p=$(this).text(); p= (p-1)*page_len +1 ; document.location=href_string+'&pp='+p; }); $(".navi_no, .footer_script").mouseenter(function() { $(this).css('text-decoration','underline'); }); $(".navi_no, .footer_script").mouseleave(function() { $(this).css('text-decoration','none'); }); $(".biezacy").unbind('click'); $(".biezacy").unbind('mouseenter'); $(".biezacy").unbind('mouseleave'); $(".navi_forward").click(function() { document.location=forward_string; } ); $(".navi_back").click(function() { document.location=back_string; } ); // obsluga help $(".help_button").mouseenter(function() { if(!basket_open) overlib("Kliknij, aby wyswietlic pomoc",LEFT, DELAY, 100); }); $(".help_button").mouseleave(function() { if(!basket_open) nd(); }); $(".help_button").click(function() { var h=$(this).attr('id'); $.get("../Help/"+h+".php","",function(data) { data = '

'+data+'

'; overlib(data,STICKY,CAPTION,' ', WIDTH, 600, TEXTSIZE, '12px', OFFSETX,-700, OFFSETY, 50, CELLPAD,10, CLOSECLICK); }); }); $("#dist_list").mouseenter(function() { if(!basket_open) overlib("Kliknij, aby wrocic do listy wynikow wyszukania rozproszonego",LEFT, DELAY, 100); }); $("#dist_list").mouseleave(function() { if(!basket_open) nd(); }); setup_basket(); });