/**
 * remy sharp / http://remysharp.com
 * http://remysharp.com/2007/05/18/add-twitter-to-your-blog-step-by-step/
 *
 * @params
 *   cssIdOfContainer: e.g. twitters
 *   options: 
 *       {
 *           id: {String} username,
 *           count: {Int} 1-20, defaults to 1 - max limit 20
 *           prefix: {String} '%name% said', defaults to blank
 *           clearContents: {Boolean} true, removes contents of element specified in cssIdOfContainer, defaults to true
 *           ignoreReplies: {Boolean}, skips over tweets starting with '@', defaults to false
 *           template: {String} HTML template to use for LI element (see URL above for examples), defaults to predefined template
 *           enableLinks: {Boolean} linkifies text, defaults to true,
 *           timeout: {Int} How long before triggering onTimeout, defaults to 10 seconds if onTimeout is set
 *           onTimeoutCancel: {Boolean} Completely cancel twitter call if timedout, defaults to false
 *           onTimeout: {Function} Function to run when the timeout occurs. Function is bound to element specified with 
 *              cssIdOfContainer (i.e. 'this' keyword)
 *
 *      CURRENTLY DISABLED DUE TO CHANGE IN TWITTER API:
 *           withFriends: {Boolean} includes friend's status
 *
 *       }
 *
 * @license MIT (MIT-LICENSE.txt)
 * @version 1.11 - Added timeout functionality, and removed withFriends while Twitter works out API changes
 * @date $Date: 2008-05-31 14:26:49 +0100 (Sat, 31 May 2008) $
 *
 *
 * Modified by Mike Ormond to remove jQuery loaded type functionality and ignore blog post tweets
 */

eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('4(F N!=\'6\')(6(){8 j=0;8 k=[];8 n=18;C.N=6(a,b){6 D(e){p x.19(e)}6 u(t){p x.1s(t)}8 c=x.O(b.I);8 d=1t;8 f=D(\'1u\'),q,y,G,i,P=a.Q>b.J?b.J:a.Q;1a(i=0;i<P&&a[i];i++){d=1b(a[i]);4((b.1v&&a[i].u.R(0,1)==\'@\')||(a[i].u.R(0,12)==\'1w 1x\')){P++;1y}q=D(\'q\');4(b.1c){q.E=b.1c.K(/%([a-1z\\-\\.]*)%/1A,6(m,l){8 r=d[l]+""||"";4(l==\'u\'&&b.L)r=T(r);p r})}v{y=D(\'U\');y.V=\'1B\';G=D(\'U\');G.V=\'1C\';y.E=a[i].u;4(b.L==W){y.E=T(y.E)}G.E=X(a[i].1d);4(b.1e){8 s=D(\'U\');s.V=\'1D\';s.E=b.1e.K(/%(.*?)%/g,6(m,l){p a[i].Y[l]});q.w(s);q.w(u(\' \'))}q.w(y);q.w(u(\' \'));q.w(G)}f.w(q)}4(b.Z){1E(c.1f){c.1F(c.1f)}}c.w(f)};C.1G=6(b,c,d,e){j++;4(F c==\'1H\'){e=c;c=e.1I;d=e.J}4(!d)d=1;4(e){e.J=d}v{e={}}4(!e.H&&F e.1g==\'6\'){e.H=10}4(F e.Z==\'1h\'){e.Z=W}4(e.11)e.11=18;e[\'I\']=b;4(F e.L==\'1h\')e.L=W;C[\'13\'+j]=6(a){4(e.H){1J(C[\'1i\'+j])}N(a,e)};4(!x.O(e.I)){p}8 f=1j 14();f.1K(f-(1k*o*o*24*7));8 g=\'1l://1L.1m.1n/1M/\'+(e.11?\'1N\':\'1O\')+\'/\'+c+\'.1P?1Q=13\'+j+\'&1R=1&1S=\'+f.1T();4(e.H){C[\'1i\'+j]=1U(6(){4(e.1V)C[\'13\'+j]=6(){};e.1g.1W(x.O(e.I))},e.H)}8 h=x.19(\'1X\');h.1Y="u/1Z";h.20(\'21\',g);x.22(\'23\')[0].w(h)};6 1b(a){8 b=a,i;1a(i 25 a.Y){b[\'26\'+i]=a.Y[i]}b.27=X(a.1d);p b}6 X(a){8 b=a.28(" ");a=b[1]+" "+b[2]+", "+b[5]+" "+b[3];8 c=14.29(a);8 d=(1o.Q>1)?1o[1]:1j 14();8 e=M((d.2a()-c)/1k);e=e+(d.2b()*o);8 r=\'\';4(e<o){r=\'2c 2d a 1p B\'}v 4(e<2e){r=\'15 a 1p B\'}v 4(e<(2f*o)){r=(M(e/o)).16()+\' 2g B\'}v 4(e<(2*2h*o)){r=\'15 2i 2j B\'}v 4(e<(24*o*o)){r=\'15 \'+(M(e/2k)).16()+\' 2l B\'}v 4(e<(2m*o*o)){r=\'1 2n B\'}v{r=(M(e/2o)).16()+\' 2p B\'}p r}6 T(s){p s.K(/[A-17-z]+:\\/\\/[A-17-1q-9-1r]+\\.[A-17-1q-9-1r:%&\\?\\/.=]+/g,6(m){p m.2q(m)}).K(/@[\\S]+/g,6(m){p\'<a 2r="1l://1m.1n/\'+m.R(1)+\'">\'+m+\'</a>\'})}})();', 62, 152, '||||if||function||var||||||||||||||||60|return|li||||text|else|appendChild|document|statusSpan|||ago|window|node|innerHTML|typeof|timeSpan|timeout|twitterTarget|count|replace|enableLinks|parseInt|renderTwitters|getElementById|max|length|substr||linkify|span|className|true|relative_time|user|clearContents||withFriends||twitterCallback|Date|about|toString|Za|false|createElement|for|getTwitterData|template|created_at|prefix|firstChild|onTimeout|undefined|twitterTimeout|new|1000|http|twitter|com|arguments|minute|z0|_|createTextNode|null|ul|ignoreReplies|New|blogpost|continue|z_|ig|twitterStatus|twitterTime|twitterPrefix|while|removeChild|getTwitters|object|id|clearTimeout|setTime|www|statuses|friends_timeline|user_timeline|json|callback|page|since|toUTCString|setTimeout|onTimeoutCancel|call|script|type|javascript|setAttribute|src|getElementsByTagName|head||in|user_|time|split|parse|getTime|getTimezoneOffset|less|than|120|45|minutes|90|an|hour|3600|hours|48|day|86400|days|link|href'.split('|'), 0, {}))