(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))Loading...
'+opts.loadingText+'');props.scrollDelta=$.fn.infinitescroll.scrollDelta=$(document).height()-$(opts.navSelector).offset().top;(new Image()).src=opts.loadingImg;if(path.match(/^(.*?\/)2(\/|$)/)){path=path.match(/^(.*?\/)2(\/|$)/).slice(1);}else if(path.match(/^(.*?)2(.*?$)/)){debug('Trying backup next selector parse technique. Treacherous waters here, matey.');path=path.match(/^(.*?)2(.*?$)/).slice(1);}else{debug('Sorry, we couldn\'t parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.');props.isInvalidPage=true;} $(document).ajaxError(function(e,xhr,opt){debug('Page not found. Self-destructing...');if(xhr.status==404){props.isDone=true;}});$(window).scroll(function(){infscrSetup(path,opts,props,callback);});infscrSetup(path,opts,props,callback);return this;} function areSelectorsValid(opts){for(var key in opts){if(key.indexOf&&key.indexOf('Selector')>0&&jQis(opts[key]).length===0){debug('Your '+key+' found no elements.');return false;} return true;}} function isNearBottom(opts,props){return($(document).height()-$(document).scrollTop()-$(window).height()'):$('
');box.attr('id','infscr-page-'+props.currPage).attr('class','infscr-pages').appendTo(opts.contentSelector).load(path.join(props.currPage)+' '+opts.itemSelector,null,function(){if(props.isDone){props.loadingMsg.find('img').hide().parent().find('span').html(opts.donetext).animate({opacity:1},2000).fadeOut('normal');}else{props.loadingMsg.fadeOut('normal');if(opts.animate){var scrollTo=jQuery(window).scrollTop()+jQuery('#infscr-loading').height()+opts.extraScrollPx+'px';jQuery('html,body').animate({scrollTop:scrollTo},800,function(){props.isDuringAjax=false;});} props.currDOMChunk=$('#infscr-page-'+props.currPage)[0];callback.call(props.currDOMChunk);if(!opts.animate)props.isDuringAjax=false;}});}} $.extend($.fn.infinitescroll,{defaults:{debug:false,preload:false,nextSelector:"div.navigation a:first",loadingImg:"/images/pageLoader.gif",loadingText:"Loading the next set of tweets...",donetext:"Congratulations, you've reached the last tweet.",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:false},currPage:1,currDOMChunk:null,isDuringAjax:false,isInvalidPage:false,isDone:false});})(jQuery);;(function($){$.scrollFollow=function(box,options) {box=$(box);var position=box.css('position');function ani() {box.queue([]);var viewportHeight=parseInt($(window).height());var pageScroll=parseInt($(document).scrollTop());var parentTop=parseInt(box.cont.offset().top);var parentHeight=parseInt(box.cont.attr('offsetHeight'));var boxHeight=parseInt(box.attr('offsetHeight')+(parseInt(box.css('marginTop'))||0)+(parseInt(box.css('marginBottom'))||0));var aniTop;if(isActive) {if(options.relativeTo=='top') {if(box.initialOffsetTop>=(pageScroll+options.offset)) {aniTop=box.initialTop;} else {aniTop=10+Math.min((Math.max((-parentTop),(pageScroll-box.initialOffsetTop+box.initialTop))+options.offset),(parentHeight-boxHeight-box.paddingAdjustment));}} else if(options.relativeTo=='bottom') {if((box.initialOffsetTop+boxHeight)>=(pageScroll+options.offset+viewportHeight)) {aniTop=box.initialTop;} else {aniTop=Math.min((pageScroll+viewportHeight-boxHeight-options.offset),(parentHeight-boxHeight));}} if((new Date().getTime()-box.lastScroll)>=(options.delay-20)) {box.animate({top:aniTop},options.speed,options.easing);}}};var isActive=true;if($.cookie!=undefined) {if($.cookie('scrollFollowSetting'+box.attr('id'))=='false') {var isActive=false;$('#'+options.killSwitch).text(options.offText).toggle(function() {isActive=true;$(this).text(options.onText);$.cookie('scrollFollowSetting'+box.attr('id'),true,{expires:365,path:'/'});ani();},function() {isActive=false;$(this).text(options.offText);box.animate({top:box.initialTop},options.speed,options.easing);$.cookie('scrollFollowSetting'+box.attr('id'),false,{expires:365,path:'/'});});} else {$('#'+options.killSwitch).text(options.onText).toggle(function() {isActive=false;$(this).text(options.offText);box.animate({top:box.initialTop},0);$.cookie('scrollFollowSetting'+box.attr('id'),false,{expires:365,path:'/'});},function() {isActive=true;$(this).text(options.onText);$.cookie('scrollFollowSetting'+box.attr('id'),true,{expires:365,path:'/'});ani();});}} if(options.container=='') {box.cont=box.parent();} else {box.cont=$('#'+options.container);} box.initialOffsetTop=parseInt(box.offset().top);box.initialTop=parseInt(box.css('top'))||0;if(box.css('position')=='relative') {box.paddingAdjustment=parseInt(box.cont.css('paddingTop'))+parseInt(box.cont.css('paddingBottom'));} else {box.paddingAdjustment=0;} $(window).scroll(function() {$.fn.scrollFollow.interval=setTimeout(function(){ani();},options.delay);box.lastScroll=new Date().getTime();});$(window).resize(function() {$.fn.scrollFollow.interval=setTimeout(function(){ani();},options.delay);box.lastScroll=new Date().getTime();});box.lastScroll=0;ani();};$.fn.scrollFollow=function(options) {options=options||{};options.relativeTo=options.relativeTo||'top';options.speed=options.speed||500;options.offset=options.offset||0;options.easing=options.easing||'swing';options.container=options.container||this.parent().attr('id');options.killSwitch=options.killSwitch||'killSwitch';options.onText=options.onText||'Turn Slide Off';options.offText=options.offText||'Turn Slide On';options.delay=options.delay||0;this.each(function() {new $.scrollFollow(this,options);});return this;};})(jQuery);;jQuery.fn.extend({everyTime:function(interval,label,fn,times,belay){return this.each(function(){jQuery.timer.add(this,interval,label,fn,times,belay);});},oneTime:function(interval,label,fn){return this.each(function(){jQuery.timer.add(this,interval,label,fn,1);});},stopTime:function(label,fn){return this.each(function(){jQuery.timer.remove(this,label,fn);});}});jQuery.event.special jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{'ms':1,'cs':10,'ds':100,'s':1000,'das':10000,'hs':100000,'ks':1000000},timeParse:function(value){if(value==undefined||value==null) return null;var result=this.regex.exec(jQuery.trim(value.toString()));if(result[2]){var num=parseFloat(result[1]);var mult=this.powers[result[2]]||1;return num*mult;}else{return value;}},add:function(element,interval,label,fn,times,belay){var counter=0;if(jQuery.isFunction(label)){if(!times) times=fn;fn=label;label=interval;} interval=jQuery.timer.timeParse(interval);if(typeof interval!='number'||isNaN(interval)||interval<=0) return;if(times&×.constructor!=Number){belay=!!times;times=0;} times=times||0;belay=belay||false;var timers=jQuery.data(element,this.dataKey)||jQuery.data(element,this.dataKey,{});if(!timers[label]) timers[label]={};fn.timerID=fn.timerID||this.guid++;var handler=function(){if(belay&&this.inProgress) return;this.inProgress=true;if((++counter>times&×!==0)||fn.call(element,counter)===false) jQuery.timer.remove(element,label,fn);this.inProgress=false;};handler.timerID=fn.timerID;if(!timers[label][fn.timerID]) timers[label][fn.timerID]=window.setInterval(handler,interval);this.global.push(element);},remove:function(element,label,fn){var timers=jQuery.data(element,this.dataKey),ret;if(timers){if(!label){for(label in timers) this.remove(element,label,fn);}else if(timers[label]){if(fn){if(fn.timerID){window.clearInterval(timers[label][fn.timerID]);delete timers[label][fn.timerID];}}else{for(var fn in timers[label]){window.clearInterval(timers[label][fn]);delete timers[label][fn];}} for(ret in timers[label])break;if(!ret){ret=null;delete timers[label];}} for(ret in timers)break;if(!ret) jQuery.removeData(element,this.dataKey);}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(index,item){jQuery.timer.remove(item);});});;(function($){$.facebox=function(data,klass){$.facebox.loading() if(data.ajax)fillFaceboxFromAjax(data.ajax) else if(data.image)fillFaceboxFromImage(data.image) else if(data.div)fillFaceboxFromHref(data.div) else if($.isFunction(data))data.call($) else $.facebox.reveal(data,klass)} $.extend($.facebox,{settings:{opacity:0,overlay:true,loadingImage:'/wn_shared/javascripts/facebox/loading.gif',closeImage:'/wn_shared/javascripts/facebox/closelabel.gif',imageTypes:['png','jpg','jpeg','gif'],faceboxHtml:'\ '},loading:function(){init() if($('#facebox .loading').length==1)return true showOverlay() $('#facebox .content').empty() $('#facebox .body').children().hide().end().append('
') $('#facebox').css({top:getPageScroll()[1]+(getPageHeight()/10),left:385.5}).show() $(document).bind('keydown.facebox',function(e){if(e.keyCode==27)$.facebox.close() return true}) $(document).trigger('loading.facebox')},reveal:function(data,klass){$(document).trigger('beforeReveal.facebox') if(klass)$('#facebox .content').addClass(klass) $('#facebox .content').append(data) $('#facebox .loading').remove() $('#facebox .body').children().fadeIn('normal') $('#facebox').css('left',$(window).width()/2-($('#facebox table').width()/2)) $(document).trigger('reveal.facebox').trigger('afterReveal.facebox')},close:function(){$(document).trigger('close.facebox') return false}}) $.fn.facebox=function(settings){init(settings) function clickHandler(){$.facebox.loading(true) var klass=this.rel.match(/facebox\[?\.(\w+)\]?/) if(klass)klass=klass[1] fillFaceboxFromHref(this.href,klass) return false} return this.click(clickHandler)} function init(settings){if($.facebox.settings.inited)return true else $.facebox.settings.inited=true $(document).trigger('init.facebox') makeCompatible() var imageTypes=$.facebox.settings.imageTypes.join('|') $.facebox.settings.imageTypesRegexp=new RegExp('\.'+imageTypes+'$','i') if(settings)$.extend($.facebox.settings,settings) $('body').append($.facebox.settings.faceboxHtml) var preload=[new Image(),new Image()] preload[0].src=$.facebox.settings.closeImage preload[1].src=$.facebox.settings.loadingImage $('#facebox').find('.b:first, .bl, .br, .tl, .tr').each(function(){preload.push(new Image()) preload.slice(-1).src=$(this).css('background-image').replace(/url\((.+)\)/,'$1')}) $('#facebox .close').click($.facebox.close) $('#facebox .close_image').attr('src',$.facebox.settings.closeImage)} function getPageScroll(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;} return new Array(xScroll,yScroll)} function getPageHeight(){var windowHeight if(self.innerHeight){windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowHeight=document.documentElement.clientHeight;}else if(document.body){windowHeight=document.body.clientHeight;} return windowHeight} function makeCompatible(){var $s=$.facebox.settings $s.loadingImage=$s.loading_image||$s.loadingImage $s.closeImage=$s.close_image||$s.closeImage $s.imageTypes=$s.image_types||$s.imageTypes $s.faceboxHtml=$s.facebox_html||$s.faceboxHtml} function fillFaceboxFromHref(href,klass){if(href.match(/#/)){var url=window.location.href.split('#')[0] var target=href.replace(url,'') $.facebox.reveal($(target).clone().show(),klass)}else if(href.match($.facebox.settings.imageTypesRegexp)){fillFaceboxFromImage(href,klass)}else{fillFaceboxFromAjax(href,klass)}} function fillFaceboxFromImage(href,klass){var image=new Image() image.onload=function(){$.facebox.reveal('
',klass)} image.src=href} function fillFaceboxFromAjax(href,klass){$.get(href,function(data){$.facebox.reveal(data,klass)})} function skipOverlay(){return $.facebox.settings.overlay==false||$.facebox.settings.opacity===null} function showOverlay(){if(skipOverlay())return if($('facebox_overlay').length==0) $("body").append('
') $('#facebox_overlay').hide().addClass("facebox_overlayBG").css('opacity',$.facebox.settings.opacity).click(function(){$(document).trigger('close.facebox')}).fadeIn(200) return false} function hideOverlay(){if(skipOverlay())return $('#facebox_overlay').fadeOut(200,function(){$("#facebox_overlay").removeClass("facebox_overlayBG") $("#facebox_overlay").addClass("facebox_hide") $("#facebox_overlay").remove()}) return false} $(document).bind('close.facebox',function(){$(document).unbind('keydown.facebox') $('#facebox').fadeOut(function(){$('#facebox .content').removeClass().addClass('content') hideOverlay() $('#facebox .loading').remove()})})})(jQuery);;(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY)) »'].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}},o.delay);},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu;},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone());};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass);});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this));}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});});o.onInit.call(this);}).each(function(){menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '));});};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined) this.toggleClass(sf.c.shadowClass+'-off');};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'normal',autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this;},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul);});return this;}});})(jQuery);;;(function($){$.fn.supersubs=function(options){var opts=$.extend({},$.fn.supersubs.defaults,options);return this.each(function(){var $$=$(this);var o=$.meta?$.extend({},opts,$$.data()):opts;var fontsize=$('').css({'padding':0,'position':'absolute','top':'-999em','width':'auto'}).appendTo($$).width();$('#menu-fontsize').remove();$ULs=$$.find('ul');$ULs.each(function(i){var $ul=$ULs.eq(i);var $LIs=$ul.children();var $As=$LIs.children('a');var liFloat=$LIs.css('white-space','nowrap').css('float');var emWidth=$ul.add($LIs).add($As).css({'float':'none','width':'auto'}).end().end()[0].clientWidth/fontsize;emWidth+=o.extraWidth;if(emWidth>o.maxWidth){emWidth=o.maxWidth;} else if(emWidthul',this);var offsetDirection=$childUl.css('left')!==undefined?'left':'right';$childUl.css(offsetDirection,emWidth);});});});};$.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0};})(jQuery);;function loadContent(tweetID){if($("#"+tweetID).parent().children("div.slideBody").is(":hidden")){$("#"+tweetID).load("/tweetInfo.php?tweetID="+tweetID).parent().children("div.slideBody").slideDown('fast');} else{$("#"+tweetID).parent().children("div.slideBody").slideUp('fast');} $('#floatingAd').scrollFollow();} jQuery(function($){$('#content').infinitescroll({debug:false,nextSelector:"a.pageOlder",text:"Loading the next set of tweets...",donetext:"Congratulations, you've reached the last tweet.",navSelector:"div.pageBar",contentSelector:"#content",itemSelector:"#content div.slidePanel"});});function makeTall(){$('#filtersBox').animate({"height":450},500);$('#searchFilters').slideDown('fast');} function makeShort(){$('#searchFilters').slideUp('fast');$('#filtersBox').animate({"height":32},500);} function makeTallRTers(){$('#retweeterBox').animate({"height":544},500);} function makeShortRTers(){$('#retweeterBox').animate({"height":178},500);} $(document).ready(function(){$("#since").datepicker({minDate:-20,maxDate:'+1M +10D'});$("#until").datepicker({minDate:-20,maxDate:'+1M +10D'});$('#floatingAd').scrollFollow({container:'container'});$('#filtersBox').hoverIntent({sensitivity:2,interval:200,over:makeTall,timeout:30000,out:makeShort});$('#retweeterBox').hoverIntent({sensitivity:4,interval:10,over:makeTallRTers,timeout:2000,out:makeShortRTers});$.getJSON("http://search.twitter.com/trends.json?callback=?",function(data){$.each(data.trends,function(i,trend){var url='/';if(window.location.href=='http://www.dailyrt.com/live-tweets/'){url='/live-tweets/';} $("
  • ").html(''+trend.name+'').attr("class","sub").appendTo("#trendMenu");if(i==10)return false;});});});