// TJ Eastmond <tj.eastmond@gmail.com>
(function(){$(document).ready(function(){var email_regex=/(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?/g;$('ul.tweets li').each(function(){var $this=$(this),urls=email_regex.exec($this.html()),link=urls?urls[0]:$this.attr('rel');if(urls){$this.find('a').each(function(){$(this).click(function(e){e.preventDefault();});});}
$this.click(function(event){window.open(link);});$this.hover(function(){$this.addClass('hover');},function(){$this.removeClass('hover');});});$('header h1').each(function(){var $this=$(this),$body=$('body');$this.hover(function(){$this.addClass('over');$body.addClass('logohover');},function(){$this.removeClass('over');$body.removeClass('logohover');});});});})();
