/**
 * Twitter - http://www.twitter.com
 * Copyright (C) 2009 Twitter
 * Author: Dustin Diaz (dustin@twitter.com)
 *
 * V 2.0.0 Twitter search/profile/faves/list widget
 * http://twitter.com/widgets
 */
if(!"console" in window){window.console={log:function(){}}}TWTR=window.TWTR||{};if(!Array.forEach){Array.prototype.forEach=function(D,E){var C=E||window;for(var B=0,A=this.length;B<A;++B){D.call(C,this[B],B,this)}};Array.prototype.filter=function(E,F){var D=F||window;var A=[];for(var C=0,B=this.length;C<B;++C){if(!E.call(D,this[C],C,this)){continue}A.push(this[C])}return A};Array.prototype.indexOf=function(B,C){var C=C||0;for(var A=0;A<this.length;++A){if(this[A]===B){return A}}return -1}}(function(){if(TWTR&&TWTR.Widget){return }function A(B,D,C){this.el=B;this.prop=D;this.from=C.from;this.to=C.to;this.time=C.time;this.callback=C.callback;this.animDiff=this.to-this.from}A.canTransition=function(){var B=document.createElement("twitter");B.style.cssText="-webkit-transition: all .5s linear;";return !!B.style.webkitTransitionProperty}();A.prototype._setStyle=function(B){switch(this.prop){case"opacity":this.el.style[this.prop]=B;this.el.style.filter="alpha(opacity="+B*100+")";break;default:this.el.style[this.prop]=B+"px";break}};A.prototype._animate=function(){var B=this;this.now=new Date();this.diff=this.now-this.startTime;if(this.diff>this.time){this._setStyle(this.to);if(this.callback){this.callback.call(this)}clearInterval(this.timer);return }this.percentage=(Math.floor((this.diff/this.time)*100)/100);this.val=(this.animDiff*this.percentage)+this.from;this._setStyle(this.val)};A.prototype.start=function(){var B=this;this.startTime=new Date();this.timer=setInterval(function(){B._animate.call(B)},15)};TWTR.Widget=function(B){this.init(B)};(function(){var M={};var Y={};var W=function(a){var Z=Y[a];if(!Z){Z=new RegExp("(?:^|\\s+)"+a+"(?:\\s+|$)");Y[a]=Z}return Z};var C=function(e,j,f,g){var j=j||"*";var f=f||document;var a=[],Z=f.getElementsByTagName(j),h=W(e);for(var b=0,d=Z.length;b<d;++b){if(h.test(Z[b].className)){a[a.length]=Z[b];if(g){g.call(Z[b],Z[b])}}}return a};var X=function(){var Z=navigator.userAgent;return{ie:Z.match(/MSIE\s([^;]*)/)}}();var G=function(Z){if(typeof Z=="string"){return document.getElementById(Z)}return Z};var Q=function(Z){return Z.replace(/^\s+|\s+$/g,"")};var P=function(){var Z=self.innerHeight;var a=document.compatMode;if((a||X.ie)){Z=(a=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return Z};var V=function(b,Z){var a=b.target||b.srcElement;return Z(a)};var N=function(a){try{if(a&&3==a.nodeType){return a.parentNode}else{return a}}catch(Z){}};var O=function(a){var Z=a.relatedTarget;if(!Z){if(a.type=="mouseout"){Z=a.toElement}else{if(a.type=="mouseover"){Z=a.fromElement}}}return N(Z)};var S=function(a,Z){Z.parentNode.insertBefore(a,Z.nextSibling)};var T=function(a){try{a.parentNode.removeChild(a)}catch(Z){}};var R=function(Z){return Z.firstChild};var B=function(b){var a=O(b);while(a&&a!=this){try{a=a.parentNode}catch(Z){a=this}}if(a!=this){return true}return false};var F=function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(a,d){var c=null;var b=document.defaultView.getComputedStyle(a,"");if(b){c=b[d]}var Z=a.style[d]||c;return Z}}else{if(document.documentElement.currentStyle&&X.ie){return function(Z,b){var a=Z.currentStyle?Z.currentStyle[b]:null;return(Z.style[b]||a)}}}}();var U={has:function(Z,a){return new RegExp("(^|\\s)"+a+"(\\s|$)").test(G(Z).className)},add:function(Z,a){if(!this.has(Z,a)){G(Z).className=Q(G(Z).className)+" "+a}},remove:function(Z,a){if(this.has(Z,a)){G(Z).className=G(Z).className.replace(new RegExp("(^|\\s)"+a+"(\\s|$)","g"),"")}}};var D={add:function(b,a,Z){if(b.addEventListener){b.addEventListener(a,Z,false)}else{b.attachEvent("on"+a,function(){Z.call(b,window.event)})}},remove:function(b,a,Z){if(b.removeEventListener){b.removeEventListener(a,Z,false)}else{b.detachEvent("on"+a,Z)}}};var H={bool:function(Z){return typeof Z==="boolean"},def:function(Z){return !(typeof Z==="undefined")},number:function(Z){return typeof Z==="number"&&isFinite(Z)},string:function(Z){return typeof Z==="string"},fn:function(Z){return typeof Z==="function"},array:function(Z){if(Z){return H.number(Z.length)&&H.fn(Z.splice)}return false}};var J=function(f){var h=new Date();var d=new Date(f);if(X.ie){d=Date.parse(f.replace(/( \+)/," UTC$1"))}var g=h-d;var a=1000,b=a*60,c=b*60,e=c*24,Z=e*7;if(isNaN(g)||g<0){return""}if(g<a*7){return"right now"}if(g<b){return Math.floor(g/a)+" seconds ago"}if(g<b*2){return"about 1 minute ago"}if(g<c){return Math.floor(g/b)+" minutes ago"}if(g<c*2){return"about 1 hour ago"}if(g<e){return Math.floor(g/c)+" hours ago"}if(g>e&&g<e*2){return"yesterday"}if(g<e*365){return Math.floor(g/e)+" days ago"}else{return"over a year ago"}};var E={link:function(Z){return Z.replace(/\b(((https*\:\/\/)|www\.).+?)(([!?,.\)]+)?(\s|$))/g,function(f,e,c,b,a){var d=c.match(/w/)?"http://":"";return'<a class="twtr-hyperlink" target="_blank" href="'+d+e+'">'+((e.length>25)?e.substr(0,24)+"...":e)+"</a>"+a})},at:function(Z){return Z.replace(/\B\@(\w{1,20})/g,function(a,b){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+b+'">'+b+"</a>"})},hash:function(Z){return Z.replace(/\B\#(\w+)/gi,function(a,b){return'<a target="_blank" class="twtr-hashtag" href="http://twitter.com/search?q=%23'+b+'">#'+b+"</a>"})},clean:function(Z){return this.hash(this.at(this.link(Z)))}};function L(a,b,Z){this.job=a;this.decayFn=b;this.interval=Z;this.decayRate=1;this.decayMultiplier=1.25;this.maxDecayTime=3*60*1000}L.prototype={start:function(){this.stop().run();return this},stop:function(){if(this.worker){window.clearTimeout(this.worker)}return this},run:function(){var Z=this;this.job(function(){Z.decayRate=Z.decayFn()?Math.max(1,Z.decayRate/Z.decayMultiplier):Z.decayRate*Z.decayMultiplier;var a=Z.interval*Z.decayRate;a=(a>=Z.maxDecayTime)?Z.maxDecayTime:a;a=Math.floor(a);Z.worker=window.setTimeout(function(){Z.run.call(Z)},a)})},destroy:function(){this.stop();this.decayRate=1;return this}};function I(a,b,Z,c){this.time=b||6000;this.loop=Z||false;this.repeated=0;this.total=a.length;this.callback=c;this.haystack=a}I.prototype={start:function(Z){var a=this;if(Z){this.repeated=0}this.stop()._job();this.timer=window.setInterval(function(){a._job.call(a)},this.time);return this},stop:function(){if(this.timer){window.clearInterval(this.timer)}return this},_job:function(){if(this.repeated===this.total){if(this.loop){this.repeated=0}else{this.stop();return }}this.callback(this.haystack[this.repeated]);this.repeated++;return this}};function K(a){var Z='<div class="twtr-tweet-wrap">         <div class="twtr-avatar">           <div class="twtr-img"><a target="_blank" href="http://twitter.com/'+a.user+'"><img alt="'+a.user+' profile" src="'+a.avatar+'"></a></div>         </div>         <div class="twtr-tweet-text">           <p>             <a target="_blank" href="http://twitter.com/'+a.user+'" class="twtr-user">'+a.user+"</a> "+a.tweet+'             <i>            <a target="_blank" href="http://twitter.com/'+a.user+"/status/"+a.id+'">'+J(a.created_at)+'</a>             <a target="_blank" class="twtr-reply" href="http://twitter.com/?status=@'+a.user+"%20&in_reply_to_status_id="+a.id+"&in_reply_to="+a.user+'">reply</a>             </i>           </p>         </div>       </div>';var b=document.createElement("div");b.id="tweet-id-"+ ++K._tweetCount;b.className="twtr-tweet";b.innerHTML=Z;this.element=b}K._tweetCount=0;M.loadStyleSheet=function(b,a){if(!TWTR.Widget.loadingStyleSheet){TWTR.Widget.loadingStyleSheet=true;var Z=document.createElement("link");Z.href=b;Z.rel="stylesheet";Z.type="text/css";document.getElementsByTagName("head")[0].appendChild(Z);var c=setInterval(function(){var d=F(a,"position");if(d=="relative"){clearInterval(c);TWTR.Widget.hasLoadedStyleSheet=true}},50)}};(function(){var Z=false;M.css=function(c){var b=document.createElement("style");b.type="text/css";if(X.ie){b.styleSheet.cssText=c}else{var d=document.createDocumentFragment();d.appendChild(document.createTextNode(c));b.appendChild(d)}function a(){document.getElementsByTagName("head")[0].appendChild(b)}if(!X.ie||Z){a()}else{window.attachEvent("onload",function(){Z=true;a()})}}})();TWTR.Widget.isLoaded=false;TWTR.Widget.loadingStyleSheet=false;TWTR.Widget.hasLoadedStyleSheet=false;TWTR.Widget.WIDGET_NUMBER=0;TWTR.Widget.matches={mentions:/^@\w{1,20}\b/,any_mentions:/\b@\w{1,20}\b/};TWTR.Widget.jsonP=function(b,c){var a=document.createElement("script");a.type="text/javascript";a.src=b;function Z(){document.getElementsByTagName("head")[0].appendChild(a);c(a)}Z();return a};TWTR.Widget.prototype=function(){var d="http://search.twitter.com/search.";var e="http://twitter.com/statuses/user_timeline.";var b="http://twitter.com/favorites/";var c="http://twitter.com/";var a=20000;var Z="http://widgets.twimg.com/j/1/default.gif";return{init:function(g){var f=this;this._widgetNumber=++TWTR.Widget.WIDGET_NUMBER;TWTR.Widget["receiveCallback_"+this._widgetNumber]=function(h){f._prePlay.call(f,h)};this._cb="TWTR.Widget.receiveCallback_"+this._widgetNumber;this.opts=g;this._base=d;this._isRunning=false;this._hasOfficiallyStarted=false;this._rendered=false;this._profileImage=false;this._isCreator=!!g.creator;this._setWidgetType(g.type);this.timesRequested=0;this.runOnce=false;this.newResults=false;this.results=[];this.jsonMaxRequestTimeOut=19000;this.showedResults=[];this.sinceId=1;this.source="TWITTERINC_WIDGET";this.id=g.id||"twtr-widget-"+this._widgetNumber;this.tweets=0;this.setDimensions(g.width,g.height);this.interval=g.interval||6000;this.format="json";this.rpp=g.rpp||50;this.subject=g.subject||"";this.title=g.title||"";this.setSearch(g.search);this._setUrl();this.theme=g.theme?g.theme:this._getDefaultTheme();if(!g.id){


