(function($) {
    $.fn.tipsy = function(options) {

        options = $.extend({}, $.fn.tipsy.defaults, options);
        
        return this.each(function() {
            
            var opts = $.fn.tipsy.elementOptions(this, options);
            
            $(this).hover(function() {

                $.data(this, 'cancel.tipsy', true);

                var tip = $.data(this, 'active.tipsy');
                if (!tip) {
                    tip = $('<div class="tipsy"><div class="tipsy-inner"/></div>');
                    tip.css({position: 'absolute', zIndex: 100000});
                    $.data(this, 'active.tipsy', tip);
                }

                if ($(this).attr('title') || typeof($(this).attr('original-title')) != 'string') {
                    $(this).attr('original-title', $(this).attr('title') || '').removeAttr('title');
                }

                var title;
                if (typeof opts.title == 'string') {
                    title = $(this).attr(opts.title == 'title' ? 'original-title' : opts.title);
                } else if (typeof opts.title == 'function') {
                    title = opts.title.call(this);
                }

                tip.find('.tipsy-inner')[opts.html ? 'html' : 'text'](title || opts.fallback);

                var pos = $.extend({}, $(this).offset(), {width: this.offsetWidth, height: this.offsetHeight});
                tip.get(0).className = 'tipsy'; // reset classname in case of dynamic gravity
                tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).appendTo(document.body);
                var actualWidth = tip[0].offsetWidth, actualHeight = tip[0].offsetHeight;
                var gravity = (typeof opts.gravity == 'function') ? opts.gravity.call(this) : opts.gravity;

                switch (gravity.charAt(0)) {
                    case 'n':
                        tip.css({top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-north');
                        break;
                    case 's':
                        tip.css({top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}).addClass('tipsy-south');
                        break;
                    case 'e':
                        tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}).addClass('tipsy-east');
                        break;
                    case 'w':
                        tip.css({top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}).addClass('tipsy-west');
                        break;
                }

                if (opts.fade) {
                    tip.css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: 0.8});
                } else {
                    tip.css({visibility: 'visible'});
                }

            }, function() {
                $.data(this, 'cancel.tipsy', false);
                var self = this;
                setTimeout(function() {
                    if ($.data(this, 'cancel.tipsy')) return;
                    var tip = $.data(self, 'active.tipsy');
                    if (opts.fade) {
                        tip.stop().fadeOut(function() { $(this).remove(); });
                    } else {
                        tip.remove();
                    }
                }, 100);

            });
            
        });
        
    };
    
    // Overwrite this method to provide options on a per-element basis.
    // For example, you could store the gravity in a 'tipsy-gravity' attribute:
    // return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
    // (remember - do not modify 'options' in place!)
    $.fn.tipsy.elementOptions = function(ele, options) {
        return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
    };
    
    $.fn.tipsy.defaults = {
        fade: false,
        fallback: '',
        gravity: 'n',
        html: false,
        title: 'title'
    };
    
    $.fn.tipsy.autoNS = function() {
        return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
    };
    
    $.fn.tipsy.autoWE = function() {
        return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
    };
    
})(jQuery);;
// ColorBox v1.3.16 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
// Copyright (c) 2011 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(a,b,c){function ba(b){if(!T){O=b,Z(a.extend(J,a.data(O,e))),x=a(O),P=0,J.rel!=="nofollow"&&(x=a("."+V).filter(function(){var b=a.data(this,e).rel||this.rel;return b===J.rel}),P=x.index(O),P===-1&&(x=x.add(O),P=x.length-1));if(!R){R=S=!0,q.show();if(J.returnFocus)try{O.blur(),a(O).one(k,function(){try{this.focus()}catch(a){}})}catch(c){}p.css({opacity:+J.opacity,cursor:J.overlayClose?"pointer":"auto"}).show(),J.w=X(J.initialWidth,"x"),J.h=X(J.initialHeight,"y"),U.position(0),n&&y.bind("resize."+o+" scroll."+o,function(){p.css({width:y.width(),height:y.height(),top:y.scrollTop(),left:y.scrollLeft()})}).trigger("resize."+o),$(g,J.onOpen),I.add(C).hide(),H.html(J.close).show()}U.load(!0)}}function _(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;J.slideshow&&x[1]&&(d=function(){E.text(J.slideshowStop).unbind(c).bind(i,function(){if(P<x.length-1||J.loop)a=setTimeout(U.next,J.slideshowSpeed)}).bind(h,function(){clearTimeout(a)}).one(c+" "+j,e),q.removeClass(b+"off").addClass(b+"on"),a=setTimeout(U.next,J.slideshowSpeed)},e=function(){clearTimeout(a),E.text(J.slideshowStart).unbind([i,h,j,c].join(" ")).one(c,d),q.removeClass(b+"on").addClass(b+"off")},J.slideshowAuto?d():e())}function $(b,c){c&&c.call(O),a.event.trigger(b)}function Z(b){for(var c in b)a.isFunction(b[c])&&c.substring(0,2)!=="on"&&(b[c]=b[c].call(O));b.rel=b.rel||O.rel||"nofollow",b.href=a.trim(b.href||a(O).attr("href")),b.title=b.title||O.title}function Y(a){return J.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(a)}function X(a,b){b=b==="x"?y.width():y.height();return typeof a=="string"?Math.round(/%/.test(a)?b/100*parseInt(a,10):parseInt(a,10)):a}function W(c,d){var e=b.createElement("div");e.id=c?f+c:!1,e.style.cssText=d||!1;return a(e)}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0},e="colorbox",f="cbox",g=f+"_open",h=f+"_load",i=f+"_complete",j=f+"_cleanup",k=f+"_closed",l=f+"_purge",m=a.browser.msie&&!a.support.opacity,n=m&&a.browser.version<7,o=f+"_IE6",p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J={},K,L,M,N,O,P,Q,R,S,T=!1,U,V=f+"Element";U=a.fn[e]=a[e]=function(b,c){var f=this,g;if(!f[0]&&f.selector)return f;b=b||{},c&&(b.onComplete=c);if(!f[0]||f.selector===undefined)f=a("<a/>"),b.open=!0;f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b)),a(this).addClass(V)}),g=b.open,a.isFunction(g)&&(g=g.call(f)),g&&ba(f[0]);return f},U.init=function(){y=a(c),q=W().attr({id:e,"class":m?f+(n?"IE6":"IE"):""}),p=W("Overlay",n?"position:absolute":"").hide(),r=W("Wrapper"),s=W("Content").append(z=W("LoadedContent","width:0; height:0; overflow:hidden"),B=W("LoadingOverlay").add(W("LoadingGraphic")),C=W("Title"),D=W("Current"),F=W("Next"),G=W("Previous"),E=W("Slideshow").bind(g,_),H=W("Close")),r.append(W().append(W("TopLeft"),t=W("TopCenter"),W("TopRight")),W(!1,"clear:left").append(u=W("MiddleLeft"),s,v=W("MiddleRight")),W(!1,"clear:left").append(W("BottomLeft"),w=W("BottomCenter"),W("BottomRight"))).children().children().css({"float":"left"}),A=W(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),a("body").prepend(p,q.append(r,A)),s.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover"),K=t.height()+w.height()+s.outerHeight(!0)-s.height(),L=u.width()+v.width()+s.outerWidth(!0)-s.width(),M=z.outerHeight(!0),N=z.outerWidth(!0),q.css({"padding-bottom":K,"padding-right":L}).hide(),F.click(function(){U.next()}),G.click(function(){U.prev()}),H.click(function(){U.close()}),I=F.add(G).add(D).add(E),s.children().removeClass("hover"),a("."+V).live("click",function(a){a.button!==0&&typeof a.button!="undefined"||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),ba(this))}),p.click(function(){J.overlayClose&&U.close()}),a(b).bind("keydown",function(a){R&&J.escKey&&a.keyCode===27&&(a.preventDefault(),U.close()),R&&J.arrowKey&&!S&&x[1]&&(a.keyCode===37&&(P||J.loop)?(a.preventDefault(),G.click()):a.keyCode===39&&(P<x.length-1||J.loop)&&(a.preventDefault(),F.click()))})},U.remove=function(){q.add(p).remove(),a("."+V).die("click").removeData(e).removeClass(V)},U.position=function(a,c){function g(a){t[0].style.width=w[0].style.width=s[0].style.width=a.style.width,B[0].style.height=B[1].style.height=s[0].style.height=u[0].style.height=v[0].style.height=a.style.height}var d,e=Math.max(b.documentElement.clientHeight-J.h-M-K,0)/2+y.scrollTop(),f=Math.max(y.width()-J.w-N-L,0)/2+y.scrollLeft();d=q.width()===J.w+N&&q.height()===J.h+M?0:a,r[0].style.width=r[0].style.height="9999px",q.dequeue().animate({width:J.w+N,height:J.h+M,top:e,left:f},{duration:d,complete:function(){g(this),S=!1,r[0].style.width=J.w+N+L+"px",r[0].style.height=J.h+M+K+"px",c&&c()},step:function(){g(this)}})},U.resize=function(a){if(R){a=a||{},a.width&&(J.w=X(a.width,"x")-N-L),a.innerWidth&&(J.w=X(a.innerWidth,"x")),z.css({width:J.w}),a.height&&(J.h=X(a.height,"y")-M-K),a.innerHeight&&(J.h=X(a.innerHeight,"y"));if(!a.innerHeight&&!a.height){var b=z.wrapInner("<div style='overflow:auto'></div>").children();J.h=b.height(),b.replaceWith(b.children())}z.css({height:J.h}),U.position(J.transition==="none"?0:J.speed)}},U.prep=function(b){function h(b){U.position(b,function(){var b,d,g,h,j=x.length,k,n;!R||(n=function(){B.hide(),$(i,J.onComplete)},m&&Q&&z.fadeIn(100),C.html(J.title).add(z).show(),j>1?(typeof J.current=="string"&&D.html(J.current.replace(/\{current\}/,P+1).replace(/\{total\}/,j)).show(),F[J.loop||P<j-1?"show":"hide"]().html(J.next),G[J.loop||P?"show":"hide"]().html(J.previous),b=P?x[P-1]:x[j-1],g=P<j-1?x[P+1]:x[0],J.slideshow&&E.show(),J.preloading&&(h=a.data(g,e).href||g.href,d=a.data(b,e).href||b.href,h=a.isFunction(h)?h.call(g):h,d=a.isFunction(d)?d.call(b):d,Y(h)&&(a("<img/>")[0].src=h),Y(d)&&(a("<img/>")[0].src=d))):I.hide(),J.iframe?(k=a("<iframe frameborder=0/>").addClass(f+"Iframe")[0],J.fastIframe?n():a(k).load(n),k.name=f+ +(new Date),k.src=J.href,J.scrolling||(k.scrolling="no"),m&&(k.allowTransparency="true"),a(k).appendTo(z).one(l,function(){k.src="//about:blank"})):n(),J.transition==="fade"?q.fadeTo(c,1,function(){q[0].style.filter=""}):q[0].style.filter="",y.bind("resize."+f,function(){U.position(0)}))})}function g(){J.h=J.h||z.height(),J.h=J.mh&&J.mh<J.h?J.mh:J.h;return J.h}function d(){J.w=J.w||z.width(),J.w=J.mw&&J.mw<J.w?J.mw:J.w;return J.w}if(!!R){var c=J.transition==="none"?0:J.speed;y.unbind("resize."+f),z.remove(),z=W("LoadedContent").html(b),z.hide().appendTo(A.show()).css({width:d(),overflow:J.scrolling?"auto":"hidden"}).css({height:g()}).prependTo(s),A.hide(),a(Q).css({"float":"none"}),n&&a("select").not(q.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(j,function(){this.style.visibility="inherit"}),J.transition==="fade"?q.fadeTo(c,0,function(){h(0)}):h(c)}},U.load=function(b){var c,d,g=U.prep;S=!0,Q=!1,O=x[P],b||Z(a.extend(J,a.data(O,e))),$(l),$(h,J.onLoad),J.h=J.height?X(J.height,"y")-M-K:J.innerHeight&&X(J.innerHeight,"y"),J.w=J.width?X(J.width,"x")-N-L:J.innerWidth&&X(J.innerWidth,"x"),J.mw=J.w,J.mh=J.h,J.maxWidth&&(J.mw=X(J.maxWidth,"x")-N-L,J.mw=J.w&&J.w<J.mw?J.w:J.mw),J.maxHeight&&(J.mh=X(J.maxHeight,"y")-M-K,J.mh=J.h&&J.h<J.mh?J.h:J.mh),c=J.href,B.show(),J.inline?(W().hide().insertBefore(a(c)[0]).one(l,function(){a(this).replaceWith(z.children())}),g(a(c))):J.iframe?g(" "):J.html?g(J.html):Y(c)?(a(Q=new Image).addClass(f+"Photo").error(function(){J.title=!1,g(W("Error").text("This image could not be loaded"))}).load(function(){var a;Q.onload=null,J.scalePhotos&&(d=function(){Q.height-=Q.height*a,Q.width-=Q.width*a},J.mw&&Q.width>J.mw&&(a=(Q.width-J.mw)/Q.width,d()),J.mh&&Q.height>J.mh&&(a=(Q.height-J.mh)/Q.height,d())),J.h&&(Q.style.marginTop=Math.max(J.h-Q.height,0)/2+"px"),x[1]&&(P<x.length-1||J.loop)&&(Q.style.cursor="pointer",Q.onclick=function(){U.next()}),m&&(Q.style.msInterpolationMode="bicubic"),setTimeout(function(){g(Q)},1)}),setTimeout(function(){Q.src=c},1)):c&&A.load(c,function(b,c,d){g(c==="error"?W("Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},U.next=function(){S||(P=P<x.length-1?P+1:0,U.load())},U.prev=function(){S||(P=P?P-1:x.length-1,U.load())},U.close=function(){R&&!T&&(T=!0,R=!1,$(j,J.onCleanup),y.unbind("."+f+" ."+o),p.fadeTo(200,0),q.stop().fadeTo(300,0,function(){q.add(p).css({opacity:1,cursor:"auto"}).hide(),$(l),z.remove(),setTimeout(function(){T=!1,$(k,J.onClosed)},1)}))},U.element=function(){return a(O)},U.settings=d,a(U.init)})(jQuery,document,this);;

