if(typeof Meetup==="undefined"){Meetup={}}if(Meetup.Tweener===undefined){Meetup.Tweener={}}Meetup.Tweener.easingFunctionsLowerCase={};Meetup.Tweener.frameInterval=0;Meetup.Tweener.isUsing="MochiKit";Meetup.Tweener.styleLib=null;Meetup.Tweener.tweens={};Meetup.Tweener.FPS=55;Meetup.Tweener.VERSION="0.5.2";Meetup.Tweener.namedColors={white:"#ffffff",black:"#000000",blue:"#0000FF"};Meetup.Tweener.DEFAULT_PARAMS={time:1,transition:"easeoutcubic",delay:0,onStart:undefined,onStartParams:undefined,onUpdate:undefined,onUpdateParams:undefined,onComplete:undefined,onCompleteParams:undefined};Meetup.Tweener.REGEX_NUM=new RegExp(/\-*\d*\.\d+|\-*\d+/);Meetup.Tweener.STYLE_NAMES=["background-color","background-image","border-bottom-color","border-bottom-width","border-left-color","border-left-width","border-right-color","border-right-width","border-spacing","border-top-color","border-top-width","bottom","color","content","fill","fill-opacity","font-size","font-weight","height","left","letter-spacing","lighting-color","line-height","list-style-image","list-style-position","margin-bottom","margin-left","margin-right","margin-top","marker-offset","max-height","max-width","min-height","min-width","opacity","outline-color","outline-offset","outline-width","padding-bottom","padding-left","padding-right","padding-top","right","stop-color","stop-opacity","stroke-dashoffset","stroke-opacity","stroke-width","text-indent","top","width","word-spacing","z-index","-moz-border-bottom-colors","-moz-border-left-colors","-moz-border-radius-bottomleft","-moz-border-radius-bottomright","-moz-border-radius-topleft","-moz-border-radius-topright","-moz-border-right-colors","-moz-border-top-colors","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-width","-moz-float-edge","-moz-force-broken-image-icon","-moz-image-region","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright"];Meetup.Tweener.addTween=function(target,params,notNow){this.init();return this.addTween(target,params,notNow)};Meetup.Tweener.getTweens=function(target){var tween,arr=[];tween=this.findTween(target);if(tween!==null){var i,j;for(i in tween.finishingNormalProperties){arr[arr.length]=i}for(j in tween.finishingStyleProperties){arr[arr.length]=j}}return arr};Meetup.Tweener.isTweening=function(target){var result=false;if(Meetup.Tweener.findTween(target)){result=true}return result};Meetup.Tweener.pauseAllTweens=function(){var i,result=false;for(i in this.tweens){if(this.tweens[i]&&this.tweens[i].stop()){result=true}}return result};Meetup.Tweener.pauseTweens=function(target){var tween,result=false;tween=this.findTween(target);if((tween!==null)&&(tween.stop())){result=true}return result};Meetup.Tweener.removeAllTweens=function(){var i,result=false;for(i in this.tweens){if(this.tweens[i]&&this.tweens[i].discard()){result=true}}this.tweens={};return result};Meetup.Tweener.removeTweens=function(target){var tween=Meetup.Tweener.findTween(target),result=false;if(tween){tween.discard();result=true}return result};Meetup.Tweener.resumeAllTweens=function(){var i,result=false;for(i in this.tweens){if(this.tweens[i]&&this.tweens[i].start()){result=true}}return result};Meetup.Tweener.resumeTweens=function(target){var tween=Meetup.Tweener.findTween(target),result=false;if(tween&&tween.start()){result=true}return result};Meetup.Tweener.compileColor=function(arr){var i,val,hex,result=["#"];for(i=0;i<3;++i){if(arr[i]<0){val=0}else{if(arr[i]>255){val=255}else{val=Math.round(arr[i])}}hex=val.toString(16);if(hex.length<2){hex="0"+hex}result[result.length]=hex}return result.join("")};Meetup.Tweener.configureStyleLib=function(lib){lib=lib||Meetup.Tweener.isUsing;switch(typeof lib){case"object":Meetup.Tweener.styleLib=lib;break;case"string":Meetup.Tweener.styleLib={};if(lib==="MochiKit"){Meetup.Tweener.styleLib.get=function(elm,prop){return MochiKit.Style.getStyle(elm,prop)};Meetup.Tweener.styleLib.set=function(elm,prop,value){var obj={};obj[prop]=value;return MochiKit.Style.setStyle(elm,obj)};Meetup.Tweener.styleLib.bulkSet=function(elm,obj){return MochiKit.Style.setStyle(elm,obj)}}else{if(lib==="jQuery"){Meetup.Tweener.styleLib.get=function(elm,prop){return jQuery(elm).css(prop)};Meetup.Tweener.styleLib.set=function(elm,prop,value){return jQuery(elm).css(prop,value)};Meetup.Tweener.styleLib.bulkSet=function(elm,obj){return jQuery(elm).css(obj)}}}break}if(Meetup.Tweener.styleLib===null){throw new Error("not right")}};Meetup.Tweener.diffColor=function(fut,cur){return[(fut[0]-cur[0]),(fut[1]-cur[1]),(fut[2]-cur[2])]};Meetup.Tweener.findTween=function(criteria){var result;if(typeof criteria==="string"){result=this.tweens[criteria]}else{if(!(criteria instanceof Object)||(criteria===null)){result=null}else{if(criteria instanceof Meetup.Tweener.Tween){result=criteria}else{var twid;if(Meetup.Tweener.isDOMNode(criteria)){twid=criteria.getAttribute("tweenId")}else{twid=criteria.tweendId}if(twid){result=this.tweens[twid]}else{result=null}}}}if(result===undefined){result=null}return result};Meetup.Tweener.init=function(){this.configureStyleLib();this.frameInterval=parseInt(1000/Meetup.Tweener.FPS,10);this.addTween=function(target,params,notNow){notNow=notNow||false;var twid="MeetupTw"+Meetup.Tweener.now();this.tweens[twid]=new Meetup.Tweener.Tween(target,params,twid);if(Meetup.Tweener.isDOMNode(target)){target.setAttribute("tweenId",twid)}else{target.tweenId=twid}if(!notNow){this.tweens[twid].start()}return this.tweens[twid]};delete this.init};Meetup.Tweener.isDOMNode=function(obj){var result=false,str_type=typeof obj.getElementsByTagName;if(str_type==="function"){result=true}else{if(str_type==="object"){if(obj.nodeName){result=true}}}return result};Meetup.Tweener.isStyleTweenable=function(key){var SEP=String.fromCharCode(31),styles=Meetup.Tweener.STYLE_NAMES.join(SEP);Meetup.Tweener.isStyleTweenable=function(k){var result=true;if(styles.indexOf(k)<0){result=false}return result};return Meetup.Tweener.isStyleTweenable(key)};Meetup.Tweener.now=function(){return +new Date()};Meetup.Tweener.parseColorValue=function(val){if(typeof val!=="string"||val===""||val==="transparent"){return[255,255,255]}var first=val.substring(0,1);if(first==="#"){return Meetup.Tweener.parseColorSharp(val)}else{if(first==="r"){return Meetup.Tweener.parseColorRGB(val)}else{if(typeof Meetup.Tweener.namedColors[val]!=="undefined"){return Meetup.Tweener.parseColorSharp(Meetup.Tweener.namedColors[val])}}}throw new Error("Unknown value type: "+val)};Meetup.Tweener.parseColorRGB=function(val){var arr=val.slice(4,-1).split(",");return[parseInt(arr[0],10),parseInt(arr[1],10),parseInt(arr[2],10)]};Meetup.Tweener.parseColorSharp=function(val){var result=[0,0,0],len=val.length;if(len===4){var r=val.substring(1,2),g=val.substring(2,3),b=val.substring(3);result[0]=parseInt((r+r),16);result[1]=parseInt((g+g),16);result[2]=parseInt((b+b),16)}else{result[0]=parseInt(val.substring(1,3),16);result[1]=parseInt(val.substring(3,5),16);result[2]=parseInt(val.substring(5,7),16)}return result};Meetup.Tweener.parseValue=function(val){var str,result={value:0,unit:null};if(typeof val==="undefined"){str="0"}else{if(val){str=val.toString()}else{str="0"}}if(str.match(/\d/)){result.value=Number(str.match(Meetup.Tweener.REGEX_NUM))}if(str.match(/in\s*\;*/)){result.unit="in"}else{if(str.match(/cm\;*/)){result.unit="cm"}else{if(str.match(/mm\;*/)){result.unit="mm"}else{if(str.match(/em\;*/)){result.unit="em"}else{if(str.match(/ex\;*/)){result.unit="ex"}else{if(str.match(/pc\;*/)){result.unit="pc"}else{if(str.match(/pt\;*/)){result.unit="pt"}else{if(str.match(/px\;*/)){result.unit="px"}else{if(str.match(/%\;*/)){result.unit="%"}}}}}}}}}return result};Meetup.Tweener.removeTweenById=function(id){var obj=this.tweens[id];if(obj&&obj.isLooping){obj.stop()}delete this.tweens[id]};Meetup.Tweener.smoothValue=function(obj,prop){var result,str_type=typeof obj[prop];if(str_type==="undefined"){result=obj[prop]=0}else{if(str_type!="number"){result=obj[prop]=Number(obj[prop].toString().match(Meetup.Tweener.REGEX_NUM))}else{result=obj[prop]}}return result};Meetup.Tweener.Tween=function(target,params,twid){this.target=target;this.tweenId=twid;this.isLooping=false;this.processes=[];this.timerPointer=null;this.finishingStyleProperties={};this.finishingNormalProperties={};this.easing=null;this.startTime=null;this.endTime=null;this.elapsedTime=0;this.duration=null;this.innerStart=null;this.innerUpdate=null;this.innerComplete=null;this.innerEventLoop=null;Meetup.Tweener.Tween.compensateParams(this,params);this.duration=this.time*1000;this.easing=(typeof this.transition==="function")?this.transition:Meetup.Tweener.easingFunctionsLowerCase[this.transition.toLowerCase()];this.createInners();delete this.createInners;var key,change,current,future,tweentype,func,bucket=null;if(!Meetup.Tweener.isDOMNode(target)){for(key in params){current=Meetup.Tweener.smoothValue(target,key);future=Meetup.Tweener.smoothValue(params,key);change=future-current;this.finishingNormalProperties[key]=future;this.processes[this.processes.length]=Meetup.Tweener.Tween.generateDirectProcess(this.target,key,this.easing,current,change,this.duration)}}else{for(key in params){func=null;if(Meetup.Tweener.isStyleTweenable(key)){if(bucket===null){bucket={}}bucket[key]=params[key];continue}else{current=Meetup.Tweener.smoothValue(target,key);future=Meetup.Tweener.smoothValue(params,key);change=future-current;func=Meetup.Tweener.Tween.generateDirectProcess(this.target,key,this.easing,current,change,this.duration);this.finishingNormalProperties[key]=future}this.processes[this.processes.length]=func}}if(bucket!==null){this.processes[this.processes.length]=this.createCssProcess(bucket)}delete this.createCssProcess};Meetup.Tweener.Tween.prototype.createCssProcess=function(params){var key,obj,current,future,change,ms=[];for(key in params){obj={};obj.key=key;if(key.match(/color/)){current=Meetup.Tweener.parseColorValue(Meetup.Tweener.styleLib.get(this.target,key));future=Meetup.Tweener.parseColorValue(params[key]);change=Meetup.Tweener.diffColor(future,current);this.finishingStyleProperties[key]=params[key];obj.bg=current;obj.cg=change}else{current=Meetup.Tweener.parseValue(Meetup.Tweener.styleLib.get(this.target,key));future=Meetup.Tweener.parseValue(params[key]);if(current.unit===null){if(future.unit===null){current.unit=future.unit=""}else{current.unit=future.unit}}else{if(future.unit===null){future.unit=current.unit}}change=future.value-current.value;this.finishingStyleProperties[key]=future.value+future.unit;obj.bg=current.value;obj.cg=change;obj.un=future.unit}ms[ms.length]=obj}var mtsb,mtcc,l,d,tg,es;mtsb=Meetup.Tweener.styleLib.bulkSet;mtcc=Meetup.Tweener.compileColor;l=ms.length;d=this.duration;tg=this.target;es=this.easing;return function(tm){var m,r,g,b,i,rs={};for(i=0;i<l;++i){m=ms[i];if(m.bg instanceof Array){r=es(tm,m.bg[0],m.cg[0],d);g=es(tm,m.bg[1],m.cg[1],d);b=es(tm,m.bg[2],m.cg[2],d);rs[m.key]=mtcc([r,g,b])}else{rs[m.key]=es(tm,m.bg,m.cg,d)+m.un}}mtsb(tg,rs)}};Meetup.Tweener.Tween.prototype.createInners=function(){var target=this.target;if(this.onStart){var onstart=this.onStart;if(this.onStartParams){var onstartparams=this.onStartParams;if(!(onstartparams instanceof Array)){this.onStartParams=[onstartparams]}this.innerStart=function(){onstart.apply(target,onstartparams)}}else{this.innerStart=function(){onstart.apply(target)}}}if(this.onUpdate){var onupdate=this.onUpdate;if(this.onUpdateParams){var onupdateparams=this.onUpdateParams;if(!(this.onUpdateParams instanceof Array)){this.onUpdateParams=[this.onUpdateParams]}this.innerUpdate=function(){onupdate.apply(target,onupdateparams)}}else{this.innerUpdate=function(){onupdate.apply(target)}}}var finishStyle=this.finishingStyleProperties,finishProp=this.finishingNormalProperties,innerupdate=this.innerUpdate,oncomplete=this.onComplete,oncompleteparams=this.onCompleteParams;this.innerComplete=function(){var j,k;for(j in finishStyle){Meetup.Tweener.styleLib.set(target,j,finishStyle[j])}for(k in finishProp){target[k]=finishProp[k]}if(innerupdate){innerupdate()}if(oncomplete){if(oncompleteparams){if(!(oncompleteparams instanceof Array)){oncompleteparams=[oncompleteparams]}oncomplete.apply(target,oncompleteparams)}else{oncomplete.apply(target)}}};var s=this,e=this.eventLoop;this.innerEventLoop=function(){e.apply(s)}};Meetup.Tweener.Tween.prototype.discard=function(){this.stop();Meetup.Tweener.removeTweenById(this.tweenId)};Meetup.Tweener.Tween.prototype.dump=function(){this.discard()};Meetup.Tweener.Tween.prototype.eventLoop=function(){var n=Meetup.Tweener.now(),ct=n-this.startTime+this.elapsedTime;if(n<this.endTime){var i,ps=this.processes,len=ps.length;for(i=0;i<len;++i){ps[i](ct)}if(this.innerUpdate){this.innerUpdate()}this.timerPointer=window.setTimeout(this.innerEventLoop,Meetup.Tweener.frameInterval)}else{this.stop();this.innerComplete();Meetup.Tweener.removeTweenById(this.tweenId)}};Meetup.Tweener.Tween.prototype.start=function(){if(this.isLooping){return false}var epoch=Meetup.Tweener.now();if(this.startTime===null){this.startTime=epoch;this.endTime=this.startTime+this.duration}else{this.startTime=epoch;this.endTime=epoch+this.duration-this.elapsedTime}if(this.endTime<=epoch){return false}var s=this,innerstart=this.innerStart,innerloop=this.innerEventLoop,delay=this.delay*1000;this.timerPointer=window.setTimeout(function(){if(innerstart){innerstart();innerstart=null}if(!s.isLooping){s.isLooping=true;innerloop()}},delay);return true};Meetup.Tweener.Tween.prototype.stop=function(){if(this.timerPointer){window.clearTimeout(this.timerPointer)}this.timerPointer=null;if(!this.isLooping){return false}this.elapsedTime=Meetup.Tweener.now()-this.startTime;this.isLooping=false;return true};Meetup.Tweener.Tween.compensateParams=function(instance,params){var key,defaults=Meetup.Tweener.DEFAULT_PARAMS;for(key in defaults){if(params[key]){if(key==="time"||key==="delay"){instance[key]=parseFloat(params[key])}else{if(key==="transition"){var keytype=typeof params[key];if(keytype!=="string"&&keytype!=="function"){throw new Error("You have to pass string or function as a transition param. You passed: "+params[key])}instance[key]=params[key]}else{instance[key]=params[key]}}delete params[key]}else{instance[key]=defaults[key]}}};Meetup.Tweener.Tween.generateDirectProcess=function(t,k,e,b,c,d){return function(tm){t[k]=e(tm,b,c,d)}};Meetup.Tweener.easingFunctions={easeNone:function(t,b,c,d){return c*t/d+b},easeInQuad:function(t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(t,b,c,d){return -c*(t/=d)*(t-2)+b},easeInOutQuad:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b}return -c/2*((--t)*(t-2)-1)+b},easeInCubic:function(t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t+b}return c/2*((t-=2)*t*t+2)+b},easeOutInCubic:function(t,b,c,d){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutCubic(t*2,b,c/2,d)}return Meetup.Tweener.easingFunctions.easeInCubic((t*2)-d,b+c/2,c/2,d)},easeInQuart:function(t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(t,b,c,d){return -c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b}return -c/2*((t-=2)*t*t*t-2)+b},easeOutInQuart:function(t,b,c,d){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutQuart(t*2,b,c/2,d)}return Meetup.Tweener.easingFunctions.easeInQuart((t*2)-d,b+c/2,c/2,d)},easeInQuint:function(t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t*t+b}return c/2*((t-=2)*t*t*t*t+2)+b},easeOutInQuint:function(t,b,c,d){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutQuint(t*2,b,c/2,d)}return Meetup.Tweener.easingFunctions.easeInQuint((t*2)-d,b+c/2,c/2,d)},easeInSine:function(t,b,c,d){return -c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b},easeOutInSine:function(t,b,c,d){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutSine(t*2,b,c/2,d)}return Meetup.Tweener.easingFunctions.easeInSine((t*2)-d,b+c/2,c/2,d)},easeInExpo:function(t,b,c,d){return(t===0)?b:c*Math.pow(2,10*(t/d-1))+b-c*0.001},easeOutExpo:function(t,b,c,d){return(t==d)?b+c:c*1.001*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(t,b,c,d){if(t===0){return b}if(t==d){return b+c}if((t/=d/2)<1){return c/2*Math.pow(2,10*(t-1))+b-c*0.0005}return c/2*1.0005*(-Math.pow(2,-10*--t)+2)+b},easeOutInExpo:function(t,b,c,d){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutExpo(t*2,b,c/2,d)}return Meetup.Tweener.easingFunctions.easeInExpo((t*2)-d,b+c/2,c/2,d)},easeInCirc:function(t,b,c,d){return -c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(t,b,c,d){if((t/=d/2)<1){return -c/2*(Math.sqrt(1-t*t)-1)+b}return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeOutInCirc:function(t,b,c,d){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutCirc(t*2,b,c/2,d)}return Meetup.Tweener.easingFunctions.easeInCirc((t*2)-d,b+c/2,c/2,d)},easeInElastic:function(t,b,c,d,a,p){var s;if(t===0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(!a||a<Math.abs(c)){a=c;s=p/4}else{s=p/(2*Math.PI)*Math.asin(c/a)}return -(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(t,b,c,d,a,p){var s;if(t===0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(!a||a<Math.abs(c)){a=c;s=p/4}else{s=p/(2*Math.PI)*Math.asin(c/a)}return(a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b)},easeInOutElastic:function(t,b,c,d,a,p){var s;if(t===0){return b}if((t/=d/2)==2){return b+c}if(!p){p=d*(0.3*1.5)}if(!a||a<Math.abs(c)){a=c;s=p/4}else{s=p/(2*Math.PI)*Math.asin(c/a)}if(t<1){return -0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b}return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b},easeOutInElastic:function(t,b,c,d,a,p){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutElastic(t*2,b,c/2,d,a,p)}return Meetup.Tweener.easingFunctions.easeInElastic((t*2)-d,b+c/2,c/2,d,a,p)},easeInBack:function(t,b,c,d,s){if(s===undefined){s=1.70158}return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(t,b,c,d,s){if(s===undefined){s=1.70158}return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(t,b,c,d,s){if(s===undefined){s=1.70158}if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b}return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeOutInBack:function(t,b,c,d,s){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutBack(t*2,b,c/2,d,s)}return Meetup.Tweener.easingFunctions.easeInBack((t*2)-d,b+c/2,c/2,d,s)},easeInBounce:function(t,b,c,d){return c-Meetup.Tweener.easingFunctions.easeOutBounce(d-t,0,c,d)+b},easeOutBounce:function(t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else{if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b}else{if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b}}}return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b},easeInOutBounce:function(t,b,c,d){if(t<d/2){return Meetup.Tweener.easingFunctions.easeInBounce(t*2,0,c,d)*0.5+b}return Meetup.Tweener.easingFunctions.easeOutBounce(t*2-d,0,c,d)*0.5+c*0.5+b},easeOutInBounce:function(t,b,c,d){if(t<d/2){return Meetup.Tweener.easingFunctions.easeOutBounce(t*2,b,c/2,d)}return Meetup.Tweener.easingFunctions.easeInBounce((t*2)-d,b+c/2,c/2,d)}};Meetup.Tweener.easingFunctions.linear=Meetup.Tweener.easingFunctions.easeNone;(function(){for(var key in Meetup.Tweener.easingFunctions){Meetup.Tweener.easingFunctionsLowerCase[key.toLowerCase()]=Meetup.Tweener.easingFunctions[key]}})();if(typeof Meetup==="undefined"){Meetup={}}Meetup.DiscreteBase=function(){};Meetup.DiscreteBase.prototype.initialize=function(parent,ins,args){var i,root,funcInit=ins.init;for(i in Meetup.DiscreteBase){if(((i!=="prototype")||(i!=="constructor"))&&parent[i]===undefined){parent[i]=Meetup.DiscreteBase[i]}}ins.parent=parent;ins.bindedFunctions={};ins.elements={};ins.events={};ins.evPointers={};ins.boolHasTweener=(Meetup.Tweener===undefined)?false:true;ins.boolMSIE=(/msie/.test(navigator.userAgent.toLowerCase())&&!(/opera/.test(navigator.userAgent.toLowerCase())));root=parent.buildRoot(document.body,parent.ROOT_CLASS_NAME,parent.SERIALIZED_HTML);ins.elements.root=root;delete ins.init;ins.initialize=Meetup.DiscreteBase.bind(funcInit,ins);return ins.initialize.apply(ins,args)};Meetup.DiscreteBase.NAME="Meetup.DiscreteBase";Meetup.DiscreteBase.ROOT_CLASS_NAME="J_discreteBase";Meetup.DiscreteBase.EVENT_NAMES=["onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"];Meetup.DiscreteBase.PUBLIC_METHODS=["attach","detach","discard","getRoot","hasDiscarded","hide","isShowing","opacity","dimension","offset","position","show","zIndex"];Meetup.DiscreteBase.REGEX_ABSOLUTE_PATH=new RegExp("^(http|https)://");Meetup.DiscreteBase.REGEX_CSS_IMAGE=new RegExp(/\(["]?(.*?)["]?\)$/);Meetup.DiscreteBase.REGEX_TRIM=new RegExp(/^\s+|\s+$/g);Meetup.DiscreteBase.REGEX_JS_NUM=new RegExp(/\-*\d*\.\d+|\-*\d+/);Meetup.DiscreteBase.SEC_FADE_IN=0.5;Meetup.DiscreteBase.SEC_FADE_OUT=0.5;Meetup.DiscreteBase.SERIALIZED_HTML='<div class="bg"></div><div class="display"></div><div class="interact"></div>';Meetup.DiscreteBase.TRANS_FADE_IN="easeOutQuart";Meetup.DiscreteBase.TRANS_FADE_OUT="easeOutQuart";Meetup.DiscreteBase.prototype.parent=null;Meetup.DiscreteBase.prototype.bindedFunctions=null;Meetup.DiscreteBase.prototype.elements=null;Meetup.DiscreteBase.prototype.events=null;Meetup.DiscreteBase.prototype.evPointers=null;Meetup.DiscreteBase.prototype.tween=null;Meetup.DiscreteBase.prototype.boolMSIE=false;Meetup.DiscreteBase.prototype.boolShowing=false;Meetup.DiscreteBase.prototype.boolDiscarded=false;Meetup.DiscreteBase.prototype.boolHasTweener=false;Meetup.DiscreteBase.prototype.x=0;Meetup.DiscreteBase.prototype.y=0;Meetup.DiscreteBase.prototype.w=0;Meetup.DiscreteBase.prototype.h=0;Meetup.DiscreteBase.prototype.alpha=0;Meetup.DiscreteBase.prototype.z=0;Meetup.DiscreteBase.prototype.offsetX=true;Meetup.DiscreteBase.prototype.offsetY=true;Meetup.DiscreteBase.prototype.attach=function(evName,func){var SEP=String.fromCharCode(31),reg=new RegExp(SEP+evName+SEP);if(this.eventsNames===undefined){this.eventsNames=[""].concat(this.parent.EVENT_NAMES).concat([""]).join(SEP)}if(this.eventsNames.match(reg)===null){throw new Error("No event trigger exists: "+evName)}var evs=this.events[evName];if(evs===undefined){this.events[evName]=[];evs=this.events[evName]}evs[evs.length]=func};Meetup.DiscreteBase.prototype.detach=function(evName){var result=false;if(this.eventsNames===undefined){return result}if(this.events[evName]!==null){this.events[evName]=undefined;result=true}return result};Meetup.DiscreteBase.prototype.discard=function(){if(this.tween){this.tween.discard()}var obj,evName,i,len,MSD=MochiKit.Signal.disconnect,root=this.elements.root;for(evName in this.evPointers){obj=this.evPointers[evName];if(obj instanceof Array){for(i=0,len=obj.length;i<len;++i){MSD(obj[i])}}else{MSD(obj)}}delete this.parent;root.parentNode.removeChild(root);this.events=null;this.evPointers=null;this.objContent=null;this.elements=null;this.boolDiscarded=true};Meetup.DiscreteBase.prototype.getRoot=function(){return(this.elements.root!==undefined)?this.elements.root:null};Meetup.DiscreteBase.prototype.hasDiscarded=function(){return this.boolDiscarded};Meetup.DiscreteBase.prototype.hide=function(){if(!this.boolShowing){return false}if(this.tween){this.tween.discard()}var i,len,opt,afterFunc,self=this,before=this.events.onBeforeHide,after=this.events.onAfterHide,root=this.elements.root,rootStyle=root.style,time=this.parent.SEC_FADE_IN,trans=this.parent.TRANS_FADE_IN;if(before){for(i=0,len=before.length;i<len;++i){before[i]()}}afterFunc=function(){rootStyle.display="none";self.tween=null;self.opacity(0);if(after){for(var j=0,men=after.length;j<men;++j){after[j]()}}};this.boolShowing=false;if(this.boolHasTweener){rootStyle.display="block";opt={opacity:0,transition:trans,time:time,onComplete:afterFunc};this.tween=Meetup.Tweener.addTween(root,opt)}else{afterFunc()}return true};Meetup.DiscreteBase.prototype.isShowing=function(){return this.boolShowing};Meetup.DiscreteBase.prototype.show=function(){if(this.boolShowing){return false}if(this.tween){this.tween.discard()}var i,len,opt,afterFunc,self=this,before=this.events.onBeforeShow,after=this.events.onAfterShow,root=this.elements.root,rootStyle=root.style,time=this.parent.SEC_FADE_IN,trans=this.parent.TRANS_FADE_IN;if(before){for(i=0,len=before.length;i<len;++i){before[i]()}}afterFunc=function(){self.tween=null;self.opacity(1);if(after){for(i=0,len=after.length;i<len;++i){after[i]()}}};this.boolShowing=true;if(this.boolHasTweener){this.opacity(0);rootStyle.display="block";opt={opacity:1,transition:trans,time:time,onComplete:afterFunc};this.tween=Meetup.Tweener.addTween(root,opt)}else{rootStyle.display="block";afterFunc()}return true};Meetup.DiscreteBase.prototype.dimension=function(w,h){if(arguments.length===0){return this.retrieveDimension()}throw new Error("please implement this: dimension")};Meetup.DiscreteBase.prototype.opacity=function(opa){if(arguments.length===0){return this.alpha}var flt_opa=parseFloat(opa);if(flt_opa>1){flt_opa=1}else{if(flt_opa<0){flt_opa=0}}this.alpha=flt_opa;MochiKit.Style.setStyle(this.elements.root,{opacity:flt_opa});return this.alpha};Meetup.DiscreteBase.prototype.offset=function(x,y){if(arguments.length!==0){var tmp;if(x===true){this.offsetX=true}else{tmp=this.parent.getNumeric(x);if(tmp){this.offsetX=tmp}else{this.offsetX=0}}if(y===true){this.offsetY=true}else{tmp=this.parent.getNumeric(y);if(tmp){this.offsetY=tmp}else{this.offsetY=0}}this.resetPosition()}return{x:this.offsetX,y:this.offsetY}};Meetup.DiscreteBase.prototype.position=function(x,y){if(arguments.length!==0){this.resetPosition();var coord,rs=this.elements.root.style;this.x=x;this.y=y;coord=this.parent.translateCoordinate(this.x,this.y,this.w,this.h,this.offsetX,this.offsetY);rs.left=coord.x+"px";rs.top=coord.y+"px"}return{x:this.x,y:this.y}};Meetup.DiscreteBase.prototype.zIndex=function(z){if(arguments.length!==0){this.z=z;this.elements.root.style.zIndex=this.z}else{this.z=MochiKit.Style.getStyle(this.elements.root,"z-index")}return{z:this.z}};Meetup.DiscreteBase.prototype.bindEvents=function(isConnecting){var i,len,name,method,parent=this.parent,methods=parent.EVENT_NAMES;isConnecting=isConnecting||false;for(i=0,len=methods.length;i<len;++i){name=methods[i];if(this[name]){this.bindedFunctions[name]=parent.bind(this[name],this)}}for(i in this){if((typeof this[i]==="function")&&(i.match(/^on[A-Z]/)!==null)){this.bindedFunctions[i]=parent.bind(this[i],this)}}};Meetup.DiscreteBase.prototype.embody=function(){var result=false,root=this.elements.root,MKS=MochiKit.Style;if(MKS.getStyle(root,"display")==="none"){MKS.setStyle(root,{visibility:"hidden",display:"block"});result=true}return result};Meetup.DiscreteBase.prototype.unembody=function(){var result=false,root=this.elements.root,MKS=MochiKit.Style;if(MKS.getStyle(root,"display")!=="none"){MKS.setStyle(root,{visibility:"visible",display:"none"});result=true}return result};Meetup.DiscreteBase.prototype.publicMethods=function(){var i,len,name,parent=this.parent,result={},methods=parent.PUBLIC_METHODS;for(i=0,len=methods.length;i<len;++i){name=methods[i];result[name]=parent.bind(this[name],this)}return result};Meetup.DiscreteBase.prototype.resetPosition=function(skipEmbody){var dim,coord,rs=this.elements.root.style,result=false;skipEmbody=skipEmbody||false;if(!skipEmbody){result=this.embody(true)}dim=this.retrieveDimension(true);coord=this.parent.translateCoordinate(this.x,this.y,dim.w,dim.h,this.offsetX,this.offsetY);rs.left=coord.x+"px";rs.top=coord.y+"px";if(result&&!skipEmbody){this.unembody();result=false}return result};Meetup.DiscreteBase.prototype.retrieveDimension=function(skipEmbody){skipEmbody=skipEmbody||false;var dim,flag=false;if(!skipEmbody){flag=this.embody()}dim=this.parent.smoothMochiKitPixelObject(MochiKit.Style.getElementDimensions(this.elements.root));this.w=dim.w;this.h=dim.h;if(flag&&!skipEmbody){flag=this.unembody()}return{w:this.w,h:this.h}};Meetup.DiscreteBase.bind=function(func,context){return function(){var arr=Array.prototype.slice.apply(arguments,[0]);return func.apply(context,arr)}};Meetup.DiscreteBase.buildRoot=function(parent,className,innerHTML){var root=MochiKit.DOM.createDOM("div",{"class":className});MochiKit.Style.setStyle(root,{display:"none",position:"absolute"});root.innerHTML=innerHTML;parent=parent||document.body;parent.appendChild(root);return root};Meetup.DiscreteBase.clearChildElements=function(elm){if(elm.childNodes===undefined){throw new Error("You need to pass DOM Element.  You have passed:"+elm)}for(var i=0,len=elm.childNodes.length;i<len;++i){elm.removeChild(elm.childNodes[0])}};Meetup.DiscreteBase.compileColor=function(arr){var i,val,hex,result=["#"];for(i=0;i<3;++i){if(arr[i]<0){val=0}else{if(arr[i]>255){val=255}else{val=Math.round(arr[i])}}hex=val.toString(16);if(hex.length<2){hex="0"+hex}result[result.length]=hex}return result.join("")};Meetup.DiscreteBase.convertRgbHsv=function(r,g,b){var h,s,v,dR,dG,dB,_r=r/255,_g=g/255,_b=b/255,min=Math.min(_r,_g,_b),max=Math.max(_r,_g,_b),delta=max-min;v=max;if(delta===0){h=0;s=0}else{s=delta/max;dR=(((max-_r)/6)+(delta/2))/delta;dG=(((max-_g)/6)+(delta/2))/delta;dB=(((max-_b)/6)+(delta/2))/delta;if(_r===max){h=dB-dG}else{if(_g===max){h=(1/3)+dR-dB}else{h=(2/3)+dG-dR}}if(h<0){h+=1}else{if(h>1){h-=1}}}return[h,s,v]};Meetup.DiscreteBase.convertHsvRgb=function(h,s,v){var r,g,b,_h,_i,_1,_2,_3;if(s===0){r=v;g=v;b=v}else{_h=h*6;_i=Math.floor(_h);_1=v*(1-s);_2=v*(1-s*(_h-_i));_3=v*(1-s*(1-(_h-_i)));if(_i===0){r=v;g=_3;b=_1}else{if(_i===1){r=_2;g=v;b=_1}else{if(_i===2){r=_1;g=v;b=_3}else{if(_i===3){r=_1;g=_2;b=v}else{if(_i===4){r=_3;g=_1;b=v}else{r=v;g=_1;b=_2}}}}}}return[Math.round(r*255),Math.round(g*255),Math.round(b*255)]};Meetup.DiscreteBase.findParent=function(elm,tag,cls){var c=0,iter=elm,fpc=Meetup.DiscreteBase.findParentCheck;tag=tag.toLowerCase();while(fpc(iter,tag,cls)===false){if(c>10){throw new Error("Too deep recursion")}iter=iter.parentNode;++c}return iter};Meetup.DiscreteBase.findParentCheck=function(elm,tag,cls){var result=false;if(elm.tagName.toLowerCase()===tag){if(cls===undefined||cls===null||elm.className===String(cls)){result=true}}return result};Meetup.DiscreteBase.getAbsolutePath=function(path){var e=document.createElement("div");e.innerHTML='<a href="'+path+'" />';return e.firstChild.href};Meetup.DiscreteBase.getBackgroundImagePathByElement=function(elm){var arr,bgi=MochiKit.Style.getStyle(elm,"background-image");arr=bgi.match(Meetup.DiscreteBase.REGEX_CSS_IMAGE);if(arr===null){return null}return arr[1].match(Meetup.DiscreteBase.REGEX_ABSOLUTE_PATH)?Meetup.DiscreteBase.getAbsolutePath(arr[1]):arr[1]};Meetup.DiscreteBase.getImageInfoFromCSS=function(tag,classname){var elm,dim,path;if(classname.indexOf(".")>0){classname=classname.split(".").join(" ")}elm=MochiKit.DOM.createDOM(tag,{"class":classname});elm.style.visibility="hidden";elm.style.display="none";document.body.appendChild(elm);dim=MochiKit.Style.getElementDimensions(elm);path=MochiKit.Style.getStyle(elm,"background-image");document.body.removeChild(elm);return{path:path,dimension:dim}};Meetup.DiscreteBase.getNumeric=function(inp){if((inp===null)||(inp===undefined)){return null}var result,tmp,strType=typeof inp;switch(strType){case"boolean":result=+inp;break;case"function":result=null;break;case"number":result=inp;break;case"object":if(result instanceof Array){tmp=inp.join(".").match(Meetup.DiscreteBase.REGEX_JS_NUM)}else{tmp=inp.toString().match(Meetup.DiscreteBase.REGEX_JS_NUM)}if(tmp){result=parseFloat(tmp[0])}else{result=null}break;case"string":tmp=inp.match(Meetup.DiscreteBase.REGEX_JS_NUM);if(tmp){result=parseFloat(tmp[0])}else{result=null}break}return result};Meetup.DiscreteBase.getTextDimension=function(text,target){target=target||document.body;var MSG=MochiKit.Style.getStyle,fontSize=MSG(target,"font-size"),fontWeight=MSG(target,"font-weight"),fontStyle=MSG(target,"font-style"),fontFamily=MSG(target,"font-family"),fontVariant=MSG(target,"font-variant"),letterSpacing=MSG(target,"letter-spacing"),wordSpacing=MSG(target,"word-spacing"),textTransform=MSG(target,"text-transform"),elm=document.createElement("tentative");elm.style.visibility="hidden";elm.style.display="inline";if(fontSize){elm.style.fontSize=fontSize}if(fontWeight){elm.style.fontWeight=fontWeight}if(fontStyle){elm.style.fontStyle=fontStyle}if(fontFamily){elm.style.fontFamily=fontFamily}if(fontVariant){elm.style.fontVariant=fontVariant}if(letterSpacing){elm.style.letterSpacing=letterSpacing}if(wordSpacing){elm.style.wordSpacing=wordSpacing}if(textTransform){elm.style.textTransform=textTransform}elm.innerHTML=text;document.body.appendChild(elm);var result=MochiKit.Style.getElementDimensions(elm);document.body.removeChild(elm);return Meetup.DiscreteBase.smoothMochiKitPixelObject(result)};Meetup.DiscreteBase.isDOMNode=function(obj){var result=false,str_type=typeof obj.getElementsByTagName;if(str_type==="function"){result=true}else{if(str_type==="object"){if(obj.nodeName){result=true}}}return result};Meetup.DiscreteBase.loadImgAsync=function(abspath,onLoad){var tick=0,delay=20,timeout=2000,img=new Image();img.finish=false;var funcError=function(ev){if(img.finish){return}img.finish=true;throw new Error("The given file path doesn't seem to exist")};img.onabort=funcError;img.onerror=funcError;img.onload=function(ev){img.finish=true;if(window.opera&&!img.complete){throw new Error("Opera specific problem")}onLoad(img)};img.src=abspath;if(!img.finish&&timeout){setTimeout(function(){if(img.finish){return}if(img.complete){img.finish=true;if(img.width){return}throw new Error("Unknown problem")}if((tick+=delay)>timeout){img.finish=true;throw new Error("Timeout")}setTimeout(arguments.callee,delay)},0)}};Meetup.DiscreteBase.parseColorValue=function(val){if(typeof val!=="string"||val===""||val==="transparent"){return[255,255,255]}var first=val.substring(0,1);if(first==="#"){return Meetup.DiscreteBase.parseColorSharp(val)}else{if(first==="r"){return Meetup.DiscreteBase.parseColorRGB(val)}}throw new Error("Unknown value type: "+val)};Meetup.DiscreteBase.parseColorRGB=function(val){var arr=val.slice(4,-1).split(",");return[parseInt(arr[0],10),parseInt(arr[1],10),parseInt(arr[2],10)]};Meetup.DiscreteBase.parseColorSharp=function(val){var result=[0,0,0],len=val.length;if(len===4){var r=val.substring(1,2),g=val.substring(2,3),b=val.substring(3);result[0]=parseInt((r+r),16);result[1]=parseInt((g+g),16);result[2]=parseInt((b+b),16)}else{result[0]=parseInt(val.substring(1,3),16);result[1]=parseInt(val.substring(3,5),16);result[2]=parseInt(val.substring(5,7),16)}return result};Meetup.DiscreteBase.round=function(inp,dec){dec=dec||2;var p=Math.pow(10,dec);return Math.round(inp*p)/p};Meetup.DiscreteBase.smoothMochiKitPixelObject=function(obj){var i,result={},MF=Math.floor;for(i in obj){if(obj.hasOwnProperty(i)){result[i]=MF(obj[i])}}return result};Meetup.DiscreteBase.stringify=function(obj){return""+obj};Meetup.DiscreteBase.swapBackgroundToFilter=function(elm,path,isScale){isScale=isScale||false;elm.style.backgroundImage="none";if(isScale){elm.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+path+'",sizingMethod="scale")'}else{elm.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+path+'")'}};Meetup.DiscreteBase.swapElementsBackgroundToFilter=function(){if(!(/msie/.test(navigator.userAgent.toLowerCase())&&!/opera/.test(navigator.userAgent.toLowerCase()))){return}var i,len,tag,path,parent=Meetup.DiscreteBase,arr=arguments;for(i=0,len=arr.length;i<len;++i){tag=arr[i];path=parent.getBackgroundImagePathByElement(tag);parent.swapBackgroundToFilter(tag,path)}};Meetup.DiscreteBase.swapElementsBackgroundToFilterScaled=function(){if(!(/msie/.test(navigator.userAgent.toLowerCase())&&!/opera/.test(navigator.userAgent.toLowerCase()))){return}var i,len,tag,path,parent=Meetup.DiscreteBase,arr=arguments;for(i=0,len=arr.length;i<len;++i){tag=arr[i];path=parent.getBackgroundImagePathByElement(tag);parent.swapBackgroundToFilter(tag,path,true)}};Meetup.DiscreteBase.translateCoordinate=function(x,y,w,h,offsetX,offsetY){var left,top;if(offsetX===true){left=Math.floor(x-(w/2))}else{left=x+offsetX}if(offsetY===true){top=Math.floor(y-(h/2))}else{top=y+offsetY}return{x:left,y:top}};Meetup.DiscreteBase.trim=function(str){return str.replace(Meetup.DiscreteBase.REGEX_TRIM,"")};Meetup.DiscreteBase.wrap=function(func,delay){delay=delay||1;return function(){window.setTimeout(func,delay)}};if(typeof Meetup==="undefined"){Meetup={}}Meetup.DiscreteBalloon=function(){return this.initialize(Meetup.DiscreteBalloon,this,arguments)};Meetup.DiscreteBalloon.prototype=new Meetup.DiscreteBase();Meetup.DiscreteBalloon.prototype.init=function(content,willKeep){this.objContent={};var div,tds,i,len,MDB=Meetup.DiscreteBalloon,EVENT_NAMES=MDB.EVENT_NAMES,MKD=MochiKit.DOM,G1=MKD.getFirstElementByTagAndClassName,ELMS=this.elements,root=this.elements.root,bind=this.parent.bind;ELMS.head=G1("tr","top",root);ELMS.body=G1("tr","body",root);ELMS.foot=G1("tr","bot",root);tds=MKD.getElementsByTagAndClassName("td",undefined,root);ELMS["7"]=tds[0];ELMS["8"]=tds[1];ELMS["9"]=tds[2];ELMS["4"]=tds[3];ELMS["5"]=tds[4];ELMS["6"]=tds[5];ELMS["1"]=tds[6];ELMS["2"]=tds[7];ELMS["3"]=tds[8];ELMS.content=ELMS["5"];this.content(content);this.resetPosition();this.fixMSIE();this.bindEvents();this.bindedFunctions.actLoop=bind(this.actLoop,this);if(!willKeep){this.attach("onAfterHide",this.parent.bind(this.discard,this))}return this.publicMethods()};Meetup.DiscreteBalloon.NAME="Meetup.DiscreteBalloon";Meetup.DiscreteBalloon.ROOT_CLASS_NAME="J_discreteBalloon";Meetup.DiscreteBalloon.EVENT_NAMES=["onContentClick","onBeforeSetContent","onAfterSetContent","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"];Meetup.DiscreteBalloon.PUBLIC_METHODS=["attach","detach","discard","getRoot","hasDiscarded","hide","isShowing","show","content","dimension","opacity","offset","position","tipOrientation","zIndex"];Meetup.DiscreteBalloon.SERIALIZED_HTML='<table class="dbTable"><tbody class="dbBody"><tr class="top"><td class="left">&nbsp;</td><td class="center">&nbsp;</td><td class="right">&nbsp;</td></tr><tr class="body"><td class="left">&nbsp;</td><td class="center content"></td><td class="right">&nbsp;</td></tr><tr class="bot"><td class="left">&nbsp;</td><td class="center">&nbsp;</td><td class="right">&nbsp;</td></tr></tbody></table>';Meetup.DiscreteBalloon.DELTA=-20;Meetup.DiscreteBalloon.ORIENT_TYPE="y";Meetup.DiscreteBalloon.ORIENT_N=8;Meetup.DiscreteBalloon.ORIENT_NE=9;Meetup.DiscreteBalloon.ORIENT_E=6;Meetup.DiscreteBalloon.ORIENT_SE=3;Meetup.DiscreteBalloon.ORIENT_S=2;Meetup.DiscreteBalloon.ORIENT_SW=1;Meetup.DiscreteBalloon.ORIENT_W=4;Meetup.DiscreteBalloon.ORIENT_NW=7;Meetup.DiscreteBalloon.INT_INTERVAL=15;Meetup.DiscreteBalloon.prototype.objContent=null;Meetup.DiscreteBalloon.prototype.objOrientation=null;Meetup.DiscreteBalloon.prototype.viewState=0;Meetup.DiscreteBalloon.prototype.epochLast=false;Meetup.DiscreteBalloon.prototype.timerPointer=false;Meetup.DiscreteBalloon.prototype.hide=function(){--this.viewState;var e,interval=Meetup.DiscreteBalloon.INT_INTERVAL;e=+new Date();this.epochLast=Math.floor(interval*2)+e;if(this.timerPointer===false){this.timerPointer=window.setInterval(this.bindedFunctions.actLoop,interval)}};Meetup.DiscreteBalloon.prototype.show=function(){++this.viewState;var e,interval=Meetup.DiscreteBalloon.INT_INTERVAL;e=+new Date();this.epochLast=Math.floor(interval*2)+e;if(this.timerPointer===false){this.timerPointer=window.setInterval(this.bindedFunctions.actLoop,interval)}};Meetup.DiscreteBalloon.prototype.content=function(cnt){if(arguments.length!==0){if(this.parent.isDOMNode(cnt)){this.elements.content.appendChild(cnt)}else{cnt=(cnt===undefined||cnt===null)?"":cnt.toString();this.elements.content.innerHTML=cnt}this.resetPosition()}return this.elements.content.innerHTML};Meetup.DiscreteBalloon.prototype.tipOrientation=function(orientation){if(typeof orientation!=="number"){orientation=this.parent.ORIENT_S}switch(orientation){case 1:case 3:case 4:case 4:case 6:case 7:case 8:case 9:orientation=this.parent.ORIENT_S;case 2:var image,matched,path,div,divstyle;this.objOrientation=orientation;image=this.parent.getImageInfoFromCSS("div","discreteBalloonTip");matched=image.path.match(this.parent.REGEX_CSS_IMAGE);if(matched===null){throw new Error("You should check your CSS")}path=matched[1];if(path.match(this.parent.REGEX_ABSOLUTE_PATH)===null){path=this.parent.getAbsolutePath(path)}div=MochiKit.DOM.createDOM("div",{});divstyle=div.style;divstyle.width=image.dimension.w+"px";divstyle.height=image.dimension.h+"px";divstyle.marginTop="0";divstyle.marginRight="auto";divstyle.marginBottom="0";divstyle.marginLeft="auto";divstyle.backgroundColor="transparent";divstyle.backgroundPosition="0";divstyle.backgroundRepeat="no-repeat";divstyle.backgroundAttachment="scroll";divstyle.backgroundImage="url("+path+")";this.parent.clearChildElements(this.elements[2]);this.elements[2].appendChild(div);this.elements.tip=div;this.fixForTip(this.elements.tip);this.resetPosition();break}return this.objOrientation};Meetup.DiscreteBalloon.prototype.actHide=function(){if(this.tween!==null){this.tween.discard()}var i,len,opt,coord,afterFunc,self=this,before=this.events.onBeforeHide,after=this.events.onAfterHide,root=this.elements.root,rootStyle=root.style,time=this.parent.SEC_FADE_IN,trans=this.parent.TRANS_FADE_IN;this.boolShowing=false;if(before){for(i=0,len=before.length;i<len;++i){before[i]()}}afterFunc=function(){rootStyle.display="none";self.tween=null;self.opacity(0);if(after){for(var j=0,men=after.length;j<men;++j){after[j]()}}};if(this.boolHasTweener){coord=this.parent.translateCoordinate(this.x,this.y,this.w,this.h,this.offsetX,this.offsetY);rootStyle.display="block";rootStyle.visibility="visible";opt={top:(coord[this.parent.ORIENT_TYPE]+this.parent.DELTA)+"px",opacity:0,transition:trans,time:time,onComplete:afterFunc};this.tween=Meetup.Tweener.addTween(root,opt)}else{afterFunc()}return true};Meetup.DiscreteBalloon.prototype.actLoop=function(){var e=+new Date();if(this.viewState<1&&this.boolShowing){this.actHide();this.actStopLoop()}else{if(this.viewState>0&&!this.boolShowing){this.actShow();this.actStopLoop()}else{if(this.epochLast<e){this.actStopLoop()}}}};Meetup.DiscreteBalloon.prototype.actShow=function(){if(this.objOrientation===null){this.tipOrientation(this.parent.ORIENT_S)}if(this.tween!==null){this.tween.discard()}var i,len,opt,afterFunc,origY,coord,self=this,before=this.events.onBeforeShow,after=this.events.onAfterShow,root=this.elements.root,rootStyle=root.style,time=this.parent.SEC_FADE_IN,trans=this.parent.TRANS_FADE_IN;this.boolShowing=true;if(before){for(i=0,len=before.length;i<len;++i){before[i]()}}origY=this.y;coord=this.parent.translateCoordinate(this.x,this.y,this.w,this.h,this.offsetX,this.offsetY);afterFunc=function(){self.tween=null;self.opacity(1);self.y=origY;if(after){for(var j=0,men=after.length;j<men;++j){after[j]()}}};rootStyle.display="block";rootStyle.visibility="visible";if(this.boolHasTweener){if(this.parent.ORIENT_TYPE=="x"){this.position(this.y,(this.x+this.parent.DELTA));var prop="left";var val=coord.y}else{this.position(this.x,(this.y+this.parent.DELTA));var prop="top";var val=coord.y}opt={opacity:1,transition:trans,time:time,onComplete:afterFunc};opt[prop]=val;this.tween=Meetup.Tweener.addTween(root,opt)}else{afterFunc()}return true};Meetup.DiscreteBalloon.prototype.actStopLoop=function(){this.epochLast=false;window.clearInterval(this.timerPointer);this.timerPointer=false};Meetup.DiscreteBalloon.prototype.fixForTip=function(elm){if(!(/msie/.test(navigator.userAgent.toLowerCase())&&!/opera/.test(navigator.userAgent.toLowerCase()))){return}var path=this.parent.getBackgroundImagePathByElement(elm);this.parent.swapBackgroundToFilter(elm,path)};Meetup.DiscreteBalloon.prototype.fixMSIE=function(){if(!(/msie/.test(navigator.userAgent.toLowerCase())&&!/opera/.test(navigator.userAgent.toLowerCase()))){return}var i,tag,path;for(i=1;i<10;++i){if(i===5){continue}tag=this.elements[i];path=this.parent.getBackgroundImagePathByElement(tag);this.parent.swapBackgroundToFilter(tag,path,((i%2)===0))}};Meetup.DiscreteBalloon.prototype.onContentClick=function(ev){var i,len,click=this.events.onContentClick;if(click){for(i=0,len=click.length;i<len;++i){click[i](ev)}}ev.stopPropagation()};Meetup.DiscreteBalloon.translateCoordinate=function(x,y,w,h,offsetX,offsetY){var left,top;if(offsetX===true){left=Math.floor(x-(w/2))}else{left=x+offsetX}if(offsetY===true){top=y-h}else{top=y+offsetY}return{x:left,y:top}};(function($){$.fn.carousel=function(o){o=$.extend({btnPrev:null,btnNext:null,speed:300,easing:null,visible:3,scroll:1},o||{});return this.each(function(){var container=$(this).parent(".carousel_container"),div=$(this),ul=$("ul",div),li=$("li",ul),liSize=li.size(),liWidth=li.first().outerWidth("includeMargin"),liHeight=li.height(),lastScroll=Math.floor(liSize/4),visible=o.visible,viewportWidth=o.visible*liWidth,endPos=-((liSize*liWidth)-viewportWidth),overflowLength=(liSize*liWidth)-(liSize%visible),leftPos=0,current=0,isOverflowMode=false;div.css({width:liWidth*o.visible,overflow:"hidden",position:"relative"});ul.css({position:"relative",left:0,width:liWidth*liSize,overflow:"hidden"});$(o.btnPrev,container).addClass("disabled");if($("[originalsrc]",ul).length>0){lazyImg($("[originalsrc]:lt("+visible+")",ul))}if(o.btnPrev){$(o.btnPrev,container).click(function(){if(current==0){return}var pos=leftPos+viewportWidth;current=current-1;if(current==0&&isOverflowMode){pos=0;isOverflowMode=false}return scrollTo(pos)})}if(o.btnNext){$(o.btnNext,container).bind("click",{endPos:endPos},function(e){var restart=false;var pos=leftPos-viewportWidth;current=current+1;if(current>=lastScroll){if(overflowLength>0&&leftPos!=endPos){pos=endPos;isOverflowMode=true}else{current=0;pos=0;ul.animate({opacity:0.5},100);restart=true}}return scrollTo(pos,e.data.endPos,restart)})}var scrollTo=function(pos,endPos,restart){ul.animate({left:pos},restart?o.speed*2:o.speed,o.easing||null,function(){ul.animate({opacity:1},100);isScrolling=false});leftPos=pos;if(current>0){$(o.btnPrev,container).removeClass("disabled")}else{$(o.btnPrev,container).addClass("disabled")}if($("[originalsrc]",ul).length>0){lazyImg($("[originalsrc]:lt("+visible+")",ul))}}})};var lazyImg=function(elements){elements.each(function(){$(this).css("background-image","url("+$(this).attr("originalsrc")+")");$(this).removeAttr("originalsrc")})}})(j$);(function($){$.fn.lazyImg=function(options){var options=$.extend({threshold:100,effect:"show",effectspeed:0},options||{});var elements=this;var load=function(){elements.each(function(){if(!isBelowFold(this,options)){$(this).trigger("appear")}})};$(window).bind("scroll",load);return this.each(function(){var self=this;var src=$(self).attr("data-src");$(self).one("appear",function(){$("<img />").bind("load",function(){$(self).hide().attr("src",src)[options.effect](options.effectspeed);$.data(self,"loaded",true);var temp=$.grep(elements,function(item){return !$.data(item,"loaded")});elements=$(temp);if(elements.length==0){$(window).unbind("scroll",load)}}).attr("src",src)});if(!isBelowFold(self,options)){$(self).trigger("appear")}else{$.data(self,"loaded",false)}})};var isBelowFold=function(element,options){var fold=$(window).scrollTop()+$(window).height();var imgPos=$(element).offset().top;return imgPos>=(fold+options.threshold)||false}})(j$);(function($){$.fn.emailSignUp=function(){var obj=$(this);obj.click(function(event){event.preventDefault();var href=obj.attr("href");$.ajax({url:href,context:document.body,success:function(){var isOptIn=/arg_setting=true/.test(href);if(isOptIn){obj.html(Meetup.Copy.weeklyCalendarOptOut);obj.attr("href",href.replace("arg_setting=true","arg_setting=false"));obj.removeClass("email_add_icon").addClass("email_delete_icon")}else{obj.html(Meetup.Copy.weeklyCalendarOptIn);obj.attr("href",href.replace("arg_setting=false","arg_setting=true"));obj.removeClass("email_delete_icon").addClass("email_add_icon")}var msg=new Meetup.DiscreteBalloon(isOptIn?Meetup.Copy.weeklyCalendarOptInSuccess:Meetup.Copy.weeklyCalendarOptOutSuccess,true);var pos=obj.offset();msg.position((pos.left+obj.innerWidth()/2),pos.top);msg.show();setTimeout(function(){msg.hide()},3000)}})});return this}})(j$);if(Meetup.Data.isLoggedIn){j$(".weeklyCalendarEmail").emailSignUp()}j$(document).ready(function(){j$(".carousel_list").carousel({btnNext:".carousel_next",btnPrev:".carousel_prev",visible:4,speed:400,easing:"swing",scroll:4})});