/*!
 * jQuery UI Effects 1.10.4
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/effects-core/
 */
(function($,u){var d="ui-effects-";$.effects={effect:{}};
/*!
 * jQuery Color Animations v2.1.2
 * https://github.com/jquery/jquery-color
 *
 * Copyright 2013 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Wed Jan 16 08:47:09 2013 -0600
 */
(function(Q,u){var c="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",f=/^([\-+])=\s*(\d+\.?\d*)/,j=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]];}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1]*2.55,e[2]*2.55,e[3]*2.55,e[4]];}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)];}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)];}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]];}}],k=Q.Color=function(k,g,b,a){return new Q.Color.fn.parse(k,g,b,a);},m={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},n={"byte":{floor:true,max:255},"percent":{max:1},"degrees":{mod:360,floor:true}},o=k.support={},t=Q("<p>")[0],w,x=Q.each;t.style.cssText="background-color:rgba(1,1,1,.5)";o.rgba=t.style.backgroundColor.indexOf("rgba")>-1;x(m,function(s,a){a.cache="_"+s;a.props.alpha={idx:3,type:"percent",def:1};});function y(v,p,a){var b=n[p.type]||{};if(v==null){return(a||!p.def)?null:p.def;}v=b.floor?~~v:parseFloat(v);if(isNaN(v)){return p.def;}if(b.mod){return(v+b.mod)%b.mod;}return 0>v?0:b.max<v?b.max:v;}function z(s){var a=k(),r=a._rgba=[];s=s.toLowerCase();x(j,function(i,p){var b,e=p.re.exec(s),v=e&&p.parse(e),g=p.space||"rgba";if(v){b=a[g](v);a[m[g].cache]=b[m[g].cache];r=a._rgba=b._rgba;return false;}});if(r.length){if(r.join()==="0,0,0,0"){Q.extend(r,w.transparent);}return a;}return w[s];}k.fn=Q.extend(k.prototype,{parse:function(r,g,b,a){if(r===u){this._rgba=[null,null,null,null];return this;}if(r.jquery||r.nodeType){r=Q(r).css(g);g=u;}var i=this,e=Q.type(r),h=this._rgba=[];if(g!==u){r=[r,g,b,a];e="array";}if(e==="string"){return this.parse(z(r)||w._default);}if(e==="array"){x(m.rgba.props,function(l,p){h[p.idx]=y(r[p.idx],p);});return this;}if(e==="object"){if(r instanceof k){x(m,function(s,l){if(r[l.cache]){i[l.cache]=r[l.cache].slice();}});}else{x(m,function(s,l){var p=l.cache;x(l.props,function(q,v){if(!i[p]&&l.to){if(q==="alpha"||r[q]==null){return;}i[p]=l.to(i._rgba);}i[p][v.idx]=y(r[q],v,true);});if(i[p]&&Q.inArray(null,i[p].slice(0,3))<0){i[p][3]=1;if(l.from){i._rgba=l.from(i[p]);}}});}return this;}},is:function(a){var i=k(a),s=true,b=this;x(m,function(_,e){var l,g=i[e.cache];if(g){l=b[e.cache]||e.to&&e.to(b._rgba)||[];x(e.props,function(_,p){if(g[p.idx]!=null){s=(g[p.idx]===l[p.idx]);return s;}});}return s;});return s;},_space:function(){var a=[],i=this;x(m,function(s,b){if(i[b.cache]){a.push(s);}});return a.pop();},transition:function(a,b){var e=k(a),s=e._space(),g=m[s],h=this.alpha()===0?k("transparent"):this,i=h[g.cache]||g.to(h._rgba),r=i.slice();e=e[g.cache];x(g.props,function(l,p){var q=p.idx,v=i[q],B=e[q],C=n[p.type]||{};if(B===null){return;}if(v===null){r[q]=B;}else{if(C.mod){if(B-v>C.mod/2){v+=C.mod;}else if(v-B>C.mod/2){v-=C.mod;}}r[q]=y((B-v)*b+v,p);}});return this[s](r);},blend:function(b){if(this._rgba[3]===1){return this;}var r=this._rgba.slice(),a=r.pop(),e=k(b)._rgba;return k(Q.map(r,function(v,i){return(1-a)*e[i]+a*v;}));},toRgbaString:function(){var p="rgba(",r=Q.map(this._rgba,function(v,i){return v==null?(i>2?1:0):v;});if(r[3]===1){r.pop();p="rgb(";}return p+r.join()+")";},toHslaString:function(){var p="hsla(",h=Q.map(this.hsla(),function(v,i){if(v==null){v=i>2?1:0;}if(i&&i<3){v=Math.round(v*100)+"%";}return v;});if(h[3]===1){h.pop();p="hsl(";}return p+h.join()+")";},toHexString:function(i){var r=this._rgba.slice(),a=r.pop();if(i){r.push(~~(a*255));}return"#"+Q.map(r,function(v){v=(v||0).toString(16);return v.length===1?"0"+v:v;}).join("");},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString();}});k.fn.parse.prototype=k.fn;function A(p,q,h){h=(h+1)%1;if(h*6<1){return p+(q-p)*h*6;}if(h*2<1){return q;}if(h*3<2){return p+(q-p)*((2/3)-h)*6;}return p;}m.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null){return[null,null,null,e[3]];}var r=e[0]/255,g=e[1]/255,b=e[2]/255,a=e[3],i=Math.max(r,g,b),p=Math.min(r,g,b),q=i-p,v=i+p,l=v*0.5,h,s;if(p===i){h=0;}else if(r===i){h=(60*(g-b)/q)+360;}else if(g===i){h=(60*(b-r)/q)+120;}else{h=(60*(r-g)/q)+240;}if(q===0){s=0;}else if(l<=0.5){s=q/v;}else{s=q/(2-v);}return[Math.round(h)%360,s,l,a==null?1:a];};m.hsla.from=function(b){if(b[0]==null||b[1]==null||b[2]==null){return[null,null,null,b[3]];}var h=b[0]/360,s=b[1],l=b[2],a=b[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;return[Math.round(A(p,q,h+(1/3))*255),Math.round(A(p,q,h)*255),Math.round(A(p,q,h-(1/3))*255),a];};x(m,function(s,a){var p=a.props,b=a.cache,e=a.to,g=a.from;k.fn[s]=function(v){if(e&&!this[b]){this[b]=e(this._rgba);}if(v===u){return this[b].slice();}var r,h=Q.type(v),i=(h==="array"||h==="object")?v:arguments,l=this[b].slice();x(p,function(q,B){var C=i[h==="object"?q:B.idx];if(C==null){C=l[B.idx];}l[B.idx]=y(C,B);});if(g){r=k(g(l));r[b]=l;return r;}else{return k(l);}};x(p,function(h,i){if(k.fn[h]){return;}k.fn[h]=function(v){var l=Q.type(v),q=(h==="alpha"?(this._hsla?"hsla":"rgba"):s),r=this[q](),B=r[i.idx],C;if(l==="undefined"){return B;}if(l==="function"){v=v.call(this,B);l=Q.type(v);}if(v==null&&i.empty){return this;}if(l==="string"){C=f.exec(v);if(C){v=B+parseFloat(C[2])*(C[1]==="+"?1:-1);}}r[i.idx]=v;return this[q](r);};});});k.hook=function(h){var a=h.split(" ");x(a,function(i,h){Q.cssHooks[h]={set:function(b,v){var p,g,l="";if(v!=="transparent"&&(Q.type(v)!=="string"||(p=z(v)))){v=k(p||v);if(!o.rgba&&v._rgba[3]!==1){g=h==="backgroundColor"?b.parentNode:b;while((l===""||l==="transparent")&&g&&g.style){try{l=Q.css(g,"backgroundColor");g=g.parentNode;}catch(e){}}v=v.blend(l&&l!=="transparent"?l:"_default");}v=v.toRgbaString();}try{b.style[h]=v;}catch(e){}}};Q.fx.step[h]=function(b){if(!b.colorInit){b.start=k(b.elem,h);b.end=k(b.end);b.colorInit=true;}Q.cssHooks[h].set(b.elem,b.start.transition(b.end,b.pos));};});};k.hook(c);Q.cssHooks.borderColor={expand:function(v){var e={};x(["Top","Right","Bottom","Left"],function(i,p){e["border"+p+"Color"]=v;});return e;}};w=Q.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"};})(jQuery);(function(){var c=["add","remove","toggle"],s={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(_,p){$.fx.step[p]=function(f){if(f.end!=="none"&&!f.setAttr||f.pos===1&&!f.setAttr){jQuery.style(f.elem,p,f.end);f.setAttr=true;}};});function g(e){var k,l,b=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,f={};if(b&&b.length&&b[0]&&b[b[0]]){l=b.length;while(l--){k=b[l];if(typeof b[k]==="string"){f[$.camelCase(k)]=b[k];}}}else{for(k in b){if(typeof b[k]==="string"){f[k]=b[k];}}}return f;}function a(o,n){var b={},e,v;for(e in n){v=n[e];if(o[e]!==v){if(!s[e]){if($.fx.step[e]||!isNaN(parseFloat(v))){b[e]=v;}}}}return b;}if(!$.fn.addBack){$.fn.addBack=function(b){return this.add(b==null?this.prevObject:this.prevObject.filter(b));};}$.effects.animateClass=function(v,b,e,f){var o=$.speed(b,e,f);return this.queue(function(){var h=$(this),j=h.attr("class")||"",k,l=o.children?h.find("*").addBack():h;l=l.map(function(){var i=$(this);return{el:i,start:g(this)};});k=function(){$.each(c,function(i,m){if(v[m]){h[m+"Class"](v[m]);}});};k();l=l.map(function(){this.end=g(this.el[0]);this.diff=a(this.start,this.end);return this;});h.attr("class",j);l=l.map(function(){var i=this,m=$.Deferred(),n=$.extend({},o,{queue:false,complete:function(){m.resolve(i);}});this.el.animate(this.diff,n);return m.promise();});$.when.apply($,l.get()).done(function(){k();$.each(arguments,function(){var i=this.el;$.each(this.diff,function(m){i.css(m,"");});});o.complete.call(h[0]);});});};$.fn.extend({addClass:(function(o){return function(b,e,f,h){return e?$.effects.animateClass.call(this,{add:b},e,f,h):o.apply(this,arguments);};})($.fn.addClass),removeClass:(function(o){return function(b,e,f,h){return arguments.length>1?$.effects.animateClass.call(this,{remove:b},e,f,h):o.apply(this,arguments);};})($.fn.removeClass),toggleClass:(function(o){return function(b,f,e,h,i){if(typeof f==="boolean"||f===u){if(!e){return o.apply(this,arguments);}else{return $.effects.animateClass.call(this,(f?{add:b}:{remove:b}),e,h,i);}}else{return $.effects.animateClass.call(this,{toggle:b},f,e,h);}};})($.fn.toggleClass),switchClass:function(r,b,e,f,h){return $.effects.animateClass.call(this,{add:b,remove:r},e,f,h);}});})();(function(){$.extend($.effects,{version:"1.10.4",save:function(e,a){for(var i=0;i<a.length;i++){if(a[i]!==null){e.data(d+a[i],e[0].style[a[i]]);}}},restore:function(e,a){var v,i;for(i=0;i<a.length;i++){if(a[i]!==null){v=e.data(d+a[i]);if(v===u){v="";}e.css(a[i],v);}}},setMode:function(e,m){if(m==="toggle"){m=e.is(":hidden")?"show":"hide";}return m;},getBaseline:function(o,a){var y,x;switch(o[0]){case"top":y=0;break;case"middle":y=0.5;break;case"bottom":y=1;break;default:y=o[0]/a.height;}switch(o[1]){case"left":x=0;break;case"center":x=0.5;break;case"right":x=1;break;default:x=o[1]/a.width;}return{x:x,y:y};},createWrapper:function(a){if(a.parent().is(".ui-effects-wrapper")){return a.parent();}var p={width:a.outerWidth(true),height:a.outerHeight(true),"float":a.css("float")},w=$("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),b={width:a.width(),height:a.height()},c=document.activeElement;try{c.id;}catch(e){c=document.body;}a.wrap(w);if(a[0]===c||$.contains(a[0],c)){$(c).focus();}w=a.parent();if(a.css("position")==="static"){w.css({position:"relative"});a.css({position:"relative"});}else{$.extend(p,{position:a.css("position"),zIndex:a.css("z-index")});$.each(["top","left","bottom","right"],function(i,f){p[f]=a.css(f);if(isNaN(parseInt(p[f],10))){p[f]="auto";}});a.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"});}a.css(b);return w.css(p).show();},removeWrapper:function(e){var a=document.activeElement;if(e.parent().is(".ui-effects-wrapper")){e.parent().replaceWith(e);if(e[0]===a||$.contains(e[0],a)){$(a).focus();}}return e;},setTransition:function(e,l,f,v){v=v||{};$.each(l,function(i,x){var a=e.cssUnit(x);if(a[0]>0){v[x]=a[0]*f+a[1];}});return v;}});function _(e,o,a,c){if($.isPlainObject(e)){o=e;e=e.effect;}e={effect:e};if(o==null){o={};}if($.isFunction(o)){c=o;a=null;o={};}if(typeof o==="number"||$.fx.speeds[o]){c=a;a=o;o={};}if($.isFunction(a)){c=a;a=null;}if(o){$.extend(e,o);}a=a||o.duration;e.duration=$.fx.off?0:typeof a==="number"?a:a in $.fx.speeds?$.fx.speeds[a]:$.fx.speeds._default;e.complete=c||o.complete;return e;}function s(o){if(!o||typeof o==="number"||$.fx.speeds[o]){return true;}if(typeof o==="string"&&!$.effects.effect[o]){return true;}if($.isFunction(o)){return true;}if(typeof o==="object"&&!o.effect){return true;}return false;}$.fn.extend({effect:function(){var a=_.apply(this,arguments),m=a.mode,q=a.queue,e=$.effects.effect[a.effect];if($.fx.off||!e){if(m){return this[m](a.duration,a.complete);}else{return this.each(function(){if(a.complete){a.complete.call(this);}});}}function r(n){var b=$(this),c=a.complete,m=a.mode;function f(){if($.isFunction(c)){c.call(b[0]);}if($.isFunction(n)){n();}}if(b.is(":hidden")?m==="hide":m==="show"){b[m]();f();}else{e.call(b[0],a,f);}}return q===false?this.each(r):this.queue(q||"fx",r);},show:(function(o){return function(a){if(s(a)){return o.apply(this,arguments);}else{var b=_.apply(this,arguments);b.mode="show";return this.effect.call(this,b);}};})($.fn.show),hide:(function(o){return function(a){if(s(a)){return o.apply(this,arguments);}else{var b=_.apply(this,arguments);b.mode="hide";return this.effect.call(this,b);}};})($.fn.hide),toggle:(function(o){return function(a){if(s(a)||typeof a==="boolean"){return o.apply(this,arguments);}else{var b=_.apply(this,arguments);b.mode="toggle";return this.effect.call(this,b);}};})($.fn.toggle),cssUnit:function(k){var a=this.css(k),v=[];$.each(["em","px","%","pt"],function(i,b){if(a.indexOf(b)>0){v=[parseFloat(a),b];}});return v;}});})();(function(){var b={};$.each(["Quad","Cubic","Quart","Quint","Expo"],function(i,n){b[n]=function(p){return Math.pow(p,i+2);};});$.extend(b,{Sine:function(p){return 1-Math.cos(p*Math.PI/2);},Circ:function(p){return 1-Math.sqrt(1-p*p);},Elastic:function(p){return p===0||p===1?p:-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI/15);},Back:function(p){return p*p*(3*p-2);},Bounce:function(p){var a,c=4;while(p<((a=Math.pow(2,--c))-1)/11){}return 1/Math.pow(4,3-c)-7.5625*Math.pow((a*3-2)/22-p,2);}});$.each(b,function(n,e){$.easing["easeIn"+n]=e;$.easing["easeOut"+n]=function(p){return 1-e(1-p);};$.easing["easeInOut"+n]=function(p){return p<0.5?e(p*2)/2:1-e(p*-2+2)/2;};});})();})(jQuery);
