jQuery.noConflict();(function($){$.fn.tweet=function(o){var s={username:["seaofclouds"],avatar_size:null,count:3,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:"i said,",auto_join_text_ed:"i",auto_join_text_ing:"i am",auto_join_text_reply:"i replied to",auto_join_text_url:"i was looking at",loading_text:null,query:null};$.fn.extend({linkUrl:function(){var _1=[];var _2=/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi;this.each(function(){_1.push(this.replace(_2,"<a href=\"$1\">$1</a>"))});return $(_1)},linkUser:function(){var _3=[];var _4=/[\@]+([A-Za-z0-9-_]+)/gi;this.each(function(){_3.push(this.replace(_4,"<a href=\"http://twitter.com/$1\">@$1</a>"))});return $(_3)},linkHash:function(){var _5=[];var _6=/ [\#]+([A-Za-z0-9-_]+)/gi;this.each(function(){_5.push(this.replace(_6," <a href=\"http://search.twitter.com/search?q=&tag=$1&lang=all&from="+s.username.join("%2BOR%2B")+"\">#$1</a>"))});return $(_5)},capAwesome:function(){var _7=[];this.each(function(){_7.push(this.replace(/(a|A)wesome/gi,"AWESOME"))});return $(_7)},capEpic:function(){var _8=[];this.each(function(){_8.push(this.replace(/(e|E)pic/gi,"EPIC"))});return $(_8)},makeHeart:function(){var _9=[];this.each(function(){_9.push(this.replace(/[&lt;]+[3]/gi,"<tt class='heart'>&#x2665;</tt>"))});return $(_9)}});function _a(_b){var _c=Date.parse(_b);var _d=(arguments.length>1)?arguments[1]:new Date();var _e=parseInt((_d.getTime()-_c)/1000);if(_e<60){return"less than a minute ago"}else{if(_e<120){return"about a minute ago"}else{if(_e<(45*60)){return(parseInt(_e/60)).toString()+" minutes ago"}else{if(_e<(90*60)){return"about an hour ago"}else{if(_e<(24*60*60)){return"about "+(parseInt(_e/3600)).toString()+" hours ago"}else{if(_e<(48*60*60)){return"1 day ago"}else{return(parseInt(_e/86400)).toString()+" days ago"}}}}}}};if(o){$.extend(s,o)}return this.each(function(){var _f=$("<ul class=\"tweet_list\">").appendTo(this);var _10="<p class=\"tweet_intro\">"+s.intro_text+"</p>";var _11="<p class=\"tweet_outro\">"+s.outro_text+"</p>";var _12=$("<p class=\"loading\">"+s.loading_text+"</p>");if(typeof(s.username)=="string"){s.username=[s.username]}var _13="";if(s.query){_13+="q="+s.query}_13+="&q=from:"+s.username.join("%20OR%20from:");var url="http://search.twitter.com/search.json?&"+_13+"&rpp="+s.count+"&callback=?";if(s.loading_text){$(this).append(_12)}$.getJSON(url,function(_14){if(s.loading_text){_12.remove()}if(s.intro_text){_f.before(_10)}$.each(_14.results,function(i,_15){if(s.join_text=="auto"){if(_15.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)){var _16=s.auto_join_text_reply}else{if(_15.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)){var _16=s.auto_join_text_url}else{if(_15.text.match(/^((\w+ed)|just) .*/im)){var _16=s.auto_join_text_ed}else{if(_15.text.match(/^(\w*ing) .*/i)){var _16=s.auto_join_text_ing}else{var _16=s.auto_join_text_default}}}}}else{var _16=s.join_text}var _17="<span class=\"tweet_join\"> "+_16+" </span>";var _18=((s.join_text)?_17:" ");var _19="<a class=\"tweet_avatar\" href=\"http://twitter.com/"+_15.from_user+"\"><img src=\""+_15.profile_image_url+"\" height=\""+s.avatar_size+"\" width=\""+s.avatar_size+"\" alt=\""+_15.from_user+"'s avatar\" border=\"0\"/></a>";var _1a=(s.avatar_size?_19:"");var _1b="<span class=\"tweet_text\">"+$([_15.text]).linkUrl().linkUser().linkHash().makeHeart().capAwesome().capEpic()[0]+"</span>";var _1c="<a href=\"http://twitter.com/"+_15.from_user+"/statuses/"+_15.id+"\" title=\"view tweet on twitter\">"+_a(_15.created_at)+"</a>";_f.append("<li>"+_1a+_18+_1b+_1c+"</li>");_f.children("li:first").addClass("tweet_first");_f.children("li:odd").addClass("tweet_even");_f.children("li:even").addClass("tweet_odd")});if(s.outro_text){_f.after(_11)}})})}})(jQuery);jQuery(document).ready(function(){var _1d=function(){jQuery(".intro").css({opacity:0,visibility:"visible"}).fadeTo(250,1)};jQuery("body").one("mousemove",_1d);jQuery("#s").one("blur",_1d)});(function(d){d.tools=d.tools||{};d.tools.tabs={version:"1.0.4",conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",api:false,rotate:false},addEffect:function(e,f){c[e]=f}};var c={"default":function(f,e){this.getPanes().hide().eq(f).show();e.call()},fade:function(g,e){var f=this.getConf(),j=f.fadeOutSpeed,h=this.getPanes();if(j){h.fadeOut(j)}else{h.hide()}h.eq(g).fadeIn(f.fadeInSpeed,e)},slide:function(f,e){this.getPanes().slideUp(200);this.getPanes().eq(f).slideDown(400,e)},ajax:function(f,e){this.getPanes().eq(0).load(this.getTabs().eq(f).attr("href"),e)}};var b;d.tools.tabs.addEffect("horizontal",function(f,e){if(!b){b=this.getPanes().eq(0).width()}this.getCurrentPane().animate({width:0},function(){d(this).hide()});this.getPanes().eq(f).animate({width:b},function(){d(this).show();e.call()})});function a(g,h,f){var e=this,j=d(this),i;d.each(f,function(k,l){if(d.isFunction(l)){j.bind(k,l)}});d.extend(this,{click:function(k,n){var o=e.getCurrentPane();var l=g.eq(k);if(typeof k=="string"&&k.replace("#","")){l=g.filter("[href*="+k.replace("#","")+"]");k=Math.max(g.index(l),0)}if(f.rotate){var m=g.length-1;if(k<0){return e.click(m,n)}if(k>m){return e.click(0,n)}}if(!l.length){if(i>=0){return e}k=f.initialIndex;l=g.eq(k)}if(k===i){return e}n=n||d.Event();n.type="onBeforeClick";j.trigger(n,[k]);if(n.isDefaultPrevented()){return}c[f.effect].call(e,k,function(){n.type="onClick";j.trigger(n,[k])});n.type="onStart";j.trigger(n,[k]);if(n.isDefaultPrevented()){return}i=k;g.removeClass(f.current);l.addClass(f.current);return e},getConf:function(){return f},getTabs:function(){return g},getPanes:function(){return h},getCurrentPane:function(){return h.eq(i)},getCurrentTab:function(){return g.eq(i)},getIndex:function(){return i},next:function(){return e.click(i+1)},prev:function(){return e.click(i-1)},bind:function(k,l){j.bind(k,l);return e},onBeforeClick:function(k){return this.bind("onBeforeClick",k)},onClick:function(k){return this.bind("onClick",k)},unbind:function(k){j.unbind(k);return e}});g.each(function(k){d(this).bind(f.event,function(l){e.click(k,l);return false})});if(location.hash){e.click(location.hash)}else{if(f.initialIndex===0||f.initialIndex>0){e.click(f.initialIndex)}}h.find("a[href^=#]").click(function(k){e.click(d(this).attr("href"),k)})};d.fn.tabs=function(i,f){var g=this.eq(typeof f=="number"?f:0).data("tabs");if(g){return g}if(d.isFunction(f)){f={onBeforeClick:f}}var h=d.extend({},d.tools.tabs.conf),e=this.length;f=d.extend(h,f);this.each(function(l){var j=d(this);var k=j.find(f.tabs);if(!k.length){k=j.children()}var m=i.jquery?i:j.children(i);if(!m.length){m=e==1?d(i):j.parent().find(i)}g=new a(k,m,f);j.data("tabs",g)});return f.api?g:this}})(jQuery);(function(b){var a=b.tools.tabs;a.plugins=a.plugins||{};a.plugins.slideshow={version:"1.0.2",conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3000,clickable:true,api:false}};b.prototype.slideshow=function(e){var f=b.extend({},a.plugins.slideshow.conf),c=this.length,d;e=b.extend(f,e);this.each(function(){var p=b(this),m=p.tabs(),i=b(m),o=m;b.each(e,function(t,u){if(b.isFunction(u)){m.bind(t,u)}});function n(t){return c==1?b(t):p.parent().find(t)};var s=n(e.next).click(function(){m.next()});var q=n(e.prev).click(function(){m.prev()});var h,j,l,g=false;b.extend(m,{play:function(){if(h){return}var t=b.Event("onBeforePlay");i.trigger(t);if(t.isDefaultPrevented()){return m}g=false;h=setInterval(m.next,e.interval);i.trigger("onPlay");m.next()},pause:function(){if(!h){return m}var t=b.Event("onBeforePause");i.trigger(t);if(t.isDefaultPrevented()){return m}h=clearInterval(h);l=clearInterval(l);i.trigger("onPause")},stop:function(){m.pause();g=true},onBeforePlay:function(t){return m.bind("onBeforePlay",t)},onPlay:function(t){return m.bind("onPlay",t)},onBeforePause:function(t){return m.bind("onBeforePause",t)},onPause:function(t){return m.bind("onPause",t)}});if(e.autopause){var k=m.getTabs().add(s).add(q).add(m.getPanes());k.hover(function(){m.pause();j=clearInterval(j)},function(){if(!g){j=setTimeout(m.play,e.interval)}})}if(e.autoplay){l=setTimeout(m.play,e.interval)}else{m.stop()}if(e.clickable){m.getPanes().click(function(){m.next()})}if(!m.getConf().rotate){var r=e.disabledClass;if(!m.getIndex()){q.addClass(r)}m.onBeforeClick(function(u,t){if(!t){q.addClass(r)}else{q.removeClass(r);if(t==m.getTabs().length-1){s.addClass(r)}else{s.removeClass(r)}}})}});return e.api?d:this}})(jQuery);(function(d){var a=d.tools.tabs;a.plugins=a.plugins||{};a.plugins.history={version:"1.0.2",conf:{api:false}};var e,b;function c(f){if(f){var g=b.contentWindow.document;g.open().close();g.location.hash=f}};d.fn.onHash=function(g){var f=this;if(d.browser.msie&&d.browser.version<"8"){if(!b){b=d("<iframe/>").attr("src","javascript:false;").hide().get(0);d("body").append(b);setInterval(function(){var i=b.contentWindow.document,j=i.location.hash;if(e!==j){d.event.trigger("hash",j);e=j}},100);c(location.hash||"#")}f.bind("click.hash",function(h){c(d(this).attr("href"))})}else{setInterval(function(){var j=location.hash;var i=f.filter("[href$="+j+"]");if(!i.length){j=j.replace("#","");i=f.filter("[href$="+j+"]")}if(i.length&&j!==e){e=j;d.event.trigger("hash",j)}},100)}d(window).bind("hash",g);return this};d.fn.history=function(g){var h=d.extend({},a.plugins.history.conf),f;g=d.extend(h,g);this.each(function(){var j=d(this).tabs(),i=j.getTabs();if(j){f=j}i.onHash(function(k,l){if(!l||l=="#"){l=j.getConf().initialIndex}j.click(l)});i.click(function(k){location.hash=d(this).attr("href").replace("#","")})});return g.api?f:this}})(jQuery);var firstWordClassName="outro";if(document.all&&!document.getElementsByTagName&&document.all.tags){document.getElementsByTagName=function(_1e){return document.all.tags(_1e)}}function styleFirstWord2(){if(!document.getElementsByTagName||!document.body||!document.body.innerHTML){return}var str,_1f="",_20,idx,_21,_22,k=0;var _23=document.getElementsByTagName("p");for(var i=0;i<_23.length;i++){if(firstWordClassName!=""){if(_23[i].className.indexOf(firstWordClassName)==-1){continue}}_1f="";k=0;str=_23[i].innerHTML;idx=str.indexOf(" ");_21=str.indexOf("<");while(idx>_21){_22=str.indexOf(">");if(_22>_21&&_22>idx){_1f+=str.substring(0,_22+1);str=str.substring(_22+1,str.length);idx=str.indexOf(" ");_21=str.indexOf("<")}else{break}}while(str.charAt(k).match(/\s/)){k++}idx=k+str.replace(/^\s+/,"").indexOf(" ");if(idx<1){idx=str.length}_20="<span class=\"outro\">"+str.substring(k,idx)+"</span>";_23[i].innerHTML=_1f+_20+str.substring(idx,str.length)}};function styleFirstWord(){if(!document.getElementsByTagName||!document.getElementsByTagName("body")||!document.createElement||!document.getElementsByTagName("body")[0].childNodes){styleFirstWord2();return}var el,pel,str,_24,idx,j,k,m,r=/^\s+$/;var _25=document.getElementsByTagName("p");for(var i=0;i<_25.length;i++){if(!_25[i].hasChildNodes()){continue}if(firstWordClassName!=""){if(_25[i].className.indexOf(firstWordClassName)==-1){continue}}if(_25[i].normalize){_25[i].normalize()}pel=_25[i].childNodes[0];j=0;m=(pel.nodeType!=3)?1:(pel.nodeValue.match(r)?1:0);while(m){if(!pel.hasChildNodes()){if(pel.nextSibling){pel=pel.nextSibling}}else{if(pel.nodeType==1){pel=pel.childNodes[0]}}j++;m=(pel.nodeType!=3)?1:(pel.nodeValue===null)?1:pel.nodeValue.match(r)?1:0;m=(j<16)?m:0}str=pel.data;if(!str.length){continue}k=0;while(str.charAt(k).match(/\s/)){k++}idx=str.replace(/^\s+/,"").indexOf(" ");if(idx==-1){idx=0}if(idx>0){idx+=k;pel.data=str.substring(idx,str.length);str=str.substring(0,idx)}else{pel.data=""}el=document.createElement("span");pel.parentNode.insertBefore(el,pel);el.className="outro";_24=document.createTextNode(str);el.appendChild(_24);if(pel.data==""){pel.parentNode.removeChild(pel)}}};var tempFunc;if(typeof window.onload=="function"){tempFunc=window.onload}window.onload=function(){if(typeof tempFunc=="function"){tempFunc()}styleFirstWord()};