(function($){$.fn.lazyload=function(options){var settings={threshold:0,failurelimit:0,event:"scroll",effect:"show",container:window};if(options){$.extend(settings,options);}
var elements=this;if("scroll"==settings.event){$(settings.container).bind("scroll",function(event){var counter=0;elements.each(function(){if($.abovethetop(this,settings)||$.leftofbegin(this,settings)){}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element){return!element.loaded;});elements=$(temp);});}
this.each(function(){var self=this;if(undefined==$(self).attr("original")){$(self).attr("original",$(self).attr("src"));}
if("scroll"!=settings.event||undefined==$(self).attr("src")||settings.placeholder==$(self).attr("src")||($.abovethetop(self,settings)||$.leftofbegin(self,settings)||$.belowthefold(self,settings)||$.rightoffold(self,settings))){if(settings.placeholder){$(self).attr("src",settings.placeholder);}else{$(self).removeAttr("src");}
self.loaded=false;}else{self.loaded=true;}
$(self).one("appear",function(){if(!this.loaded){$("<img />").bind("load",function(){$(self).hide().attr("src",$(self).attr("original"))
[settings.effect](settings.effectspeed);self.loaded=true;}).attr("src",$(self).attr("original"));};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});$(settings.container).trigger(settings.event);return this;};$.belowthefold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).height()+$(window).scrollTop();}else{var fold=$(settings.container).offset().top+$(settings.container).height();}
return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).width()+$(window).scrollLeft();}else{var fold=$(settings.container).offset().left+$(settings.container).width();}
return fold<=$(element).offset().left-settings.threshold;};$.abovethetop=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).scrollTop();}else{var fold=$(settings.container).offset().top;}
return fold>=$(element).offset().top+settings.threshold+$(element).height();};$.leftofbegin=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).scrollLeft();}else{var fold=$(settings.container).offset().left;}
return fold>=$(element).offset().left+settings.threshold+$(element).width();};$.extend($.expr[':'],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"});})(jQuery);;
(function($) {
	$(document).ready(function(){
		/* START Lightbox */
		$(".lightbox").colorbox({width:"55%", maxHeight:"75%", arrowKey:true,	 scalePhotos:"true"});
		/* END Lightbox */
		/* START menu slide */
		var menu_slide = function (e) {
			e.preventDefault();
			$('#more-menu').unbind('click', menu_slide);
			$('.hidden-menu-close').unbind('click', menu_slide);
			$("#more-menu").attr('href','#');
			if($("#hidden-menu").css('display')=="none"){
				$("#hidden-menu").css('display','block');
			}
			$("#hidden-menu-inner").slideToggle(800,function(){
				var arrow = $("#more-menu").children('span').first();
				if(arrow.hasClass('down-arrow')){
					arrow.removeClass('down-arrow');
					arrow.addClass('up-arrow');
				}else{
					arrow.addClass('down-arrow');
					arrow.removeClass('up-arrow');
					$("#hidden-menu").css('display','none');
				}
				$('#more-menu').bind('click', menu_slide);
				$('.hidden-menu-close').bind('click', menu_slide);
			});
		};
			
		$('#more-menu').bind('click', menu_slide);
		$('.hidden-menu-close').bind('click', menu_slide);
		/* END menu slide */
		
		$(".panel-col-first img:not(#gallery img)").lazyload({ placeholder : "/sites/all/themes/thedrum/images/white-opac.png", effect : "fadeIn" });
		
		$('.tooltip').tipsy({
			gravity: 'n',
			html: true,
			delayIn: 200, 
			delayOut: 1000,
			fade: true});
		
		$('.tooltip-s').tipsy({
			gravity: 's',
			html: true,
			delayIn: 200, 
			delayOut: 1000,
			fade: true});
			
		$(".tabular").tabs();
		
		/* START signin box */
		var menu_signin = function(){
			$('#secondary-menu-links a[href="/user/login"]').unbind('click', menu_signin);
			$('.signin-close').unbind('click', menu_signin);
			$('.jquery-signin-form').fadeToggle(400, function(){
				$('#secondary-menu-links a[href="/user/login"]').bind('click', menu_signin);
				$('.signin-close').bind('click', menu_signin);
			});
			return false;
		};
		$('#secondary-menu-links a[href="/user/login"]').bind('click', menu_signin);
		$('.signin-close').bind('click', menu_signin);
		/* END signin fade */	
	 
	 if($(".page-cart-checkout #cart-pane").length > 0){
     var offset = $(".page-cart-checkout #cart-pane").offset();
     var box_height = $(".page-cart-checkout .block-system .content").height();
     var pane_height = $(".page-cart-checkout #cart-pane").height()+80;
     var topPadding = 80;
	   $(window).scroll(function() {
				 var pos = $(window).scrollTop() - offset.top + topPadding;
         if ($(window).scrollTop() > offset.top && pos < (box_height-pane_height)) {
             $(".page-cart-checkout #cart-pane").stop().animate({
                 marginTop: pos
             });
         }else if($(window).scrollTop() < offset.top) {
             $(".page-cart-checkout #cart-pane").stop().animate({
                 marginTop: 0
             });
         }
     });	
	}
	
	$("#comparison-table .link").click(function(){
		var current = $("#comparison-table tr").index($(this).closest('tr'));
		var info = $("#comparison-table div.subscription-info").eq(current);
		var tot =  $("#comparison-table tr").length;
		var offset = (tot-current)*46;
		info.css({marginTop:'-'+offset+'px'});
		info.fadeToggle(800,function(){
		});
	});
	
	
	$("#comparison-table .link").click(function(){
		var current = $("#comparison-table tr").index($(this).closest('tr'));
		var info = $("#comparison-table div.register-info").eq(current);
		var tot =  $("#comparison-table tr").length;
		var offset = (tot-current)*46;
		info.css({marginTop:'-'+offset+'px'});
		info.fadeToggle(800,function(){
		});
	});
			
	if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod')
		{
     		$("#block-feedback-form").css("right", "-490px");
			$(".tick").css("background-position", "-181px -181px");
		};
		
		$('div.column_overview_bottom').hide();
   		$('.column-about').click(function(){
     	$('div.column_overview_bottom').slideToggle();
   		});
		

		
	});
	
	
	
})(jQuery);;
TWTR=window.TWTR||{};if(!Array.prototype.forEach){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 F(J,M,I){for(var L=0,K=J.length;L<K;++L){M.call(I||window,J[L],L,J)}}function B(I,K,J){this.el=I;this.prop=K;this.from=J.from;this.to=J.to;this.time=J.time;this.callback=J.callback;this.animDiff=this.to-this.from}B.canTransition=function(){var I=document.createElement("twitter");I.style.cssText="-webkit-transition: all .5s linear;";return !!I.style.webkitTransitionProperty}();B.prototype._setStyle=function(I){switch(this.prop){case"opacity":this.el.style[this.prop]=I;this.el.style.filter="alpha(opacity="+I*100+")";break;default:this.el.style[this.prop]=I+"px";break}};B.prototype._animate=function(){var I=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)};B.prototype.start=function(){var I=this;this.startTime=new Date();this.timer=setInterval(function(){I._animate.call(I)},15)};TWTR.Widget=function(I){this.init(I)};(function(){var X={};var U=location.protocol.match(/https/);var W=/^.+\/profile_images/;var c="https://s3.amazonaws.com/twitter_production/profile_images";var d=function(n){return U?n.replace(W,c):n};var m={};var k=function(o){var n=m[o];if(!n){n=new RegExp("(?:^|\\s+)"+o+"(?:\\s+|$)");m[o]=n}return n};var J=function(r,v,s,t){var v=v||"*";var s=s||document;var o=[],n=s.getElementsByTagName(v),u=k(r);for(var p=0,q=n.length;p<q;++p){if(u.test(n[p].className)){o[o.length]=n[p];if(t){t.call(n[p],n[p])}}}return o};var l=function(){var n=navigator.userAgent;return{ie:n.match(/MSIE\s([^;]*)/)}}();var N=function(n){if(typeof n=="string"){return document.getElementById(n)}return n};var f=function(n){return n.replace(/^\s+|\s+$/g,"")};var b=function(){var n=self.innerHeight;var o=document.compatMode;if((o||l.ie)){n=(o=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return n};var j=function(p,n){var o=p.target||p.srcElement;return n(o)};var Z=function(o){try{if(o&&3==o.nodeType){return o.parentNode}else{return o}}catch(n){}};var a=function(o){var n=o.relatedTarget;if(!n){if(o.type=="mouseout"){n=o.toElement}else{if(o.type=="mouseover"){n=o.fromElement}}}return Z(n)};var g=function(o,n){n.parentNode.insertBefore(o,n.nextSibling)};var h=function(o){try{o.parentNode.removeChild(o)}catch(n){}};var e=function(n){return n.firstChild};var I=function(p){var o=a(p);while(o&&o!=this){try{o=o.parentNode}catch(n){o=this}}if(o!=this){return true}return false};var M=function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(o,r){var q=null;var p=document.defaultView.getComputedStyle(o,"");if(p){q=p[r]}var n=o.style[r]||q;return n}}else{if(document.documentElement.currentStyle&&l.ie){return function(n,p){var o=n.currentStyle?n.currentStyle[p]:null;return(n.style[p]||o)}}}}();var i={has:function(n,o){return new RegExp("(^|\\s)"+o+"(\\s|$)").test(N(n).className)},add:function(n,o){if(!this.has(n,o)){N(n).className=f(N(n).className)+" "+o}},remove:function(n,o){if(this.has(n,o)){N(n).className=N(n).className.replace(new RegExp("(^|\\s)"+o+"(\\s|$)","g"),"")}}};var K={add:function(p,o,n){if(p.addEventListener){p.addEventListener(o,n,false)}else{p.attachEvent("on"+o,function(){n.call(p,window.event)})}},remove:function(p,o,n){if(p.removeEventListener){p.removeEventListener(o,n,false)}else{p.detachEvent("on"+o,n)}}};var T=function(){function o(q){return parseInt((q).substring(0,2),16)}function n(q){return parseInt((q).substring(2,4),16)}function p(q){return parseInt((q).substring(4,6),16)}return function(q){return[o(q),n(q),p(q)]}}();var O={bool:function(n){return typeof n==="boolean"},def:function(n){return !(typeof n==="undefined")},number:function(o){return typeof o==="number"&&isFinite(o)},string:function(n){return typeof n==="string"},fn:function(n){return typeof n==="function"},array:function(n){if(n){return O.number(n.length)&&O.fn(n.splice)}return false}};var S=["January","February","March","April","May","June","July","August","September","October","November","December"];var Y=function(q){var u=new Date(q);if(l.ie){u=Date.parse(q.replace(/( \+)/," UTC$1"))}var o="";var n=function(){var s=u.getHours();if(s>0&&s<13){o="am";return s}else{if(s<1){o="am";return 12}else{o="pm";return s-12}}}();var p=u.getMinutes();var t=u.getSeconds();function r(){var s=new Date();if(s.getDate()!=u.getDate()||s.getYear()!=u.getYear()||s.getMonth()!=u.getMonth()){return" - "+S[u.getMonth()]+" "+u.getDate()+", "+u.getFullYear()}else{return""}}return n+":"+p+o+r()};var Q=function(t){var v=new Date();var r=new Date(t);if(l.ie){r=Date.parse(t.replace(/( \+)/," UTC$1"))}var u=v-r;var o=1000,p=o*60,q=p*60,s=q*24,n=s*7;if(isNaN(u)||u<0){return""}if(u<o*2){return"right now"}if(u<p){return Math.floor(u/o)+" seconds ago"}if(u<p*2){return"about 1 minute ago"}if(u<q){return Math.floor(u/p)+" minutes ago"}if(u<q*2){return"about 1 hour ago"}if(u<s){return Math.floor(u/q)+" hours ago"}if(u>s&&u<s*2){return"yesterday"}if(u<s*365){return Math.floor(u/s)+" days ago"}else{return"over a year ago"}};var L={link:function(n){return n.replace(/\b(((https*\:\/\/)|www\.)[^\"\']+?)(([!?,.\)]+)?(\s|$))/g,function(t,s,q,p,o){var r=q.match(/w/)?"http://":"";return'<a class="twtr-hyperlink" target="_blank" href="'+r+s+'">'+((s.length>25)?s.substr(0,24)+"...":s)+"</a>"+o})},at:function(n){return n.replace(/\B[@＠]([a-zA-Z0-9_]{1,20})/g,function(o,p){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/intent/user?screen_name='+p+'">'+p+"</a>"})},list:function(n){return n.replace(/\B[@＠]([a-zA-Z0-9_]{1,20}\/\w+)/g,function(o,p){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+p+'">'+p+"</a>"})},hash:function(n){return n.replace(/(^|\s+)#(\w+)/gi,function(o,p,q){return p+'<a target="_blank" class="twtr-hashtag" href="http://twitter.com/search?q=%23'+q+'">#'+q+"</a>"})},clean:function(n){return this.hash(this.at(this.list(this.link(n))))}};function V(o,p,n){this.job=o;this.decayFn=p;this.interval=n;this.decayRate=1;this.decayMultiplier=1.25;this.maxDecayTime=3*60*1000}V.prototype={start:function(){this.stop().run();return this},stop:function(){if(this.worker){window.clearTimeout(this.worker)}return this},run:function(){var n=this;this.job(function(){n.decayRate=n.decayFn()?Math.max(1,n.decayRate/n.decayMultiplier):n.decayRate*n.decayMultiplier;var o=n.interval*n.decayRate;o=(o>=n.maxDecayTime)?n.maxDecayTime:o;o=Math.floor(o);n.worker=window.setTimeout(function(){n.run.call(n)},o)})},destroy:function(){this.stop();this.decayRate=1;return this}};function P(o,n,p){this.time=o||6000;this.loop=n||false;this.repeated=0;this.callback=p;this.haystack=[]}P.prototype={set:function(n){this.haystack=n},add:function(n){this.haystack.unshift(n)},start:function(){if(this.timer){return this}this._job();var n=this;this.timer=setInterval(function(){n._job.call(n)},this.time);return this},stop:function(){if(this.timer){window.clearInterval(this.timer);this.timer=null}return this},_next:function(){var n=this.haystack.shift();if(n&&this.loop){this.haystack.push(n)}return n||null},_job:function(){var n=this._next();if(n){this.callback(n)}return this}};function R(p){function n(){if(p.needle.metadata&&p.needle.metadata.result_type&&p.needle.metadata.result_type=="popular"){return'<span class="twtr-popular">'+p.needle.metadata.recent_retweets+"+ recent retweets</span>"}else{return""}}var o='<div class="twtr-tweet-wrap">         <div class="twtr-avatar">           <div class="twtr-img"><a target="_blank" href="http://twitter.com/intent/user?screen_name='+p.user+'"><img alt="'+p.user+' profile" src="'+d(p.avatar)+'"></a></div>         </div>         <div class="twtr-tweet-text">           <p>             <a target="_blank" href="http://twitter.com/intent/user?screen_name='+p.user+'" class="twtr-user">'+p.user+"</a> "+p.tweet+'             <em>            <a target="_blank" class="twtr-timestamp" time="'+p.timestamp+'" href="http://twitter.com/'+p.user+"/status/"+p.id+'">'+p.created_at+'</a> &middot;            <a target="_blank" class="twtr-reply" href="http://twitter.com/intent/tweet?in_reply_to='+p.id+'">reply</a> &middot;             <a target="_blank" class="twtr-rt" href="http://twitter.com/intent/retweet?tweet_id='+p.id+'">retweet</a> &middot;             <a target="_blank" class="twtr-fav" href="http://twitter.com/intent/favorite?tweet_id='+p.id+'">favorite</a>             </em> '+n()+"           </p>         </div>       </div>";var q=document.createElement("div");q.id="tweet-id-"+ ++R._tweetCount;q.className="twtr-tweet";q.innerHTML=o;this.element=q}R._tweetCount=0;X.loadStyleSheet=function(p,o){if(!TWTR.Widget.loadingStyleSheet){TWTR.Widget.loadingStyleSheet=true;var n=document.createElement("link");n.href=p;n.rel="stylesheet";n.type="text/css";document.getElementsByTagName("head")[0].appendChild(n);var q=setInterval(function(){var r=M(o,"position");if(r=="relative"){clearInterval(q);q=null;TWTR.Widget.hasLoadedStyleSheet=true}},50)}};(function(){var n=false;X.css=function(q){var p=document.createElement("style");p.type="text/css";if(l.ie){p.styleSheet.cssText=q}else{var r=document.createDocumentFragment();r.appendChild(document.createTextNode(q));p.appendChild(r)}function o(){document.getElementsByTagName("head")[0].appendChild(p)}if(!l.ie||n){o()}else{window.attachEvent("onload",function(){n=true;o()})}}})();TWTR.Widget.isLoaded=false;TWTR.Widget.loadingStyleSheet=false;TWTR.Widget.hasLoadedStyleSheet=false;TWTR.Widget.WIDGET_NUMBER=0;TWTR.Widget.REFRESH_MIN=6000;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(o,q){var n=document.createElement("script");var p=document.getElementsByTagName("head")[0];n.type="text/javascript";n.src=o;p.insertBefore(n,p.firstChild);q(n);return n};TWTR.Widget.prototype=function(){var q=U?"https://":"http://";var t=window.location.hostname.match(/twitter\.com/)?(window.location.hostname+":"+window.location.port):"twitter.com";var s=q+"search."+t+"/search.";var u=q+"api."+t+"/1/statuses/user_timeline.";var p=q+t+"/favorites/";var r=q+"api."+t+"/1/";var o=25000;var n=U?"https://twitter-widgets.s3.amazonaws.com/j/1/default.gif":"http://widgets.twimg.com/j/1/default.gif";return{init:function(w){var v=this;this._widgetNumber=++TWTR.Widget.WIDGET_NUMBER;TWTR.Widget["receiveCallback_"+this._widgetNumber]=function(x){v._prePlay.call(v,x)};this._cb="TWTR.Widget.receiveCallback_"+this._widgetNumber;this.opts=w;this._base=s;this._isRunning=false;this._hasOfficiallyStarted=false;this._hasNewSearchResults=false;this._rendered=false;this._profileImage=false;this._isCreator=!!w.creator;this._setWidgetType(w.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=w.id||"twtr-widget-"+this._widgetNumber;this.tweets=0;this.setDimensions(w.width,w.height);this.interval=w.interval?Math.max(w.interval,TWTR.Widget.REFRESH_MIN):TWTR.Widget.REFRESH_MIN;this.format="json";this.rpp=w.rpp||50;this.subject=w.subject||"";this.title=w.title||"";this.setFooterText(w.footer);this.setSearch(w.search);this._setUrl();this.theme=w.theme?w.theme:this._getDefaultTheme();if(!w.id){document.write('<div class="twtr-widget" id="'+this.id+'"></div>')}this.widgetEl=N(this.id);if(w.id){i.add(this.widgetEl,"twtr-widget")}if(w.version>=2&&!TWTR.Widget.hasLoadedStyleSheet){if(U){X.loadStyleSheet("https://twitter-widgets.s3.amazonaws.com/j/2/widget.css",this.widgetEl)}else{if(w.creator){X.loadStyleSheet("/stylesheets/widgets/widget.css",this.widgetEl)}else{X.loadStyleSheet("http://widgets.twimg.com/j/2/widget.css",this.widgetEl)}}}this.occasionalJob=new V(function(x){v.decay=x;v._getResults.call(v)},function(){return v._decayDecider.call(v)},o);this._ready=O.fn(w.ready)?w.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 P(this.interval,this._loop,function(x){v._normalizeTweet(x)});return this},setDimensions:function(v,x){this.wh=(v&&x)?[v,x]:[250,300];if(v=="auto"||v=="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(v){var v=parseInt(v);this.rpp=(O.number(v)&&(v>0&&v<=100))?v:30;return this},_setWidgetType:function(v){this._isSearchWidget=false,this._isProfileWidget=false,this._isFavsWidget=false,this._isListWidget=false;switch(v){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(w){if(w){if(O.def(w.filters)){this._tweetFilter=w.filters}if(O.def(w.dateformat)){this._isRelativeTime=!!(w.dateformat!=="absolute")}if(O.def(w.fullscreen)&&O.bool(w.fullscreen)){if(w.fullscreen){this._isFullScreen=true;this.wh[0]="100%";this.wh[1]=(b()-90)+"px";var x=this;K.add(window,"resize",function(AA){x.wh[1]=b();x._fullScreenResize()})}}if(O.def(w.loop)&&O.bool(w.loop)){this._loop=w.loop}if(O.def(w.behavior)&&O.string(w.behavior)){switch(w.behavior){case"all":this._behavior="all";break;case"preloaded":this._behavior="preloaded";break;default:this._behavior="default";break}}if(O.def(w.toptweets)&&O.bool(w.toptweets)){this._showTopTweets=w.toptweets;var v=(this._showTopTweets)?"inline-block":"none";X.css("#"+this.id+" .twtr-popular { display: "+v+"; }")}if(!O.def(w.toptweets)){this._showTopTweets=true;var v=(this._showTopTweets)?"inline-block":"none";X.css("#"+this.id+" .twtr-popular { display: "+v+"; }")}if(O.def(w.avatars)&&O.bool(w.avatars)){if(!w.avatars){X.css("#"+this.id+" .twtr-avatar, #"+this.id+" .twtr-user { display: none; } #"+this.id+" .twtr-tweet-text { margin-left: 0; }");this._avatars=false}else{var y=(this._isFullScreen)?"90px":"40px";X.css("#"+this.id+" .twtr-avatar { display: block; } #"+this.id+" .twtr-user { display: inline; } #"+this.id+" .twtr-tweet-text { margin-left: "+y+"; }");this._avatars=true}}else{if(this._isProfileWidget){this.setFeatures({avatars:false});this._avatars=false}else{this.setFeatures({avatars:true});this._avatars=true}}if(O.def(w.hashtags)&&O.bool(w.hashtags)){(!w.hashtags)?X.css("#"+this.id+" a.twtr-hashtag { display: none; }"):""}if(O.def(w.timestamp)&&O.bool(w.timestamp)){var z=w.timestamp?"block":"none";X.css("#"+this.id+" em { display: "+z+"; }")}if(O.def(w.live)&&O.bool(w.live)){this._isLive=w.live}if(O.def(w.scrollbar)&&O.bool(w.scrollbar)){this._isScroll=w.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 v=J("twtr-timeline","div",document.body,function(w){w.style.height=(b()-90)+"px"})},setTweetInterval:function(v){this.interval=v;return this},setBase:function(v){this._base=v;return this},setUser:function(w,v){this.username=w;this.realname=v||" ";if(this._isFavsWidget){this.setBase(p+w+".")}else{if(this._isProfileWidget){this.setBase(u+this.format+"?screen_name="+w)}}this.setSearch(" ");return this},setList:function(w,v){this.listslug=v.replace(/ /g,"-").toLowerCase();this.username=w;this.setBase(r+w+"/lists/"+this.listslug+"/statuses.");this.setSearch(" ");return this},setProfileImage:function(v){this._profileImage=v;this.byClass("twtr-profile-img","img").src=d(v);this.byClass("twtr-profile-img-anchor","a").href="http://twitter.com/intent/user?screen_name="+this.username;return this},setTitle:function(v){this.title=v;this.widgetEl.getElementsByTagName("h3")[0].innerHTML=this.title;return this},setCaption:function(v){this.subject=v;this.widgetEl.getElementsByTagName("h4")[0].innerHTML=this.subject;return this},setFooterText:function(v){this.footerText=(O.def(v)&&O.string(v))?v:"Join the conversation";if(this._rendered){this.byClass("twtr-join-conv","a").innerHTML=this.footerText}return this},setSearch:function(w){this.searchString=w||"";this.search=encodeURIComponent(this.searchString);this._setUrl();if(this._rendered){var v=this.byClass("twtr-join-conv","a");v.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 w=this;function v(){return"&"+(+new Date)+"=cachebust"}function x(){return(w.sinceId==1)?"":"&since_id="+w.sinceId+"&refresh=true"}if(this._isProfileWidget){this.url=this._base+"&callback="+this._cb+"&include_rts=true&count="+this.rpp+x()+"&clientsource="+this.source}else{if(this._isFavsWidget||this._isListWidget){this.url=this._base+this.format+"?callback="+this._cb+x()+"&clientsource="+this.source}else{this.url=this._base+this.format+"?q="+this.search+"&include_rts=true&callback="+this._cb+"&rpp="+this.rpp+x()+"&clientsource="+this.source;if(!this.runOnce){this.url+="&result_type=recent"}}}this.url+=v();return this},_getRGB:function(v){return T(v.substring(1,7))},setTheme:function(AA,v){var y=this;var w=" !important";var z=((window.location.hostname.match(/twitter\.com/))&&(window.location.pathname.match(/goodies/)));if(v||z){w=""}this.theme={shell:{background:function(){return AA.shell.background||y._getDefaultTheme().shell.background}(),color:function(){return AA.shell.color||y._getDefaultTheme().shell.color}()},tweets:{background:function(){return AA.tweets.background||y._getDefaultTheme().tweets.background}(),color:function(){return AA.tweets.color||y._getDefaultTheme().tweets.color}(),links:function(){return AA.tweets.links||y._getDefaultTheme().tweets.links}()}};var x="#"+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+w+";            color: "+this.theme.shell.color+w+";          }          #"+this.id+" .twtr-popular {            color: "+this.theme.tweets.color+w+";            background-color: rgba("+this._getRGB(this.theme.shell.background)+", .3)"+w+";          }          #"+this.id+" .twtr-tweet a {            color: "+this.theme.tweets.links+w+";          }          #"+this.id+" .twtr-bd, #"+this.id+" .twtr-timeline i a,           #"+this.id+" .twtr-bd p {            color: "+this.theme.tweets.color+w+";          }          #"+this.id+" .twtr-new-results,           #"+this.id+" .twtr-results-inner,           #"+this.id+" .twtr-timeline {            background: "+this.theme.tweets.background+w+";          }";if(l.ie){x+="#"+this.id+" .twtr-tweet { background: "+this.theme.tweets.background+w+"; }"}X.css(x);return this},byClass:function(y,v,w){var x=J(y,v,N(this.id));return(w)?x:x[0]},render:function(){var x=this;if(!TWTR.Widget.hasLoadedStyleSheet){window.setTimeout(function(){x.render.call(x)},50);return this}this.setTheme(this.theme,this._isCreator);if(this._isProfileWidget){i.add(this.widgetEl,"twtr-widget-profile")}if(this._isScroll){i.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 w=this.byClass("twtr-timeline","div");if(this._isLive&&!this._isFullScreen){var y=function(z){if(x._behavior==="all"){return }if(I.call(this,z)){x.pause.call(x)}};var v=function(z){if(x._behavior==="all"){return }if(I.call(this,z)){x.resume.call(x)}};this.removeEvents=function(){K.remove(w,"mouseover",y);K.remove(w,"mouseout",v)};K.add(w,"mouseover",y);K.add(w,"mouseout",v)}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 x=this;function z(){if(x._isProfileWidget){return'<a target="_blank" href="http://twitter.com/" class="twtr-profile-img-anchor"><img alt="profile" class="twtr-profile-img" src="'+n+'"></a>                      <h3></h3>                      <h4></h4>'}else{return"<h3>"+x.title+"</h3><h4>"+x.subject+"</h4>"}}function w(){return x._isFullScreen?" twtr-fullscreen":""}var y=U?"https://twitter-widgets.s3.amazonaws.com/i/widget-logo.png":"http://widgets.twimg.com/i/widget-logo.png";if(this._isFullScreen){y="https://twitter-widgets.s3.amazonaws.com/i/widget-logo-fullscreen.png"}var v='<div class="twtr-doc'+w()+'" style="width: '+this.wh[0]+';">            <div class="twtr-hd">'+z()+'             </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="'+y+'"></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 v},_appendTweet:function(v){this._insertNewResultsNumber();g(v,this.byClass("twtr-reference-tweet","div"));return this},_slide:function(w){var x=this;var v=e(w).offsetHeight;if(this.runOnce){new B(w,"height",{from:0,to:v,time:500,callback:function(){x._fade.call(x,w)}}).start()}return this},_fade:function(v){var w=this;if(B.canTransition){v.style.webkitTransition="opacity 0.5s ease-out";v.style.opacity=1;return this}new B(v,"opacity",{from:0,to:1,time:500}).start();return this},_chop:function(){if(this._isScroll){return this}var AA=this.byClass("twtr-tweet","div",true);var AB=this.byClass("twtr-new-results","div",true);if(AA.length){for(var x=AA.length-1;x>=0;x--){var z=AA[x];var y=parseInt(z.offsetTop);if(y>parseInt(this.wh[1])){h(z)}else{break}}if(AB.length>0){var v=AB[AB.length-1];var w=parseInt(v.offsetTop);if(w>parseInt(this.wh[1])){h(v)}}}return this},_appendSlideFade:function(w){var v=w||this.tweet.element;this._chop()._appendTweet(v)._slide(v);return this},_createTweet:function(v){v.timestamp=v.created_at;v.created_at=this._isRelativeTime?Q(v.created_at):Y(v.created_at);this.tweet=new R(v);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 v=this;this.timesRequested++;this.jsonRequestRunning=true;this.jsonRequestTimer=window.setTimeout(function(){if(v.jsonRequestRunning){clearTimeout(v.jsonRequestTimer);v.jsonRequestTimer=null}v.jsonRequestRunning=false;h(v.scriptElement);v.newResults=false;v.decay()},this.jsonMaxRequestTimeOut);TWTR.Widget.jsonP(v.url,function(w){v.scriptElement=w})},clear:function(){var w=this.byClass("twtr-tweet","div",true);var v=this.byClass("twtr-new-results","div",true);w=w.concat(v);F(w,function(x){h(x)});return this},_sortByMagic:function(v){var w=this;if(this._tweetFilter){if(this._tweetFilter.negatives){v=v.filter(function(x){if(!w._tweetFilter.negatives.test(x.text)){return x}})}if(this._tweetFilter.positives){v=v.filter(function(x){if(w._tweetFilter.positives.test(x.text)){return x}})}}switch(this._behavior){case"all":this._sortByLatest(v);break;case"preloaded":default:this._sortByDefault(v);break}if(this._isLive&&this._behavior!=="all"){this.intervalJob.set(this.results);this.intervalJob.start()}return this},_loadTopTweetsAtTop:function(x){var y=[],z=[],w=[];F(x,function(AA){if(AA.metadata&&AA.metadata.result_type&&AA.metadata.result_type=="popular"){z.push(AA)}else{y.push(AA)}});var v=z.concat(y);return v},_sortByLatest:function(v){this.results=v;this.results=this.results.slice(0,this.rpp);this.results=this._loadTopTweetsAtTop(this.results);this.results.reverse();return this},_sortByDefault:function(w){var x=this;var v=function(z){return new Date(z).getTime()};this.results.unshift.apply(this.results,w);F(this.results,function(z){if(!z.views){z.views=0}});this.results.sort(function(AA,z){if(v(AA.created_at)>v(z.created_at)){return -1}else{if(v(AA.created_at)<v(z.created_at)){return 1}else{return 0}}});this.results=this.results.slice(0,this.rpp);this.results=this._loadTopTweetsAtTop(this.results);var y=this.results;this.results=this.results.sort(function(AA,z){if(AA.views<z.views){return -1}else{if(AA.views>z.views){return 1}}return 0});if(!this._isLive){this.results.reverse()}},_prePlay:function(w){if(this.jsonRequestTimer){clearTimeout(this.jsonRequestTimer);this.jsonRequestTimer=null}if(!l.ie){h(this.scriptElement)}if(w.error){this.newResults=false}else{if(w.results&&w.results.length>0){this.response=w;this.newResults=true;this.sinceId=w.max_id_str;this._sortByMagic(w.results);if(this.isRunning()){this._play()}}else{if((this._isProfileWidget||this._isFavsWidget||this._isListWidget)&&O.array(w)&&w.length){this.newResults=true;if(!this._profileImage&&this._isProfileWidget){var v=w[0].user.screen_name;this.setProfileImage(w[0].user.profile_image_url);this.setTitle(w[0].user.name);this.setCaption('<a target="_blank" href="http://twitter.com/intent/user?screen_name='+v+'">'+v+"</a>")}this.sinceId=w[0].id_str;this._sortByMagic(w);if(this.isRunning()){this._play()}}else{this.newResults=false}}}this._setUrl();if(this._isLive){this.decay()}},_play:function(){var v=this;if(this.runOnce){this._hasNewSearchResults=true}if(this._avatars){this._preloadImages(this.results)}if(this._isRelativeTime&&(this._behavior=="all"||this._behavior=="preloaded")){F(this.byClass("twtr-timestamp","a",true),function(w){w.innerHTML=Q(w.getAttribute("time"))})}if(!this._isLive||this._behavior=="all"||this._behavior=="preloaded"){F(this.results,function(x){if(x.retweeted_status){x=x.retweeted_status}if(v._isProfileWidget){x.from_user=x.user.screen_name;x.profile_image_url=x.user.profile_image_url}if(v._isFavsWidget||v._isListWidget){x.from_user=x.user.screen_name;x.profile_image_url=x.user.profile_image_url}x.id=x.id_str;v._createTweet({id:x.id,user:x.from_user,tweet:L.clean(x.text),avatar:x.profile_image_url,created_at:x.created_at,needle:x});var w=v.tweet.element;(v._behavior=="all")?v._appendSlideFade(w):v._appendTweet(w)});if(this._behavior!="preloaded"){return this}}return this},_normalizeTweet:function(w){var v=this;w.views++;if(this._isProfileWidget){w.from_user=v.username;w.profile_image_url=w.user.profile_image_url}if(this._isFavsWidget||this._isListWidget){w.from_user=w.user.screen_name;w.profile_image_url=w.user.profile_image_url}if(this._isFullScreen){w.profile_image_url=w.profile_image_url.replace(/_normal\./,"_bigger.")}w.id=w.id_str;this._createTweet({id:w.id,user:w.from_user,tweet:L.clean(w.text),avatar:w.profile_image_url,created_at:w.created_at,needle:w})._appendSlideFade()},_insertNewResultsNumber:function(){if(!this._hasNewSearchResults){this._hasNewSearchResults=false;return }if(this.runOnce&&this._isSearchWidget){var y=this.response.total>this.rpp?this.response.total:this.response.results.length;var v=y>1?"s":"";var x=(this.response.warning&&this.response.warning.match(/adjusted since_id/))?"more than":"";var w=document.createElement("div");i.add(w,"twtr-new-results");w.innerHTML='<div class="twtr-results-inner"> &nbsp; </div><div class="twtr-results-hr"> &nbsp; </div><span>'+x+" <strong>"+y+"</strong> new tweet"+v+"</span>";g(w,this.byClass("twtr-reference-tweet","div"));this._hasNewSearchResults=false}},_preloadImages:function(v){if(this._isProfileWidget||this._isFavsWidget||this._isListWidget){F(v,function(x){var w=new Image();w.src=d(x.user.profile_image_url)})}else{F(v,function(w){(new Image()).src=d(w.profile_image_url)})}},_decayDecider:function(){var v=false;if(!this.runOnce){this.runOnce=true;v=true}else{if(this.newResults){v=true}}return v},start:function(){var v=this;if(!this._rendered){setTimeout(function(){v.start.call(v)},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();i.add(this.widgetEl,"twtr-paused");this._isRunning=false}if(this._resumeTimer){clearTimeout(this._resumeTimer);this._resumeTimer=null}return this},resume:function(){var v=this;if(!this.isRunning()&&this._hasOfficiallyStarted&&this.intervalJob){this._resumeTimer=window.setTimeout(function(){v.intervalJob.start();v._isRunning=true;i.remove(v.widgetEl,"twtr-paused")},2000)}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)}i.remove(this.widgetEl,"twtr-scroll");this.removeEvents();return this}}}()})();var E=/twitter\.com(\:\d{2,4})?\/intent\/(\w+)/,H={tweet:true,retweet:true,favorite:true},G="scrollbars=yes,resizable=yes,toolbar=no,location=yes",D=screen.height,C=screen.width;function A(O){O=O||window.event;var N=O.target||O.srcElement,J,K,I,M,L;while(N&&N.nodeName.toLowerCase()!=="a"){N=N.parentNode}if(N&&N.nodeName.toLowerCase()==="a"&&N.href){J=N.href.match(E);if(J){K=550;I=(J[2] in H)?420:560;M=Math.round((C/2)-(K/2));L=0;if(D>I){L=Math.round((D/2)-(I/2))}window.open(N.href,"intent",G+",width="+K+",height="+I+",left="+M+",top="+L);O.returnValue=false;O.preventDefault&&O.preventDefault()}}}if(document.addEventListener){document.addEventListener("click",A,false)}else{if(document.attachEvent){document.attachEvent("onclick",A)}}})();;
(function(a,b){function O(a){for(var b=0;b<J.bundles.length;b++)for(var c in J.bundles[b])if(c!=a&&v(J.bundles[b][c],a)>-1)return c}function N(){a.using=m,a.provide=n,a.define=o,a.loadrunner=p;return M}function L(a){var b,c;for(var d=0,e;e=J.matchers[d];d++){var f=e[0],g=e[1];if(b=a.match(f))return g(a)}throw new Error(a+" was not recognised by loader")}function K(a,b){var c=[];for(var d=0,e;e=a[d];d++)typeof e=="string"&&(e=L(e)),u(e)&&(e=new C(K(e,b),b)),c.push(e);return c}function J(){var a=t(arguments),b,c;typeof a[a.length-1]=="function"&&(b=a.pop()),typeof a[a.length-1]=="boolean"&&(c=a.pop());var d=new B(K(a,c),c);b&&d.then(b);return d}function I(){var a=t(arguments),b=[],c,d;typeof a[0]=="string"&&(c=a.shift()),u(a[0])&&(b=a.shift()),d=a.shift();return E(c,function(a){function f(){var e=H(t(b),c),f;typeof d=="function"?f=d.apply(c,e):f=d,typeof f=="undefined"&&(f=c.exports),a(f)}var c=this,e=[];for(var g=0,h=b.length;g<h;g++){var i=b[g];v(["require","exports"],i)==-1&&e.push(G(i,c))}e.length>0?J.apply(this,e.concat(f)):f()})}function H(a,b){function d(a){return A.exports[G(a,b)]}var c=[];for(var e=0,f=a.length;e<f;e++){if(a[e]=="require"){c.push(d);continue}if(a[e]=="exports"){b.exports=b.exports||{},c.push(b.exports);continue}c.push(d(a[e]))}return c}function G(a,b){var c=b.id||"",d=c.split("/");d.pop();var e=d.join("/");return a.replace(/^\./,e)}function F(){var a=t(arguments),b,c;typeof a[0]=="string"&&(b=a.shift()),c=a.shift();return E(b,c)}function E(a,b){var d;!a&&c&&(d=k||D()),d?(delete l[d.scriptId],d.body=b,d.execute()):(j=d=new A(a,b),i[d.id]=d);return d}function D(){for(var a in d)if(d[a].readyState=="interactive")return l[d[a].id]}function C(a,b){this.deps=a,this.collectResults=b}function B(a,b){this.deps=a,this.collectResults=b,this.deps.length==0&&this.complete()}function A(a,b){this.id=a,this.body=b,typeof b=="undefined"&&(this.path=this.resolvePath(a))}function z(a,b){this.id=this.path=a,this.force=!!b}function y(){}function x(a,b,c){var d=b.split("/"),e=a;while(d.length>1){var f=d.shift();e=e[f]=e[f]||{}}e[d[0]]=c}function w(){var a=t(arguments),b=[];for(var c=0,d=a.length;c<d;c++)a[c].length>0&&b.push(a[c].replace(/\/$/,""));return b.join("/")}function v(a,b){for(var c=0,d;d=a[c];c++)if(b==d)return c;return-1}function t(a){return Array.prototype.slice.call(a)}function s(a){for(var b=1,c;c=arguments[b];b++)for(var d in c)a[d]=c[d];return a}var c=a.attachEvent&&!a.opera,d=b.getElementsByTagName("script"),e=0,f,g=b.createElement("script"),h={},i={},j,k,l={},m=a.using,n=a.provide,o=a.define,p=a.loadrunner;for(var q=0,r;r=d[q];q++)if(r.src.match(/loadrunner\.js(\?|#|$)/)){f=r;break}var u=Array.isArray||function(a){return a.constructor==Array};y.prototype.then=function(b){var c=this;this.started||(this.started=!0,this.start()),this.completed?b.apply(a,this.results):(this.callbacks=this.callbacks||[],this.callbacks.push(b));return this},y.prototype.start=function(){},y.prototype.complete=function(){if(!this.completed){this.results=t(arguments),this.completed=!0;if(this.callbacks)for(var b=0,c;c=this.callbacks[b];b++)c.apply(a,this.results)}},z.loaded=[],z.prototype=new y,z.prototype.start=function(){var a=this,b,c,d;if(d=i[this.id]){d.then(function(){a.complete()});return this}(b=h[this.id])?b.then(function(){a.loaded()}):!this.force&&v(z.loaded,this.id)>-1?this.loaded():(c=O(this.id))?J(c,function(){a.loaded()}):this.load();return this},z.prototype.load=function(){var b=this;h[this.id]=b;var c=g.cloneNode(!1);this.scriptId=c.id="LR"+ ++e,c.type="text/javascript",c.async=!0,c.onerror=function(){throw new Error(b.path+" not loaded")},c.onreadystatechange=c.onload=function(c){c=a.event||c;if(c.type=="load"||v(["loaded","complete"],this.readyState)>-1)this.onreadystatechange=null,b.loaded()},c.src=this.path,k=this,d[0].parentNode.insertBefore(c,d[0]),k=null,l[c.id]=this},z.prototype.loaded=function(){this.complete()},z.prototype.complete=function(){v(z.loaded,this.id)==-1&&z.loaded.push(this.id),delete h[this.id],y.prototype.complete.apply(this,arguments)},A.exports={},A.prototype=new z,A.prototype.resolvePath=function(a){return w(J.path,a+".js")},A.prototype.start=function(){var a,b,c=this,d;this.body?this.execute():(a=A.exports[this.id])?this.exp(a):(b=i[this.id])?b.then(function(a){c.exp(a)}):(bundle=O(this.id))?J(bundle,function(){c.start()}):(i[this.id]=this,this.load())},A.prototype.loaded=function(){var a,b,d=this;c?(b=A.exports[this.id])?this.exp(b):(a=i[this.id])&&a.then(function(a){d.exp(a)}):(a=j,j=null,a.id=a.id||this.id,a.then(function(a){d.exp(a)}))},A.prototype.complete=function(){delete i[this.id],z.prototype.complete.apply(this,arguments)},A.prototype.execute=function(){var a=this;typeof this.body=="object"?this.exp(this.body):typeof this.body=="function"&&this.body.apply(window,[function(b){a.exp(b)}])},A.prototype.exp=function(a){this.complete(this.exports=A.exports[this.id]=a||{})},B.prototype=new y,B.prototype.start=function(){function b(){var b=[];a.collectResults&&(b[0]={});for(var c=0,d;d=a.deps[c];c++){if(!d.completed)return;d.results.length>0&&(a.collectResults?d instanceof C?s(b[0],d.results[0]):x(b[0],d.id,d.results[0]):b=b.concat(d.results))}a.complete.apply(a,b)}var a=this;for(var c=0,d;d=this.deps[c];c++)d.then(b);return this},C.prototype=new y,C.prototype.start=function(){var a=this,b=0,c=[];a.collectResults&&(c[0]={}),function d(){var e=a.deps[b++];e?e.then(function(b){e.results.length>0&&(a.collectResults?e instanceof C?s(c[0],e.results[0]):x(c[0],e.id,e.results[0]):c.push(e.results[0])),d()}):a.complete.apply(a,c)}();return this},I.amd={};var M=function(a){return a(J,F,M,define)};M.Script=z,M.Module=A,M.Collection=B,M.Sequence=C,M.Dependency=y,M.noConflict=N,a.loadrunner=M,a.using=J,a.provide=F,a.define=I,J.path="",J.matchers=[],J.matchers.add=function(a,b){this.unshift([a,b])},J.matchers.add(/(^script!|\.js$)/,function(a){var b=new z(a.replace(/^\$/,J.path.replace(/\/$/,"")+"/").replace(/^script!/,""),!1);b.id=a;return b}),J.matchers.add(/^[a-zA-Z0-9_\-\/]+$/,function(a){return new A(a)}),J.bundles=[],f&&(J.path=f.getAttribute("data-path")||f.src.split(/loadrunner\.js/)[0]||"",(main=f.getAttribute("data-main"))&&J.apply(a,main.split(/\s*,\s*/)).then(function(){}))})(this,document);window.__twttrlr = loadrunner.noConflict();__twttrlr(function(using, provide, loadrunner, define) {provide("util/iframe",function(a){var b=document.createElement("div");a(function(a){b.innerHTML='<iframe src="'+a.url+'" allowtransparency="true" frameborder="0" scrolling="no"/>';var c=b.firstChild.cloneNode(!1);c.src=a.url,c.className=a.className||"";for(var d in a.css)c.style[d]=a.css[d];c.title=a.title||"";if(a.replace){var e=a.replace.parentNode;e.replaceChild(c,a.replace)}else document.body.insertBefore(c,document.body.firstChild);return c})});
provide("util/querystring",function(a){function e(a){var b={},d,e,f,g;if(a){d=a.split("&");for(g=0;f=d[g];g++)e=f.split("="),e.length==2&&(b[c(e[0])]=c(e[1]))}return b}function d(a){var c=[];for(var d in a)a[d]!==null&&typeof a[d]!="undefined"&&c.push(b(d)+"="+b(a[d]));return c.sort().join("&")}function c(a){return decodeURIComponent(a)}function b(a){return encodeURIComponent(a).replace(/\+/g,"%2B")}a({decode:e,encode:d,encodePart:b,decodePart:c})});
provide("util/nodeselect",function(a){var b=document,c="querySelectorAll"in b?function(a,c){return b.querySelectorAll(a+"."+c)}:"getElementsByClassName"in b?function(a,c){var d=b.getElementsByClassName(c),e,f=[];for(i=0;e=d[i];i++)e.tagName.toLowerCase()==a&&f.push(e);return f}:function(a,c){var d=b.getElementsByTagName(a),e,f=new RegExp("(?:^|\\s+)"+c+"(?:\\s+|$)"),g=[];for(i=0;e=d[i];i++)f.test(e.className)&&g.push(e);return g};a(c)});
provide("$vendor/domready/ready.js", function(exports) {!function(a){function k(){b=1;for(var a=0,d=c.length;a<d;a++)c[a]()}var b=0,c=[],d,e,f=!1,g=a.createElement("a"),h="DOMContentLoaded",i="addEventListener",j="onreadystatechange";/^loade|c/.test(a.readyState)&&(b=1),a[i]&&a[i](h,e=function(){a.removeEventListener(h,e,f),k()},f),g.doScroll&&a.attachEvent(j,d=function(){/^c/.test(a.readyState)&&(a.detachEvent(j,d),k())});var l=g.doScroll?function(a){self!=top?b?a():c.push(a):!function(){try{g.doScroll("left")}catch(b){return setTimeout(function(){l(a)},50)}a()}()}:function(a){b?a():c.push(a)};typeof module!="undefined"&&module.exports?module.exports={domReady:l}:window.domReady=l}(document);exports();loadrunner.Script.loaded.push("$vendor/domready/ready.js")});
provide("util/domready",function(a){using("$vendor/domready/ready.js",function(){a(domReady)})});
provide("util/util",function(a){function d(a,b){for(var c=0,d;d=a[c];c++)if(b==d)return c;return-1}function c(a){return b([],a)}function b(a){for(var b=1,c;c=arguments[b];b++)for(var d in c)a[d]=c[d];return a}a({aug:b,array:c,indexOf:d})});
provide("tfw/widget/base",function(a){using("util/util","util/domready","util/nodeselect","util/querystring","util/iframe",function(b,c,d,e,f){function o(a){return a&&j.byId[a]?j.byId[a].element:null}function n(){l(),c(function(){l()})}function m(a){i=a}function l(){var a=i.widgets,b,c;for(var e in a){e.match(/\./)?b=d.apply(this,e.split(".")):b=document.getElementsByTagName(e);for(var f=0,g;g=b[f];f++)c=new a[e](g),j.list.push(c),j.byId[c.id]=c,c.render(i)}}var g=0,h,i,j={list:[],byId:{}},k=function(){};b.aug(k.prototype,{_:function(a){var b=this.lang;if(!b||!this.langs.hasOwnProperty(b))b="en";return this.langs[b][a]},add:function(a){j.list.push(this),j.byId[this.id]=a},create:function(a,b,c,d){this.id=this.generateId();return f({url:a,css:{width:c[0]+(typeof c[0]!="string"?"px":""),height:c[1]+(typeof c[1]!="string"?"px":"")},className:b,id:this.id,title:d,replace:this.originElement})},params:function(){var a=this.originElement.href&&this.originElement.href.split("?")[1],b=a?e.decode(a):{};return b},generateId:function(){return this.originElement.id?this.originElement.id:"twitter_tweet_button_"+g++}}),a({Base:k,init:m,embed:n,find:o,TWITTER_PROFILE_URL:/^https?\:\/\/(?:www\.)?twitter\.com\/(?:#!?\/)?([a-zA-Z0-9_]{1,20})\/?$/})})});
provide("util/events",function(a){using("util/util",function(b){function d(){this.completed=!1,this.callbacks=[]}var c={bind:function(a,b){this._handlers=this._handlers||{},this._handlers[a]=this._handlers[a]||[];return this._handlers[a].push(b)},unbind:function(a,c){if(!!this._handlers[a])if(c){var d=b.indexOf(this._handlers[a],c);d>=0&&this._handlers[a].splice(d,1)}else this._handlers[a]=[]},trigger:function(a,b){var c=this._handlers&&this._handlers[a];b.type=a;if(c)for(var d=0,e;e=c[d];d++)e.call(this,b)}};d.prototype.addCallback=function(a){this.completed?a.apply(this,this.results):this.callbacks.push(a)},d.prototype.complete=function(){this.results=makeArray(arguments),this.completed=!0;for(var a=0,b;b=this.callbacks[a];a++)b.apply(this,this.results)},a({Emitter:c,Promise:d})})});
provide("util/uri",function(a){using("util/querystring","util/util",function(b,c){function f(){var a=document.getElementsByTagName("a"),b=document.getElementsByTagName("link"),d=/\bme\b/,e=/^https?\:\/\/(www\.)?twitter.com\/([a-zA-Z0-9_]+)$/,f=c.array(a).concat(c.array(b)),g,h,i;for(var j=0,k;k=f[j];j++){h=k.getAttribute("rel"),i=k.getAttribute("href");if(h&&i&&h.match(d)&&(g=i.match(e)))return g[2]}}function e(){var a=document.getElementsByTagName("link");for(var b=0,c;c=a[b];b++)if(c.getAttribute("rel")=="canonical")return d(c.getAttribute("href"));return null}function d(a){var b;if(a.match(/^https?:\/\//))return a;b=location.host,location.port.length>0&&(b+=":"+location.port);return[location.protocol,"//",b,a].join("")}a({absolutize:d,getCanonicalURL:e,getScreenNameFromPage:f})})});
provide("tfw/widget/intent",function(a){using("util/util","tfw/widget/base","util/querystring","util/uri",function(b,c,d,e){function q(a){a=a||window.event;var b=a.target||a.srcElement,c,d;while(b&&b.nodeName.toLowerCase()!=="a")b=b.parentNode;if(b&&b.nodeName.toLowerCase()==="a"&&b.href){c=b.href.match(f);if(c){var e=o(b.href);e=e.replace(/^http[:]/,"https:"),e=e.replace(/^\/\//,"https://"),twttr.events.hub?(d=new p(l.generateId(),b),l.add(d),n(e,b),twttr.events.trigger("click",{target:b,region:"intent",type:"click",data:{}})):m(e),a.returnValue=!1,a.preventDefault&&a.preventDefault()}}}function o(a){var b="original_referer="+location.href;return[a,b].join(a.indexOf("?")==-1?"?":"&")}function n(a,b){using("xd/parent","xd/jsonrpc",function(c,d){var e=c.connect({window:{width:550,height:450},src:a});d(e).expose({trigger:function(a,c){twttr.events.trigger(a,{target:b,region:"intent",type:a,data:c})}})})}function m(a){var b=Math.round(k/2-h/2),c=0;j>i&&(c=Math.round(j/2-i/2)),window.open(a,"intent",g+",width="+h+",height="+i+",left="+b+",top="+c)}var f=/twitter\.com(\:\d{2,4})?\/intent\/(\w+)/,g="scrollbars=yes,resizable=yes,toolbar=no,location=yes",h=550,i=520,j=screen.height,k=screen.width,l,p=function(a,b){this.id=a,this.element=this.originElement=b},r=function(a){this.originElement=[],this.element=a};r.prototype=new c.Base,b.aug(r.prototype,{render:function(a){l=this,window.__twitterIntentHandler||(document.addEventListener?document.addEventListener("click",q,!1):document.attachEvent&&document.attachEvent("onclick",q),window.__twitterIntentHandler=!0)}}),a({Listener:r})})});
provide("tfw/widget/tweet",function(a){using("util/util","tfw/widget/base","util/querystring","util/uri",function(b,c,d,e){var f=document.title,g=encodeURI(location.href),h={en:1,de:1,es:1,fr:1,id:1,it:1,ko:1,ja:1,nl:1,pt:1,ru:1,tr:1},i=function(a){this.originElement=a,this.id=this.generateId();var b=this.params(),c=b.count||a.getAttribute("data-count"),d=b.lang||a.getAttribute("data-lang");this.text=b.text||a.getAttribute("data-text")||f,this.via=b.via||a.getAttribute("data-via")||e.getScreenNameFromPage(),this.url=b.url||a.getAttribute("data-url")||e.getCanonicalURL()||g,this.related=b.related||a.getAttribute("data-related"),this.counturl=b.counturl||a.getAttribute("data-counturl"),this.searchlink=b.searchlink||a.getAttribute("data-searchlink"),this.placeid=b.placeid||a.getAttribute("data-placeid"),this.supportCount[c]||(c="horizontal"),this.count=c,h[d]||(d="en"),this.lang=d};i.prototype=new c.Base,b.aug(i.prototype,{supportCount:{vertical:1,horizontal:1,none:1},titles:{en:"Twitter For Websites: Tweet Button",de:"Twitter für Webseiten: Tweet-Schaltfläche",es:"Twi`tter para sitios web: Botón para Twittear",fr:'Twitter pour votre site web : bouton "Tweeter"',id:"Twitter untuk Situs Web: Tombol Tweet",it:"Tweeter per i siti web: Bottone Tweet",ja:"WEBサイト向けTwitter: ツイートボタン",ko:"Twitter 웹버전: 트윗 버튼",nl:"Twitter voor websites: tweetknop",pt:"Twitter para websites: Botão de Tweet",ru:"Твиттер для веб-сайта: кнопка «Твитнуть»",tr:"Web siteleri için Twitter: Tweetle Butonu"},dimensionsMap:{en:{vertical:[55,62],horizontal:[110,20],none:[55,20]},de:{vertical:[67,62],horizontal:[122,20],none:[67,20]},es:{vertical:[64,62],horizontal:[118,20],none:[64,20]},fr:{vertical:[65,62],horizontal:[118,20],none:[65,20]},id:{vertical:[55,62],horizontal:[110,20],none:[55,20]},it:{vertical:[55,62],horizontal:[110,20],none:[55,20]},ko:{vertical:[55,62],horizontal:[110,20],none:[55,20]},ja:{vertical:[80,62],horizontal:[130,20],none:[80,20]},nl:{vertical:[55,62],horizontal:[110,20],none:[55,20]},pt:{vertical:[66,62],horizontal:[120,20],none:[66,20]},ru:{vertical:[68,62],horizontal:[120,20],none:[68,20]},tr:{vertical:[66,62],horizontal:[120,20],none:[66,20]}},parameters:function(){var a={text:this.text,url:this.url,via:this.via,related:this.related,count:this.count,lang:this.lang,counturl:this.counturl,searchlink:this.searchlink,placeid:this.placeid,original_referer:location.href,id:this.id};a._=(new Date).getTime();return d.encode(a)},render:function(a){var b=a.assetUrl()+"/widgets/tweet_button.html#"+this.parameters(),c=this.dimensionsMap[this.lang][this.count],d=this.titles[this.lang];this.element=this.create(b,"twitter-share-button twitter-count-"+this.count,c,d)}}),a({Embeddable:i})})});
provide("tfw/widget/follow",function(a){using("util/util","tfw/widget/base","util/querystring","util/uri",function(b,c,d,e){var f={en:1,de:1,es:1,fr:1,id:1,it:1,ko:1,ja:1,nl:1,pt:1,ru:1,tr:1},g=function(a){this.originElement=a,this.id=this.generateId();var b=this.params(),c=b.lang||a.getAttribute("data-lang")||"en";this.showScreenName=b.show_screen_name||a.getAttribute("data-show-screen-name")||"",this.showCount=b.show_count||a.getAttribute("data-show-count")||"",this.button=b.button||a.getAttribute("data-button")||"blue",this.linkColor=b.link_color||a.getAttribute("data-link-color")||"",this.textColor=b.text_color||a.getAttribute("data-text-color")||"",this.width=b.width||a.getAttribute("data-width")||"",this.screenName=this.screenNameFromHref(),this.align=b.align||a.getAttribute("data-align")||"",this.lang=c,f[c]||(this.lang="en")};g.prototype=new c.Base,b.aug(g.prototype,{titles:{en:"Twitter For Websites: Tweet Button",de:"Twitter für Webseiten: Tweet-Folgen",es:"Twi`tter para sitios web: Botón para Seguir",fr:'Twitter pour votre site web : bouton "Suivre"',id:"",it:"Tweeter per i siti web: Bottone Seguire",ja:"WEBサイト向けTwitter",ko:"Twitter 웹버전",pt:"Twitter para websites",ru:"Твиттер для веб-сайта",tr:"Web siteleri için Twitter"},langs:{en:{dimensions:[300,20]},de:{dimensions:[300,20]},es:{dimensions:[300,20]},fr:{dimensions:[300,20]},id:{dimensions:[300,20]},it:{dimensions:[300,20]},ko:{dimensions:[300,20]},nl:{dimensions:[300,20]},pt:{dimensions:[300,20]},ja:{dimensions:[300,20]},ru:{dimensions:[300,20]},tr:{dimensions:[300,20]}},parameters:function(){var a={screen_name:this.screenName,lang:this.lang,button:this.button,link_color:this.linkColor,text_color:this.textColor,show_count:this.showCount,show_screen_name:this.showScreenName,align:this.align,id:this.id};a._=(new Date).getTime();return d.encode(a)},screenNameFromHref:function(){var a=this.originElement.href,b;if(b=a.match(c.TWITTER_PROFILE_URL))return b[1]},render:function(a){if(!!this.screenName){var b=a.assetUrl()+"/widgets/follow_button.html#"+this.parameters(),c=this.langs[this.lang].dimensions;this.width&&(c=[this.width,c[1]]);var d=this.langs[this.lang].title;this.element=this.create(b,"twitter-follow-button",c,d)}}}),a({Embeddable:g})})});
window.twttr=window.twttr||{},function(){twttr.host=twttr.host||"platform.twitter.com",using.path.length==0&&(using.path="//"+twttr.host+"/js"),typeof twttr.ignoreSSL=="undefined"&&(twttr.ignoreSSL=!1);var a=[];twttr.events={bind:function(b,c){return a.push([b,c])}},using("util/util","tfw/widget/follow","tfw/widget/tweet","tfw/widget/intent","util/events","tfw/widget/base",function(b,c,d,e,f,g){function k(){using("xd/parent","xd/jsonrpc",function(a,b){var c=h.assetUrl()+"/widgets/hub.html";twttr.events.hub=a.connect({src:c,iframe:{name:"twttrHubFrame",style:"position:absolute;top:-9999em;width:10px;height:10px"}}),b(twttr.events.hub).expose({trigger:function(a,b,c){var b=b||{},d=b.region;delete b.region,twttr.events.trigger(a,{target:g.find(c),data:b,region:d,type:a})}})})}function j(a){return(window.location.protocol.match(/s\:$/)||a)&&!twttr.ignoreSSL?"https":"http"}var h={},i=0;h.widgets={"a.twitter-share-button":d.Embeddable,"a.twitter-follow-button":c.Embeddable,body:e.Listener},h.assetUrl=function(a){return j(a)+"://"+twttr.host},twttr.events=b.aug({},f.Emitter),twttr.events.oldbind=twttr.events.bind,twttr.events.bind=function(a,b){k(),this.bind=this.oldbind,this.bind(a,b)};for(var l=0;handler=a[l];l++)twttr.events.bind(handler[0],handler[1]);twttr.widgets={load:function(){g.init(h),g.embed()}},twttr.widgets.load()})}()});;

