window.twttr=window.twttr||{};var pSI=function(B){var J=page.tD[page.query];if(J){$("#ticker_info").hide();$("#ticker_description span").text(_("",{ticker:J[0]}));$("#ticker").text(_("",{ticker:J[0]}));$("#ticker_description p").html(J[1]);$("#ticker_description").show()}else{$("#ticker_description").hide();$("#ticker_info").show()}(J&&J[1].length>0)?$(".tickerdesc").show():$(".tickerdesc").hide()};$.fn.iSL=function(A){return this.each(function(){var B=$(this);B.click(function(C){$("#ticker_list li.active a").removeClass("active")})})};function lTD(){$("#ticker a").each(function(){var A=$(this);var C=A.parent().find("em");if(C.length){var B=A.text();var D=C.text().replace(new RegExp(B.replace(/([^\w])/gi,"\\$1"),"gi"),"<strong>"+B+"</strong>");var E=A.attr("title").length?A.attr("title"):A.attr("name");page.tD[E]=[B,D]}})}$(document).ready(function(){page.tD={};lTD()});window.twttr.bounds=window.twttr.bounds||{};$.extend(twttr.bounds,{Bounds:function(b,d,c,a){this.x=b;this.y=d;this.width=c;this.height=a}});$.extend(twttr.bounds.Bounds.prototype,{encloses:function(a,b){return a>this.x&&a<this.x+this.width&&b>this.y&&b<this.y+this.height},toString:function(){return"("+this.x+","+this.y+")"+this.width+"x"+this.height}});(function(a){a.fn.extend({bounds:function(){var c=this.eq(0);var b=c.offset();return new twttr.bounds.Bounds(b.left,b.top,c.outerWidth(),c.outerHeight())}})})(jQuery);(function(A){A.extend(window,{TT:{parseIntDefault:function(B,D){D=D||0;var C=parseInt(B);return isNaN(C)?D:C},clearBounds:function(){this.data("bounds",[])},addToBounds:function(B){if(!this.data("bounds")){this.data("bounds",[])}this.data("bounds").push(B)},enclosing:function(B,D){if(!this.data("bounds")){this.data("bounds",[])}var C=false;A.each(this.data("bounds"),function(F,E){if(E.encloses(B,D)){C=true}});return C},cSI:function(){clearInterval(this.data("interval"))},sSI:function(B){if(this.data("interval")){this.cSI()}this.data("interval",setInterval(B,30))},dC:function(B){var C=0;B.children().each(function(){C+=A(this).outerWidth(true);B.append(A(this).clone())});B.css({zoom:1,width:(2*C)+"px"});return C},iS:function(){var C=this;var E=this.dC(C);var B=TT.parseIntDefault(C.css("left"),0);var D=function(){B=(B%E)-1;C.css({left:B})};C.bind("tickerEnter",function(){C.cSI()}).bind("tickerLeave",function(){C.sSI(D)}).trigger("tickerLeave")}}});A.extend(A.fn,{tT:function(){var B=false;var C=A(this);A.extend(C,TT);C.iS();C.find("li a").each(function(){var D=A(this).closest("li");var E={mouseenter:function(G){var F=A(this);A("#ticker .inner").trigger("tickerLeave");if(C.oCT){C.oCT.trigger("tickerLeave")}C.oCT=F;C.addToBounds(F.bounds());if(C.enclosing(G.pageX,G.pageY)){A("#ticker .inner").trigger("tickerEnter");F.trigger("tickerEnter");var H=function(I){if(!C.enclosing(I.pageX,I.pageY)){A("#ticker .inner").trigger("tickerLeave");F.trigger("tickerLeave")}};A(document).bind("mousemove",H);F.bind("tickerLeave",function(I){C.clearBounds();A(document).unbind("mousemove",H)})}},te:function(){if(!C.hT){var F=A(".tickertip");var K=A(this).offset();var J=Math.round(A(this).outerWidth()/2);var I=Math.round(F.outerWidth()/2);var H=D.find("a").text();var G=D.find("em.description").html();F.find(".tickertip-ticker").html(H);F.find(".tickertip-ticker").attr("href",A(this).attr("href")).attr("name",H);if(A.trim(G)!=""){F.find(".tickertip-why").show();F.find(".tickertip-desc").html(G)}else{F.find(".tickertip-why").hide()}B=setTimeout(function(){clearTimeout(B);D.find("a.search_link").addClass("active");F.css({top:K.top+35,left:K.left+J-I,position:"absolute",zIndex:10000});F.fadeIn("fast",function(){C.hT=true});C.addToBounds(F.bounds())},400)}},tl:function(G){clearTimeout(B);A("#ticker a.link").removeClass("active");if(C.hT){var F=A(".tickertip");F.fadeOut("fast");C.hT=false}}};A(this).mouseenter(E.mouseenter).bind("tickerEnter",E.te).bind("tickerLeave",E.tl)});return this}})})(jQuery);function FP(){return $.extend(this,{$ticker:$("#ticker"),$tT:$(".tickertip:eq(0)")})}$.extend(FP.prototype,{init:function(){this.iTH()},iTH:function(){this.hT=false;var A=this;$("#ticker ul").tT()}});(jQuery);
