/***
 * Twitter JS v1.13.3
 * http://code.google.com/p/twitterjs/
 * Copyright (c) 2009 Remy Sharp / MIT License
 * $Date$
 */
 /*
  MIT (MIT-LICENSE.txt)
 */
typeof renderTwitters!="function"&&function(){function g(k){var l;for(l in k.user){k["user_"+l]=k.user[l]}k.time=j(k.created_at);return k}function f(k){i?k.call():h.push(k)}function b(){i=true;for(var k;k=h.shift();){k.call()}}function e(){if(document.addEventListener&&!a.webkit){document.addEventListener("DOMContentLoaded",b,false)}else{if(a.msie){document.write("<script id=__ie_init defer=true src=//:><\/script>");var k=document.getElementById("__ie_init");if(k){k.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);b.call()}}}k=null}else{if(a.webkit){var l=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(l);l=null;b.call()}},10)}}}}function j(n){function r(t){var m=t.getHours();t=t.getMinutes()+"";var s="AM";if(m==0){m=12}else{if(m==12){s="PM"}else{if(m>12){m-=12;s="PM"}}}if(t.length==1){t="0"+t}return m+":"+t+" "+s}function p(v){v.toDateString().split(/ /);var t=d[v.getMonth()],u=v.getDate()+"",s=parseInt(u);v=v.getFullYear();var w=(new Date).getFullYear(),m="th";if(s%10==1&&u.substr(0,1)!="1"){m="st"}else{if(s%10==2&&u.substr(0,1)!="1"){m="nd"}else{if(s%10==3&&u.substr(0,1)!="1"){m="rd"}}}if(u.substr(0,1)=="0"){u=u.substr(1)}return t+" "+u+m+(w!=v?", "+v:"")}var l=n.split(" "),q=Date.parse(l[1]+" "+l[2]+", "+l[5]+" "+l[3]);l=new Date(q);var o=arguments.length>1?arguments[1]:new Date;q=parseInt((o.getTime()-q)/1000);var k="";q+=o.getTimezoneOffset()*60;return k=q<5?"less than 5 seconds ago":q<30?"half a minute ago":q<60?"less than a minute ago":q<120?"1 minute ago":q<2700?parseInt(q/60).toString()+" minutes ago":q<10800?"about 1 hour ago":q<86400?"about "+parseInt(q/3600).toString()+" hours ago":q<172800?r(l)+" yesterday":r(l)+" "+p(l)}var a=function(){var k=navigator.userAgent.toLowerCase();return{webkit:/(webkit|khtml)/.test(k),opera:/opera/.test(k),msie:/msie/.test(k)&&!/opera/.test(k),mozilla:/mozilla/.test(k)&&!/(compatible|webkit)/.test(k)}}(),c=0,h=[],i=false,d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];window.ify=function(){return{link:function(k){return k.replace(/[a-z]+:\/\/[a-z0-9-_]+\.[a-z0-9-_:~%&\?#\/.=]+[^:\.,\)\s*$]/ig,function(l){return'<a href="'+l+'">'+(l.length>25?l.substr(0,24)+"...":l)+"</a>"})},at:function(k){return k.replace(/(^|[^\w]+)\@([a-zA-Z0-9_]{1,15}(\/[a-zA-Z0-9-_]+)*)/g,function(n,m,l){return m+'@<a href="http://twitter.com/'+l+'">'+l+"</a>"})},hash:function(k){return k.replace(/(^|[^&\w'"]+)\#([a-zA-Z0-9_]+)/g,function(n,m,l){return m+'#<a href="http://search.twitter.com/search?q=%23'+l+'">'+l+"</a>"})},clean:function(k){return this.hash(this.at(this.link(k)))}}}();window.renderTwitters=function(z,x){function t(l){return document.createElement(l)}function y(l){return document.createTextNode(l)}var v=document.getElementById(x.twitterTarget),q=null,o=t("ul"),w,s,u,r,k=z.length>x.count?x.count:z.length;for(r=0;r<k&&z[r];r++){q=g(z[r]);if(x.ignoreReplies&&z[r].text.substr(0,1)=="@"){k++}else{w=t("li");if(x.template){w.innerHTML=x.template.replace(/%([a-z_\-\.]*)%/ig,function(l,m){l=q[m]+""||"";if(m=="text"&&x.enableLinks){l=ify.clean(l)}return l})}else{s=t("span");s.className="twitterStatus";u=t("span");u.className="twitterTime";s.innerHTML=z[r].text;if(x.enableLinks==true){s.innerHTML=ify.clean(s.innerHTML)}u.innerHTML=j(z[r].created_at);if(x.prefix){var p=t("span");p.className="twitterPrefix";p.innerHTML=x.prefix.replace(/%(.*?)%/g,function(l,m){return z[r].user[m]});w.appendChild(p);w.appendChild(y(" "))}w.appendChild(s);w.appendChild(y(" "));w.appendChild(u)}if(x.newwindow){w.innerHTML=w.innerHTML.replace(/<a href/gi,'<a target="_blank" href')}o.appendChild(w)}}if(x.clearContents){for(;v.firstChild;){v.removeChild(v.firstChild)}}v.appendChild(o);typeof x.callback=="function"&&x.callback()};window.getTwitters=function(l,n,m,k){c++;if(typeof n=="object"){k=n;n=k.id;m=k.count}m||(m=1);if(k){k.count=m}else{k={}}if(!k.timeout&&typeof k.onTimeout=="function"){k.timeout=10}if(typeof k.clearContents=="undefined"){k.clearContents=true}if(k.withFriends){k.withFriends=false}k.twitterTarget=l;if(typeof k.enableLinks=="undefined"){k.enableLinks=true}window["twitterCallback"+c]=function(o){k.timeout&&clearTimeout(window["twitterTimeout"+c]);renderTwitters(o,k)};f(function(p,o){return function(){if(document.getElementById(p.twitterTarget)){var q="http://www.twitter.com/status/"+(p.withFriends?"friends_timeline":"user_timeline")+"/"+n+".json?callback=twitterCallback"+o+"&count=20&cb="+Math.random();if(p.timeout){window["twitterTimeout"+o]=setTimeout(function(){if(p.onTimeoutCancel){window["twitterCallback"+o]=function(){}}p.onTimeout.call(document.getElementById(p.twitterTarget))},p.timeout*1000)}var r=document.createElement("script");r.setAttribute("src",q);document.getElementsByTagName("head")[0].appendChild(r)}}}(k,c))};e()}();