").attr({id:f,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return b("
").addClass("ui-tooltip-content").appendTo(h),h.appendTo(this.document[0].body),this.tooltips[f]=g,h},_find:function(g){var f=g.data("ui-tooltip-id");return f?b("#"+f):b()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var f=this;b.each(this.tooltips,function(e,g){var h=b.Event("blur");h.target=h.currentTarget=g[0],f.close(h,!0),b("#"+e).remove(),g.data("ui-tooltip-title")&&(g.attr("title",g.data("ui-tooltip-title")),g.removeData("ui-tooltip-title"))})}})})(jQuery);(function(b,c){var a="ui-effects-";b.effects={effect:{}},function(D,y){function v(f,l,d){var h=C[l.type]||{};return null==f?d||!l.def?null:l.def:(f=h.floor?~~f:parseFloat(f),isNaN(f)?l.def:h.mod?(f+h.mod)%h.mod:0>f?0:f>h.max?h.max:f)}function E(d){var e=q(),f=e._rgba=[];return d=d.toLowerCase(),x(w,function(s,p){var G,F=p.re.exec(d),u=F&&p.parse(F),n=p.space||"rgba";return u?(G=e[n](u),e[A[n].cache]=G[A[n].cache],f=e._rgba=G._rgba,!1):y}),f.length?("0,0,0,0"===f.join()&&D.extend(f,B.transparent),e):B[d]}function m(f,h,d){return d=(d+1)%1,1>6*d?f+6*(h-f)*d:1>2*d?h:2>3*d?f+6*(h-f)*(2/3-d):f}var B,k="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",g=/^([\-+])=\s*(\d+\.?\d*)/,w=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(d){return[d[1],d[2],d[3],d[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(d){return[2.55*d[1],2.55*d[2],2.55*d[3],d[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(d){return[parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(d){return[parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(d){return[d[1],d[2]/100,d[3]/100,d[4]]}}],q=D.Color=function(h,d,f,l){return new D.Color.fn.parse(h,d,f,l)},A={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"}}}},C={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},z=q.support={},j=D("
")[0],x=D.each;j.style.cssText="background-color:rgba(1,1,1,.5)",z.rgba=j.style.backgroundColor.indexOf("rgba")>-1,x(A,function(d,f){f.cache="_"+d,f.props.alpha={idx:3,type:"percent",def:1}}),q.fn=D.extend(q.prototype,{parse:function(G,F,l,f){if(G===y){return this._rgba=[null,null,null,null],this}(G.jquery||G.nodeType)&&(G=D(G).css(F),F=y);var e=this,t=D.type(G),s=this._rgba=[];return F!==y&&(G=[G,F,l,f],t="array"),"string"===t?this.parse(E(G)||B._default):"array"===t?(x(A.rgba.props,function(d,h){s[h.idx]=v(G[h.idx],h)}),this):"object"===t?(G instanceof q?x(A,function(d,h){G[h.cache]&&(e[h.cache]=G[h.cache].slice())}):x(A,function(n,h){var d=h.cache;x(h.props,function(o,p){if(!e[d]&&h.to){if("alpha"===o||null==G[o]){return}e[d]=h.to(e._rgba)}e[d][p.idx]=v(G[o],p,!0)}),e[d]&&0>D.inArray(null,e[d].slice(0,3))&&(e[d][3]=1,h.from&&(e._rgba=h.from(e[d])))}),this):y},is:function(e){var d=q(e),f=!0,h=this;return x(A,function(n,l){var s,p=d[l.cache];return p&&(s=h[l.cache]||l.to&&l.to(h._rgba)||[],x(l.props,function(u,o){return null!=p[o.idx]?f=p[o.idx]===s[o.idx]:y})),f}),f},_space:function(){var d=[],f=this;return x(A,function(e,h){f[h.cache]&&d.push(e)}),d.pop()},transition:function(f,F){var p=q(f),H=p._space(),d=A[H],G=0===this.alpha()?q("transparent"):this,u=G[d.cache]||d.to(G._rgba),l=u.slice();return p=p[d.cache],x(d.props,function(s,K){var h=K.idx,I=u[h],e=p[h],J=C[K.type]||{};null!==e&&(null===I?l[h]=e:(J.mod&&(e-I>J.mod/2?I+=J.mod:I-e>J.mod/2&&(I-=J.mod)),l[h]=v((e-I)*F+I,K)))}),this[H](l)},blend:function(h){if(1===this._rgba[3]){return this}var d=this._rgba.slice(),f=d.pop(),l=q(h)._rgba;return q(D.map(d,function(n,o){return(1-f)*l[o]+f*n}))},toRgbaString:function(){var f="rgba(",d=D.map(this._rgba,function(h,l){return null==h?l>2?1:0:h});return 1===d[3]&&(d.pop(),f="rgb("),f+d.join()+")"},toHslaString:function(){var f="hsla(",d=D.map(this.hsla(),function(h,l){return null==h&&(h=l>2?1:0),l&&3>l&&(h=Math.round(100*h)+"%"),h});return 1===d[3]&&(d.pop(),f="hsl("),f+d.join()+")"},toHexString:function(h){var d=this._rgba.slice(),f=d.pop();return h&&d.push(~~(255*f)),"#"+D.map(d,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),q.fn.parse.prototype=q.fn,A.hsla.to=function(M){if(null==M[0]||null==M[1]||null==M[2]){return[null,null,null,M[3]]}var I,G,N=M[0]/255,p=M[1]/255,K=M[2]/255,f=M[3],d=Math.max(N,p,K),H=Math.min(N,p,K),F=d-H,J=d+H,L=0.5*J;return I=H===d?0:N===d?60*(p-K)/F+360:p===d?60*(K-N)/F+120:60*(N-p)/F+240,G=0===F?0:0.5>=L?F/J:F/(2-J),[Math.round(I)%360,G,L,null==f?1:f]},A.hsla.from=function(h){if(null==h[0]||null==h[1]||null==h[2]){return[null,null,null,h[3]]}var p=h[0]/360,f=h[1],l=h[2],d=h[3],u=0.5>=l?l*(1+f):l+f-l*f,n=2*l-u;return[Math.round(255*m(n,u,p+1/3)),Math.round(255*m(n,u,p)),Math.round(255*m(n,u,p-1/3)),d]},x(A,function(f,t){var d=t.props,l=t.cache,e=t.to,p=t.from;q.fn[f]=function(o){if(e&&!this[l]&&(this[l]=e(this._rgba)),o===y){return this[l].slice()}var H,F=D.type(o),h="array"===F||"object"===F?o:arguments,G=this[l].slice();return x(d,function(n,I){var u=h["object"===F?n:I.idx];null==u&&(u=G[I.idx]),G[I.idx]=v(u,I)}),p?(H=q(p(G)),H[l]=G,H):q(G)},x(d,function(n,h){q.fn[n]||(q.fn[n]=function(I){var u,G=D.type(I),F="alpha"===n?this._hsla?"hsla":"rgba":f,s=this[F](),H=s[h.idx];return"undefined"===G?H:("function"===G&&(I=I.call(this,H),G=D.type(I)),null==I&&h.empty?this:("string"===G&&(u=g.exec(I),u&&(I=H+parseFloat(u[2])*("+"===u[1]?1:-1))),s[h.idx]=I,this[F](s)))})})}),q.hook=function(f){var d=f.split(" ");x(d,function(l,h){D.cssHooks[h]={set:function(u,G){var p,F,t="";if("transparent"!==G&&("string"!==D.type(G)||(p=E(G)))){if(G=q(p||G),!z.rgba&&1!==G._rgba[3]){for(F="backgroundColor"===h?u.parentNode:u;(""===t||"transparent"===t)&&F&&F.style;){try{t=D.css(F,"backgroundColor"),F=F.parentNode}catch(s){}}G=G.blend(t&&"transparent"!==t?t:"_default")}G=G.toRgbaString()}try{u.style[h]=G}catch(s){}}},D.fx.step[h]=function(n){n.colorInit||(n.start=q(n.elem,h),n.end=q(n.end),n.colorInit=!0),D.cssHooks[h].set(n.elem,n.start.transition(n.end,n.pos))}})},q.hook(k),D.cssHooks.borderColor={expand:function(d){var f={};return x(["Top","Right","Bottom","Left"],function(e,h){f["border"+h+"Color"]=d}),f}},B=D.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 e(l){var j,k,m=l.ownerDocument.defaultView?l.ownerDocument.defaultView.getComputedStyle(l,null):l.currentStyle,h={};if(m&&m.length&&m[0]&&m[m[0]]){for(k=m.length;k--;){j=m[k],"string"==typeof m[j]&&(h[b.camelCase(j)]=m[j])}}else{for(j in m){"string"==typeof m[j]&&(h[j]=m[j])}}return h}function f(k,h){var j,m,l={};for(j in h){m=h[j],k[j]!==m&&(d[j]||(b.fx.step[j]||!isNaN(parseFloat(m)))&&(l[j]=m))}return l}var g=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(j,h){b.fx.step[h]=function(k){("none"!==k.end&&!k.setAttr||1===k.pos&&!k.setAttr)&&(jQuery.style(k.elem,h,k.end),k.setAttr=!0)}}),b.fn.addBack||(b.fn.addBack=function(h){return this.add(null==h?this.prevObject:this.prevObject.filter(h))}),b.effects.animateClass=function(m,j,n,l){var k=b.speed(j,n,l);return this.queue(function(){var p,s=b(this),q=s.attr("class")||"",h=k.children?s.find("*").addBack():s;h=h.map(function(){var o=b(this);return{el:o,start:e(this)}}),p=function(){b.each(g,function(u,o){m[o]&&s[o+"Class"](m[o])})},p(),h=h.map(function(){return this.end=e(this.el[0]),this.diff=f(this.start,this.end),this}),s.attr("class",q),h=h.map(function(){var u=this,o=b.Deferred(),t=b.extend({},k,{queue:!1,complete:function(){o.resolve(u)}});return this.el.animate(this.diff,t),o.promise()}),b.when.apply(b,h.get()).done(function(){p(),b.each(arguments,function(){var o=this.el;b.each(this.diff,function(u){o.css(u,"")})}),k.complete.call(s[0])})})},b.fn.extend({addClass:function(h){return function(k,l,m,j){return l?b.effects.animateClass.call(this,{add:k},l,m,j):h.apply(this,arguments)}}(b.fn.addClass),removeClass:function(h){return function(k,l,m,j){return arguments.length>1?b.effects.animateClass.call(this,{remove:k},l,m,j):h.apply(this,arguments)}}(b.fn.removeClass),toggleClass:function(h){return function(k,p,j,m,l){return"boolean"==typeof p||p===c?j?b.effects.animateClass.call(this,p?{add:k}:{remove:k},j,m,l):h.apply(this,arguments):b.effects.animateClass.call(this,{toggle:k},p,j,m)}}(b.fn.toggleClass),switchClass:function(l,j,k,m,h){return b.effects.animateClass.call(this,{add:j,remove:l},k,m,h)}})}(),function(){function d(h,f,g,j){return b.isPlainObject(h)&&(f=h,h=h.effect),h={effect:h},null==f&&(f={}),b.isFunction(f)&&(j=f,g=null,f={}),("number"==typeof f||b.fx.speeds[f])&&(j=g,g=f,f={}),b.isFunction(g)&&(j=g,g=null),f&&b.extend(h,f),g=g||f.duration,h.duration=b.fx.off?0:"number"==typeof g?g:g in b.fx.speeds?b.fx.speeds[g]:b.fx.speeds._default,h.complete=j||f.complete,h}function e(f){return !f||"number"==typeof f||b.fx.speeds[f]?!0:"string"!=typeof f||b.effects.effect[f]?b.isFunction(f)?!0:"object"!=typeof f||f.effect?!1:!0:!0}b.extend(b.effects,{version:"1.10.3",save:function(f,h){for(var g=0;h.length>g;g++){null!==h[g]&&f.data(a+h[g],f[0].style[h[g]])}},restore:function(g,h){var j,f;for(f=0;h.length>f;f++){null!==h[f]&&(j=g.data(a+h[f]),j===c&&(j=""),g.css(h[f],j))}},setMode:function(f,g){return"toggle"===g&&(g=f.is(":hidden")?"show":"hide"),g},getBaseline:function(g,j){var f,h;switch(g[0]){case"top":f=0;break;case"middle":f=0.5;break;case"bottom":f=1;break;default:f=g[0]/j.height}switch(g[1]){case"left":h=0;break;case"center":h=0.5;break;case"right":h=1;break;default:h=g[1]/j.width}return{x:h,y:f}},createWrapper:function(j){if(j.parent().is(".ui-effects-wrapper")){return j.parent()}var g={width:j.outerWidth(!0),height:j.outerHeight(!0),"float":j.css("float")},h=b("
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),l={width:j.width(),height:j.height()},f=document.activeElement;try{f.id}catch(k){f=document.body}return j.wrap(h),(j[0]===f||b.contains(j[0],f))&&b(f).focus(),h=j.parent(),"static"===j.css("position")?(h.css({position:"relative"}),j.css({position:"relative"})):(b.extend(g,{position:j.css("position"),zIndex:j.css("z-index")}),b.each(["top","left","bottom","right"],function(m,n){g[n]=j.css(n),isNaN(parseInt(g[n],10))&&(g[n]="auto")}),j.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),j.css(l),h.css(g).show()},removeWrapper:function(g){var f=document.activeElement;return g.parent().is(".ui-effects-wrapper")&&(g.parent().replaceWith(g),(g[0]===f||b.contains(g[0],f))&&b(f).focus()),g},setTransition:function(h,f,g,j){return j=j||{},b.each(f,function(m,l){var k=h.cssUnit(l);k[0]>0&&(j[l]=k[0]*g+k[1])}),j}}),b.fn.extend({effect:function(){function h(p){function m(){b.isFunction(l)&&l.call(q[0]),b.isFunction(p)&&p()}var q=b(this),l=g.complete,o=g.mode;(q.is(":hidden")?"hide"===o:"show"===o)?(q[o](),m()):j.call(q[0],g,m)}var g=d.apply(this,arguments),k=g.mode,f=g.queue,j=b.effects.effect[g.effect];return b.fx.off||!j?k?this[k](g.duration,g.complete):this.each(function(){g.complete&&g.complete.call(this)}):f===!1?this.each(h):this.queue(f||"fx",h)},show:function(f){return function(h){if(e(h)){return f.apply(this,arguments)}var g=d.apply(this,arguments);return g.mode="show",this.effect.call(this,g)}}(b.fn.show),hide:function(f){return function(h){if(e(h)){return f.apply(this,arguments)}var g=d.apply(this,arguments);return g.mode="hide",this.effect.call(this,g)}}(b.fn.hide),toggle:function(f){return function(h){if(e(h)||"boolean"==typeof h){return f.apply(this,arguments)}var g=d.apply(this,arguments);return g.mode="toggle",this.effect.call(this,g)}}(b.fn.toggle),cssUnit:function(h){var f=this.css(h),g=[];return b.each(["em","px","%","pt"],function(j,k){f.indexOf(k)>0&&(g=[parseFloat(f),k])}),g}})}(),function(){var d={};b.each(["Quad","Cubic","Quart","Quint","Expo"],function(f,e){d[e]=function(g){return Math.pow(g,f+2)}}),b.extend(d,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(g){for(var h,f=4;((h=Math.pow(2,--f))-1)/11>g;){}return 1/Math.pow(4,3-f)-7.5625*Math.pow((3*h-2)/22-g,2)}}),b.each(d,function(g,f){b.easing["easeIn"+g]=f,b.easing["easeOut"+g]=function(e){return 1-f(1-e)},b.easing["easeInOut"+g]=function(e){return 0.5>e?f(2*e)/2:1-f(-2*e+2)/2}})}()})(jQuery);(function(b){var c=/up|down|vertical/,a=/up|left|vertical|horizontal/;b.effects.effect.blind=function(F,q){var C,k,e,x=b(this),w=["position","top","bottom","left","right","height","width"],B=b.effects.setMode(x,F.mode||"hide"),E=F.direction||"up",A=c.test(E),j=A?"height":"width",z=A?"top":"left",t=a.test(E),y={},D="show"===B;x.parent().is(".ui-effects-wrapper")?b.effects.save(x.parent(),w):b.effects.save(x,w),x.show(),C=b.effects.createWrapper(x).css({overflow:"hidden"}),k=C[j](),e=parseFloat(C.css(z))||0,y[j]=D?k:0,t||(x.css(A?"bottom":"right",0).css(A?"top":"left","auto").css({position:"absolute"}),y[z]=D?e:k+e),D&&(C.css(j,0),t||C.css(z,e+k)),C.animate(y,{duration:F.duration,easing:F.easing,queue:!1,complete:function(){"hide"===B&&x.hide(),b.effects.restore(x,w),b.effects.removeWrapper(x),q()}})}})(jQuery);(function(a){a.effects.effect.bounce=function(H,D){var t,A,L,z=a(this),w=["position","top","bottom","left","right","height","width"],E=a.effects.setMode(z,H.mode||"effect"),C="hide"===E,J="show"===E,q=H.direction||"up",I=H.distance,x=H.times||5,G=2*x+(J||C?1:0),B=H.duration/G,F=H.easing,k="up"===q||"down"===q?"top":"left",M="up"===q||"left"===q,K=z.queue(),j=K.length;for((J||C)&&w.push("opacity"),a.effects.save(z,w),z.show(),a.effects.createWrapper(z),I||(I=z["top"===k?"outerHeight":"outerWidth"]()/3),J&&(L={opacity:1},L[k]=0,z.css("opacity",0).css(k,M?2*-I:2*I).animate(L,B,F)),C&&(I/=Math.pow(2,x-1)),L={},L[k]=0,t=0;x>t;t++){A={},A[k]=(M?"-=":"+=")+I,z.animate(A,B,F).animate(L,B,F),I=C?2*I:I/2}C&&(A={opacity:0},A[k]=(M?"-=":"+=")+I,z.animate(A,B,F)),z.queue(function(){C&&z.hide(),a.effects.restore(z,w),a.effects.removeWrapper(z),D()}),j>1&&K.splice.apply(K,[1,0].concat(K.splice(j,G+1))),z.dequeue()}})(jQuery);(function(a){a.effects.effect.clip=function(w,q){var B,k,z,j=a(this),b=["position","top","bottom","left","right","height","width"],t=a.effects.setMode(j,w.mode||"hide"),m="show"===t,y=w.direction||"vertical",A="vertical"===y,x=A?"height":"width",g=A?"top":"left",v={};a.effects.save(j,b),j.show(),B=a.effects.createWrapper(j).css({overflow:"hidden"}),k="IMG"===j[0].tagName?B:j,z=k[x](),m&&(k.css(x,0),k.css(g,z/2)),v[x]=m?z:0,v[g]=m?0:z/2,k.animate(v,{queue:!1,duration:w.duration,easing:w.easing,complete:function(){m||j.hide(),a.effects.restore(j,b),a.effects.removeWrapper(j),q()}})}})(jQuery);(function(a){a.effects.effect.drop=function(m,j){var v,f=a(this),q=["position","top","bottom","left","right","opacity","height","width"],d=a.effects.setMode(f,m.mode||"hide"),b="show"===d,k=m.direction||"left",g="up"===k||"down"===k?"top":"left",p="up"===k||"left"===k?"pos":"neg",t={opacity:b?1:0};a.effects.save(f,q),f.show(),a.effects.createWrapper(f),v=m.distance||f["top"===g?"outerHeight":"outerWidth"](!0)/2,b&&f.css("opacity",0).css(g,"pos"===p?-v:v),t[g]=(b?"pos"===p?"+=":"-=":"pos"===p?"-=":"+=")+v,f.animate(t,{queue:!1,duration:m.duration,easing:m.easing,complete:function(){"hide"===d&&f.hide(),a.effects.restore(f,q),a.effects.removeWrapper(f),j()}})}})(jQuery);(function(a){a.effects.effect.explode=function(F,B){function q(){I.push(this),I.length===k*G&&y()}function y(){w.css({visibility:"visible"}),a(I).remove(),z||w.hide(),B()}var J,x,t,C,A,H,k=F.pieces?Math.round(Math.sqrt(F.pieces)):3,G=k,w=a(this),E=a.effects.setMode(w,F.mode||"hide"),z="show"===E,D=w.show().css("visibility","hidden").offset(),j=Math.ceil(w.outerWidth()/G),K=Math.ceil(w.outerHeight()/k),I=[];for(J=0;k>J;J++){for(C=D.top+J*K,H=J-(k-1)/2,x=0;G>x;x++){t=D.left+x*j,A=x-(G-1)/2,w.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-x*j,top:-J*K}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j,height:K,left:t+(z?A*j:0),top:C+(z?H*K:0),opacity:z?0:1}).animate({left:t+(z?0:A*j),top:C+(z?0:H*K),opacity:z?1:0},F.duration||500,F.easing,q)}}}})(jQuery);(function(a){a.effects.effect.fade=function(d,b){var c=a(this),f=a.effects.setMode(c,d.mode||"toggle");c.animate({opacity:f},{queue:!1,duration:d.duration,easing:d.easing,complete:b})}})(jQuery);(function(a){a.effects.effect.fold=function(B,x){var H,q,E=a(this),k=["position","top","bottom","left","right","height","width"],b=a.effects.setMode(E,B.mode||"hide"),y="show"===b,w="hide"===b,D=B.size||15,G=/([0-9]+)%/.exec(D),C=!!B.horizFirst,j=y!==C,A=j?["width","height"]:["height","width"],t=B.duration/2,z={},F={};a.effects.save(E,k),E.show(),H=a.effects.createWrapper(E).css({overflow:"hidden"}),q=j?[H.width(),H.height()]:[H.height(),H.width()],G&&(D=parseInt(G[1],10)/100*q[w?0:1]),y&&H.css(C?{height:0,width:D}:{height:D,width:0}),z[A[0]]=y?q[0]:D,F[A[1]]=y?q[1]:0,H.animate(z,t,B.easing).animate(F,t,B.easing,function(){w&&E.hide(),a.effects.restore(E,k),a.effects.removeWrapper(E),x()})}})(jQuery);(function(a){a.effects.effect.highlight=function(f,c){var d=a(this),h=["backgroundImage","backgroundColor","opacity"],b=a.effects.setMode(d,f.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===b&&(g.opacity=0),a.effects.save(d,h),d.show().css({backgroundImage:"none",backgroundColor:f.color||"#ffff99"}).animate(g,{queue:!1,duration:f.duration,easing:f.easing,complete:function(){"hide"===b&&d.hide(),a.effects.restore(d,h),c()}})}})(jQuery);(function(a){a.effects.effect.pulsate=function(t,m){var z,j=a(this),x=a.effects.setMode(j,t.mode||"show"),g="show"===x,b="hide"===x,q=g||"hide"===x,k=2*(t.times||5)+(q?1:0),w=t.duration/k,y=0,v=j.queue(),f=v.length;for((g||!j.is(":visible"))&&(j.css("opacity",0).show(),y=1),z=1;k>z;z++){j.animate({opacity:y},w,t.easing),y=1-y}j.animate({opacity:y},w,t.easing),j.queue(function(){b&&j.hide(),m()}),f>1&&v.splice.apply(v,[1,0].concat(v.splice(f,k+1))),j.dequeue()}})(jQuery);(function(a){a.effects.effect.puff=function(j,c){var f=a(this),l=a.effects.setMode(f,j.mode||"hide"),b="hide"===l,k=parseInt(j.percent,10)||150,g=k/100,d={height:f.height(),width:f.width(),outerHeight:f.outerHeight(),outerWidth:f.outerWidth()};a.extend(j,{effect:"scale",queue:!1,fade:!0,mode:l,complete:c,percent:b?k:100,from:b?d:{height:d.height*g,width:d.width*g,outerHeight:d.outerHeight*g,outerWidth:d.outerWidth*g}}),f.effect(j)},a.effects.effect.scale=function(m,j){var t=a(this),f=a.extend(!0,{},m),q=a.effects.setMode(t,m.mode||"effect"),d=parseInt(m.percent,10)||(0===parseInt(m.percent,10)?0:"hide"===q?0:100),b=m.direction||"both",k=m.origin,g={height:t.height(),width:t.width(),outerHeight:t.outerHeight(),outerWidth:t.outerWidth()},p={y:"horizontal"!==b?d/100:1,x:"vertical"!==b?d/100:1};f.effect="size",f.queue=!1,f.complete=j,"effect"!==q&&(f.origin=k||["middle","center"],f.restore=!0),f.from=m.from||("show"===q?{height:0,width:0,outerHeight:0,outerWidth:0}:g),f.to={height:g.height*p.y,width:g.width*p.x,outerHeight:g.outerHeight*p.y,outerWidth:g.outerWidth*p.x},f.fade&&("show"===q&&(f.from.opacity=0,f.to.opacity=1),"hide"===q&&(f.from.opacity=1,f.to.opacity=0)),t.effect(f)},a.effects.effect.size=function(F,B){var q,y,J,x=a(this),t=["position","top","bottom","left","right","width","height","overflow","opacity"],C=["position","top","bottom","left","right","overflow","opacity"],A=["width","height","overflow"],H=["fontSize"],k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],G=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],w=a.effects.setMode(x,F.mode||"effect"),E=F.restore||"effect"!==w,z=F.scale||"both",D=F.origin||["middle","center"],j=x.css("position"),K=E?t:C,I={height:0,width:0,outerHeight:0,outerWidth:0};"show"===w&&x.show(),q={height:x.height(),width:x.width(),outerHeight:x.outerHeight(),outerWidth:x.outerWidth()},"toggle"===F.mode&&"show"===w?(x.from=F.to||I,x.to=F.from||q):(x.from=F.from||("show"===w?I:q),x.to=F.to||("hide"===w?I:q)),J={from:{y:x.from.height/q.height,x:x.from.width/q.width},to:{y:x.to.height/q.height,x:x.to.width/q.width}},("box"===z||"both"===z)&&(J.from.y!==J.to.y&&(K=K.concat(k),x.from=a.effects.setTransition(x,k,J.from.y,x.from),x.to=a.effects.setTransition(x,k,J.to.y,x.to)),J.from.x!==J.to.x&&(K=K.concat(G),x.from=a.effects.setTransition(x,G,J.from.x,x.from),x.to=a.effects.setTransition(x,G,J.to.x,x.to))),("content"===z||"both"===z)&&J.from.y!==J.to.y&&(K=K.concat(H).concat(A),x.from=a.effects.setTransition(x,H,J.from.y,x.from),x.to=a.effects.setTransition(x,H,J.to.y,x.to)),a.effects.save(x,K),x.show(),a.effects.createWrapper(x),x.css("overflow","hidden").css(x.from),D&&(y=a.effects.getBaseline(D,q),x.from.top=(q.outerHeight-x.outerHeight())*y.y,x.from.left=(q.outerWidth-x.outerWidth())*y.x,x.to.top=(q.outerHeight-x.to.outerHeight)*y.y,x.to.left=(q.outerWidth-x.to.outerWidth)*y.x),x.css(x.from),("content"===z||"both"===z)&&(k=k.concat(["marginTop","marginBottom"]).concat(H),G=G.concat(["marginLeft","marginRight"]),A=t.concat(k).concat(G),x.find("*[width]").each(function(){var b=a(this),c={height:b.height(),width:b.width(),outerHeight:b.outerHeight(),outerWidth:b.outerWidth()};E&&a.effects.save(b,A),b.from={height:c.height*J.from.y,width:c.width*J.from.x,outerHeight:c.outerHeight*J.from.y,outerWidth:c.outerWidth*J.from.x},b.to={height:c.height*J.to.y,width:c.width*J.to.x,outerHeight:c.height*J.to.y,outerWidth:c.width*J.to.x},J.from.y!==J.to.y&&(b.from=a.effects.setTransition(b,k,J.from.y,b.from),b.to=a.effects.setTransition(b,k,J.to.y,b.to)),J.from.x!==J.to.x&&(b.from=a.effects.setTransition(b,G,J.from.x,b.from),b.to=a.effects.setTransition(b,G,J.to.x,b.to)),b.css(b.from),b.animate(b.to,F.duration,F.easing,function(){E&&a.effects.restore(b,A)})})),x.animate(x.to,{queue:!1,duration:F.duration,easing:F.easing,complete:function(){0===x.to.opacity&&x.css("opacity",x.from.opacity),"hide"===w&&x.hide(),a.effects.restore(x,K),E||("static"===j?x.css({position:"relative",top:x.to.top,left:x.to.left}):a.each(["top","left"],function(b,c){x.css(c,function(g,d){var f=parseInt(d,10),h=b?x.to.left:x.to.top;return"auto"===d?h+"px":f+h+"px"})})),a.effects.removeWrapper(x),B()}})}})(jQuery);(function(a){a.effects.effect.shake=function(E,A){var k,x=a(this),H=["position","top","bottom","left","right","height","width"],w=a.effects.setMode(x,E.mode||"effect"),q=E.direction||"left",B=E.distance||20,z=E.times||3,G=2*z+1,j=Math.round(E.duration/G),F="up"===q||"down"===q?"top":"left",t="up"===q||"left"===q,D={},y={},C={},b=x.queue(),I=b.length;for(a.effects.save(x,H),x.show(),a.effects.createWrapper(x),D[F]=(t?"-=":"+=")+B,y[F]=(t?"+=":"-=")+2*B,C[F]=(t?"-=":"+=")+2*B,x.animate(D,j,E.easing),k=1;z>k;k++){x.animate(y,j,E.easing).animate(C,j,E.easing)}x.animate(y,j,E.easing).animate(D,j/2,E.easing).queue(function(){"hide"===w&&x.hide(),a.effects.restore(x,H),a.effects.removeWrapper(x),A()}),I>1&&b.splice.apply(b,[1,0].concat(b.splice(I,G+1))),x.dequeue()}})(jQuery);(function(a){a.effects.effect.slide=function(m,j){var v,f=a(this),q=["position","top","bottom","left","right","width","height"],d=a.effects.setMode(f,m.mode||"show"),b="show"===d,k=m.direction||"left",g="up"===k||"down"===k?"top":"left",p="up"===k||"left"===k,t={};a.effects.save(f,q),f.show(),v=m.distance||f["top"===g?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(f).css({overflow:"hidden"}),b&&f.css(g,p?isNaN(v)?"-"+v:-v:v),t[g]=(b?p?"+=":"-=":p?"-=":"+=")+v,f.animate(t,{queue:!1,duration:m.duration,easing:m.easing,complete:function(){"hide"===d&&f.hide(),a.effects.restore(f,q),a.effects.removeWrapper(f),j()}})}})(jQuery);(function(a){a.effects.effect.transfer=function(p,k){var x=a(this),g=a(p.to),v="fixed"===g.css("position"),f=a("body"),b=v?f.scrollTop():0,m=v?f.scrollLeft():0,j=g.offset(),t={top:j.top-b,left:j.left-m,height:g.innerHeight(),width:g.innerWidth()},w=x.offset(),q=a("
").appendTo(document.body).addClass(p.className).css({top:w.top-b,left:w.left-m,height:x.innerHeight(),width:x.innerWidth(),position:v?"fixed":"absolute"}).animate(t,p.duration,p.easing,function(){q.remove(),k()})}})(jQuery);
/*!
* jQuery doTimeout: Like setTimeout, but better! - v1.0 - 3/3/2010
* http://benalman.com/projects/jquery-dotimeout-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($){var a={},c="doTimeout",d=Array.prototype.slice;$[c]=function(){return b.apply(window,[0].concat(d.call(arguments)))};$.fn[c]=function(){var f=d.call(arguments),e=b.apply(this,[c+f[0]].concat(f));return typeof f[0]==="number"||typeof f[1]==="number"?this:e};function b(m){var n=this,h,l={},g=m?$.fn:$,o=arguments,j=4,f=o[1],k=o[2],q=o[3];if(typeof f!=="string"){j--;f=m=0;k=o[1];q=o[2]}if(m){h=n.eq(0);h.data(m,l=h.data(m)||{})}else{if(f){l=a[f]||(a[f]={})}}l.id&&clearTimeout(l.id);delete l.id;function e(){if(m){h.removeData(m)}else{if(f){delete a[f]}}}function p(){l.id=setTimeout(function(){l.fn()},k)}if(q){l.fn=function(s){if(typeof q==="string"){q=g[q]}q.apply(n,d.call(o,j))===true&&!s?p():e()};p()}else{if(l.fn){k===undefined?e():l.fn(k===false);return true}else{e()}}}})(jQuery);(function(e){var c={hintText:"Type in a search term",noResultsText:"No results",searchingText:"Searching...",deleteText:"×",searchDelay:300,minChars:1,tokenLimit:null,jsonContainer:null,method:"GET",contentType:"json",queryParam:"q",tokenDelimiter:",",preventDuplicates:false,prePopulate:null,processPrePopulate:false,animateDropdown:true,onResult:null,onAdd:null,onDelete:null,idPrefix:"token-input-",allowNewItems:false,newItemFilter:null,searchFields:["name"]};var f={tokenList:"token-input-list",token:"token-input-token",tokenDelete:"token-input-delete-token",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"token-input-dropdown",dropdownItem:"token-input-dropdown-item",dropdownItem2:"token-input-dropdown-item2",selectedDropdownItem:"token-input-selected-dropdown-item",inputToken:"token-input-input-token"};var d={BEFORE:0,AFTER:1,END:2};var a={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUMPAD_ENTER:108,COMMA:188};var b={init:function(g,h){var j=e.extend({},c,h||{});return this.each(function(){e(this).data("tokenInputObject",new e.TokenList(this,g,j))})},clear:function(){this.data("tokenInputObject").clear();return this},add:function(g){this.data("tokenInputObject").add(g);return this},remove:function(g){this.data("tokenInputObject").remove(g);return this}};e.fn.tokenInput=function(g){if(b[g]){return b[g].apply(this,Array.prototype.slice.call(arguments,1))}else{return b.init.apply(this,arguments)}};e.TokenList=function(j,t,O){if(typeof(t)==="string"){O.url=t;if(O.crossDomain===undefined){if(O.url.indexOf("://")===-1){O.crossDomain=false}else{O.crossDomain=(location.href.split(/\/+/g)[1]!==O.url.split(/\/+/g)[1])}}}else{if(typeof(t)==="object"){O.local_data=t}}if(O.classes){O.classes=e.extend({},f,O.classes)}else{if(O.theme){O.classes={};e.each(f,function(T,U){O.classes[T]=U+"-"+O.theme})}else{O.classes=f}}var C=[];var w=0;var s=new e.TokenList.Cache();var M;var J;var y=e('
').css({outline:"none"}).attr("id",O.idPrefix+j.id).focus(function(){if(O.tokenLimit===null||O.tokenLimit!==w){m()}}).blur(function(){D();e(this).val("")}).bind("keyup keydown blur update",g).keydown(function(U){var W;var T;switch(U.keyCode){case a.LEFT:case a.RIGHT:case a.UP:case a.DOWN:if(!e(this).val()){W=n.prev();T=n.next();if((W.length&&W.get(0)===A)||(T.length&&T.get(0)===A)){if(U.keyCode===a.LEFT||U.keyCode===a.UP){G(e(A),d.BEFORE)}else{G(e(A),d.AFTER)}}else{if((U.keyCode===a.LEFT||U.keyCode===a.UP)&&W.length){P(e(W.get(0)))}else{if((U.keyCode===a.RIGHT||U.keyCode===a.DOWN)&&T.length){P(e(T.get(0)))}}}}else{var V=null;if(U.keyCode===a.DOWN||U.keyCode===a.RIGHT){V=e(L).next()}else{V=e(L).prev()}if(V.length){S(V)}return false}break;case a.BACKSPACE:W=n.prev();if(!e(this).val().length){if(A){l(e(A))}else{if(W.length){P(e(W.get(0)))}}return false}else{if(e(this).val().length===1){D()}else{setTimeout(function(){z()},5)}}break;case a.TAB:case a.ENTER:case a.NUMPAD_ENTER:case a.COMMA:if(L&&U.keyCode!=a.COMMA){I(e(L).data("tokeninput"));return false}else{if(O.allowNewItems){var X=e(this).val();if(X.length>0){if(typeof(O.newItemFilter)==="function"){O.newItemFilter(I,X)}else{I({id:X,name:X})}}return false}}break;case a.ESCAPE:D();return true;default:if(String.fromCharCode(U.which)){setTimeout(function(){z()},5)}break}});var B=e(j).hide().val("").focus(function(){y.focus()}).blur(function(){y.blur()});var A=null;var E=0;var L=null;var p=e("
").addClass(O.classes.tokenList).click(function(U){var T=e(U.target).closest("li");if(T&&T.get(0)&&e.data(T.get(0),"tokeninput")){R(T)}else{if(A){G(e(A),d.END)}y.focus()}}).mouseover(function(U){var T=e(U.target).closest("li");if(T&&A!==this){T.addClass(O.classes.highlightedToken)}}).mouseout(function(U){var T=e(U.target).closest("li");if(T&&A!==this){T.removeClass(O.classes.highlightedToken)}}).insertBefore(B);var n=e("
").addClass(O.classes.inputToken).appendTo(p).append(y);var Q=e("
").addClass(O.classes.dropdown).appendTo("body").hide();var H=e("
").insertAfter(y).css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:y.css("fontSize"),fontFamily:y.css("fontFamily"),fontWeight:y.css("fontWeight"),letterSpacing:y.css("letterSpacing"),whiteSpace:"nowrap"});B.val("");var x=O.prePopulate||B.data("pre");if(O.processPrePopulate&&e.isFunction(O.onResult)){x=O.onResult.call(B,x)}if(x&&x.length){e.each(x,function(T,U){k(U);F()})}this.clear=function(){p.children("li").each(function(){if(e(this).children("input").length===0){l(e(this))}})};this.add=function(T){I(T)};this.remove=function(T){p.children("li").each(function(){if(e(this).children("input").length===0){var W=e(this).data("tokeninput");var U=true;for(var V in T){if(T[V]!==W[V]){U=false;break}}if(U){l(e(this))}}})};function F(){if(O.tokenLimit!==null&&w>=O.tokenLimit){y.hide();D();return}}function g(){if(J===(J=y.val())){return}var T=J.replace(/&/g,"&").replace(/\s/g," ").replace(//g,">");H.html(T);y.width(H.width()+30)}function N(T){return((T>=48&&T<=90)||(T>=96&&T<=111)||(T>=186&&T<=192)||(T>=219&&T<=222))}function k(U){var W=e("
"+U.name+"
").addClass(O.classes.token).insertBefore(n);e("
"+O.deleteText+"").addClass(O.classes.tokenDelete).appendTo(W).click(function(){l(e(this).parent());return false});var V={id:U.id,name:U.name};e.data(W.get(0),"tokeninput",U);C=C.slice(0,E).concat([V]).concat(C.slice(E));E++;var T=e.map(C,function(X){return X.id});B.val(T.join(O.tokenDelimiter));w+=1;return W}function I(T){var V=O.onAdd;if(w>0&&O.preventDuplicates){var U=null;p.children().each(function(){var X=e(this);var W=e.data(X.get(0),"tokeninput");if(W&&W.id===T.id){U=X;return false}});if(U){P(U);n.insertAfter(U);return}}k(T);F();y.val("");D();if(e.isFunction(V)){V.call(B,T)}}function P(T){T.addClass(O.classes.selectedToken);A=T.get(0);y.val("");D()}function G(U,T){U.removeClass(O.classes.selectedToken);A=null;if(T===d.BEFORE){n.insertBefore(U);E--}else{if(T===d.AFTER){n.insertAfter(U);E++}else{n.appendTo(p);E=w}}y.focus()}function R(U){var T=A;if(A){G(e(A),d.END)}if(T===U.get(0)){G(U,d.END)}else{P(U)}}function l(V){var W=e.data(V.get(0),"tokeninput");var X=O.onDelete;var U=V.prevAll().length;if(U>E){U--}V.remove();A=null;y.focus();C=C.slice(0,U).concat(C.slice(U+1));if(U
"+O.searchingText+"");q()}}function m(){if(O.hintText){Q.html(""+O.hintText+"
");q()}}function v(U,T){var V=T.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");return U.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+V+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1")}function K(V,T){if(T&&T.length){Q.empty();var U=e("").appendTo(Q).mouseover(function(W){S(e(W.target).closest("li"))}).mousedown(function(W){I(e(W.target).closest("li").data("tokeninput"));return false}).hide();e.each(T,function(W,X){var Y=e("- "+v(X.name,V)+"
").appendTo(U);if(W%2){Y.addClass(O.classes.dropdownItem)}else{Y.addClass(O.classes.dropdownItem2)}if(W===0){S(Y)}e.data(Y.get(0),"tokeninput",X)});q();if(O.animateDropdown){U.slideDown("fast")}else{U.show()}}else{if(O.noResultsText){Q.html(""+O.noResultsText+"
");q()}}}function S(T){if(T){if(L){h(e(L))}T.addClass(O.classes.selectedDropdownItem);L=T.get(0)}}function h(T){T.removeClass(O.classes.selectedDropdownItem);L=null}function z(){var T=y.val().toLowerCase();if(T&&T.length){if(A){G(e(A),d.AFTER)}if(T.length>=O.minChars){o();clearTimeout(M);if(O.searchDelay>0){M=setTimeout(function(){u(T)},O.searchDelay)}else{u(T)}}else{D()}}}function u(X){X=X.replace(/(^[,\s]+|[,\s]+$)/g,"");X=X.toLowerCase();var T=s.get(X);if(T){K(X,T)}else{if(O.url){var V={};V.data={};if(O.url.indexOf("?")>-1){var Y=O.url.split("?");V.url=Y[0];var U=Y[1].split("&");e.each(U,function(Z,ab){var aa=ab.split("=");V.data[aa[0]]=aa[1]})}else{V.url=O.url}V.data[O.queryParam]=X;V.type=O.method;V.dataType=O.contentType;if(O.crossDomain){V.dataType="jsonp"}V.success=function(Z){if(e.isFunction(O.onResult)){Z=O.onResult.call(B,Z)}s.add(X,O.jsonContainer?Z[O.jsonContainer]:Z);if(y.val().toLowerCase()===X){K(X,O.jsonContainer?Z[O.jsonContainer]:Z)}};e.ajax(V)}else{if(O.local_data){var W=e.grep(O.local_data,function(aa){for(i=O.searchFields.length-1;i>=0;i--){var Z=aa[O.searchFields[i]];if(Z&&Z.toLowerCase().indexOf(X)>-1){return true}}});if(e.isFunction(O.onResult)){W=O.onResult.call(B,W)}s.add(X,W);K(X,W)}}}}};e.TokenList.Cache=function(h){var k=e.extend({max_size:500},h);var l={};var j=0;var g=function(){l={};j=0};this.add=function(n,m){if(j>k.max_size){g()}if(!l[n]){j+=1}l[n]=m};this.get=function(m){return l[m]}}}(jQuery));if($.browser.msie&&$.browser.version=="6.0"){var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var c,d;c=document.createElement("style");c.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(c,document.documentElement.firstChild.firstChild);if(c.styleSheet){c=c.styleSheet;c.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");c.addRule(this.ns+"\\:shape","position:absolute;");c.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=c;d=document.createElement("style");d.setAttribute("media","print");document.documentElement.firstChild.insertBefore(d,document.documentElement.firstChild.firstChild);d=d.styleSheet;d.addRule(this.ns+"\\:*","{display: none !important;}");d.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var d,f,e;d=event.srcElement;if(!d.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(d)}if(event.propertyName=="style.display"){f=(d.currentStyle.display=="none")?"none":"block";for(e in d.vml){if(d.vml.hasOwnProperty(e)){d.vml[e].shape.style.display=f}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(d)}},vmlOpacity:function(c){if(c.currentStyle.filter.search("lpha")!=-1){var d=c.currentStyle.filter;d=parseInt(d.substring(d.lastIndexOf("=")+1,d.lastIndexOf(")")),10)/100;c.vml.color.shape.style.filter=c.currentStyle.filter;c.vml.image.fill.opacity=d}},handlePseudoHover:function(b){setTimeout(function(){DD_belatedPNG.applyVML(b)},1)},fix:function(e){if(this.screenStyleSheet){var f,d;f=e.split(",");for(d=0;db.H){s.B=b.H}x.vml.image.shape.style.clip="rect("+s.T+"px "+(s.R+y)+"px "+s.B+"px "+(s.L+y)+"px)"}else{x.vml.image.shape.style.clip="rect("+v.T+"px "+v.R+"px "+v.B+"px "+v.L+"px)"}},figurePercentage:function(l,m,j,h){var g,k;k=true;g=(j=="X");switch(h){case"left":case"top":l[j]=0;break;case"center":l[j]=0.5;break;case"right":case"bottom":l[j]=1;break;default:if(h.search("%")!=-1){l[j]=parseInt(h,10)/100}else{k=false}}l[j]=Math.ceil(k?((m[g?"W":"H"]*l[j])-(m[g?"w":"h"]*l[j])):parseInt(h,10));if(l[j]%2===0){l[j]++}return l[j]},fixPng:function(m){m.style.behavior="none";var j,e,k,h,l;if(m.nodeName=="BODY"||m.nodeName=="TD"||m.nodeName=="TR"){return}m.isImg=false;if(m.nodeName=="IMG"){if(m.src.toLowerCase().search(/\.png$/)!=-1){m.isImg=true;m.style.visibility="hidden"}else{return}}else{if(m.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}j=DD_belatedPNG;m.vml={color:{},image:{}};e={shape:{},fill:{}};for(h in m.vml){if(m.vml.hasOwnProperty(h)){for(l in e){if(e.hasOwnProperty(l)){k=j.ns+":"+l;m.vml[h][l]=document.createElement(k)}}m.vml[h].shape.stroked=false;m.vml[h].shape.appendChild(m.vml[h].fill);m.parentNode.insertBefore(m.vml[h].shape,m)}}m.vml.image.shape.fillcolor="none";m.vml.image.fill.type="tile";m.vml.color.fill.on=false;j.attachHandlers(m);j.giveLayout(m);j.giveLayout(m.offsetParent);m.vmlInitiated=true;j.applyVML(m)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet()}jQuery.timer=function(a,b){var a=a||100;if(!b){return false}_timer=function(d,e){this.stop=function(){clearInterval(c.id)};this.internalCallback=function(){e(c)};this.reset=function(f){if(c.id){clearInterval(c.id)}var f=f||100;this.id=setInterval(this.internalCallback,f)};this.interval=d;this.id=setInterval(this.internalCallback,this.interval);var c=this};return new _timer(a,b)};(function(h){var s=false,t="UndefinedTemplateError",p="TemplateCompilationError",o="TemplateExecutionError",d="[object Array]",g="[object String]",u="[object Function]",e=1,m="%",b=/^[^<]*(<[\w\W]+>)[^>]*$/,k=Object.prototype.toString;function a(l,c){throw (h.extend(l,c),l)}function j(v){var n=[];if(k.call(v)!==d){return s}for(var q=0,c=v.length;q\s*|[\r\n\t]/g,"").split("<"+E).join(E+">\x1b").split(E+">");for(var c=0,l=C.length;c").join(">").split('"').join(""").split("'").join("'")},jqotecache:{}});h.event.special.jqote={add:function(q){var v,c=q.handler,l=!q.data?[]:k.call(q.data)!==d?[q.data]:q.data;if(!q.namespace){q.namespace="app.pre.sub"}if(!l.length||!(v=j(f(l)))){return}q.handler=function(x,n,w){return !w||w.test(v)?c.apply(this,[x,n]):null}}}})(jQuery);
/*!
* jQuery Browser Plugin 0.1.0
* https://github.com/gabceb/jquery-browser-plugin
*
* Original jquery-browser code Copyright 2005, 2015 jQuery Foundation, Inc. and other contributors
* http://jquery.org/license
*
* Modifications Copyright 2015 Gabriel Cebrian
* https://github.com/gabceb
*
* Released under the MIT license
*
* Date: 05-07-2015
*/
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],function(b){return a(b)})}else{if(typeof module==="object"&&typeof module.exports==="object"){module.exports=a(require("jquery"))}else{a(window.jQuery)}}}(function(b){function a(d){if(d===undefined){d=window.navigator.userAgent}d=d.toLowerCase();var k=/(edge)\/([\w.]+)/.exec(d)||/(opr)[\/]([\w.]+)/.exec(d)||/(chrome)[ \/]([\w.]+)/.exec(d)||/(iemobile)[\/]([\w.]+)/.exec(d)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(d)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(d)||/(webkit)[ \/]([\w.]+)/.exec(d)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(d)||/(msie) ([\w.]+)/.exec(d)||d.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(d)||d.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(d)||[];var j=/(ipad)/.exec(d)||/(ipod)/.exec(d)||/(windows phone)/.exec(d)||/(iphone)/.exec(d)||/(kindle)/.exec(d)||/(silk)/.exec(d)||/(android)/.exec(d)||/(win)/.exec(d)||/(mac)/.exec(d)||/(linux)/.exec(d)||/(cros)/.exec(d)||/(playbook)/.exec(d)||/(bb)/.exec(d)||/(blackberry)/.exec(d)||[];var l={},e={browser:k[5]||k[3]||k[1]||"",version:k[2]||k[4]||"0",versionNumber:k[4]||k[2]||"0",platform:j[0]||""};if(e.browser){l[e.browser]=true;l.version=e.version;l.versionNumber=parseInt(e.versionNumber,10)}if(e.platform){l[e.platform]=true}if(l.android||l.bb||l.blackberry||l.ipad||l.iphone||l.ipod||l.kindle||l.playbook||l.silk||l["windows phone"]){l.mobile=true}if(l.cros||l.mac||l.linux||l.win){l.desktop=true}if(l.chrome||l.opr||l.safari){l.webkit=true}if(l.rv||l.iemobile){var c="msie";e.browser=c;l[c]=true}if(l.edge){delete l.edge;var n="msedge";e.browser=n;l[n]=true}if(l.safari&&l.blackberry){var g="blackberry";e.browser=g;l[g]=true}if(l.safari&&l.playbook){var q="playbook";e.browser=q;l[q]=true}if(l.bb){var o="blackberry";e.browser=o;l[o]=true}if(l.opr){var h="opera";e.browser=h;l[h]=true}if(l.safari&&l.android){var f="android";e.browser=f;l[f]=true}if(l.safari&&l.kindle){var p="kindle";e.browser=p;l[p]=true}if(l.safari&&l.silk){var m="silk";e.browser=m;l[m]=true}l.name=e.browser;l.platform=e.platform;return l}window.jQBrowser=a(window.navigator.userAgent);window.jQBrowser.uaMatch=a;if(b){b.browser=window.jQBrowser}return window.jQBrowser}));if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i0};this.d=function(){if(b>0){b--}}};tf=window.tf||{};$.extend(tf,{hasFlag:function(a){var b=window.loggedInUser;return b&&(b.bitFlags&a)!=0},isAnalyst:function(){return tf.hasFlag(8)},isAdmin:function(){return tf.hasFlag(2)}});function showOverlay(b){if(window.helpPopup){helpPopup.hide()}var a=$("#overlay");if(tf.ie6){a.height(Math.max($("body").height(),1200))}a.show();if(b){a.css("opacity",0).animate({opacity:0.7},b)}if(!tf.ie6){$("#headerAnnounce").css("top","0px")}}function hideOverlay(){if(window.helpPopup){helpPopup.hide()}$("#overlay").hide();if(!tf.ie6){$("#headerAnnounce").css("top",null)}}tf=window.tf||{};tf.truncate=function(b,a){return b.length0?"?"+t.join("&"):"")+"#/"+s}function q(s,t){e.hide();window.hideOverlay&&hideOverlay();k(s,t)}function p(t,s){tf.ajax({type:"POST",url:getHost()+"/servlet/ProfileService/setAutosaveModels",dataType:"json",data:{a:t},success:function(v,u){s(tf.status(v,u)=="success")},error:function(v,u,w){tf.ajaxError(v,u,w);s(g)}})}function l(){announceClear();q(g,g);return false}tf.getComponent("popup/canSaveModelPopup",function(x){e.html(x).show();tf.initPopup(e,l);var u=window.getSwfObj&&location.href.indexOf("company")!=-1,A=u?getSwfObj():0,w=A?A.userModelId():0,B="from=requireAccess",z="postSubscribe="+escape(m(h,(!j&&w?["userModelId="+w]:[])))+"; path=/";ulObj=e.find(".csp_models"),csp_okBtn=e.find("#csp_okBtn");$(".numToDelete").text(1+o.length-n);$.each(o,function(E,D){ulObj.append("- "+D.n+"
Undo
")});if(tf.ie6&&window.DD_belatedPNG){DD_belatedPNG.fix("#canSaveModelPopupHolder .coAll,#canSaveModelPopupHolder .pngfix,#canSaveModelPopupHolder .gbutton2,#canSaveModelPopupHolder .gbutton2 span,#canSaveModelPopupHolder .obutton,#canSaveModelPopupHolder .obutton span,#canSaveModelPopupHolder .csp_greyx")}function v(){return e.find("#csp_autosaveCB").prop("checked")}function C(){var D=[];ulObj.find("a").each(function(){var E=$(this);if(E.find(".csp_undo").is(":visible")){$.each(E[0].className.split(" "),function(G,F){if(F.substring(0,7)=="symbol."){D.push(F.substring(7))}})}});return D}function t(E,D){return s(E)&&D}function s(D){return typeof(n)=="number"&&o.length-D.length>=n}function y(){csp_okBtn.toggleClass("gbutton2-disabled",t(C(),v()));if(tf.ie6&&window.DD_belatedPNG){DD_belatedPNG.fix("#csp_okBtn")}}e.find("#csp_autosaveCB").click(y);ulObj.find("a").click(function(){$(this).find(".csp_greyx,.csp_undo").toggle();y();return false});e.find("#csp_cancelBtn").click(l);e.find("#csp_proUpgradeBtn").click(function(){announceClear();document.cookie=z;location.href=getHost()+"/subscribe/billing?"+B;return false});csp_okBtn.click(function(){announceClear();var G=C(),F=v();if(t(G,F)){announce("You cannot save more than "+n+" models, please select model(s) to delete or turn off autosave to continue.",1)}else{function E(H){if(H){q(!s(G),!F)}else{announce("Error contacting server",1)}}function D(H){if(H){if(F){E(f)}else{p(F,E)}}else{announce("Error contacting server",1)}}if(G.length>0){tf.deleteWorkingModels(G,D);tf.track(96)}else{D(f);tf.track(97)}}return false});if(tf.ie6&&window.DD_belatedPNG){DD_belatedPNG.fix("#canSaveModelPopupHolder .coAll")}e.css("margin-top",(tf.scrollY()+20)+"px");showOverlay();y()})}};function b(e,d,g,f){if(e.length>0){e[0]($.extend({},d),function(h){if(h){g.willReload=g.willReload&&h.willReload;g.href=g.href||h.href}b(e.slice(1),d,g,f)})}else{if(f){f(g)}}}tf.loginIframeSuccess=function(h,d,f){window.loggedInUser=d;var k=getSwfObj(),j=$("#headerSignInPane").is(":visible"),e=tf.isAdmin(),g=$.extend({hasStatusChanged:true,willReload:!f&&!!tf.loginIframeReload},h);g.isNewUser=!!g.isNewUser;g.isLoggedIn=!!g.isLoggedIn;window.flashLoginCallbacksReturn=function(l){b(c,g,l,function(m){if(m.willReload){tf.doLoginRedirect(m)}})};if(k&&k.flashLoginCallbacks){k.flashLoginCallbacks(g)}else{window.flashLoginCallbacksReturn($.extend({},g))}};tf.loginIframeCancel=function(){var d={hasStatusChanged:false,isNewUser:false,isLoggedIn:getLoggedInUser()!=null,willReload:false};b(c,d,$.extend({},d))};tf.hideLoginClose=function(){$("#loginPopup .XClose").hide()};if(tf.ie6&&window.DD_belatedPNG){DD_belatedPNG.fix(".obutton,.obutton span")}}tf.toggleLogInPane=function(){var c="loginPopup",f;function e(){$("#"+c).hide();hideOverlay()}function b(h,k,j){currentlySigningIn=0;announce("Unkown local error occurred, please try again. (error: "+k+")",1)}function a(j,h){announce("Logout failed! Please try again",1)}function d(j,h){if(tf.status(j,h)=="success"){tf.loginIframeSuccess({},null)}else{a()}}function g(){e();tf.loginIframeCancel();return false}return function(h,k,j,l,o,m){if(h){if(k){if(!f){f=1;tf.resizeLoginPane=function(p){$("#loginPopup .loginPaneIframe").css("height",(p)?p+"px":null)};$("#"+c+" .loginIframeWrapper").html("");$("#"+c+" .cancel").click(g);tf.initPopup(c,g)}announceClear();var n=["ssl="+tf.isSecure(),"sendWelcome=1"];if(j){n.push("noReload=1")}if(o){n.push("showStep2=1")}if(m){n.push("signIn=1")}$("#"+c+" .loginPaneIframe")[0].src=(properties.httpsEnabled()?tf.getSecureHost():getHost())+"/loginPopupFrame.jsp"+(n.length?"?"+n.join("&"):"");$("#"+c+" .loginMsg").show().html(l||"Please log in or sign up");$("#"+c).css("margin-top",(tf.scrollY()+20)+"px");$("#"+c+" .XClose").show();window.showOverlay(300);setTimeout(function(){$("#"+c).fadeIn(300,tf.fixFilter)},300);if(o){$(".loginMsg,.splashMsg").hide()}}else{announceClear();$.ajax({type:"POST",url:getHost()+"/servlet/LoginService/logout",data:{},dataType:"json",success:d,error:a})}}else{e()}return false}}();function ghostText(b,a){ghostTextObj($("#"+b),a)}function ghostTextObj(c,d){var b=c[0],a=c.val()!=""&&c.val()!=d;if(b){if(!a){c.val(d).addClass("ghostText")}b.cleared=a;c.bind("focus",function(){if(!b.cleared){b.cleared=1;c.val("").removeClass("ghostText")}}).bind("blur",function(){if(b.cleared&&c.val()==""){b.cleared=0;c.val(d).addClass("ghostText")}})}}function unghostTextObj(a){a.unbind("focus").unbind("blur").each(function(b,c){if(c.cleared){c.cleared=0}else{$(c).val("")}})}function switchToGhost(a){a.each(function(b,c){if(c.cleared){$(c).val("").blur()}})}function setTextOnGhosted(b,a){if(typeof b=="string"){b=$("#"+b)}if(b.length){if(a&&a.length){b.val(a).removeClass("ghostText").blur()[0].cleared=1}else{switchToGhost(b)}}}function getTextFromGhosted(a){return getTextFromGhostedObj($("#"+a))}function getTextFromGhostedObj(a){return a[0]&&a[0].cleared?a.val():""}tf=window.tf||{};tf.JSONparse=function(a){return typeof JSON==="object"&&JSON.parse?JSON.parse(a):(new Function("return "+a))()};tf=window.tf||{};tf.li=$.extend(tf.li||{},{inited:0,tagAdded:1,pollingBt:0,pollingBtCB:null,initCB:[],ovd:{},clearOvd:function(){tf.li.ovd={}},setOvd:function(a,c,b){tf.li.ovd={mt:a,at:c,ats:b}},init:function(a){if(tf.li.inited){if(a){a()}}else{if(getHost().indexOf("www.trefis.com")>0){if(!tf.li.tagAdded){$("body").append("");$("#li-root").append("