var swfobject=function(){var aT="undefined",ai="object",aC="Shockwave Flash",ad="ShockwaveFlash.ShockwaveFlash",aj="application/x-shockwave-flash",aD="SWFObjectExprInst",ac="onreadystatechange",aG=window,aS=document,aI=navigator,aB=false,ah=[at],al=[],aJ=[],aM=[],ap,aE,aR,Y,aL=false,aA=false,am,aO,ao=true,an=function(){var f=typeof aS.getElementById!=aT&&typeof aS.getElementsByTagName!=aT&&typeof aS.createElement!=aT,j=aI.userAgent.toLowerCase(),h=aI.platform.toLowerCase(),b=h?/win/.test(h):/win/.test(j),d=h?/mac/.test(h):/mac/.test(j),a=/webkit/.test(j)?parseFloat(j.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=!+"\v1",k=[0,0,0],e=null;if(typeof aI.plugins!=aT&&typeof aI.plugins[aC]==ai){e=aI.plugins[aC].description;if(e&&!(typeof aI.mimeTypes!=aT&&aI.mimeTypes[aj]&&!aI.mimeTypes[aj].enabledPlugin)){aB=true;i=false;e=e.replace(/^.*\s+(\S+\s+\S+$)/,"$1");k[0]=parseInt(e.replace(/^(.*)\..*$/,"$1"),10);k[1]=parseInt(e.replace(/^.*\.(.*)\s.*$/,"$1"),10);k[2]=/[a-zA-Z]/.test(e)?parseInt(e.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof aG.ActiveXObject!=aT){try{var c=new ActiveXObject(ad);if(c){e=c.GetVariable("$version");if(e){i=true;e=e.split(" ")[1].split(",");k=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}}catch(g){}}}return{w3:f,pv:k,wk:a,ie:i,win:b,mac:d}}(),aQ=function(){if(!an.w3){return}if((typeof aS.readyState!=aT&&aS.readyState=="complete")||(typeof aS.readyState==aT&&(aS.getElementsByTagName("body")[0]||aS.body))){av()}if(!aL){if(typeof aS.addEventListener!=aT){aS.addEventListener("DOMContentLoaded",av,false)}if(an.ie&&an.win){aS.attachEvent(ac,function(){if(aS.readyState=="complete"){aS.detachEvent(ac,arguments.callee);av()}});if(aG==top){(function(){if(aL){return}try{aS.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}av()})()}}if(an.wk){(function(){if(aL){return}if(!/loaded|complete/.test(aS.readyState)){setTimeout(arguments.callee,0);return}av()})()}aK(av)}}();function av(){if(aL){return}try{var b=aS.getElementsByTagName("body")[0].appendChild(X("span"));b.parentNode.removeChild(b)}catch(a){return}aL=true;var d=ah.length;for(var c=0;c<d;c++){ah[c]()}}function ar(a){if(aL){a()}else{ah[ah.length]=a}}function aK(a){if(typeof aG.addEventListener!=aT){aG.addEventListener("load",a,false)}else{if(typeof aS.addEventListener!=aT){aS.addEventListener("load",a,false)}else{if(typeof aG.attachEvent!=aT){aU(aG,"onload",a)}else{if(typeof aG.onload=="function"){var b=aG.onload;aG.onload=function(){b();a()}}else{aG.onload=a}}}}}function at(){if(aB){af()}else{aN()}}function af(){var d=aS.getElementsByTagName("body")[0];var b=X(ai);b.setAttribute("type",aj);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aT){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");an.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;aN()})()}else{aN()}}function aN(){var k=al.length;if(k>0){for(var l=0;l<k;l++){var g=al[l].id;var d=al[l].callbackFn;var e={success:false,id:g};if(an.pv[0]>0){var a=ay(g);if(a){if(aP(al[l].swfVersion)&&!(an.wk&&an.wk<312)){ae(g,true);if(d){e.success=true;e.ref=aa(g);d(e)}}else{if(al[l].expressInstall&&Z()){var i={};i.data=al[l].expressInstall;i.width=a.getAttribute("width")||"0";i.height=a.getAttribute("height")||"0";if(a.getAttribute("class")){i.styleclass=a.getAttribute("class")}if(a.getAttribute("align")){i.align=a.getAttribute("align")}var j={};var h=a.getElementsByTagName("param");var c=h.length;for(var b=0;b<c;b++){if(h[b].getAttribute("name").toLowerCase()!="movie"){j[h[b].getAttribute("name")]=h[b].getAttribute("value")}}aF(i,j,g,d)}else{ak(a);if(d){d(e)}}}}}else{ae(g,true);if(d){var f=aa(g);if(f&&typeof f.SetVariable!=aT){e.success=true;e.ref=f}d(e)}}}}}function aa(b){var d=null;var c=ay(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aT){d=c}else{var a=c.getElementsByTagName(ai)[0];if(a){d=a}}}return d}function Z(){return!aA&&aP("6.0.65")&&(an.win||an.mac)&&!(an.wk&&an.wk<312)}function aF(f,d,h,e){aA=true;aR=e||null;Y={success:false,id:h};var b=ay(h);if(b){if(b.nodeName=="OBJECT"){ap=au(b);aE=null}else{ap=b;aE=h}f.id=aD;if(typeof f.width==aT||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aT||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aS.title=aS.title.slice(0,47)+" - Flash Player Installation";var a=an.ie&&an.win?"ActiveX":"PlugIn",c="MMredirectURL="+aG.location.toString().replace(/&/g,"%26")+"&MMplayerType="+a+"&MMdoctitle="+aS.title;if(typeof d.flashvars!=aT){d.flashvars+="&"+c}else{d.flashvars=c}if(an.ie&&an.win&&b.readyState!=4){var g=X("div");h+="SWFObjectNew";g.setAttribute("id",h);b.parentNode.insertBefore(g,b);b.style.display="none";(function(){if(b.readyState==4){b.parentNode.removeChild(b)}else{setTimeout(arguments.callee,10)}})()}aH(f,d,h)}}function ak(a){if(an.ie&&an.win&&a.readyState!=4){var b=X("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(au(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(au(a),a)}}function au(f){var b=X("div");if(an.win&&an.ie){b.innerHTML=f.innerHTML}else{var d=f.getElementsByTagName(ai)[0];if(d){var e=d.childNodes;if(e){var c=e.length;for(var a=0;a<c;a++){if(!(e[a].nodeType==1&&e[a].nodeName=="PARAM")&&!(e[a].nodeType==8)){b.appendChild(e[a].cloneNode(true))}}}}}return b}function aH(i,k,g){var h,e=ay(g);if(an.wk&&an.wk<312){return h}if(e){if(typeof i.id==aT){i.id=g}if(an.ie&&an.win){var j="";for(var a in i){if(i[a]!=Object.prototype[a]){if(a.toLowerCase()=="data"){k.movie=i[a]}else{if(a.toLowerCase()=="styleclass"){j+=' class="'+i[a]+'"'}else{if(a.toLowerCase()!="classid"){j+=" "+a+'="'+i[a]+'"'}}}}}var l="";for(var b in k){if(k[b]!=Object.prototype[b]){l+='<param name="'+b+'" value="'+k[b]+'" />'}}e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+j+">"+l+"</object>";aJ[aJ.length]=i.id;h=ay(i.id)}else{var f=X(ai);f.setAttribute("type",aj);for(var c in i){if(i[c]!=Object.prototype[c]){if(c.toLowerCase()=="styleclass"){f.setAttribute("class",i[c])}else{if(c.toLowerCase()!="classid"){f.setAttribute(c,i[c])}}}}for(var d in k){if(k[d]!=Object.prototype[d]&&d.toLowerCase()!="movie"){aw(f,d,k[d])}}e.parentNode.replaceChild(f,e);h=f}}return h}function aw(b,d,c){var a=X("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function ab(a){var b=ay(a);if(b&&b.nodeName=="OBJECT"){if(an.ie&&an.win){b.style.display="none";(function(){if(b.readyState==4){az(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function az(b){var c=ay(b);if(c){for(var a in c){if(typeof c[a]=="function"){c[a]=null}}c.parentNode.removeChild(c)}}function ay(b){var a=null;try{a=aS.getElementById(b)}catch(c){}return a}function X(a){return aS.createElement(a)}function aU(b,a,c){b.attachEvent(a,c);aM[aM.length]=[b,a,c]}function aP(b){var c=an.pv,a=b.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return(c[0]>a[0]||(c[0]==a[0]&&c[1]>a[1])||(c[0]==a[0]&&c[1]==a[1]&&c[2]>=a[2]))?true:false}function ag(a,f,g,c){if(an.ie&&an.mac){return}var e=aS.getElementsByTagName("head")[0];if(!e){return}var d=(g&&typeof g=="string")?g:"screen";if(c){am=null;aO=null}if(!am||aO!=d){var b=X("style");b.setAttribute("type","text/css");b.setAttribute("media",d);am=e.appendChild(b);if(an.ie&&an.win&&typeof aS.styleSheets!=aT&&aS.styleSheets.length>0){am=aS.styleSheets[aS.styleSheets.length-1]}aO=d}if(an.ie&&an.win){if(am&&typeof am.addRule==ai){am.addRule(a,f)}}else{if(am&&typeof aS.createTextNode!=aT){am.appendChild(aS.createTextNode(a+" {"+f+"}"))}}}function ae(b,a){if(!ao){return}var c=a?"visible":"hidden";if(aL&&ay(b)){ay(b).style.visibility=c}else{ag("#"+b,"visibility:"+c)}}function aq(c){var b=/[\\\"<>\.;]/;var a=b.exec(c)!=null;return a&&typeof encodeURIComponent!=aT?encodeURIComponent(c):c}var ax=function(){if(an.ie&&an.win){window.attachEvent("onunload",function(){var f=aM.length;for(var e=0;e<f;e++){aM[e][0].detachEvent(aM[e][1],aM[e][2])}var b=aJ.length;for(var a=0;a<b;a++){ab(aJ[a])}for(var d in an){an[d]=null}an=null;for(var c in swfobject){swfobject[c]=null}swfobject=null})}}();return{registerObject:function(d,c,a,b){if(an.w3&&d&&c){var e={};e.id=d;e.swfVersion=c;e.expressInstall=a;e.callbackFn=b;al[al.length]=e;ae(d,false)}else{if(b){b({success:false,id:d})}}},getObjectById:function(a){if(an.w3){return aa(a)}},embedSWF:function(e,j,b,k,h,f,g,c,a,d){var i={success:false,id:j};if(an.w3&&!(an.wk&&an.wk<312)&&e&&j&&b&&k&&h){ae(j,false);ar(function(){b+="";k+="";var m={};if(a&&typeof a===ai){for(var q in a){m[q]=a[q]}}m.data=e;m.width=b;m.height=k;var p={};if(c&&typeof c===ai){for(var l in c){p[l]=c[l]}}if(g&&typeof g===ai){for(var n in g){if(typeof p.flashvars!=aT){p.flashvars+="&"+n+"="+g[n]}else{p.flashvars=n+"="+g[n]}}}if(aP(h)){var o=aH(m,p,j);if(m.id==j){ae(j,true)}i.success=true;i.ref=o}else{if(f&&Z()){m.data=f;aF(m,p,j,d);return}else{ae(j,true)}}if(d){d(i)}})}else{if(d){d(i)}}},switchOffAutoHideShow:function(){ao=false},ua:an,getFlashPlayerVersion:function(){return{major:an.pv[0],minor:an.pv[1],release:an.pv[2]}},hasFlashPlayerVersion:aP,createSWF:function(b,c,a){if(an.w3){return aH(b,c,a)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(an.w3&&Z()){aF(b,a,d,c)}},removeSWF:function(a){if(an.w3){ab(a)}},createCSS:function(b,a,d,c){if(an.w3){ag(b,a,d,c)}},addDomLoadEvent:ar,addLoadEvent:aK,getQueryParamValue:function(b){var a=aS.location.search||aS.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return aq(a)}var d=a.split("&");for(var c=0;c<d.length;c++){if(d[c].substring(0,d[c].indexOf("="))==b){return aq(d[c].substring((d[c].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aA){var a=ay(aD);if(a&&ap){a.parentNode.replaceChild(ap,a);if(aE){ae(aE,true);if(an.ie&&an.win){ap.style.display="block"}}if(aR){aR(Y)}}aA=false}}}}();
/*!
 * Pusher JavaScript Library v1.8.5
 * http://pusherapp.com/
 *
 * Copyright 2011, Pusher
 * Released under the MIT licence.
 */

if(typeof Function.prototype.scopedTo=="undefined")Function.prototype.scopedTo=function(a,b){var c=this;return function(){return c.apply(a,Array.prototype.slice.call(b||[]).concat(Array.prototype.slice.call(arguments)))}};
var Pusher=function(a,b){this.options=b||{};this.path="/app/"+a+"?client=js&version="+Pusher.VERSION;this.key=a;this.channels=new Pusher.Channels;this.global_channel=new Pusher.Channel("pusher_global_channel");this.global_channel.global=true;this.connected=this.secure=false;this.retry_counter=0;this.encrypted=this.options.encrypted?true:false;Pusher.isReady&&this.connect();Pusher.instances.push(this);this.bind("pusher:connection_established",function(c){this.connected=true;this.retry_counter=0;this.socket_id=
c.socket_id;this.subscribeAll()}.scopedTo(this));this.bind("pusher:connection_disconnected",function(){for(var c in this.channels.channels)this.channels.channels[c].disconnect()}.scopedTo(this));this.bind("pusher:error",function(c){Pusher.debug("ERROR",c.message)})};Pusher.instances=[];
Pusher.prototype={channel:function(a){return this.channels.find(a)},connect:function(){var a=this.encrypted||this.secure?"wss://"+Pusher.host+":"+Pusher.wss_port+this.path:"ws://"+Pusher.host+":"+Pusher.ws_port+this.path;Pusher.allow_reconnect=true;Pusher.debug("Connecting",a);var b=this;if(window.WebSocket){var c=new WebSocket(a),d=Pusher.connection_timeout+b.retry_counter*1E3,e=window.setTimeout(function(){Pusher.debug("Connection timeout after",d+"ms");c.close()},d);c.onmessage=function(){b.onmessage.apply(b,
arguments)};c.onclose=function(){window.clearTimeout(e);b.onclose.apply(b,arguments)};c.onopen=function(){window.clearTimeout(e);b.onopen.apply(b,arguments)};this.connection=c}else{this.connection={};setTimeout(function(){b.send_local_event("pusher:connection_failed",{})},0)}},toggle_secure:function(){if(this.secure==false){this.secure=true;Pusher.debug("Switching to wss:// connection")}else{this.secure=false;Pusher.debug("Switching to ws:// connection")}},disconnect:function(){Pusher.debug("Disconnecting");
Pusher.allow_reconnect=false;this.retry_counter=0;this.connection.close()},bind:function(a,b){this.global_channel.bind(a,b);return this},bind_all:function(a){this.global_channel.bind_all(a);return this},subscribeAll:function(){for(var a in this.channels.channels)this.channels.channels.hasOwnProperty(a)&&this.subscribe(a)},subscribe:function(a){var b=this.channels.add(a,this);this.connected&&b.authorize(this,function(c){this.send_event("pusher:subscribe",{channel:a,auth:c.auth,channel_data:c.channel_data})}.scopedTo(this));
return b},unsubscribe:function(a){this.channels.remove(a);this.connected&&this.send_event("pusher:unsubscribe",{channel:a})},send_event:function(a,b,c){Pusher.debug("Event sent (channel,event,data)",c,a,b);a={event:a,data:b};if(c)a.channel=c;this.connection.send(JSON.stringify(a));return this},send_local_event:function(a,b,c){b=Pusher.data_decorator(a,b);if(c)(c=this.channel(c))&&c.dispatch_with_all(a,b);else Pusher.debug("Event recd (event,data)",a,b);this.global_channel.dispatch_with_all(a,b)},
onmessage:function(a){a=JSON.parse(a.data);if(!(a.socket_id&&a.socket_id==this.socket_id)){if(typeof a.data=="string")a.data=Pusher.parser(a.data);this.send_local_event(a.event,a.data,a.channel)}},reconnect:function(){var a=this;setTimeout(function(){a.connect()},0)},retry_connect:function(){this.encrypted||this.toggle_secure();var a=Math.min(this.retry_counter*1E3,1E4);Pusher.debug("Retrying connection in "+a+"ms");var b=this;setTimeout(function(){b.connect()},a);this.retry_counter+=1},onclose:function(){this.global_channel.dispatch("close",
null);Pusher.debug("Socket closed");if(this.connected){this.send_local_event("pusher:connection_disconnected",{});if(Pusher.allow_reconnect){Pusher.debug("Connection broken, trying to reconnect");this.reconnect()}}else{this.send_local_event("pusher:connection_failed",{});this.retry_connect()}this.connected=false},onopen:function(){this.global_channel.dispatch("open",null)}};
Pusher.Util={extend:function a(b,c){for(var d in c)b[d]=c[d]&&c[d].constructor&&c[d].constructor===Object?a(b[d]||{},c[d]):c[d];return b}};Pusher.debug=function(){if(Pusher.log){for(var a=["Pusher"],b=0;b<arguments.length;b++)typeof arguments[b]==="string"?a.push(arguments[b]):a.push(JSON.stringify(arguments[b]));Pusher.log(a.join(" : "))}};Pusher.VERSION="1.8.5";Pusher.host="ws.pusherapp.com";Pusher.ws_port=80;Pusher.wss_port=443;Pusher.channel_auth_endpoint="/pusher/auth";
Pusher.connection_timeout=5E3;Pusher.cdn_http="http://js.pusherapp.com/";Pusher.cdn_https="https://d3ds63zw57jt09.cloudfront.net/";Pusher.data_decorator=function(a,b){return b};Pusher.allow_reconnect=true;Pusher.channel_auth_transport="ajax";Pusher.parser=function(a){try{return JSON.parse(a)}catch(b){Pusher.debug("Data attribute not valid JSON - you may wish to implement your own Pusher.parser");return a}};Pusher.isReady=false;
Pusher.ready=function(){Pusher.isReady=true;for(var a=0;a<Pusher.instances.length;a++)Pusher.instances[a].connected||Pusher.instances[a].connect()};Pusher.Channels=function(){this.channels={}};Pusher.Channels.prototype={add:function(a,b){var c=this.find(a);if(c)return c;else{c=Pusher.Channel.factory(a,b);return this.channels[a]=c}},find:function(a){return this.channels[a]},remove:function(a){delete this.channels[a]}};
Pusher.Channel=function(a,b){this.pusher=b;this.name=a;this.callbacks={};this.global_callbacks=[];this.subscribed=false};
Pusher.Channel.prototype={init:function(){},disconnect:function(){},acknowledge_subscription:function(){this.subscribed=true},bind:function(a,b){this.callbacks[a]=this.callbacks[a]||[];this.callbacks[a].push(b);return this},bind_all:function(a){this.global_callbacks.push(a);return this},trigger:function(a,b){this.pusher.send_event(a,b,this.name);return this},dispatch_with_all:function(a,b){this.name!="pusher_global_channel"&&Pusher.debug("Event recd (channel,event,data)",this.name,a,b);this.dispatch(a,
b);this.dispatch_global_callbacks(a,b)},dispatch:function(a,b){var c=this.callbacks[a];if(c)for(var d=0;d<c.length;d++)c[d](b);else this.global||Pusher.debug("No callbacks for "+a)},dispatch_global_callbacks:function(a,b){for(var c=0;c<this.global_callbacks.length;c++)this.global_callbacks[c](a,b)},is_private:function(){return false},is_presence:function(){return false},authorize:function(a,b){b({})}};Pusher.auth_callbacks={};
Pusher.authorizers={ajax:function(a,b){var c=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");c.open("POST",Pusher.channel_auth_endpoint,true);c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");c.onreadystatechange=function(){if(c.readyState==4)if(c.status==200){var d=Pusher.parser(c.responseText);b(d)}else Pusher.debug("Couldn't get auth info from your webapp",status)};c.send("socket_id="+encodeURIComponent(a.socket_id)+"&channel_name="+encodeURIComponent(this.name))},
jsonp:function(a,b){var c="socket_id="+encodeURIComponent(a.socket_id)+"&channel_name="+encodeURIComponent(this.name),d=document.createElement("script");Pusher.auth_callbacks[this.name]=b;d.src=Pusher.channel_auth_endpoint+"?callback="+encodeURIComponent("Pusher.auth_callbacks['"+this.name+"']")+"&"+c;c=document.getElementsByTagName("head")[0]||document.documentElement;c.insertBefore(d,c.firstChild)}};
Pusher.Channel.PrivateChannel={is_private:function(){return true},authorize:function(a,b){Pusher.authorizers[Pusher.channel_auth_transport].scopedTo(this)(a,b)}};
Pusher.Channel.PresenceChannel={init:function(){this.bind("pusher_internal:subscription_succeeded",function(a){this.acknowledge_subscription(a);this.dispatch_with_all("pusher:subscription_succeeded",this.members)}.scopedTo(this));this.bind("pusher_internal:member_added",function(a){this.dispatch_with_all("pusher:member_added",this.members.add(a.user_id,a.user_info))}.scopedTo(this));this.bind("pusher_internal:member_removed",function(a){(a=this.members.remove(a.user_id))&&this.dispatch_with_all("pusher:member_removed",
a)}.scopedTo(this))},disconnect:function(){this.members.clear()},acknowledge_subscription:function(a){this.members._members_map=a.presence.hash;this.members.count=a.presence.count;this.subscribed=true},is_presence:function(){return true},members:{_members_map:{},count:0,each:function(a){for(var b in this._members_map)a({id:b,info:this._members_map[b]})},add:function(a,b){this._members_map[a]=b;this.count++;return this.get(a)},remove:function(a){var b=this.get(a);if(b){delete this._members_map[a];
this.count--}return b},get:function(a){var b=this._members_map[a];return b?{id:a,info:b}:null},clear:function(){this._members_map={};this.count=0}}};Pusher.Channel.factory=function(a,b){var c=new Pusher.Channel(a,b);if(a.indexOf(Pusher.Channel.private_prefix)===0)Pusher.Util.extend(c,Pusher.Channel.PrivateChannel);else if(a.indexOf(Pusher.Channel.presence_prefix)===0){Pusher.Util.extend(c,Pusher.Channel.PrivateChannel);Pusher.Util.extend(c,Pusher.Channel.PresenceChannel)}c.init();return c};
Pusher.Channel.private_prefix="private-";Pusher.Channel.presence_prefix="presence-";
var _require=function(){var a;a=document.addEventListener?function(b,c){b.addEventListener("load",c,false)}:function(b,c){b.attachEvent("onreadystatechange",function(){if(b.readyState=="loaded"||b.readyState=="complete")c()})};return function(b,c){function d(j,i){i=i||function(){};var k=document.getElementsByTagName("head")[0],g=document.createElement("script");g.setAttribute("src",j);g.setAttribute("type","text/javascript");g.setAttribute("async",true);a(g,function(){var l=i;e++;h==e&&setTimeout(l,
0)});k.appendChild(g)}for(var e=0,h=b.length,f=0;f<h;f++)d(b[f],c)}}();
(function(){var a=(document.location.protocol=="http:"?Pusher.cdn_http:Pusher.cdn_https)+Pusher.VERSION,b=[];window.JSON==undefined&&b.push(a+"/json2.min.js");if(window.WebSocket==undefined){window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION=true;b.push(a+"/flashfallback.min.js")}var c=function(){return window.WebSocket==undefined?function(){if(window.WebSocket){window.WEB_SOCKET_SWF_LOCATION=a+"/WebSocketMain.swf";WebSocket.__addTask(function(){Pusher.ready()});WebSocket.__initialize()}else Pusher.debug("Could not connect: WebSocket is not available natively or via Flash")}:
function(){Pusher.ready()}}(),d=function(h){var f=function(){document.body?h():setTimeout(f,0)};f()},e=function(){d(c)};b.length>0?_require(b,e):e()})();

(function(a){a.fn.slides=function(b){b=a.extend({},a.fn.slides.option,b);return this.each(function(){a("."+b.container,a(this)).children().wrapAll('<div class="slides_control"/>');var g=a(this),x=a(".slides_control",g),c=x.children().size(),m=x.children().outerWidth(),u=x.children().outerHeight(),s=b.start-1,v=b.effect.indexOf(",")<0?b.effect:b.effect.replace(" ","").split(",")[0],k=b.effect.indexOf(",")<0?v:b.effect.replace(" ","").split(",")[1],o=0,p=0,t=0,n=0,h,z,y,e,f,j,w,q;function r(D,B,C){if(!z&&h){z=true;b.animationStart(n+1);switch(D){case"next":p=n;o=n+1;o=c===o?0:o;e=m*2;D=-m*2;n=o;break;case"prev":p=n;o=n-1;o=o===-1?c-1:o;e=0;D=0;n=o;break;case"pagination":o=parseInt(C,10);p=a("."+b.paginationClass+" li."+b.currentClass+" a",g).attr("href").match("[^#/]+$");if(o>p){e=m*2;D=-m*2}else{e=0;D=0}n=o;break}if(B==="fade"){if(b.crossfade){x.children(":eq("+o+")",g).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){if(b.autoHeight){x.animate({height:x.children(":eq("+o+")",g).outerHeight()},b.autoHeightSpeed,function(){x.children(":eq("+p+")",g).css({display:"none",zIndex:0});x.children(":eq("+o+")",g).css({zIndex:0});b.animationComplete(o+1);z=false})}else{x.children(":eq("+p+")",g).css({display:"none",zIndex:0});x.children(":eq("+o+")",g).css({zIndex:0});b.animationComplete(o+1);z=false}})}else{x.children(":eq("+p+")",g).fadeOut(b.fadeSpeed,b.fadeEasing,function(){if(b.autoHeight){x.animate({height:x.children(":eq("+o+")",g).outerHeight()},b.autoHeightSpeed,function(){x.children(":eq("+o+")",g).fadeIn(b.fadeSpeed,b.fadeEasing)})}else{x.children(":eq("+o+")",g).fadeIn(b.fadeSpeed,b.fadeEasing,function(){if(a.browser.msie){a(this).get(0).style.removeAttribute("filter")}})}b.animationComplete(o+1);z=false})}}else{x.children(":eq("+o+")").css({left:e,display:"block"});if(b.autoHeight){x.animate({left:D,height:x.children(":eq("+o+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){x.css({left:-m});x.children(":eq("+o+")").css({left:m,zIndex:5});x.children(":eq("+p+")").css({left:m,display:"none",zIndex:0});b.animationComplete(o+1);z=false})}else{x.animate({left:D},b.slideSpeed,b.slideEasing,function(){x.css({left:-m});x.children(":eq("+o+")").css({left:m,zIndex:5});x.children(":eq("+p+")").css({left:m,display:"none",zIndex:0});b.animationComplete(o+1);z=false})}}if(b.pagination){a("."+b.paginationClass+" li."+b.currentClass,g).removeClass(b.currentClass);a("."+b.paginationClass+" li:eq("+o+")",g).addClass(b.currentClass)}}}function l(){clearInterval(g.data("interval"))}function A(){if(b.pause){clearTimeout(g.data("pause"));clearInterval(g.data("interval"));w=setTimeout(function(){clearTimeout(g.data("pause"));q=setInterval(function(){r("next",v)},b.play);g.data("interval",q)},b.pause);g.data("pause",w)}else{l()}}if(c<2){return}if(s<0){s=0}if(s>c){s=c-1}if(b.start){n=s}if(b.randomize){x.randomize()}a("."+b.container,g).css({overflow:"hidden",position:"relative"});x.children().css({position:"absolute",top:0,left:x.children().outerWidth(),zIndex:0,display:"none"});x.css({position:"relative",width:(m*3),height:u,left:-m});a("."+b.container,g).css({display:"block"});if(b.autoHeight){x.children().css({height:"auto"});x.animate({height:x.children(":eq("+s+")").outerHeight()},b.autoHeightSpeed)}if(b.preload&&x.find("img:eq("+s+")").length){a("."+b.container,g).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var d=x.find("img:eq("+s+")").attr("src")+"?"+(new Date()).getTime();if(a("img",g).parent().attr("class")!="slides_control"){j=x.children(":eq(0)")[0].tagName.toLowerCase()}else{j=x.find("img:eq("+s+")")}x.find("img:eq("+s+")").attr("src",d).load(function(){x.find(j+":eq("+s+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5});a("."+b.container,g).css({background:""});h=true;b.slidesLoaded()})})}else{x.children(":eq("+s+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){h=true;b.slidesLoaded()})}if(b.bigTarget){x.children().css({cursor:"pointer"});x.children().click(function(){r("next",v);return false})}if(b.hoverPause&&b.play){x.bind("mouseover",function(){l()});x.bind("mouseleave",function(){A()})}if(b.generateNextPrev){a("."+b.container,g).after('<a href="#" class="'+b.prev+'"></a>');a("."+b.prev,g).after('<a href="#" class="'+b.next+'"></a>')}a("."+b.next,g).click(function(B){B.preventDefault();if(b.play){A()}r("next",v)});a("."+b.prev,g).click(function(B){B.preventDefault();if(b.play){A()}r("prev",v)});if(b.generatePagination){if(b.prependPagination){g.prepend("<ul class="+b.paginationClass+"></ul>")}else{g.append("<ul class="+b.paginationClass+"></ul>")}x.children().each(function(){a("."+b.paginationClass,g).append('<li><a href="#'+t+'">'+(t+1)+"</a></li>");t++})}else{a("."+b.paginationClass+" li a",g).each(function(){a(this).attr("href","#"+t);t++})}a("."+b.paginationClass+" li:eq("+s+")",g).addClass(b.currentClass);a("."+b.paginationClass+" li a",g).click(function(){if(b.play){A()}y=a(this).attr("href").match("[^#/]+$");if(n!=y){r("pagination",k,y)}return false});a("a.link",g).click(function(){if(b.play){A()}y=a(this).attr("href").match("[^#/]+$")-1;if(n!=y){r("pagination",k,y)}return false});if(b.play){q=setInterval(function(){r("next",v)},b.play);g.data("interval",q)}})};a.fn.slides.option={preload:false,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:false,next:"next",prev:"prev",pagination:true,generatePagination:true,prependPagination:false,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:false,randomize:false,play:0,pause:0,hoverPause:false,autoHeight:false,autoHeightSpeed:350,bigTarget:false,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}};a.fn.randomize=function(b){function c(){return(Math.round(Math.random())-0.5)}return(a(this).each(function(){var e=a(this);var f=e.children();var g=f.length;if(g>1){f.hide();var d=[];for(i=0;i<g;i++){d[d.length]=i}d=d.sort(c);a.each(d,function(k,l){var h=f.eq(l);var j=h.clone(true);j.show().appendTo(e);if(b!==undefined){b(h,j)}h.remove()})}}))}})(jQuery);
(function($){var propStr='textShadow',colorStr='Color',props=(colorStr+" X Y Blur").split(' '),support=$.support,rWhitespace=/\s/,div=document.createElement('div'),divStyle=div.style;support.textShadow=(divStyle.textShadow==='');div=divStyle=null;if($.cssHooks&&support.textShadow){$.each(props,function(i,suffix){var hook=propStr+suffix;$.cssHooks[hook]={get:function(elem,computed,extra){return(function(elem,pos,prop){var shadow=$.css(elem,propStr),color=$.color.normalize(shadow),ret;if(prop===colorStr){ret='rgb'+(color.alpha?'a':'')+'('+color.r+', '+color.g+', '+color.b
+(color.alpha?', '+color.alpha:'')
+')';}
else{ret=$.trim(shadow.replace(color.source,'')).split(rWhitespace)[pos-1];}
return ret;})(elem,i,suffix);},set:function(elem,value){elem.style.textShadow=(function(string,value,index){var color_part=$.style(elem,propStr+colorStr),parts=string.replace(color_part,'').split(rWhitespace),ret;if(index===0){color_part=value;}else{parts[index]=value;}
return color_part+parts.join(' ');})($.css(elem,propStr),value,i);}};if(suffix!==colorStr){$.fx.step[hook]=function(fx){$.cssHooks[hook].set(fx.elem,fx.now+fx.unit);};}});}})(jQuery);
var reload_content=false;var doonited=jQuery.parseJSON(data_json);$.fx.step.textShadowBlur=function(fx){$(fx.elem).css({textShadow:'0 0 '+Math.floor(fx.now)+'px white'});};var mission_id=0;$(function(){mission_id=doonited.mission.id;function getThemeColor(){var colorHex="#"+doonited.config.color_2.substr(2);return document.body.style.backgroundColor=colorHex}
$("#overlay").css("backgroundColor",getThemeColor());$("footer").css("backgroundColor",getThemeColor());Pusher.log=function(message){};var pusher=new Pusher(doonited.config.pusher_key);var channel=pusher.subscribe('drop_channel');var count;channel.bind('drop-create',function(data){count=data
$("#count").html(String(count));$("#count").animate({'textShadowBlur':10,duration:8000}).delay(400).animate({'textShadowBlur':0,duration:8000})
$('#dones_count').text((Number($('#dones_count').text())+1));if($("#flash_version").length>0){updateFlash(String(count));}});var preCount;if(Number($("#count").text())>50){preCount=Number($("#count").text())-50;}else{preCount=0;};$('#count').countTo({from:preCount,to:$("#count").text(),speed:1000,refreshInterval:50,onComplete:function(value){}});$('#headlines').slides({generatePagination:false,preload:true,generateNextPrev:true,slideEasing:"easeInOutCubic",slideSpeed:1200,effect:'fade, fade',generateNextPrev:false,play:5000});$('#headlines').fadeTo(0,0.5,"linear");$('#icon').fadeTo(0,0.8,"linear");$('#headlines').mouseenter(function(event){$('#headlines').fadeTo(200,1,"linear");$('#icon').fadeTo(50,1,"linear");});$('#headlines').mouseleave(function(event){$('#headlines').fadeTo(50,0.5,"linear");$('#icon').fadeTo(50,0.8,"linear");});$('.close').click(function(){fadeOff();});$('.black_overlay').click(function(){fadeOff();});$('#question_click').click(function(){if($("#why_content").css("display")=="none"){$('#question_headline').fadeOut(800,function(){$(this).text($(this).data('open_headline')).fadeIn();});$('#question_icon').fadeOut(800,function(){$(this).fadeIn();});$('#why_content').slideToggle(300,function(){$('body').scrollTo("580px",1200,{easing:"easeOutCubic"});});}else{$('#question_headline').fadeOut(800,function(){$(this).text($(this).data('close_headline')).fadeIn();});$('#question_icon').fadeOut(800,function(){$(this).fadeIn();});$('#why_content').slideToggle(1000,function(){$('body').scrollTo("0px",1200,{easing:"easeOutCubic"});});}});function fadeOff(){$(".close").fadeOut();$(".black_overlay").fadeOut("slow");$(".white_content").fadeOut();$(".picture_content").fadeOut();};});var first_info_load=false;function countUp(){$('#header_count').text((Number($('#header_count').text())+1));$('#dones_count').text((Number($('#dones_count').text())+1));}
var drop_id;var is_paper_open=false;$("#paperclip_button").live("mouseover",function(){if(!is_paper_open){drop_id=$(".story_box").data("drop_id");open_paperclip();is_paper_open=true;}});function open_paperclip(){$('#paperclip').show("scale",{easing:"easeOutCubic",origin:"center",origin:['middle','left']},500);}
function open_paper_url(){var opts={lines:12,length:7,width:5,radius:10,color:'#FFF',speed:1,trail:100,shadow:false};var target=document.getElementById('paperclip');var spinner=new Spinner(opts).spin(target);$("#paper_url").fadeTo("slow",0.3);$("#paper_picture").fadeTo("slow",0.3);$.ajax({url:"/attachments/new_url.js?drop="+drop_id}).success(function(){}).error(function(){}).complete(function(){});};$(".paper_close_btn").live("click",function(){show_select_buttons();});function show_select_buttons(){$(".paper_box").fadeTo("slow",0.2);$("#paper_url").unbind("click");var opts={lines:12,length:7,width:5,radius:10,color:'#FFF',speed:1,trail:100,shadow:false};var target=document.getElementById('paperclip');var spinner=new Spinner(opts).spin(target);$.ajax({url:"/attachments/select_buttons.js"}).success(function(){}).error(function(){}).complete(function(){});};function open_paper_picture(){var opts={lines:12,length:7,width:5,radius:10,color:'#FFF',speed:1,trail:100,shadow:false};var target=document.getElementById('paperclip');var spinner=new Spinner(opts).spin(target);$("#paper_url").fadeTo("slow",0.3);$("#paper_picture").fadeTo("slow",0.3);$.ajax({url:"/attachments/new_picture.js?drop="+drop_id}).success(function(){}).error(function(){}).complete(function(){});};$("#paper_url").live("click",function(){open_paper_url();});$("#paper_picture").live("click",function(){open_paper_picture();});function close_attachment(){$('#paperclip').hide("fade",{easing:"easeOutCubic",origin:"center",origin:['middle','left']},700);}
function open_dailygood_info(){$(".close").fadeIn();$(".black_overlay").fadeIn(800);$(".white_content").fadeIn();if(!first_info_load){$.ajax({url:"/mission_info/"+mission_id+".js"}).success(function(){first_info_load=true;}).error(function(){first_info_load=false;}).complete(function(){$(".white_content p").slideToggle(0);$(".white_content p").slideToggle(300,"easeOutCubic");});};};
var playerVersion=swfobject.getFlashPlayerVersion();if(playerVersion.major==0){window.location.replace("/version/html");}
if(document.getElementById('flash_version')){doonited.flashdata={};doonited.flashdata.json=data_json;function test(){var playerVersion=swfobject.getFlashPlayerVersion();var output="You have Flash player "+playerVersion.major;if(playerVersion.major<9){window.location="html";}};if(doonited.config.asset_url==="")
{var asset_server="/flash";}else{var asset_server=doonited.config.asset_url+"/flash";}
doonited.so=new swfobject.embedSWF((asset_server+'/doonited_home.swf'),'flash_version','100%','600px','9.0.45','/expressinstall.swf',doonited.flashdata,{allowscriptaccess:'always',bgcolor:'#e0e0d7',menu:'false',wmode:'transparent'});}
var drop_id;function set_drop_id(drop_id_value){drop_id=drop_id_value;};function flash_ready(){};function updateFlash(count){if(document.getElementById("flash_version")){document.getElementById("flash_version").updateDropCountFlash(count);}}
(function(c){var a={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50},transparent:{r:-1,g:-1,b:-1}},b="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor borderColor boxShadowColor color outlineColor textShadowColor".split(" ");c.color={normalize:function(o){var h,g,q,d,k,f,m=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,j=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,p=/rgb(?:a)?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(0*\.?\d+)\s*)?\)/,n=/rgb(?:a)?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(0*\.?\d+)\s*)?\)/,e=/hsl(?:a)?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(0*\.?\d+)\s*)?\)/;if(q=m.exec(o)){h={r:parseInt(q[1],16),g:parseInt(q[2],16),b:parseInt(q[3],16),source:q[0]}}else{if(q=j.exec(o)){h={r:parseInt(q[1]+q[1],16),g:parseInt(q[2]+q[2],16),b:parseInt(q[3]+q[3],16),source:q[0]}}else{if(q=p.exec(o)){h={r:parseInt(q[1],10),g:parseInt(q[2],10),b:parseInt(q[3],10),alpha:parseFloat(q[4],10),source:q[0]}}else{if(q=n.exec(o)){h={r:parseInt(q[1]*2.55,10),g:parseInt(q[2]*2.55,10),b:parseInt(q[3]*2.55,10),alpha:parseFloat(q[4],10),source:q[0]}}else{if(q=e.exec(o)){h=c.color.hsl_to_rgb(parseFloat(q[1],10)/100,parseFloat(q[2],10)/100,parseFloat(q[3],10)/100);h.alpha=parseFloat(q[4],10);h.source=q[0]}else{q=o.split(" ");for(k=0,f=q.length;k<f;k++){d=q[k];if(a[d]){break}}if(!a[d]){d="transparent"}h=a[d];h.source=d}}}}}if(!h.alpha&&h.alpha!==0){delete h.alpha}return h},hsl_to_rgb:function(f,o,e,k){var d,i,j,n,m;if(o===0){d=i=j=e}else{if(e<=0.5){m=e*(o+1)}else{m=(e+o)-(e*o)}n=(e*2)-m;d=parseInt(255*c.color.hue_to_rgb(n,m,f+(1/3)),10);i=parseInt(255*c.color.hue_to_rgb(n,m,f),10);j=parseInt(255*c.color.hue_to_rgb(n,m,f-(1/3)),10)}return{r:d,g:i,b:j,alpha:k}},hue_to_rgb:function(d,f,e){if(e<0){e++}if(e>1){e--}if((e*6)<1){return d+((f-d)*e*6)}else{if((e*2)<1){return f}else{if((e*3)<2){return d+((f-d)*((2/3)-e)*6)}else{return d}}}}};if(c.cssHooks){c.each(b,function(d,e){c.cssHooks[e]={set:function(f,g){g=c.color.normalize(g);if(!g.alpha){g.alpha=1}f.style[e]="rgba("+g.r+","+g.g+","+g.b+","+g.alpha+")"}};c.fx.step[e]=function(f){var g;if(!f.start||typeof f.start==="string"){if(!f.start){f.start=c.css(f.elem,e)}f.start=c.color.normalize(f.start);f.end=c.color.normalize(f.end);if(!f.start.alpha){f.start.alpha=1}if(!f.end.alpha){f.end.alpha=1}}c.style(f.elem,e,"rgba("+parseInt(f.start.r+(f.pos*(f.end.r-f.start.r)),10)+","+parseInt(f.start.g+(f.pos*(f.end.g-f.start.g)),10)+","+parseInt(f.start.b+(f.pos*(f.end.b-f.start.b)),10)+","+parseFloat(f.start.alpha+(f.pos*(f.end.alpha-f.start.alpha)))+")")}})}})(jQuery);

