// smf_change_block.forum
function smf_change_block(block_id){if(block_id=='top_topics'){if(!block_last_forum){block_id='last_topics';block_last_forum=1;$('#block_title').html('<span>Рейтинг топиков</span>')}else{block_last_forum=0;$('#block_title').html('<span>Последние сообщения</span>')}}var need_block=$('#'+block_id);$('#last_topics, #top_topics, #forum_topics').css('display','none');need_block.css('display','');if(need_block.html()!=''){return false}else{need_block.html('<img src="/templates/fe2/images/loader.gif" />')}if(block_id=='top_topics'){$.post(dle_root+'engine/ajax/smf_top_topics.php',function(data){$('#top_topics').html(data)})}else{$.post(dle_root+'engine/ajax/smf_topics_forum.php',function(data){$('#forum_topics').html(data)})}return false};var block_last_forum=1;

// jquery.tooltip
this.tooltip=function(){xOffset=10;yOffset=20;$("a.tooltip").hover(function(e){this.t=this.title;this.title="";$("body").append("<p id='tooltip'>"+this.t+"</p>");$("#tooltip").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px").fadeIn("fast")},function(){this.title=this.t;$("#tooltip").remove()});$("a.tooltip").mousemove(function(e){$("#tooltip").css("top",(e.pageY-xOffset)+"px").css("left",(e.pageX+yOffset)+"px")})};$(document).ready(function(){tooltip()});

// jquery.innerfade
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){$.Q.8=5(g){12 q.14(5(){$.8(q,g)})};$.8=5(m,g){c 2={\'o\':\'t\',\'r\':\'T\',\'d\':\'7\',\'k\':M,\'C\':\'10\',\'E\':\'8\',\'e\':B};a(g)$.S(2,g);a(2.e===B)c 3=$(m).e();f c 3=$(m).e(2.e);a(3.9>1){$(m).j(\'K\',\'N\').j(\'O\',2.C).P(2.E);15(c i=0;i<3.9;i++){$(3[i]).j(\'z-U\',V(3.9-i)).j(\'K\',\'W\').X()};a(2.d=="7"){c 6=b.l(b.7()*(3.9));p(5(){L{4=b.l(b.7()*(3.9))}G(6==4);$.8.h(3,2,4,6)},2.k);$(3[6]).A()}f a(2.d==\'s\'){2.d=\'R\';c 4=b.l(b.7()*(3.9));p(5(){$.8.h(3,2,(4+1)%3.9,4)},2.k);$(3[4]).A()}f{n(\'u-D v w x \\\'7\\\' H \\\'s\\\'\')}}};$.8.h=5(3,2,4,6){a(2.o==\'t\'){$(3[6]).Y(2.r);$(3[4]).Z(2.r,5(){I($(q)[0])})}f n(\'u-o v w x \\\'t\\\'\');a(2.d=="7"){6=4;G(4==6)4=b.l(b.7()*3.9)}f n(\'u-D v w x \\\'7\\\' H \\\'s\\\'\');p((5(){$.8.h(3,2,4,6)}),2.k)}})(11);5 I(y){a(y.J.F){y.J.F(\'13\')}}',62,68,'||settings|elements|current|function|last|random|innerfade|length|if|Math|var|type|children|else|options|next||css|timeout|floor|container|alert|animationtype|setTimeout|this|speed|random_start|fade|Innerfade|must|either|be|element||show|null|containerheight|Type|runningclass|removeAttribute|while|or|removeFilter|style|position|do|2000|relative|height|addClass|fn|sequence|extend|normal|index|String|absolute|hide|fadeOut|fadeIn|auto|jQuery|return|filter|each|for'.split('|'),0,{}))
