").attr({id:n,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("
").addClass("ui-tooltip-content").appendTo(o),o.appendTo(this.document[0].body),this.tooltips[n]=i,o},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,(function(i,n){var o=t.Event("blur");o.target=o.currentTarget=n[0],e.close(o,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))}))}})}(jQuery),function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var n=h[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:t>n.max?n.max:t)}function n(i){var n=a(),o=n._rgba=[];return i=i.toLowerCase(),p(l,(function(t,r){var s,l=r.re.exec(i),a=l&&r.parse(l),h=r.space||"rgba";return a?(s=n[h](a),n[c[h].cache]=s[c[h].cache],o=n._rgba=s._rgba,!1):e})),o.length?("0,0,0,0"===o.join()&&t.extend(o,r.transparent),n):r[i]}function o(t,e,i){return 1>6*(i=(i+1)%1)?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var r,s=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],a=t.Color=function(e,i,n,o){return new t.Color.fn.parse(e,i,n,o)},c={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"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=a.support={},d=t("
")[0],p=t.each;d.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=d.style.backgroundColor.indexOf("rgba")>-1,p(c,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),a.fn=t.extend(a.prototype,{parse:function(o,s,l,h){if(o===e)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=t(o).css(s),s=e);var u=this,d=t.type(o),f=this._rgba=[];return s!==e&&(o=[o,s,l,h],d="array"),"string"===d?this.parse(n(o)||r._default):"array"===d?(p(c.rgba.props,(function(t,e){f[e.idx]=i(o[e.idx],e)})),this):"object"===d?(p(c,o instanceof a?function(t,e){o[e.cache]&&(u[e.cache]=o[e.cache].slice())}:function(e,n){var r=n.cache;p(n.props,(function(t,e){if(!u[r]&&n.to){if("alpha"===t||null==o[t])return;u[r]=n.to(u._rgba)}u[r][e.idx]=i(o[t],e,!0)})),u[r]&&0>t.inArray(null,u[r].slice(0,3))&&(u[r][3]=1,n.from&&(u._rgba=n.from(u[r])))}),this):e},is:function(t){var i=a(t),n=!0,o=this;return p(c,(function(t,r){var s,l=i[r.cache];return l&&(s=o[r.cache]||r.to&&r.to(o._rgba)||[],p(r.props,(function(t,i){return null!=l[i.idx]?n=l[i.idx]===s[i.idx]:e}))),n})),n},_space:function(){var t=[],e=this;return p(c,(function(i,n){e[n.cache]&&t.push(i)})),t.pop()},transition:function(t,e){var n=a(t),o=n._space(),r=c[o],s=0===this.alpha()?a("transparent"):this,l=s[r.cache]||r.to(s._rgba),u=l.slice();return n=n[r.cache],p(r.props,(function(t,o){var r=o.idx,s=l[r],a=n[r],c=h[o.type]||{};null!==a&&(null===s?u[r]=a:(c.mod&&(a-s>c.mod/2?s+=c.mod:s-a>c.mod/2&&(s-=c.mod)),u[r]=i((a-s)*e+s,o)))})),this[o](u)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=a(e)._rgba;return a(t.map(i,(function(t,e){return(1-n)*o[e]+n*t})))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),(function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t}));return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),a.fn.parse.prototype=a.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,o=t[1]/255,r=t[2]/255,s=t[3],l=Math.max(n,o,r),a=Math.min(n,o,r),c=l-a,h=l+a,u=.5*h;return e=a===l?0:n===l?60*(o-r)/c+360:o===l?60*(r-n)/c+120:60*(n-o)/c+240,i=0===c?0:.5>=u?c/h:c/(2-h),[Math.round(e)%360,i,u,null==s?1:s]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],r=t[3],s=.5>=n?n*(1+i):n+i-n*i,l=2*n-s;return[Math.round(255*o(l,s,e+1/3)),Math.round(255*o(l,s,e)),Math.round(255*o(l,s,e-1/3)),r]},p(c,(function(n,o){var r=o.props,l=o.cache,c=o.to,h=o.from;a.fn[n]=function(n){if(c&&!this[l]&&(this[l]=c(this._rgba)),n===e)return this[l].slice();var o,s=t.type(n),u="array"===s||"object"===s?n:arguments,d=this[l].slice();return p(r,(function(t,e){var n=u["object"===s?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)})),h?((o=a(h(d)))[l]=d,o):a(d)},p(r,(function(e,i){a.fn[e]||(a.fn[e]=function(o){var r,l=t.type(o),a="alpha"===e?this._hsla?"hsla":"rgba":n,c=this[a](),h=c[i.idx];return"undefined"===l?h:("function"===l&&(o=o.call(this,h),l=t.type(o)),null==o&&i.empty?this:("string"===l&&((r=s.exec(o))&&(o=h+parseFloat(r[2])*("+"===r[1]?1:-1))),c[i.idx]=o,this[a](c)))})}))})),a.hook=function(e){var i=e.split(" ");p(i,(function(e,i){t.cssHooks[i]={set:function(e,o){var r,s,l="";if("transparent"!==o&&("string"!==t.type(o)||(r=n(o)))){if(o=a(r||o),!u.rgba&&1!==o._rgba[3]){for(s="backgroundColor"===i?e.parentNode:e;(""===l||"transparent"===l)&&s&&s.style;)try{l=t.css(s,"backgroundColor"),s=s.parentNode}catch(t){}o=o.blend(l&&"transparent"!==l?l:"_default")}o=o.toRgbaString()}try{e.style[i]=o}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=a(e.elem,i),e.end=a(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}}))},a.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return p(["Top","Right","Bottom","Left"],(function(i,n){e["border"+n+"Color"]=t})),e}},r=t.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(){function i(e){var i,n,o=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,r={};if(o&&o.length&&o[0]&&o[o[0]])for(n=o.length;n--;)"string"==typeof o[i=o[n]]&&(r[t.camelCase(i)]=o[i]);else for(i in o)"string"==typeof o[i]&&(r[i]=o[i]);return r}function n(e,i){var n,o,s={};for(n in i)o=i[n],e[n]!==o&&(r[n]||(t.fx.step[n]||!isNaN(parseFloat(o)))&&(s[n]=o));return s}var o=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,i,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,r,s,l){var a=t.speed(r,s,l);return this.queue((function(){var r,s=t(this),l=s.attr("class")||"",c=a.children?s.find("*").addBack():s;c=c.map((function(){return{el:t(this),start:i(this)}})),r=function(){t.each(o,(function(t,i){e[i]&&s[i+"Class"](e[i])}))},r(),c=c.map((function(){return this.end=i(this.el[0]),this.diff=n(this.start,this.end),this})),s.attr("class",l),c=c.map((function(){var e=this,i=t.Deferred(),n=t.extend({},a,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()})),t.when.apply(t,c.get()).done((function(){r(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),a.complete.call(s[0])}))}))},t.fn.extend({addClass:function(e){return function(i,n,o,r){return n?t.effects.animateClass.call(this,{add:i},n,o,r):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,o,r){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,o,r):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(n,o,r,s,l){return"boolean"==typeof o||o===e?r?t.effects.animateClass.call(this,o?{add:n}:{remove:n},r,s,l):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},o,r,s)}}(t.fn.toggleClass),switchClass:function(e,i,n,o,r){return t.effects.animateClass.call(this,{add:i,remove:e},n,o,r)}})}(),function(){function n(e,i,n,o){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(o=n,n=i,i={}),t.isFunction(n)&&(o=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=o||i.complete,e}function o(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||("string"==typeof e&&!t.effects.effect[e]||(!!t.isFunction(e)||"object"==typeof e&&!e.effect))}t.extend(t.effects,{version:"1.10.3",save:function(t,e){for(var n=0;e.length>n;n++)null!==e[n]&&t.data(i+e[n],t[0].style[e[n]])},restore:function(t,n){var o,r;for(r=0;n.length>r;r++)null!==n[r]&&((o=t.data(i+n[r]))===e&&(o=""),t.css(n[r],o))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:e.width(),height:e.height()},r=document.activeElement;try{r.id}catch(t){r=document.body}return e.wrap(n),(e[0]===r||t.contains(e[0],r))&&t(r).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(o),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,o){return o=o||{},t.each(i,(function(t,i){var r=e.cssUnit(i);r[0]>0&&(o[i]=r[0]*n+r[1])})),o}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(r)&&r.call(o[0]),t.isFunction(e)&&e()}var o=t(this),r=i.complete,l=i.mode;(o.is(":hidden")?"hide"===l:"show"===l)?(o[l](),n()):s.call(o[0],i,n)}var i=n.apply(this,arguments),o=i.mode,r=i.queue,s=t.effects.effect[i.effect];return t.fx.off||!s?o?this[o](i.duration,i.complete):this.each((function(){i.complete&&i.complete.call(this)})):!1===r?this.each(e):this.queue(r||"fx",e)},show:function(t){return function(e){if(o(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(o(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(o(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],(function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])})),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,i){e[i]=function(e){return Math.pow(e,t+2)}})),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,(function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}}))}()}(jQuery),function(t){var e=/up|down|vertical/,i=/up|left|vertical|horizontal/;t.effects.effect.blind=function(n,o){var r,s,l,a=t(this),c=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(a,n.mode||"hide"),u=n.direction||"up",d=e.test(u),p=d?"height":"width",f=d?"top":"left",m=i.test(u),g={},v="show"===h;a.parent().is(".ui-effects-wrapper")?t.effects.save(a.parent(),c):t.effects.save(a,c),a.show(),s=(r=t.effects.createWrapper(a).css({overflow:"hidden"}))[p](),l=parseFloat(r.css(f))||0,g[p]=v?s:0,m||(a.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),g[f]=v?l:s+l),v&&(r.css(p,0),m||r.css(f,l+s)),r.animate(g,{duration:n.duration,easing:n.easing,queue:!1,complete:function(){"hide"===h&&a.hide(),t.effects.restore(a,c),t.effects.removeWrapper(a),o()}})}}(jQuery),function(t){t.effects.effect.bounce=function(e,i){var n,o,r,s=t(this),l=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(s,e.mode||"effect"),c="hide"===a,h="show"===a,u=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(h||c?1:0),m=e.duration/f,g=e.easing,v="up"===u||"down"===u?"top":"left",y="up"===u||"left"===u,b=s.queue(),w=b.length;for((h||c)&&l.push("opacity"),t.effects.save(s,l),s.show(),t.effects.createWrapper(s),d||(d=s["top"===v?"outerHeight":"outerWidth"]()/3),h&&((r={opacity:1})[v]=0,s.css("opacity",0).css(v,y?2*-d:2*d).animate(r,m,g)),c&&(d/=Math.pow(2,p-1)),(r={})[v]=0,n=0;p>n;n++)(o={})[v]=(y?"-=":"+=")+d,s.animate(o,m,g).animate(r,m,g),d=c?2*d:d/2;c&&((o={opacity:0})[v]=(y?"-=":"+=")+d,s.animate(o,m,g)),s.queue((function(){c&&s.hide(),t.effects.restore(s,l),t.effects.removeWrapper(s),i()})),w>1&&b.splice.apply(b,[1,0].concat(b.splice(w,f+1))),s.dequeue()}}(jQuery),function(t){t.effects.effect.clip=function(e,i){var n,o,r,s=t(this),l=["position","top","bottom","left","right","height","width"],a="show"===t.effects.setMode(s,e.mode||"hide"),c="vertical"===(e.direction||"vertical"),h=c?"height":"width",u=c?"top":"left",d={};t.effects.save(s,l),s.show(),n=t.effects.createWrapper(s).css({overflow:"hidden"}),r=(o="IMG"===s[0].tagName?n:s)[h](),a&&(o.css(h,0),o.css(u,r/2)),d[h]=a?r:0,d[u]=a?0:r/2,o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){a||s.hide(),t.effects.restore(s,l),t.effects.removeWrapper(s),i()}})}}(jQuery),function(t){t.effects.effect.drop=function(e,i){var n,o=t(this),r=["position","top","bottom","left","right","opacity","height","width"],s=t.effects.setMode(o,e.mode||"hide"),l="show"===s,a=e.direction||"left",c="up"===a||"down"===a?"top":"left",h="up"===a||"left"===a?"pos":"neg",u={opacity:l?1:0};t.effects.save(o,r),o.show(),t.effects.createWrapper(o),n=e.distance||o["top"===c?"outerHeight":"outerWidth"](!0)/2,l&&o.css("opacity",0).css(c,"pos"===h?-n:n),u[c]=(l?"pos"===h?"+=":"-=":"pos"===h?"-=":"+=")+n,o.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}})}}(jQuery),function(t){t.effects.effect.explode=function(e,i){function n(){v.push(this),v.length===h*u&&(d.css({visibility:"visible"}),t(v).remove(),p||d.hide(),i())}var o,r,s,l,a,c,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=h,d=t(this),p="show"===t.effects.setMode(d,e.mode||"hide"),f=d.show().css("visibility","hidden").offset(),m=Math.ceil(d.outerWidth()/u),g=Math.ceil(d.outerHeight()/h),v=[];for(o=0;h>o;o++)for(l=f.top+o*g,c=o-(h-1)/2,r=0;u>r;r++)s=f.left+r*m,a=r-(u-1)/2,d.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-r*m,top:-o*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m,height:g,left:s+(p?a*m:0),top:l+(p?c*g:0),opacity:p?0:1}).animate({left:s+(p?0:a*m),top:l+(p?0:c*g),opacity:p?1:0},e.duration||500,e.easing,n)}}(jQuery),function(t){t.effects.effect.fade=function(e,i){var n=t(this),o=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:o},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(jQuery),function(t){t.effects.effect.fold=function(e,i){var n,o,r=t(this),s=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(r,e.mode||"hide"),a="show"===l,c="hide"===l,h=e.size||15,u=/([0-9]+)%/.exec(h),d=!!e.horizFirst,p=a!==d,f=p?["width","height"]:["height","width"],m=e.duration/2,g={},v={};t.effects.save(r,s),r.show(),n=t.effects.createWrapper(r).css({overflow:"hidden"}),o=p?[n.width(),n.height()]:[n.height(),n.width()],u&&(h=parseInt(u[1],10)/100*o[c?0:1]),a&&n.css(d?{height:0,width:h}:{height:h,width:0}),g[f[0]]=a?o[0]:h,v[f[1]]=a?o[1]:0,n.animate(g,m,e.easing).animate(v,m,e.easing,(function(){c&&r.hide(),t.effects.restore(r,s),t.effects.removeWrapper(r),i()}))}}(jQuery),function(t){t.effects.effect.highlight=function(e,i){var n=t(this),o=["backgroundImage","backgroundColor","opacity"],r=t.effects.setMode(n,e.mode||"show"),s={backgroundColor:n.css("backgroundColor")};"hide"===r&&(s.opacity=0),t.effects.save(n,o),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&n.hide(),t.effects.restore(n,o),i()}})}}(jQuery),function(t){t.effects.effect.pulsate=function(e,i){var n,o=t(this),r=t.effects.setMode(o,e.mode||"show"),s="show"===r,l="hide"===r,a=s||"hide"===r,c=2*(e.times||5)+(a?1:0),h=e.duration/c,u=0,d=o.queue(),p=d.length;for((s||!o.is(":visible"))&&(o.css("opacity",0).show(),u=1),n=1;c>n;n++)o.animate({opacity:u},h,e.easing),u=1-u;o.animate({opacity:u},h,e.easing),o.queue((function(){l&&o.hide(),i()})),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,c+1))),o.dequeue()}}(jQuery),function(t){t.effects.effect.puff=function(e,i){var n=t(this),o=t.effects.setMode(n,e.mode||"hide"),r="hide"===o,s=parseInt(e.percent,10)||150,l=s/100,a={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:o,complete:i,percent:r?s:100,from:r?a:{height:a.height*l,width:a.width*l,outerHeight:a.outerHeight*l,outerWidth:a.outerWidth*l}}),n.effect(e)},t.effects.effect.scale=function(e,i){var n=t(this),o=t.extend(!0,{},e),r=t.effects.setMode(n,e.mode||"effect"),s=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"hide"===r?0:100),l=e.direction||"both",a=e.origin,c={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},h="horizontal"!==l?s/100:1,u="vertical"!==l?s/100:1;o.effect="size",o.queue=!1,o.complete=i,"effect"!==r&&(o.origin=a||["middle","center"],o.restore=!0),o.from=e.from||("show"===r?{height:0,width:0,outerHeight:0,outerWidth:0}:c),o.to={height:c.height*h,width:c.width*u,outerHeight:c.outerHeight*h,outerWidth:c.outerWidth*u},o.fade&&("show"===r&&(o.from.opacity=0,o.to.opacity=1),"hide"===r&&(o.from.opacity=1,o.to.opacity=0)),n.effect(o)},t.effects.effect.size=function(e,i){var n,o,r,s=t(this),l=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["width","height","overflow"],c=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=t.effects.setMode(s,e.mode||"effect"),p=e.restore||"effect"!==d,f=e.scale||"both",m=e.origin||["middle","center"],g=s.css("position"),v=p?l:["position","top","bottom","left","right","overflow","opacity"],y={height:0,width:0,outerHeight:0,outerWidth:0};"show"===d&&s.show(),n={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},"toggle"===e.mode&&"show"===d?(s.from=e.to||y,s.to=e.from||n):(s.from=e.from||("show"===d?y:n),s.to=e.to||("hide"===d?y:n)),r={from:{y:s.from.height/n.height,x:s.from.width/n.width},to:{y:s.to.height/n.height,x:s.to.width/n.width}},("box"===f||"both"===f)&&(r.from.y!==r.to.y&&(v=v.concat(h),s.from=t.effects.setTransition(s,h,r.from.y,s.from),s.to=t.effects.setTransition(s,h,r.to.y,s.to)),r.from.x!==r.to.x&&(v=v.concat(u),s.from=t.effects.setTransition(s,u,r.from.x,s.from),s.to=t.effects.setTransition(s,u,r.to.x,s.to))),("content"===f||"both"===f)&&r.from.y!==r.to.y&&(v=v.concat(c).concat(a),s.from=t.effects.setTransition(s,c,r.from.y,s.from),s.to=t.effects.setTransition(s,c,r.to.y,s.to)),t.effects.save(s,v),s.show(),t.effects.createWrapper(s),s.css("overflow","hidden").css(s.from),m&&(o=t.effects.getBaseline(m,n),s.from.top=(n.outerHeight-s.outerHeight())*o.y,s.from.left=(n.outerWidth-s.outerWidth())*o.x,s.to.top=(n.outerHeight-s.to.outerHeight)*o.y,s.to.left=(n.outerWidth-s.to.outerWidth)*o.x),s.css(s.from),("content"===f||"both"===f)&&(h=h.concat(["marginTop","marginBottom"]).concat(c),u=u.concat(["marginLeft","marginRight"]),a=l.concat(h).concat(u),s.find("*[width]").each((function(){var i=t(this),n=i.height(),o=i.width(),s=i.outerHeight(),l=i.outerWidth();p&&t.effects.save(i,a),i.from={height:n*r.from.y,width:o*r.from.x,outerHeight:s*r.from.y,outerWidth:l*r.from.x},i.to={height:n*r.to.y,width:o*r.to.x,outerHeight:n*r.to.y,outerWidth:o*r.to.x},r.from.y!==r.to.y&&(i.from=t.effects.setTransition(i,h,r.from.y,i.from),i.to=t.effects.setTransition(i,h,r.to.y,i.to)),r.from.x!==r.to.x&&(i.from=t.effects.setTransition(i,u,r.from.x,i.from),i.to=t.effects.setTransition(i,u,r.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,(function(){p&&t.effects.restore(i,a)}))}))),s.animate(s.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===s.to.opacity&&s.css("opacity",s.from.opacity),"hide"===d&&s.hide(),t.effects.restore(s,v),p||("static"===g?s.css({position:"relative",top:s.to.top,left:s.to.left}):t.each(["top","left"],(function(t,e){s.css(e,(function(e,i){var n=parseInt(i,10),o=t?s.to.left:s.to.top;return"auto"===i?o+"px":n+o+"px"}))}))),t.effects.removeWrapper(s),i()}})}}(jQuery),function(t){t.effects.effect.shake=function(e,i){var n,o=t(this),r=["position","top","bottom","left","right","height","width"],s=t.effects.setMode(o,e.mode||"effect"),l=e.direction||"left",a=e.distance||20,c=e.times||3,h=2*c+1,u=Math.round(e.duration/h),d="up"===l||"down"===l?"top":"left",p="up"===l||"left"===l,f={},m={},g={},v=o.queue(),y=v.length;for(t.effects.save(o,r),o.show(),t.effects.createWrapper(o),f[d]=(p?"-=":"+=")+a,m[d]=(p?"+=":"-=")+2*a,g[d]=(p?"-=":"+=")+2*a,o.animate(f,u,e.easing),n=1;c>n;n++)o.animate(m,u,e.easing).animate(g,u,e.easing);o.animate(m,u,e.easing).animate(f,u/2,e.easing).queue((function(){"hide"===s&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()})),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,h+1))),o.dequeue()}}(jQuery),function(t){t.effects.effect.slide=function(e,i){var n,o=t(this),r=["position","top","bottom","left","right","width","height"],s=t.effects.setMode(o,e.mode||"show"),l="show"===s,a=e.direction||"left",c="up"===a||"down"===a?"top":"left",h="up"===a||"left"===a,u={};t.effects.save(o,r),o.show(),n=e.distance||o["top"===c?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(o).css({overflow:"hidden"}),l&&o.css(c,h?isNaN(n)?"-"+n:-n:n),u[c]=(l?h?"+=":"-=":h?"-=":"+=")+n,o.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}})}}(jQuery),function(t){t.effects.effect.transfer=function(e,i){var n=t(this),o=t(e.to),r="fixed"===o.css("position"),s=t("body"),l=r?s.scrollTop():0,a=r?s.scrollLeft():0,c=o.offset(),h={top:c.top-l,left:c.left-a,height:o.innerHeight(),width:o.innerWidth()},u=n.offset(),d=t("
").appendTo(document.body).addClass(e.className).css({top:u.top-l,left:u.left-a,height:n.innerHeight(),width:n.innerWidth(),position:r?"fixed":"absolute"}).animate(h,e.duration,e.easing,(function(){d.remove(),i()}))}}(jQuery),function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,n=t.ui.mouse.prototype,o=n._mouseInit,r=n._mouseDestroy;n._touchStart=function(t){!i&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,this._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},n._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},n._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},n._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),o.call(e)},n._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),r.call(e)}}}(jQuery),jQuery(document).ready((function(){$("body").append("
"),$("body").append("
")}));var ExistMsg=0,SmartMSGboxCount=0,PrevTop=0;$.SmartMessageBox=function(t,e){var i;t=$.extend({title:"",content:"",NormalButton:void 0,ActiveButton:void 0,buttons:void 0,input:void 0,inputValue:void 0,placeholder:"",options:void 0},t);if(1,0==isIE8orlower()&&$.sound_on){var n=document.createElement("audio");n.setAttribute("src",$.sound_path+"messagebox.mp3"),n.addEventListener("load",(function(){n.play()}),!0),n.pause(),n.play()}SmartMSGboxCount+=1,0==ExistMsg&&(ExistMsg=1,"
",$("body").append("
"),1==isIE8orlower()&&$("#MsgBoxBack").addClass("MessageIE"));var o="",r=0;if(null!=t.input)switch(r=1,t.input=t.input.toLowerCase(),t.input){case"text":t.inputValue="string"===$.type(t.inputValue)?t.inputValue.replace(/'/g,"'"):t.inputValue,o="
";break;case"password":o="
";break;case"select":if(null==t.options)alert("For this type of input, the options parameter is required.");else{o="
"}break;default:alert("That type of input is not handled yet")}i="
",i+="
",i+="
"+t.title+"",i+="
"+t.content+"
",i+=o,i+="
",null==t.buttons&&(t.buttons="[Accept]"),t.buttons=$.trim(t.buttons),t.buttons=t.buttons.split("");var l="",a=0;null==t.NormalButton&&(t.NormalButton="#232323"),null==t.ActiveButton&&(t.ActiveButton="#ed145b");for(s=0;s<=t.buttons.length-1;s++)"["==t.buttons[s]?l="":"]"==t.buttons[s]?i+=l="":l+=t.buttons[s];i+="
",i+="
",i+="
",SmartMSGboxCount>1&&($(".MessageBoxContainer").hide(),$(".MessageBoxContainer").css("z-index",99999)),$(".divMessageBox").append(i),1==r&&$("#txt"+SmartMSGboxCount).focus(),$(".botTempo").hover((function(){$(this).attr("id")}),(function(){$(this).attr("id")})),$(".botTempo").click((function(){var t=$(this).attr("id"),i=t.substr(t.indexOf("-")+1),n=$.trim($(this).text());if(1==r){if("function"==typeof e){var o=i.replace("Msg",""),s=$("#txt"+o).val();e&&e(n,s)}}else"function"==typeof e&&e&&e(n);$("#"+i).addClass("animated fadeOut fast"),0==(SmartMSGboxCount-=1)&&$("#MsgBoxBack").removeClass("fadeIn").addClass("fadeOut").delay(300).queue((function(){ExistMsg=0,$(this).remove()}))}))};var BigBoxes=0;$.bigBox=function(t,e){var i;if((t=$.extend({title:"",content:"",icon:void 0,number:void 0,color:void 0,sound:$.sound_on,sound_file:"bigbox",timeout:void 0,colortime:1500,colors:void 0},t)).sound&&0==isIE8orlower()){var n=document.createElement("audio");navigator.userAgent.match("Firefox/")?n.setAttribute("src",$.sound_path+t.sound_file+".ogg"):n.setAttribute("src",$.sound_path+t.sound_file+".mp3"),n.addEventListener("load",(function(){n.play()}),!0),n.pause(),n.play()}i="
",i+="
"+t.title+"",i+="
"+t.content+"
",i+="
",null==t.icon&&(t.icon="fa fa-cloud"),i+="",i+="
",i+="
",null!=t.number&&(i+=t.number),i+="
",i+="
",$("#divbigBoxes").append(i),null==t.color&&(t.color="#004d60"),$("#bigBox"+BigBoxes).css("background-color",t.color),$("#divMiniIcons").append("
"),$("#miniIcon"+BigBoxes).bind("click",(function(){var t=$(this).attr("id"),e=t.replace("miniIcon","bigBox"),i=t.replace("miniIcon","bigBoxColor");$(".cajita").each((function(t){var e=$(this).attr("id").replace("miniIcon","bigBox");$("#"+e).css("z-index",9998)})),$("#"+e).css("z-index",9999),$("#"+i).removeClass("animated fadeIn").delay(1).queue((function(){$(this).show(),$(this).addClass("animated fadeIn"),$(this).clearQueue()}))}));var o,r=$("#botClose"+BigBoxes),s=$("#bigBox"+BigBoxes),l=$("#miniIcon"+BigBoxes);if(null!=t.colors&&t.colors.length>0&&(r.attr("colorcount","0"),o=setInterval((function(){var e=r.attr("colorcount");r.animate({backgroundColor:t.colors[e].color}),s.animate({backgroundColor:t.colors[e].color}),l.animate({backgroundColor:t.colors[e].color}),e
",1==SmallBoxes)?($("#divSmallBoxes").append(i),SmallBoxesAnchos=$("#smallbox"+SmallBoxes).height()+40):0==$(".SmallBox").size()?($("#divSmallBoxes").append(i),SmallBoxesAnchos=$("#smallbox"+SmallBoxes).height()+40):($("#divSmallBoxes").append(i),$("#smallbox"+SmallBoxes).css("top",SmallBoxesAnchos),SmallBoxesAnchos=SmallBoxesAnchos+$("#smallbox"+SmallBoxes).height()+20,$(".SmallBox").each((function(t){0==t?($(this).css("top",20),heightPrev=$(this).height()+40,SmallBoxesAnchos=$(this).height()+40):($(this).css("top",heightPrev),heightPrev=heightPrev+$(this).height()+20,SmallBoxesAnchos=SmallBoxesAnchos+$(this).height()+20)})));var s,l=$("#smallbox"+SmallBoxes);null==t.color?l.css("background-color","#004d60"):l.css("background-color",t.color),null!=t.colors&&t.colors.length>0&&(l.attr("colorcount","0"),s=setInterval((function(){var e=l.attr("colorcount");l.animate({backgroundColor:t.colors[e].color}),e