TWTR=window.TWTR||{};if(!Array.forEach){Array.prototype.filter=function(fn,thisObj){var scope=thisObj||window;var a=[];for(var i=0,j=this.length;i<j;++i){if(!fn.call(scope,this[i],i,this))continue;a.push(this[i])}return a};Array.prototype.indexOf=function(el,start){var start=start||0;for(var i=0;i<this.length;++i)if(this[i]===el)return i;return-1}}
(function(){if(TWTR&&TWTR.Widget)return;function each(a,fn,opt_scope){for(var i=0,j=a.length;i<j;++i)fn.call(opt_scope||window,a[i],i,a)}function Animate(el,prop,opts){this.el=el;this.prop=prop;this.from=opts.from;this.to=opts.to;this.time=opts.time;this.callback=opts.callback;this.animDiff=this.to-this.from}Animate.canTransition=function(){var el=document.createElement("twitter");el.style.cssText="-webkit-transition: all .5s linear;";return!!el.style.webkitTransitionProperty}();Animate.prototype._setStyle=
function(val){switch(this.prop){case "opacity":this.el.style[this.prop]=val;this.el.style.filter="alpha(opacity="+val*100+")";break;default:this.el.style[this.prop]=val+"px";break}};Animate.prototype._animate=function(){var that=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)};Animate.prototype.start=function(){var that=this;this.startTime=new Date;this.timer=setInterval(function(){that._animate.call(that)},15)};TWTR.Widget=function(opts){this.init(opts)};(function(){var twttr={};var isHttps=location.protocol.match(/https/);var httpsImageRegex=/^.+\/profile_images/;var httpsImageReplace="https://s3.amazonaws.com/twitter_production/profile_images";var matchUrlScheme=function(url){return isHttps?url.replace(httpsImageRegex,httpsImageReplace):
url};var reClassNameCache={};var getClassRegEx=function(c){var re=reClassNameCache[c];if(!re){re=new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)");reClassNameCache[c]=re}return re};var getByClass=function(c,tag,root,apply){var tag=tag||"*";var root=root||document;var nodes=[],elements=root.getElementsByTagName(tag),re=getClassRegEx(c);for(var i=0,len=elements.length;i<len;++i)if(re.test(elements[i].className)){nodes[nodes.length]=elements[i];if(apply)apply.call(elements[i],elements[i])}return nodes};var browser=
function(){var ua=navigator.userAgent;return{ie:ua.match(/MSIE\s([^;]*)/)}}();var byId=function(id){if(typeof id=="string")return document.getElementById(id);return id};var trim=function(str){return str.replace(/^\s+|\s+$/g,"")};var getViewportHeight=function(){var height=self.innerHeight;var mode=document.compatMode;if(mode||browser.ie)height=mode=="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight;return height};var getTarget=function(e,resolveTextNode){var target=e.target||
e.srcElement;return resolveTextNode(target)};var resolveTextNode=function(el){try{if(el&&3==el.nodeType)return el.parentNode;else return el}catch(ex){}};var getRelatedTarget=function(e){var target=e.relatedTarget;if(!target)if(e.type=="mouseout")target=e.toElement;else if(e.type=="mouseover")target=e.fromElement;return resolveTextNode(target)};var insertAfter=function(el,reference){reference.parentNode.insertBefore(el,reference.nextSibling)};var removeElement=function(el){try{el.parentNode.removeChild(el)}catch(ex){}};
var getFirst=function(el){return el.firstChild};var withinElement=function(e){var parent=getRelatedTarget(e);while(parent&&parent!=this)try{parent=parent.parentNode}catch(ex){parent=this}if(parent!=this)return true;return false};var getStyle=function(){if(document.defaultView&&document.defaultView.getComputedStyle)return function(el,property){var value=null;var computed=document.defaultView.getComputedStyle(el,"");if(computed)value=computed[property];var ret=el.style[property]||value;return ret};
else if(document.documentElement.currentStyle&&browser.ie)return function(el,property){var value=el.currentStyle?el.currentStyle[property]:null;return el.style[property]||value}}();var classes={has:function(el,c){return(new RegExp("(^|\\s)"+c+"(\\s|$)")).test(byId(el).className)},add:function(el,c){if(!this.has(el,c))byId(el).className=trim(byId(el).className)+" "+c},remove:function(el,c){if(this.has(el,c))byId(el).className=byId(el).className.replace(new RegExp("(^|\\s)"+c+"(\\s|$)","g"),"")}};var events=
{add:function(el,type,fn){if(el.addEventListener)el.addEventListener(type,fn,false);else el.attachEvent("on"+type,function(){fn.call(el,window.event)})},remove:function(el,type,fn){if(el.removeEventListener)el.removeEventListener(type,fn,false);else el.detachEvent("on"+type,fn)}};var hex_rgb=function(){function HexToR(h){return parseInt(h.substring(0,2),16)}function HexToG(h){return parseInt(h.substring(2,4),16)}function HexToB(h){return parseInt(h.substring(4,6),16)}return function(hex){return[HexToR(hex),
HexToG(hex),HexToB(hex)]}}();var is={bool:function(b){return typeof b==="boolean"},def:function(o){return!(typeof o==="undefined")},number:function(n){return typeof n==="number"&&isFinite(n)},string:function(s){return typeof s==="string"},fn:function(f){return typeof f==="function"},array:function(a){if(a)return is.number(a.length)&&is.fn(a.splice);return false}};var months=["January","February","March","April","May","June","July","August","September","October","November","December"];var absoluteTime=
function(s){var d=new Date(s);if(browser.ie)d=Date.parse(s.replace(/( \+)/," UTC$1"));var ampm="";var hour=function(){var h=d.getHours();if(h>0&&h<13){ampm="am";return h}else if(h<1){ampm="am";return 12}else{ampm="pm";return h-12}}();var minutes=d.getMinutes();var seconds=d.getSeconds();function getRest(){var today=new Date;if(today.getDate()!=d.getDate()||today.getYear()!=d.getYear()||today.getMonth()!=d.getMonth())return" - "+months[d.getMonth()]+" "+d.getDate()+", "+d.getFullYear();else return""}
return hour+":"+minutes+ampm+getRest()};var timeAgo=function(dateString){var rightNow=new Date;var then=new Date(dateString);if(browser.ie)then=Date.parse(dateString.replace(/( \+)/," UTC$1"));var diff=rightNow-then;var second=1E3,minute=second*60,hour=minute*60,day=hour*24,week=day*7;if(isNaN(diff)||diff<0)return"";if(diff<second*2)return"right now";if(diff<minute)return Math.floor(diff/second)+" seconds ago";if(diff<minute*2)return"about 1 minute ago";if(diff<hour)return Math.floor(diff/minute)+
" minutes ago";if(diff<hour*2)return"about 1 hour ago";if(diff<day)return Math.floor(diff/hour)+" hours ago";if(diff>day&&diff<day*2)return"yesterday";if(diff<day*365)return Math.floor(diff/day)+" days ago";else return"over a year ago"};var ify={link:function(tweet){return tweet.replace(/\b(((https*\:\/\/)|www\.)[^\"\']+?)(([!?,.\)]+)?(\s|$))/g,function(link,m1,m2,m3,m4){var http=m2.match(/w/)?"http://":"";return'<a class="twtr-hyperlink" target="_blank" href="'+http+m1+'">'+(m1.length>25?m1.substr(0,
24)+"...":m1)+"</a>"+m4})},at:function(tweet){return tweet.replace(/\B[@\uff20]([a-zA-Z0-9_]{1,20})/g,function(m,username){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+username+'">'+username+"</a>"})},list:function(tweet){return tweet.replace(/\B[@\uff20]([a-zA-Z0-9_]{1,20}\/\w+)/g,function(m,userlist){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+userlist+'">'+userlist+"</a>"})},hash:function(tweet){return tweet.replace(/(^|\s+)#(\w+)/gi,
function(m,before,hash){return before+'<a target="_blank" class="twtr-hashtag" href="http://twitter.com/search?q=%23'+hash+'">#'+hash+"</a>"})},clean:function(tweet){return this.hash(this.at(this.list(this.link(tweet))))}};function Occasionally(job,decayFn,interval){this.job=job;this.decayFn=decayFn;this.interval=interval;this.decayRate=1;this.decayMultiplier=1.25;this.maxDecayTime=3*60*1E3}Occasionally.prototype={start:function(){this.stop().run();return this},stop:function(){if(this.worker)window.clearTimeout(this.worker);
return this},run:function(){var that=this;this.job(function(){that.decayRate=that.decayFn()?Math.max(1,that.decayRate/that.decayMultiplier):that.decayRate*that.decayMultiplier;var expire=that.interval*that.decayRate;expire=expire>=that.maxDecayTime?that.maxDecayTime:expire;expire=Math.floor(expire);that.worker=window.setTimeout(function(){that.run.call(that)},expire)})},destroy:function(){this.stop();this.decayRate=1;return this}};function IntervalJob(time,loop,callback){this.time=time||6E3;this.loop=
loop||false;this.repeated=0;this.callback=callback;this.haystack=[]}IntervalJob.prototype={set:function(haystack){this.haystack=haystack},add:function(needle){this.haystack.unshift(needle)},start:function(){if(this.timer)return this;this._job();var that=this;this.timer=setInterval(function(){that._job.call(that)},this.time);return this},stop:function(){if(this.timer){window.clearInterval(this.timer);this.timer=null}return this},_next:function(){var old=this.haystack.shift();if(old&&this.loop)this.haystack.push(old);
return old||null},_job:function(){var next=this._next();if(next)this.callback(next);return this}};function Tweet(tweet){function showPopular(){if(tweet.needle.metadata&&tweet.needle.metadata.result_type&&tweet.needle.metadata.result_type=="popular")return'<span class="twtr-popular">'+tweet.needle.metadata.recent_retweets+"+ recent retweets</span>";else return""}var html='<div class="twtr-tweet-wrap">         <div class="twtr-avatar">           <div class="twtr-img"><a target="_blank" href="http://twitter.com/'+
tweet.user+'"><img alt="'+tweet.user+' profile" src="'+matchUrlScheme(tweet.avatar)+'"></a></div>         </div>         <div class="twtr-tweet-text">           <p>             <a target="_blank" href="http://twitter.com/'+tweet.user+'" class="twtr-user">'+tweet.user+"</a> "+tweet.tweet+'             <em>            <a target="_blank" class="twtr-timestamp" time="'+tweet.timestamp+'" href="http://twitter.com/'+tweet.user+"/status/"+tweet.id+'">'+tweet.created_at+'</a> &middot;            <a target="_blank" class="twtr-reply" href="http://twitter.com/?status=@'+
tweet.user+"%20&in_reply_to_status_id="+tweet.id+"&in_reply_to="+tweet.user+'">reply</a>             </em> '+showPopular()+"           </p>         </div>       </div>";var div=document.createElement("div");div.id="tweet-id-"+ ++Tweet._tweetCount;div.className="twtr-tweet";div.innerHTML=html;this.element=div}Tweet._tweetCount=0;twttr.loadStyleSheet=function(url,widgetEl){if(!TWTR.Widget.loadingStyleSheet){TWTR.Widget.loadingStyleSheet=true;var linkElement=document.createElement("link");linkElement.href=
url;linkElement.rel="stylesheet";linkElement.type="text/css";document.getElementsByTagName("head")[0].appendChild(linkElement);var timer=setInterval(function(){var style=getStyle(widgetEl,"position");if(style=="relative"){clearInterval(timer);timer=null;TWTR.Widget.hasLoadedStyleSheet=true}},50)}};(function(){var isLoaded=false;twttr.css=function(rules){var styleElement=document.createElement("style");styleElement.type="text/css";if(browser.ie)styleElement.styleSheet.cssText=rules;else{var frag=document.createDocumentFragment();
frag.appendChild(document.createTextNode(rules));styleElement.appendChild(frag)}function append(){document.getElementsByTagName("head")[0].appendChild(styleElement)}if(!browser.ie||isLoaded)append();else window.attachEvent("onload",function(){isLoaded=true;append()})}})();TWTR.Widget.isLoaded=false;TWTR.Widget.loadingStyleSheet=false;TWTR.Widget.hasLoadedStyleSheet=false;TWTR.Widget.WIDGET_NUMBER=0;TWTR.Widget.matches={mentions:/^@[a-zA-Z0-9_]{1,20}\b/,any_mentions:/\b@[a-zA-Z0-9_]{1,20}\b/};TWTR.Widget.jsonP=
function(url,callback){var script=document.createElement("script");var head=document.getElementsByTagName("head")[0];script.type="text/javascript";script.src=url;head.insertBefore(script,head.firstChild);callback(script);return script};TWTR.Widget.prototype=function(){var http=isHttps?"https://":"http://";var domain=window.location.hostname.match(/twitter\.com/)?window.location.hostname+":"+window.location.port:"twitter.com";var base=http+"search."+domain+"/search.";var profileBase=http+"api."+domain+
"/1/statuses/user_timeline.";var favBase=http+domain+"/favorites/";var listBase=http+domain+"/";var occasionalInterval=25E3;var defaultAvatar=isHttps?"https://twitter-widgets.s3.amazonaws.com/j/1/default.gif":"http://widgets.twimg.com/j/1/default.gif";return{init:function(opts){var that=this;this._widgetNumber=++TWTR.Widget.WIDGET_NUMBER;TWTR.Widget["receiveCallback_"+this._widgetNumber]=function(resp){that._prePlay.call(that,resp)};this._cb="TWTR.Widget.receiveCallback_"+this._widgetNumber;this.opts=
opts;this._base=base;this._isRunning=false;this._hasOfficiallyStarted=false;this._hasNewSearchResults=false;this._rendered=false;this._profileImage=false;this._isCreator=!!opts.creator;this._setWidgetType(opts.type);this.timesRequested=0;this.runOnce=false;this.newResults=false;this.results=[];this.jsonMaxRequestTimeOut=19E3;this.showedResults=[];this.sinceId=1;this.source="TWITTERINC_WIDGET";this.id=opts.id||"twtr-widget-"+this._widgetNumber;this.tweets=0;this.setDimensions(opts.width,opts.height);
this.interval=opts.interval||6E3;this.format="json";this.rpp=opts.rpp||50;this.subject=opts.subject||"";this.title=opts.title||"";this.setFooterText(opts.footer);this.setSearch(opts.search);this._setUrl();this.theme=opts.theme?opts.theme:this._getDefaultTheme();if(!opts.id)document.write('<div class="twtr-widget" id="'+this.id+'"></div>');this.widgetEl=byId(this.id);if(opts.id)classes.add(this.widgetEl,"twtr-widget");if(opts.version>=2&&!TWTR.Widget.hasLoadedStyleSheet)if(isHttps)twttr.loadStyleSheet("https://twitter-widgets.s3.amazonaws.com/j/2/widget.css",
this.widgetEl);else if(opts.creator)twttr.loadStyleSheet("/stylesheets/widgets/widget.css",this.widgetEl);else twttr.loadStyleSheet("http://widgets.twimg.com/j/2/widget.css",this.widgetEl);this.occasionalJob=new Occasionally(function(decay){that.decay=decay;that._getResults.call(that)},function(){return that._decayDecider.call(that)},occasionalInterval);this._ready=is.fn(opts.ready)?opts.ready:function(){};this._isRelativeTime=true;this._tweetFilter=false;this._avatars=true;this._isFullScreen=false;
this._isLive=true;this._isScroll=false;this._loop=true;this._showTopTweets=this._isSearchWidget?true:false;this._behavior="default";this.setFeatures(this.opts.features);this.intervalJob=new IntervalJob(this.interval,this._loop,function(tweet){that._normalizeTweet(tweet)});return this},setDimensions:function(w,h){this.wh=w&&h?[w,h]:[250,300];if(w=="auto"||w=="100%")this.wh[0]="100%";else this.wh[0]=(this.wh[0]<150?150:this.wh[0])+"px";this.wh[1]=(this.wh[1]<100?100:this.wh[1])+"px";return this},setRpp:function(rpp){var rpp=
parseInt(rpp);this.rpp=is.number(rpp)&&rpp>0&&rpp<=100?rpp:30;return this},_setWidgetType:function(type){this._isSearchWidget=false,this._isProfileWidget=false,this._isFavsWidget=false,this._isListWidget=false;switch(type){case "profile":this._isProfileWidget=true;break;case "search":this._isSearchWidget=true,this.search=this.opts.search;break;case "faves":case "favs":this._isFavsWidget=true;break;case "list":case "lists":this._isListWidget=true;break}return this},setFeatures:function(features){if(features){if(is.def(features.filters))this._tweetFilter=
features.filters;if(is.def(features.dateformat))this._isRelativeTime=!!(features.dateformat!=="absolute");if(is.def(features.fullscreen)&&is.bool(features.fullscreen))if(features.fullscreen){this._isFullScreen=true;this.wh[0]="100%";this.wh[1]=getViewportHeight()-90+"px";var that=this;events.add(window,"resize",function(e){that.wh[1]=getViewportHeight();that._fullScreenResize()})}if(is.def(features.loop)&&is.bool(features.loop))this._loop=features.loop;if(is.def(features.behavior)&&is.string(features.behavior))switch(features.behavior){case "all":this._behavior=
"all";break;case "preloaded":this._behavior="preloaded";break;default:this._behavior="default";break}if(is.def(features.toptweets)&&is.bool(features.toptweets)){this._showTopTweets=features.toptweets;var showTopTweet=this._showTopTweets?"inline-block":"none";twttr.css("#"+this.id+" .twtr-popular { display: "+showTopTweet+"; }")}if(!is.def(features.toptweets)){this._showTopTweets=true;var showTopTweet=this._showTopTweets?"inline-block":"none";twttr.css("#"+this.id+" .twtr-popular { display: "+showTopTweet+
"; }")}if(is.def(features.avatars)&&is.bool(features.avatars))if(!features.avatars){twttr.css("#"+this.id+" .twtr-avatar, #"+this.id+" .twtr-user { display: none; } "+"#"+this.id+" .twtr-tweet-text { margin-left: 0; }");this._avatars=false}else{var margin=this._isFullScreen?"90px":"40px";twttr.css("#"+this.id+" .twtr-avatar { display: block; } #"+this.id+" .twtr-user { display: inline; } "+"#"+this.id+" .twtr-tweet-text { margin-left: "+margin+"; }");this._avatars=true}else if(this._isProfileWidget){this.setFeatures({avatars:false});
this._avatars=false}else{this.setFeatures({avatars:true});this._avatars=true}if(is.def(features.hashtags)&&is.bool(features.hashtags))!features.hashtags?twttr.css("#"+this.id+" a.twtr-hashtag { display: none; }"):"";if(is.def(features.timestamp)&&is.bool(features.timestamp)){var display=features.timestamp?"block":"none";twttr.css("#"+this.id+" em { display: "+display+"; }")}if(is.def(features.live)&&is.bool(features.live))this._isLive=features.live;if(is.def(features.scrollbar)&&is.bool(features.scrollbar))this._isScroll=
features.scrollbar}else{if(this._isProfileWidget){this.setFeatures({avatars:false});this._avatars=false}if(this._isProfileWidget||this._isFavsWidget)this.setFeatures({behavior:"all"})}return this},_fullScreenResize:function(){var timeline=getByClass("twtr-timeline","div",document.body,function(el){el.style.height=getViewportHeight()-90+"px"})},setTweetInterval:function(interval){this.interval=interval;return this},setBase:function(b){this._base=b;return this},setUser:function(username,opt_realname){this.username=
username;this.realname=opt_realname||" ";if(this._isFavsWidget)this.setBase(favBase+username+".");else if(this._isProfileWidget)this.setBase(profileBase+this.format+"?screen_name="+username);this.setSearch(" ");return this},setList:function(username,listname){this.listslug=listname.replace(/ /g,"-").toLowerCase();this.username=username;this.setBase(listBase+username+"/lists/"+this.listslug+"/statuses.");this.setSearch(" ");return this},setProfileImage:function(url){this._profileImage=url;this.byClass("twtr-profile-img",
"img").src=matchUrlScheme(url);this.byClass("twtr-profile-img-anchor","a").href="http://twitter.com/"+this.username;return this},setTitle:function(title){this.title=title;this.widgetEl.getElementsByTagName("h3")[0].innerHTML=this.title;return this},setCaption:function(subject){this.subject=subject;this.widgetEl.getElementsByTagName("h4")[0].innerHTML=this.subject;return this},setFooterText:function(s){this.footerText=is.def(s)&&is.string(s)?s:"Join the conversation";if(this._rendered)this.byClass("twtr-join-conv",
"a").innerHTML=this.footerText;return this},setSearch:function(s){this.searchString=s||"";this.search=encodeURIComponent(this.searchString);this._setUrl();if(this._rendered){var anchor=this.byClass("twtr-join-conv","a");anchor.href="http://twitter.com/"+this._getWidgetPath()}return this},_getWidgetPath:function(){if(this._isProfileWidget)return this.username;else if(this._isFavsWidget)return this.username+"/favorites";else if(this._isListWidget)return this.username+"/lists/"+this.listslug;else return"#search?q="+
this.search},_setUrl:function(){var that=this;function cacheBust(){return"&"+ +new Date+"=cachebust"}function showSince(){return that.sinceId==1?"":"&since_id="+that.sinceId+"&refresh=true"}if(this._isProfileWidget)this.url=this._base+"&callback="+this._cb+"&include_rts=true"+"&count="+this.rpp+showSince()+"&clientsource="+this.source;else if(this._isFavsWidget||this._isListWidget)this.url=this._base+this.format+"?callback="+this._cb+showSince()+"&include_rts=true"+"&clientsource="+this.source;else{this.url=
this._base+this.format+"?q="+this.search+"&include_rts=true"+"&callback="+this._cb+"&rpp="+this.rpp+showSince()+"&clientsource="+this.source;if(!this.runOnce)this.url+="&result_type=mixed"}this.url+=cacheBust();return this},_getRGB:function(hex){return hex_rgb(hex.substring(1,7))},setTheme:function(o,important){var that=this;var imp=" !important";var onCreator=window.location.hostname.match(/twitter\.com/)&&window.location.pathname.match(/goodies/);if(important||onCreator)imp="";this.theme={shell:{background:function(){return o.shell.background||
that._getDefaultTheme().shell.background}(),color:function(){return o.shell.color||that._getDefaultTheme().shell.color}()},tweets:{background:function(){return o.tweets.background||that._getDefaultTheme().tweets.background}(),color:function(){return o.tweets.color||that._getDefaultTheme().tweets.color}(),links:function(){return o.tweets.links||that._getDefaultTheme().tweets.links}()}};var style="#"+this.id+" .twtr-doc,                      #"+this.id+" .twtr-hd a,                      #"+this.id+
" h3,                      #"+this.id+" h4,                      #"+this.id+" .twtr-popular {            background-color: "+this.theme.shell.background+imp+";            color: "+this.theme.shell.color+imp+";          }          #"+this.id+" .twtr-popular {            color: "+this.theme.tweets.color+imp+";            background-color: rgba("+this._getRGB(this.theme.shell.background)+", .3)"+imp+";          }          #"+this.id+" .twtr-tweet a {            color: "+this.theme.tweets.links+imp+";          }          #"+
this.id+" .twtr-bd, #"+this.id+" .twtr-timeline i a,           #"+this.id+" .twtr-bd p {            color: "+this.theme.tweets.color+imp+";          }          #"+this.id+" .twtr-new-results,           #"+this.id+" .twtr-results-inner,           #"+this.id+" .twtr-timeline {            background: "+this.theme.tweets.background+imp+";          }";if(browser.ie)style+="#"+this.id+" .twtr-tweet { background: "+this.theme.tweets.background+imp+"; }";twttr.css(style);return this},byClass:function(c,tag,
opt_all){var collection=getByClass(c,tag,byId(this.id));return opt_all?collection:collection[0]},render:function(){var that=this;if(!TWTR.Widget.hasLoadedStyleSheet){window.setTimeout(function(){that.render.call(that)},50);return this}this.setTheme(this.theme,this._isCreator);if(this._isProfileWidget)classes.add(this.widgetEl,"twtr-widget-profile");if(this._isScroll)classes.add(this.widgetEl,"twtr-scroll");if(!this._isLive&&!this._isScroll)this.wh[1]="auto";if(this._isSearchWidget&&this._isFullScreen)document.title=
"Twitter search: "+escape(this.searchString);this.widgetEl.innerHTML=this._getWidgetHtml();var timeline=this.byClass("twtr-timeline","div");if(this._isLive&&!this._isFullScreen){var over=function(e){if(that._behavior==="all")return;if(withinElement.call(this,e))that.pause.call(that)};var out=function(e){if(that._behavior==="all")return;if(withinElement.call(this,e))that.resume.call(that)};this.removeEvents=function(){events.remove(timeline,"mouseover",over);events.remove(timeline,"mouseout",out)};
events.add(timeline,"mouseover",over);events.add(timeline,"mouseout",out)}this._rendered=true;this._ready();return this},removeEvents:function(){},_getDefaultTheme:function(){return{shell:{background:"#8ec1da",color:"#ffffff"},tweets:{background:"#ffffff",color:"#444444",links:"#1985b5"}}},_getWidgetHtml:function(){var that=this;function getHeader(){if(that._isProfileWidget)return'<a target="_blank" href="http://twitter.com/" class="twtr-profile-img-anchor"><img alt="profile" class="twtr-profile-img" src="'+
defaultAvatar+'"></a>                      <h3></h3>                      <h4></h4>';else return"<h3>"+that.title+"</h3><h4>"+that.subject+"</h4>"}function isFull(){return that._isFullScreen?" twtr-fullscreen":""}var logo=isHttps?"https://twitter-widgets.s3.amazonaws.com/i/widget-logo.png":"http://widgets.twimg.com/i/widget-logo.png";if(this._isFullScreen)logo="https://twitter-widgets.s3.amazonaws.com/i/widget-logo-fullscreen.png";var html='<div class="twtr-doc'+isFull()+'" style="width: '+this.wh[0]+
';">            <div class="twtr-hd">'+getHeader()+'             </div>            <div class="twtr-bd">              <div class="twtr-timeline" style="height: '+this.wh[1]+';">                <div class="twtr-tweets">                  <div class="twtr-reference-tweet"></div>                  <\!-- tweets show here --\>                </div>              </div>            </div>            <div class="twtr-ft">              <div><a target="_blank" href="http://twitter.com"><img alt="" src="'+logo+
'"></a>                <span><a target="_blank" class="twtr-join-conv" style="color:'+this.theme.shell.color+'" href="http://twitter.com/'+this._getWidgetPath()+'">'+this.footerText+"</a></span>              </div>            </div>          </div>";return html},_appendTweet:function(el){this._insertNewResultsNumber();insertAfter(el,this.byClass("twtr-reference-tweet","div"));return this},_slide:function(el){var that=this;var height=getFirst(el).offsetHeight;if(this.runOnce)(new Animate(el,"height",
{from:0,to:height,time:500,callback:function(){that._fade.call(that,el)}})).start();return this},_fade:function(el){var that=this;if(Animate.canTransition){el.style.webkitTransition="opacity 0.5s ease-out";el.style.opacity=1;return this}(new Animate(el,"opacity",{from:0,to:1,time:500})).start();return this},_chop:function(){if(this._isScroll)return this;var tweets=this.byClass("twtr-tweet","div",true);var resultUpdates=this.byClass("twtr-new-results","div",true);if(tweets.length){for(var i=tweets.length-
1;i>=0;i--){var tweet=tweets[i];var top=parseInt(tweet.offsetTop);if(top>parseInt(this.wh[1]))removeElement(tweet);else break}if(resultUpdates.length>0){var result=resultUpdates[resultUpdates.length-1];var resultTop=parseInt(result.offsetTop);if(resultTop>parseInt(this.wh[1]))removeElement(result)}}return this},_appendSlideFade:function(opt_element){var el=opt_element||this.tweet.element;this._chop()._appendTweet(el)._slide(el);return this},_createTweet:function(o){o.timestamp=o.created_at;o.created_at=
this._isRelativeTime?timeAgo(o.created_at):absoluteTime(o.created_at);this.tweet=new Tweet(o);if(this._isLive&&this.runOnce){this.tweet.element.style.opacity=0;this.tweet.element.style.filter="alpha(opacity:0)";this.tweet.element.style.height="0"}return this},_getResults:function(){var that=this;this.timesRequested++;this.jsonRequestRunning=true;this.jsonRequestTimer=window.setTimeout(function(){if(that.jsonRequestRunning){clearTimeout(that.jsonRequestTimer);that.jsonRequestTimer=null}that.jsonRequestRunning=
false;removeElement(that.scriptElement);that.newResults=false;that.decay()},this.jsonMaxRequestTimeOut);TWTR.Widget.jsonP(that.url,function(script){that.scriptElement=script})},clear:function(){var tweets=this.byClass("twtr-tweet","div",true);var results=this.byClass("twtr-new-results","div",true);tweets=tweets.concat(results);each(tweets,function(el){removeElement(el)});return this},_sortByMagic:function(results){var that=this;if(this._tweetFilter){if(this._tweetFilter.negatives)results=results.filter(function(el){if(!that._tweetFilter.negatives.test(el.text))return el});
if(this._tweetFilter.positives)results=results.filter(function(el){if(that._tweetFilter.positives.test(el.text))return el})}switch(this._behavior){case "all":this._sortByLatest(results);break;case "preloaded":default:this._sortByDefault(results);break}if(this._isLive&&this._behavior!=="all"){this.intervalJob.set(this.results);this.intervalJob.start()}return this},_loadTopTweetsAtTop:function(results){var regular=[],popular=[],arr=[];each(results,function(el){if(el.metadata&&el.metadata.result_type&&
el.metadata.result_type=="popular")popular.push(el);else regular.push(el)});var result=popular.concat(regular);return result},_sortByLatest:function(results){this.results=results;this.results=this.results.slice(0,this.rpp);this.results=this._loadTopTweetsAtTop(this.results);this.results.reverse();return this},_sortByDefault:function(results){var that=this;var getDater=function(dateString){return(new Date(dateString)).getTime()};this.results.unshift.apply(this.results,results);each(this.results,function(el){if(!el.views)el.views=
0});this.results.sort(function(a,b){if(getDater(a.created_at)>getDater(b.created_at))return-1;else if(getDater(a.created_at)<getDater(b.created_at))return 1;else return 0});this.results=this.results.slice(0,this.rpp);this.results=this._loadTopTweetsAtTop(this.results);var foo=this.results;this.results=this.results.sort(function(a,b){if(a.views<b.views)return-1;else if(a.views>b.views)return 1;return 0});if(!this._isLive)this.results.reverse()},_prePlay:function(resp){if(this.jsonRequestTimer){clearTimeout(this.jsonRequestTimer);
this.jsonRequestTimer=null}if(!browser.ie)removeElement(this.scriptElement);if(resp.error)this.newResults=false;else if(resp.results&&resp.results.length>0){this.response=resp;this.newResults=true;this.sinceId=resp.max_id_str;this._sortByMagic(resp.results);if(this.isRunning())this._play()}else if((this._isProfileWidget||this._isFavsWidget||this._isListWidget)&&is.array(resp)&&resp.length){this.newResults=true;if(!this._profileImage&&this._isProfileWidget){var name=resp[0].user.screen_name;this.setProfileImage(resp[0].user.profile_image_url);
this.setTitle(resp[0].user.name);this.setCaption('<a target="_blank" href="http://twitter.com/'+name+'">'+name+"</a>")}this.sinceId=resp[0].id_str;this._sortByMagic(resp);if(this.isRunning())this._play()}else this.newResults=false;this._setUrl();if(this._isLive)this.decay()},_play:function(){var that=this;if(this.runOnce)this._hasNewSearchResults=true;if(this._avatars)this._preloadImages(this.results);if(this._isRelativeTime&&(this._behavior=="all"||this._behavior=="preloaded"))each(this.byClass("twtr-timestamp",
"a",true),function(el){el.innerHTML=timeAgo(el.getAttribute("time"))});if(!this._isLive||this._behavior=="all"||this._behavior=="preloaded"){each(this.results,function(needle){if(needle.retweeted_status)needle=needle.retweeted_status;if(that._isProfileWidget){needle.from_user=needle.user.screen_name;needle.profile_image_url=needle.user.profile_image_url}if(that._isFavsWidget||that._isListWidget){needle.from_user=needle.user.screen_name;needle.profile_image_url=needle.user.profile_image_url}needle.id=
needle.id_str;that._createTweet({id:needle.id,user:needle.from_user,tweet:ify.clean(needle.text),avatar:needle.profile_image_url,created_at:needle.created_at,needle:needle});var el=that.tweet.element;that._behavior=="all"?that._appendSlideFade(el):that._appendTweet(el)});if(this._behavior!="preloaded")return this}return this},_normalizeTweet:function(needle){var that=this;needle.views++;if(this._isProfileWidget){needle.from_user=that.username;needle.profile_image_url=needle.user.profile_image_url}if(this._isFavsWidget||
this._isListWidget){needle.from_user=needle.user.screen_name;needle.profile_image_url=needle.user.profile_image_url}if(this._isFullScreen)needle.profile_image_url=needle.profile_image_url.replace(/_normal\./,"_bigger.");this._createTweet({id:needle.id,user:needle.from_user,tweet:ify.clean(needle.text),avatar:needle.profile_image_url,created_at:needle.created_at,needle:needle})._appendSlideFade()},_insertNewResultsNumber:function(){if(!this._hasNewSearchResults){this._hasNewSearchResults=false;return}if(this.runOnce&&
this._isSearchWidget){var newResultsTotal=this.response.total>this.rpp?this.response.total:this.response.results.length;var plural=newResultsTotal>1?"s":"";var moreThan=this.response.warning&&this.response.warning.match(/adjusted since_id/)?"more than":"";var el=document.createElement("div");classes.add(el,"twtr-new-results");el.innerHTML='<div class="twtr-results-inner"> &nbsp; </div>'+'<div class="twtr-results-hr"> &nbsp; </div><span>'+moreThan+" <strong>"+newResultsTotal+"</strong> new tweet"+
plural+"</span>";insertAfter(el,this.byClass("twtr-reference-tweet","div"));this._hasNewSearchResults=false}},_preloadImages:function(results){if(this._isProfileWidget||this._isFavsWidget||this._isListWidget)each(results,function(el){var img=new Image;img.src=matchUrlScheme(el.user.profile_image_url)});else each(results,function(el){(new Image).src=matchUrlScheme(el.profile_image_url)})},_decayDecider:function(){var r=false;if(!this.runOnce){this.runOnce=true;r=true}else if(this.newResults)r=true;
return r},start:function(){var that=this;if(!this._rendered){setTimeout(function(){that.start.call(that)},50);return this}if(!this._isLive)this._getResults();else this.occasionalJob.start();this._isRunning=true;this._hasOfficiallyStarted=true;return this},stop:function(){this.occasionalJob.stop();if(this.intervalJob)this.intervalJob.stop();this._isRunning=false;return this},pause:function(){if(this.isRunning()&&this.intervalJob){this.intervalJob.stop();classes.add(this.widgetEl,"twtr-paused");this._isRunning=
false}if(this._resumeTimer){clearTimeout(this._resumeTimer);this._resumeTimer=null}return this},resume:function(){var that=this;if(!this.isRunning()&&this._hasOfficiallyStarted&&this.intervalJob)this._resumeTimer=window.setTimeout(function(){that.intervalJob.start();that._isRunning=true;classes.remove(that.widgetEl,"twtr-paused")},2E3);return this},isRunning:function(){return this._isRunning},destroy:function(){this.stop();this.clear();this.runOnce=false;this._hasOfficiallyStarted=false;this._profileImage=
false;this._isLive=true;this._tweetFilter=false;this._isScroll=false;this.newResults=false;this._isRunning=false;this.sinceId=1;this.results=[];this.showedResults=[];this.occasionalJob.destroy();if(this.jsonRequestRunning)clearTimeout(this.jsonRequestTimer);classes.remove(this.widgetEl,"twtr-scroll");this.removeEvents();return this}}}()})()})();
var msoNewsSlider=Class.create({template:new Template("<div class='more'><a href='#{label}' class='read'>Read the whole article</a></div><div class='news_snip'><h2>#{title}</h2><p>#{preview}</p></div>"),json:null,preview_length:155,initialize:function(container,json){Object.extend(this,logException);this.__log("mso.NewsSlider","initialize");try{this.json=json;this.container=$(container);this.container.insert('<div class="content"><a href="#" id="news_refresh" style="line-height:270px;padding-left:180px">-refresh-</a></div>');
this.content=this.container.down("div.content");this.container.insert('<div class="navigator"></div>');this.navigator=this.container.down("div.navigator");$("news_refresh").on("click",function(e){e.stop();this.Show(1)}.bindAsEventListener(this));Event.on(this.container,"click",function(e){var elm=e.findElement("a.read");if(elm==undefined)return;e.stop();Event.fire(this.container,"news:read_article",this.json.result.row[this.index].Content)}.bind(this));var buttonContainer=new Element("div",{"class":"buttons"});
var a_prev=new Element("a",{"id":"nav_slider_prev","href":"#","class":"prev"});a_prev.insert('<img src="/Resources/Library.Images/transparent.gif"/>');a_prev.observe("mouseenter",function(){a_prev.down().addClassName("hover")});a_prev.observe("mouseleave",function(){a_prev.down().removeClassName("hover")});var a_next=new Element("a",{"id":"nav_slider_next","href":"#","class":"next"});a_next.observe("mouseenter",function(){a_next.down().addClassName("hover")});a_next.observe("mouseleave",function(){a_next.down().removeClassName("hover")});
var img=new Element("img",{"src":"/Resources/Library.Images/transparent.gif"});a_next.insert(img);buttonContainer.insert(a_prev);buttonContainer.insert(a_next);this.navigator.insert(buttonContainer);$R(1,8,true).each(function(x){var index=x-1;var a=(new Element("a",{"href":"#","index":index,"class":"item"})).update(x);var cssclass="items item_"+x;var div=(new Element("div",{"class":cssclass})).update(a);this.navigator.insert(div)}.bind(this));this.navigator.observe("click",this.__navigate.bindAsEventListener(this));
this.index=0;Event.fire.defer(this.content,"load:newsslider_loaded",null,true)}catch(e){this.__logException("mso.NewsSlider","initialize",exception)}},Next:function(){this.__log("mso.NewsSlider","Next");try{var index=this.index+1;if(index>=this.json.result.row.length)index=this.index;this.Show(index)}catch(exception){this.__logException("mso.NewsSlider","Next",exception)}},Previous:function(){this.__log("mso.NewsSlider","Previous");try{this.index-=1;if(this.index<0)this.index=0;this.Show(this.index)}catch(exception){this.__logException("mso.NewsSlider",
"Previous",exception)}},Item:function(index){this.__log("mso.NewsSlider","Item");try{var index=this.index-1;if(index<0)index=0;this.Show(index)}catch(exception){this.__logException("mso.NewsSlider","Item",exception)}},Show:function(index){this.__log("mso.NewsSlider","Show");try{if(index==undefined)index=0;var args={"title":"-invalid-","preview":"-invalid-","label":"-invalid-"};var title=null;if(index+1>this.json.result.row.size())index=this.json.result.row.size()-1;this.index=index;this.__log("this",
"this",index);args.label=this.json.result.row[index].Label;var subject=this.json.result.row[index].Content;subject=subject.replace(/[\n\r]/img,"");var myregexp=/<h1>(.+)<\/h1>(.+)/im;var match=myregexp.exec(subject);args.title=match[1];args.preview=match[2].replace(/<\/?[a-z][a-z0-9]*[^<>]*>|<\!--[\s\S]*?--\>|\n|\r/ig," ");var len=args.preview.length<this.preview_length?args.preview.length:this.preview_length;args.preview=args.preview.substring(0,len);if(len>=this.preview_length)args.preview+=" ...";
this.__setSelected();var cont=this.template.evaluate(args);this.content.update();var imgs=subject.match(/<img.src="([a-z0-9\-._~%!$&'()*+,;=:@\/]*)"/im);if(imgs!=null){var img=/<img.src="([a-z0-9\-._~%!$&'()*+,;=:@\/]*)"/im.exec(imgs[0]);var div=new Element("div");div.setStyle({"background":"transparent url('"+img[1]+"') no-repeat 0 0","width":"460px","height":"219px"});this.content.insert(div);this.content.insert(cont)}Cufon.replace(this.content.select("h2"),{fontFamily:"Helvetica Neue LT Std bd cd"});
_msoC.showLayer(this.content)}catch(exception){this.__logException("mso.NewsSlider","Show",exception)}},__navigate:function(e){this.__log("mso.NewsSlider","__navigate");try{e.stop();var elm=e.element();if(elm.hasClassName("item")){elm.blur();var index=Number(elm.readAttribute("index"));this.Show(index)}else{if(elm.type==undefined)elm=elm.up();elm.blur();if(elm.identify()=="nav_slider_next")this.Next();else this.Previous()}}catch(exception){this.__logException("mso.NewsSlider","__navigate",exception)}},
__setSelected:function(){this.__log("mso.NewsSlider","__setSelected");try{var divs=this.navigator.select("div.items");divs.invoke("removeClassName","selected");divs[this.index].addClassName("selected")}catch(exception){this.__logException("mso.NewsSlider","__setSelected",exception)}}});
var rssNews=Class.create({rss:null,rssNewsHandler:"/RSSNews.aspx",displayCount:4,template:new Template("<div data-index='#{itt}' class='items item_#{itt}'><h2><a href='#{link}' target='_blank'>#{title}</a></h2><p><span class='datetime'>#{pubDate}</span></p></div>"),initialize:function(layer){Object.extend(this,logException);this.__log("rssNews","initialize");try{this.layer=$(layer);Event.fire(this.layer,"load:rssnews_loaded")}catch(exception){this.__logException("rssNews","initialize",exception)}},
getNews:function(rssquery){this.__log("rssNews","getNews");try{var qobj={"rssquery":rssquery};new Ajax.Request(this.rssNewsHandler,{parameters:qobj,method:"GET",onComplete:function(response){this.handleRssNews(response)}.bind(this)})}catch(exception){this.__logException("rssNews","getNews",exception)}},handleRssNews:function(response){this.__log("rssNews","handleRssNews");try{this.rss=response.responseJSON.rss;this.Draw(0,this.displayCount);this.index=0}catch(exception){this.__logException("rssNews",
"handleRssNews",exception)}},Draw:function(indexfrom,indexto){this.__log("rssNews","Draw");try{this.layer.select("div.items").each(function(item){item.stopObserving("click",this.ShowDescription.bindAsEventListener(this));item.remove()}.bind(this));this.rss.channel.item.each(function(item,itt){var item2=Object.extend(item,{"itt":itt});if(itt>=indexfrom&&itt<=indexto){this.layer.insert(this.template.evaluate(item2));var itemclass="div.item_"+itt;var newitem=this.layer.down(itemclass);newitem.observe("click",
this.ShowDescription.bindAsEventListener(this))}}.bind(this));this.layer.appear();var a=this.layer.up().select("a.dynamic");a.invoke("show")}catch(exception){this.__logException("rssNews","Draw",exception)}},ShowDescription:function(e){this.__log("rssNews","ShowDescription");try{e.stop();var elm=e.element();if(elm.readAttribute("data-index")==null)elm=elm.up("div.items");var index=elm.readAttribute("data-index");var descindex="desc_"+index;if($(descindex)!=null)return;var divid="desc_"+index;var masklayer=
new Element("div");masklayer.setStyle({"position":"absolute","zIndex":"400","background":"#601819","overflow":"hidden"});var container=new Element("div",{"id":divid});container.setStyle({"position":"absolute","zIndex":100,"padding":"5px","overflow":"auto","overflow-x":"hidden","backgroundColor":"#601819"});var dimensions=$("rss_news").getDimensions();var offsetleft=dimensions.width;var offsettop=40;var offsetheight=dimensions.height-offsettop;document.body.appendChild(masklayer);document.body.appendChild(container);
container.clonePosition("rss_news",{"offsetLeft":-offsetleft,"offsetTop":offsettop});masklayer.clonePosition("rss_news",{"offsetLeft":-offsetleft,"offsetTop":offsettop});container.setStyle({height:offsetheight-3+"px",width:dimensions.width-4+"px"});container.insert(this.rss.channel.item[index].description);container.select("a").invoke("writeAttribute","target","_blank");new Effect.Move(container,{x:offsetleft+9});container.observe("click",function(){container.stopObserving("click");container.remove();
masklayer.remove()})}catch(exception){this.__logException("rssNews","ShowDescription",exception)}},Next:function(e){this.__log("rssNews","Next");try{e.stop();this.index+=1;if(this.index>this.rss.channel.item.size()-1)this.index-=1;this.Draw(this.index,this.index+this.displayCount)}catch(exception){this.__logException("rssNews","Next",exception)}},Previous:function(e){this.__log("rssNews","Previous");try{e.stop();this.index-=1;if(this.index<0)this.index=0;this.Draw(this.index,this.index+this.displayCount)}catch(exception){this.__logException("rssNews",
"Previous",exception)}}});var default_load_count=0;var pageContent=null;var _msoBanners=null;var _newsSlider=null;var _rss=null;var titles={"profiles":"Profile","honors":"Honors","news":"News"};
function defaultInit(){logException.__log("default.js","defaultInit");try{if(default_load_count>100){throw"Problem loading default.js";return}if(_msoNews==null){default_load_count++;defaultInit.bind(this).defer();return}_msoNews.PageContent({PageName:"MSO News"});_msoNews.PageContent({PageName:"/default.asp"});Event.on("news","news:read_article",readNewsArticle.bindAsEventListener());Event.on("main_nav","click",main_navClick.bindAsEventListener());Event.on($("page_content").down("a"),"click",page_contentCloseClick.bindAsEventListener());
document.observe("objects:loaded",objectsLoaded);document.observe("load:rssnews_loaded",objectsLoading.bindAsEventListener());document.observe("load:newsslider_loaded",objectsLoading.bindAsEventListener());document.observe("load:pageContent_loaded",objectsLoading.bindAsEventListener());document.observe("PageContentQuery:PageContent",function(response){var json=response["memo"]["Json"];if(json["parameters"]["PageName"]=="MSO News")_newsSlider=new msoNewsSlider("news",response["memo"]["Json"]);else{pageContent=
json;Event.fire.defer(document,"load:pageContent_loaded")}});_rss=new rssNews($("rss_news").down("div.content"));_rss.getNews("usa gymnastics");$("temp_next_news").observe("click",_rss.Next.bindAsEventListener(_rss));$("temp_prev_news").observe("click",_rss.Previous.bindAsEventListener(_rss));var bannerArgs=typBannerArgs;Object.extend(bannerArgs,{"extend":{"height":"220px"}});_msoBanner=new msoBanners("poway",$("top_transition").down("div.banner_container"),bannerArgs)}catch(exception){logException.__logException("default.js",
"defaultInit",exception)}}
function main_navClick(e){logException.__log("default.js","main_navClick");try{var elm=e.findElement("a");if(elm==undefined){e.stop();return}if(elm.readAttribute("href").startsWith("/#")){e.stop();if(elm.readAttribute("href").startsWith("/#news.")){var hash=elm.readAttribute("href").substr(6);alert(hash)}else{var hash=elm.readAttribute("href").substr(2);if(pageContentHasContent(hash)){location.hash=hash;_msoC.page.hash=hash;showPageContent(hash)}}}else return}catch(exception){logException.__logException("default.js","main_navClick",
exception)}}var objectContainers=[];var objectLoadingCount=0;var objectLoadingTimer=null;var objects_loaded=false;
function objectsLoading(e){logException.__log("default.js","objectsLoading");try{if(objects_loaded){if(objectLoadingTimer!=null)clearTimeout(objectLoadingTimer);return}objectLoadingCount++;if(e){var elm=e.findElement();if(elm)objectContainers.push(elm)}if(pageContent==null||_newsSlider==null||_rss==null){if(objectLoadingTimer!=null)clearTimeout(objectLoadingTimer);if(objectLoadingCount>100)throw"Failed to load objects in objectLoading of default.js";objectLoadingTimer=objectsLoading.delay(0.1,null);
return}if(objectLoadingTimer!=null)clearTimeout(objectLoadingTimer);objects_loaded=true;document.fire("objects:loaded")}catch(exception){logException.__logException("default.js","objectsLoading",exception)}}
function objectsLoaded(){logException.__log("default.js","objectsLoaded");try{if(_msoC.page.hash!=null)if(pageContentHasContent(_msoC.page.hash))showPageContent(_msoC.page.hash);else objectContainers.each(function(obj){_msoC.showLayer(obj)});else{objectContainers.each(function(obj){_msoC.showLayer(obj)});_newsSlider.Show()}}catch(exception){logException.__logException("default.js","objectsLoaded",exception)}}
function pageContentHasContent(label){logException.__log("default.js","pageContentHasContent");try{if(pageContent==null)return false;var content=pageContent.result.row.find(function(c){return c.Label==label});return content!=null}catch(exception){logException.__logException("default.js","pageContentHasContent",exception)}}
function readNewsArticle(e){logException.__log("default.js","readNewsArticle");try{$("page_content").down("h1.heading").update("MSO NEWS");$("page_content").down("div.content").update(e.memo);$$("div.dynamic").invoke("hide");_msoC.showLayer($("page_content"));_msoC.helveticaLT($("page_content").select("h1"));_msoC.helveticaLT($("page_content").select("h2"))}catch(exception){logException.__logException("default.js","readNewsArticle",exception)}}
function showPageContent(label){logException.__log("default.js","showPageContent");try{if(pageContent==null)return false;var content=pageContent.result.row.find(function(c){return c.Label==label});$("page_content").down("h1.heading").update(titles[label]);$("page_content").down("div.content").update(content.Content);$$("div.dynamic").invoke("hide");_msoC.showLayer($("page_content"));_msoC.helveticaLT($("page_content").select("h1"));_msoC.helveticaLT($("page_content").select("h2"))}catch(exception){logException.__logException("default.js",
"showPageContent",exception)}}function page_contentCloseClick(e){logException.__log("default.js","page_contentCloseClick");try{e.stop();location.hash="";_msoC.page.hash="";hidePageContent()}catch(exception){logException.__logException("default.js","page_contentCloseClick",exception)}}
function hidePageContent(){logException.__log("default.js","hidePageContent");try{$("page_content").down("h1.heading").update();$("page_content").down("div.content").update();$$("div.dynamic").invoke("show");$("page_content").hide()}catch(exception){logException.__logException("default.js","hidePageContent",exception)}}
document.observe("dom:loaded",function(){logException.__log("default.js","dom:loaded");try{objectContainers.push($("twitter"));defaultInit()}catch(exception){logException.__logException("default.js","dom:loaded",exception)}});
