var effects=false;var timestamp='';function reload(){$('#loader').fadeIn('slow');$.post('/update/',{'timestamp':timestamp},function(data){$('#loader').fadeOut('slow');if(data){$('.marked').removeClass('marked');$('#output').prepend(data);if(effects){$('.updated').addClass('marked').children().not('a,div,img').fadeOut().fadeIn().fadeOut().fadeIn().fadeOut().fadeIn();}else{effects=true;}$('.updated>a>img').hover(function(){$(this).css({'z-index':10});$(this).stop().animate({top:-8,right:-8,width:48,height:48},100);},function(){$(this).css({'z-index':0});$(this).stop().animate({top:0,right:0,width:32,height:32},100);});$('.updated').removeClass('updated');timestamp=/<!-- (\d*) -->/.exec(data)[1];}setTimeout(reload,10000);});};$(function(){reload();$.getJSON('/proxy/?url='+escape('http://api.tweetmeme.com/url_info.json?url=http://wptweety.com'),function(json){$('#twitter>div>div>p').text(json.story.url_count).parent().parent().show();});$.getJSON('/proxy/?url='+escape('http://feeds.delicious.com/v2/json/urlinfo/7b3b9b4788dbe356f648db8cdf50cf2e'),function(json){$('#delicious>div>div>p').text(json[0]['total_posts']).parent().parent().show();});$('#portfolio').hover(function(e){$('#tooltip').css({top:e.pageY - 90,left:e.pageX+16}).fadeIn('fast');},function(){$('#tooltip').stop().animate({opacity:1},2000).fadeOut();});$.ajax({type:'GET',url:'http://www.google-analytics.com/ga.js',success:function(){var pageTracker=_gat._getTracker('UA-1179069-23');pageTracker._trackPageview();},dataType:'script',cache:true});});