").attr({id:h,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return d("
").addClass("ui-tooltip-content").appendTo(k),k.appendTo(this.document[0].body),this.tooltips[h]=j,k},_find:function(j){var h=j.data("ui-tooltip-id");return h?d("#"+h):d()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var h=this;d.each(this.tooltips,function(e,j){var k=d.Event("blur");k.target=k.currentTarget=j[0],h.close(k,!0),d("#"+e).remove(),j.data("ui-tooltip-title")&&(j.attr("title",j.data("ui-tooltip-title")),j.removeData("ui-tooltip-title"))})}})})(jQuery);(function(d,f){var b="ui-effects-";d.effects={effect:{}},function(E,z){function w(l,o,h){var n=D[o.type]||{};return null==l?h||!o.def?null:o.def:(l=n.floor?~~l:parseFloat(l),isNaN(l)?o.def:n.mod?(l+n.mod)%n.mod:0>l?0:l>n.max?n.max:l)}function F(e){var h=q(),l=h._rgba=[];return e=e.toLowerCase(),y(x,function(u,s){var I,H=s.re.exec(e),G=H&&s.parse(H),n=s.space||"rgba";return G?(I=h[n](G),h[B[n].cache]=I[B[n].cache],l=h._rgba=I._rgba,!1):z}),l.length?("0,0,0,0"===l.join()&&E.extend(l,C.transparent),h):C[e]}function m(l,n,h){return h=(h+1)%1,1>6*h?l+6*(n-l)*h:1>2*h?n:2>3*h?l+6*(n-l)*(2/3-h):l}var C,k="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",g=/^([\-+])=\s*(\d+\.?\d*)/,x=[{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[2.55*e[1],2.55*e[2],2.55*e[3],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]]}}],q=E.Color=function(o,h,l,t){return new E.Color.fn.parse(o,h,l,t)},B={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"}}}},D={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},A=q.support={},j=E("
")[0],y=E.each;j.style.cssText="background-color:rgba(1,1,1,.5)",A.rgba=j.style.backgroundColor.indexOf("rgba")>-1,y(B,function(h,l){l.cache="_"+h,l.props.alpha={idx:3,type:"percent",def:1}}),q.fn=E.extend(q.prototype,{parse:function(I,H,s,l){if(I===z){return this._rgba=[null,null,null,null],this}(I.jquery||I.nodeType)&&(I=E(I).css(H),H=z);var e=this,G=E.type(I),t=this._rgba=[];return H!==z&&(I=[I,H,s,l],G="array"),"string"===G?this.parse(F(I)||C._default):"array"===G?(y(B.rgba.props,function(h,n){t[n.idx]=w(I[n.idx],n)}),this):"object"===G?(I instanceof q?y(B,function(h,n){I[n.cache]&&(e[n.cache]=I[n.cache].slice())}):y(B,function(o,n){var h=n.cache;y(n.props,function(u,J){if(!e[h]&&n.to){if("alpha"===u||null==I[u]){return}e[h]=n.to(e._rgba)}e[h][J.idx]=w(I[u],J,!0)}),e[h]&&0>E.inArray(null,e[h].slice(0,3))&&(e[h][3]=1,n.from&&(e._rgba=n.from(e[h])))}),this):z},is:function(h){var e=q(h),l=!0,o=this;return y(B,function(s,n){var G,u=e[n.cache];return u&&(G=o[n.cache]||n.to&&n.to(o._rgba)||[],y(n.props,function(I,H){return null!=u[H.idx]?l=u[H.idx]===G[H.idx]:z})),l}),l},_space:function(){var h=[],l=this;return y(B,function(e,n){l[n.cache]&&h.push(e)}),h.pop()},transition:function(u,J){var H=q(u),L=H._space(),l=B[L],K=0===this.alpha()?q("transparent"):this,I=K[l.cache]||l.to(K._rgba),G=I.slice();return H=H[l.cache],y(l.props,function(s,O){var h=O.idx,M=I[h],e=H[h],N=D[O.type]||{};null!==e&&(null===M?G[h]=e:(N.mod&&(e-M>N.mod/2?M+=N.mod:M-e>N.mod/2&&(M-=N.mod)),G[h]=w((e-M)*J+M,O)))}),this[L](G)},blend:function(o){if(1===this._rgba[3]){return this}var h=this._rgba.slice(),l=h.pop(),t=q(o)._rgba;return q(E.map(h,function(n,s){return(1-l)*t[s]+l*n}))},toRgbaString:function(){var l="rgba(",h=E.map(this._rgba,function(n,o){return null==n?o>2?1:0:n});return 1===h[3]&&(h.pop(),l="rgb("),l+h.join()+")"},toHslaString:function(){var l="hsla(",h=E.map(this.hsla(),function(n,o){return null==n&&(n=o>2?1:0),o&&3>o&&(n=Math.round(100*n)+"%"),n});return 1===h[3]&&(h.pop(),l="hsl("),l+h.join()+")"},toHexString:function(n){var h=this._rgba.slice(),l=h.pop();return n&&h.push(~~(255*l)),"#"+E.map(h,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,B.hsla.to=function(Q){if(null==Q[0]||null==Q[1]||null==Q[2]){return[null,null,null,Q[3]]}var M,K,R=Q[0]/255,I=Q[1]/255,O=Q[2]/255,H=Q[3],G=Math.max(R,I,O),L=Math.min(R,I,O),J=G-L,N=G+L,P=0.5*N;return M=L===G?0:R===G?60*(I-O)/J+360:I===G?60*(O-R)/J+120:60*(R-I)/J+240,K=0===J?0:0.5>=P?J/N:J/(2-N),[Math.round(M)%360,K,P,null==H?1:H]},B.hsla.from=function(n){if(null==n[0]||null==n[1]||null==n[2]){return[null,null,null,n[3]]}var H=n[0]/360,l=n[1],u=n[2],h=n[3],I=0.5>=u?u*(1+l):u+l-u*l,G=2*u-I;return[Math.round(255*m(G,I,H+1/3)),Math.round(255*m(G,I,H)),Math.round(255*m(G,I,H-1/3)),h]},y(B,function(t,H){var e=H.props,u=H.cache,l=H.to,G=H.from;q.fn[t]=function(o){if(l&&!this[u]&&(this[u]=l(this._rgba)),o===z){return this[u].slice()}var K,I=E.type(o),h="array"===I||"object"===I?o:arguments,J=this[u].slice();return y(e,function(n,M){var L=h["object"===I?n:M.idx];null==L&&(L=J[M.idx]),J[M.idx]=w(L,M)}),G?(K=q(G(J)),K[u]=J,K):q(J)},y(e,function(n,h){q.fn[n]||(q.fn[n]=function(M){var I,K=E.type(M),J="alpha"===n?this._hsla?"hsla":"rgba":t,s=this[J](),L=s[h.idx];return"undefined"===K?L:("function"===K&&(M=M.call(this,L),K=E.type(M)),null==M&&h.empty?this:("string"===K&&(I=g.exec(M),I&&(M=L+parseFloat(I[2])*("+"===I[1]?1:-1))),s[h.idx]=M,this[J](s)))})})}),q.hook=function(l){var h=l.split(" ");y(h,function(o,n){E.cssHooks[n]={set:function(G,I){var s,H,u="";if("transparent"!==I&&("string"!==E.type(I)||(s=F(I)))){if(I=q(s||I),!A.rgba&&1!==I._rgba[3]){for(H="backgroundColor"===n?G.parentNode:G;(""===u||"transparent"===u)&&H&&H.style;){try{u=E.css(H,"backgroundColor"),H=H.parentNode}catch(t){}}I=I.blend(u&&"transparent"!==u?u:"_default")}I=I.toRgbaString()}try{G.style[n]=I}catch(t){}}},E.fx.step[n]=function(s){s.colorInit||(s.start=q(s.elem,n),s.end=q(s.end),s.colorInit=!0),E.cssHooks[n].set(s.elem,s.start.transition(s.end,s.pos))}})},q.hook(k),E.cssHooks.borderColor={expand:function(h){var l={};return y(["Top","Right","Bottom","Left"],function(e,n){l["border"+n+"Color"]=h}),l}},C=E.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 g(o){var l,m,q=o.ownerDocument.defaultView?o.ownerDocument.defaultView.getComputedStyle(o,null):o.currentStyle,k={};if(q&&q.length&&q[0]&&q[q[0]]){for(m=q.length;m--;){l=q[m],"string"==typeof q[l]&&(k[d.camelCase(l)]=q[l])}}else{for(l in q){"string"==typeof q[l]&&(k[l]=q[l])}}return k}function h(m,k){var l,t,q={};for(l in k){t=k[l],m[l]!==t&&(e[l]||(d.fx.step[l]||!isNaN(parseFloat(t)))&&(q[l]=t))}return q}var j=["add","remove","toggle"],e={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};d.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(l,k){d.fx.step[k]=function(m){("none"!==m.end&&!m.setAttr||1===m.pos&&!m.setAttr)&&(jQuery.style(m.elem,k,m.end),m.setAttr=!0)}}),d.fn.addBack||(d.fn.addBack=function(k){return this.add(null==k?this.prevObject:this.prevObject.filter(k))}),d.effects.animateClass=function(n,k,q,m){var l=d.speed(k,q,m);return this.queue(function(){var t,w=d(this),u=w.attr("class")||"",s=l.children?w.find("*").addBack():w;s=s.map(function(){var o=d(this);return{el:o,start:g(this)}}),t=function(){d.each(j,function(x,o){n[o]&&w[o+"Class"](n[o])})},t(),s=s.map(function(){return this.end=g(this.el[0]),this.diff=h(this.start,this.end),this}),w.attr("class",u),s=s.map(function(){var y=this,o=d.Deferred(),x=d.extend({},l,{queue:!1,complete:function(){o.resolve(y)}});return this.el.animate(this.diff,x),o.promise()}),d.when.apply(d,s.get()).done(function(){t(),d.each(arguments,function(){var o=this.el;d.each(this.diff,function(x){o.css(x,"")})}),l.complete.call(w[0])})})},d.fn.extend({addClass:function(k){return function(m,o,q,l){return o?d.effects.animateClass.call(this,{add:m},o,q,l):k.apply(this,arguments)}}(d.fn.addClass),removeClass:function(k){return function(m,o,q,l){return arguments.length>1?d.effects.animateClass.call(this,{remove:m},o,q,l):k.apply(this,arguments)}}(d.fn.removeClass),toggleClass:function(k){return function(m,u,l,t,q){return"boolean"==typeof u||u===f?l?d.effects.animateClass.call(this,u?{add:m}:{remove:m},l,t,q):k.apply(this,arguments):d.effects.animateClass.call(this,{toggle:m},u,l,t)}}(d.fn.toggleClass),switchClass:function(o,l,m,q,k){return d.effects.animateClass.call(this,{add:l,remove:o},m,q,k)}})}(),function(){function e(k,h,j,l){return d.isPlainObject(k)&&(h=k,k=k.effect),k={effect:k},null==h&&(h={}),d.isFunction(h)&&(l=h,j=null,h={}),("number"==typeof h||d.fx.speeds[h])&&(l=j,j=h,h={}),d.isFunction(j)&&(l=j,j=null),h&&d.extend(k,h),j=j||h.duration,k.duration=d.fx.off?0:"number"==typeof j?j:j in d.fx.speeds?d.fx.speeds[j]:d.fx.speeds._default,k.complete=l||h.complete,k}function g(h){return !h||"number"==typeof h||d.fx.speeds[h]?!0:"string"!=typeof h||d.effects.effect[h]?d.isFunction(h)?!0:"object"!=typeof h||h.effect?!1:!0:!0}d.extend(d.effects,{version:"1.10.3",save:function(h,k){for(var j=0;k.length>j;j++){null!==k[j]&&h.data(b+k[j],h[0].style[k[j]])}},restore:function(j,k){var l,h;for(h=0;k.length>h;h++){null!==k[h]&&(l=j.data(b+k[h]),l===f&&(l=""),j.css(k[h],l))}},setMode:function(h,j){return"toggle"===j&&(j=h.is(":hidden")?"show":"hide"),j},getBaseline:function(j,l){var h,k;switch(j[0]){case"top":h=0;break;case"middle":h=0.5;break;case"bottom":h=1;break;default:h=j[0]/l.height}switch(j[1]){case"left":k=0;break;case"center":k=0.5;break;case"right":k=1;break;default:k=j[1]/l.width}return{x:k,y:h}},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper")){return l.parent()}var j={width:l.outerWidth(!0),height:l.outerHeight(!0),"float":l.css("float")},k=d("
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),q={width:l.width(),height:l.height()},h=document.activeElement;try{h.id}catch(m){h=document.body}return l.wrap(k),(l[0]===h||d.contains(l[0],h))&&d(h).focus(),k=l.parent(),"static"===l.css("position")?(k.css({position:"relative"}),l.css({position:"relative"})):(d.extend(j,{position:l.css("position"),zIndex:l.css("z-index")}),d.each(["top","left","bottom","right"],function(n,o){j[o]=l.css(o),isNaN(parseInt(j[o],10))&&(j[o]="auto")}),l.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),l.css(q),k.css(j).show()},removeWrapper:function(j){var h=document.activeElement;return j.parent().is(".ui-effects-wrapper")&&(j.parent().replaceWith(j),(j[0]===h||d.contains(j[0],h))&&d(h).focus()),j},setTransition:function(k,h,j,l){return l=l||{},d.each(h,function(o,n){var m=k.cssUnit(n);m[0]>0&&(l[n]=m[0]*j+m[1])}),l}}),d.fn.extend({effect:function(){function k(u){function q(){d.isFunction(o)&&o.call(w[0]),d.isFunction(u)&&u()}var w=d(this),o=j.complete,t=j.mode;(w.is(":hidden")?"hide"===t:"show"===t)?(w[t](),q()):l.call(w[0],j,q)}var j=e.apply(this,arguments),m=j.mode,h=j.queue,l=d.effects.effect[j.effect];return d.fx.off||!l?m?this[m](j.duration,j.complete):this.each(function(){j.complete&&j.complete.call(this)}):h===!1?this.each(k):this.queue(h||"fx",k)},show:function(h){return function(k){if(g(k)){return h.apply(this,arguments)}var j=e.apply(this,arguments);return j.mode="show",this.effect.call(this,j)}}(d.fn.show),hide:function(h){return function(k){if(g(k)){return h.apply(this,arguments)}var j=e.apply(this,arguments);return j.mode="hide",this.effect.call(this,j)}}(d.fn.hide),toggle:function(h){return function(k){if(g(k)||"boolean"==typeof k){return h.apply(this,arguments)}var j=e.apply(this,arguments);return j.mode="toggle",this.effect.call(this,j)}}(d.fn.toggle),cssUnit:function(k){var h=this.css(k),j=[];return d.each(["em","px","%","pt"],function(l,m){h.indexOf(m)>0&&(j=[parseFloat(h),m])}),j}})}(),function(){var g={};d.each(["Quad","Cubic","Quart","Quint","Expo"],function(h,e){g[e]=function(j){return Math.pow(j,h+2)}}),d.extend(g,{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(j){for(var k,h=4;((k=Math.pow(2,--h))-1)/11>j;){}return 1/Math.pow(4,3-h)-7.5625*Math.pow((3*k-2)/22-j,2)}}),d.each(g,function(j,h){d.easing["easeIn"+j]=h,d.easing["easeOut"+j]=function(e){return 1-h(1-e)},d.easing["easeInOut"+j]=function(e){return 0.5>e?h(2*e)/2:1-h(-2*e+2)/2}})}()})(jQuery);(function(d){var f=/up|down|vertical/,b=/up|left|vertical|horizontal/;d.effects.effect.blind=function(F,q){var C,k,e,x=d(this),w=["position","top","bottom","left","right","height","width"],B=d.effects.setMode(x,F.mode||"hide"),E=F.direction||"up",A=f.test(E),j=A?"height":"width",z=A?"top":"left",t=b.test(E),y={},D="show"===B;x.parent().is(".ui-effects-wrapper")?d.effects.save(x.parent(),w):d.effects.save(x,w),x.show(),C=d.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(),d.effects.restore(x,w),d.effects.removeWrapper(x),q()}})}})(jQuery);(function(b){b.effects.effect.bounce=function(H,D){var t,A,L,z=b(this),w=["position","top","bottom","left","right","height","width"],E=b.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"),b.effects.save(z,w),z.show(),b.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(),b.effects.restore(z,w),b.effects.removeWrapper(z),D()}),j>1&&K.splice.apply(K,[1,0].concat(K.splice(j,G+1))),z.dequeue()}})(jQuery);(function(b){b.effects.effect.clip=function(y,t){var D,m,B,k=b(this),g=["position","top","bottom","left","right","height","width"],w=b.effects.setMode(k,y.mode||"hide"),q="show"===w,A=y.direction||"vertical",C="vertical"===A,z=C?"height":"width",j=C?"top":"left",x={};b.effects.save(k,g),k.show(),D=b.effects.createWrapper(k).css({overflow:"hidden"}),m="IMG"===k[0].tagName?D:k,B=m[z](),q&&(m.css(z,0),m.css(j,B/2)),x[z]=q?B:0,x[j]=q?0:B/2,m.animate(x,{queue:!1,duration:y.duration,easing:y.easing,complete:function(){q||k.hide(),b.effects.restore(k,g),b.effects.removeWrapper(k),t()}})}})(jQuery);(function(b){b.effects.effect.drop=function(q,k){var y,g=b(this),w=["position","top","bottom","left","right","opacity","height","width"],f=b.effects.setMode(g,q.mode||"hide"),d="show"===f,m=q.direction||"left",j="up"===m||"down"===m?"top":"left",t="up"===m||"left"===m?"pos":"neg",x={opacity:d?1:0};b.effects.save(g,w),g.show(),b.effects.createWrapper(g),y=q.distance||g["top"===j?"outerHeight":"outerWidth"](!0)/2,d&&g.css("opacity",0).css(j,"pos"===t?-y:y),x[j]=(d?"pos"===t?"+=":"-=":"pos"===t?"-=":"+=")+y,g.animate(x,{queue:!1,duration:q.duration,easing:q.easing,complete:function(){"hide"===f&&g.hide(),b.effects.restore(g,w),b.effects.removeWrapper(g),k()}})}})(jQuery);(function(b){b.effects.effect.explode=function(F,B){function q(){I.push(this),I.length===k*G&&y()}function y(){w.css({visibility:"visible"}),b(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=b(this),E=b.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(b){b.effects.effect.fade=function(g,d){var f=b(this),h=b.effects.setMode(f,g.mode||"toggle");f.animate({opacity:h},{queue:!1,duration:g.duration,easing:g.easing,complete:d})}})(jQuery);(function(b){b.effects.effect.fold=function(C,y){var I,t,F=b(this),q=["position","top","bottom","left","right","height","width"],j=b.effects.setMode(F,C.mode||"hide"),z="show"===j,x="hide"===j,E=C.size||15,H=/([0-9]+)%/.exec(E),D=!!C.horizFirst,k=z!==D,B=k?["width","height"]:["height","width"],w=C.duration/2,A={},G={};b.effects.save(F,q),F.show(),I=b.effects.createWrapper(F).css({overflow:"hidden"}),t=k?[I.width(),I.height()]:[I.height(),I.width()],H&&(E=parseInt(H[1],10)/100*t[x?0:1]),z&&I.css(D?{height:0,width:E}:{height:E,width:0}),A[B[0]]=z?t[0]:E,G[B[1]]=z?t[1]:0,I.animate(A,w,C.easing).animate(G,w,C.easing,function(){x&&F.hide(),b.effects.restore(F,q),b.effects.removeWrapper(F),y()})}})(jQuery);(function(b){b.effects.effect.highlight=function(h,f){var g=b(this),k=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(g,h.mode||"show"),j={backgroundColor:g.css("backgroundColor")};"hide"===d&&(j.opacity=0),b.effects.save(g,k),g.show().css({backgroundImage:"none",backgroundColor:h.color||"#ffff99"}).animate(j,{queue:!1,duration:h.duration,easing:h.easing,complete:function(){"hide"===d&&g.hide(),b.effects.restore(g,k),f()}})}})(jQuery);(function(b){b.effects.effect.pulsate=function(w,q){var B,k=b(this),z=b.effects.setMode(k,w.mode||"show"),j="show"===z,f="hide"===z,t=j||"hide"===z,m=2*(w.times||5)+(t?1:0),y=w.duration/m,A=0,x=k.queue(),g=x.length;for((j||!k.is(":visible"))&&(k.css("opacity",0).show(),A=1),B=1;m>B;B++){k.animate({opacity:A},y,w.easing),A=1-A}k.animate({opacity:A},y,w.easing),k.queue(function(){f&&k.hide(),q()}),g>1&&x.splice.apply(x,[1,0].concat(x.splice(g,m+1))),k.dequeue()}})(jQuery);(function(b){b.effects.effect.puff=function(l,f){var j=b(this),q=b.effects.setMode(j,l.mode||"hide"),d="hide"===q,m=parseInt(l.percent,10)||150,k=m/100,g={height:j.height(),width:j.width(),outerHeight:j.outerHeight(),outerWidth:j.outerWidth()};b.extend(l,{effect:"scale",queue:!1,fade:!0,mode:q,complete:f,percent:d?m:100,from:d?g:{height:g.height*k,width:g.width*k,outerHeight:g.outerHeight*k,outerWidth:g.outerWidth*k}}),j.effect(l)},b.effects.effect.scale=function(q,k){var w=b(this),g=b.extend(!0,{},q),u=b.effects.setMode(w,q.mode||"effect"),f=parseInt(q.percent,10)||(0===parseInt(q.percent,10)?0:"hide"===u?0:100),d=q.direction||"both",m=q.origin,j={height:w.height(),width:w.width(),outerHeight:w.outerHeight(),outerWidth:w.outerWidth()},t={y:"horizontal"!==d?f/100:1,x:"vertical"!==d?f/100:1};g.effect="size",g.queue=!1,g.complete=k,"effect"!==u&&(g.origin=m||["middle","center"],g.restore=!0),g.from=q.from||("show"===u?{height:0,width:0,outerHeight:0,outerWidth:0}:j),g.to={height:j.height*t.y,width:j.width*t.x,outerHeight:j.outerHeight*t.y,outerWidth:j.outerWidth*t.x},g.fade&&("show"===u&&(g.from.opacity=0,g.to.opacity=1),"hide"===u&&(g.from.opacity=1,g.to.opacity=0)),w.effect(g)},b.effects.effect.size=function(F,B){var q,y,J,x=b(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=b.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=b.effects.setTransition(x,k,J.from.y,x.from),x.to=b.effects.setTransition(x,k,J.to.y,x.to)),J.from.x!==J.to.x&&(K=K.concat(G),x.from=b.effects.setTransition(x,G,J.from.x,x.from),x.to=b.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=b.effects.setTransition(x,H,J.from.y,x.from),x.to=b.effects.setTransition(x,H,J.to.y,x.to)),b.effects.save(x,K),x.show(),b.effects.createWrapper(x),x.css("overflow","hidden").css(x.from),D&&(y=b.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 d=b(this),e={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()};E&&b.effects.save(d,A),d.from={height:e.height*J.from.y,width:e.width*J.from.x,outerHeight:e.outerHeight*J.from.y,outerWidth:e.outerWidth*J.from.x},d.to={height:e.height*J.to.y,width:e.width*J.to.x,outerHeight:e.height*J.to.y,outerWidth:e.width*J.to.x},J.from.y!==J.to.y&&(d.from=b.effects.setTransition(d,k,J.from.y,d.from),d.to=b.effects.setTransition(d,k,J.to.y,d.to)),J.from.x!==J.to.x&&(d.from=b.effects.setTransition(d,G,J.from.x,d.from),d.to=b.effects.setTransition(d,G,J.to.x,d.to)),d.css(d.from),d.animate(d.to,F.duration,F.easing,function(){E&&b.effects.restore(d,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(),b.effects.restore(x,K),E||("static"===j?x.css({position:"relative",top:x.to.top,left:x.to.left}):b.each(["top","left"],function(d,f){x.css(f,function(l,g){var h=parseInt(g,10),m=d?x.to.left:x.to.top;return"auto"===g?m+"px":h+m+"px"})})),b.effects.removeWrapper(x),B()}})}})(jQuery);(function(b){b.effects.effect.shake=function(F,B){var q,y=b(this),I=["position","top","bottom","left","right","height","width"],x=b.effects.setMode(y,F.mode||"effect"),t=F.direction||"left",C=F.distance||20,A=F.times||3,H=2*A+1,k=Math.round(F.duration/H),G="up"===t||"down"===t?"top":"left",w="up"===t||"left"===t,E={},z={},D={},j=y.queue(),J=j.length;for(b.effects.save(y,I),y.show(),b.effects.createWrapper(y),E[G]=(w?"-=":"+=")+C,z[G]=(w?"+=":"-=")+2*C,D[G]=(w?"-=":"+=")+2*C,y.animate(E,k,F.easing),q=1;A>q;q++){y.animate(z,k,F.easing).animate(D,k,F.easing)}y.animate(z,k,F.easing).animate(E,k/2,F.easing).queue(function(){"hide"===x&&y.hide(),b.effects.restore(y,I),b.effects.removeWrapper(y),B()}),J>1&&j.splice.apply(j,[1,0].concat(j.splice(J,H+1))),y.dequeue()}})(jQuery);(function(b){b.effects.effect.slide=function(q,k){var y,g=b(this),w=["position","top","bottom","left","right","width","height"],f=b.effects.setMode(g,q.mode||"show"),d="show"===f,m=q.direction||"left",j="up"===m||"down"===m?"top":"left",t="up"===m||"left"===m,x={};b.effects.save(g,w),g.show(),y=q.distance||g["top"===j?"outerHeight":"outerWidth"](!0),b.effects.createWrapper(g).css({overflow:"hidden"}),d&&g.css(j,t?isNaN(y)?"-"+y:-y:y),x[j]=(d?t?"+=":"-=":t?"-=":"+=")+y,g.animate(x,{queue:!1,duration:q.duration,easing:q.easing,complete:function(){"hide"===f&&g.hide(),b.effects.restore(g,w),b.effects.removeWrapper(g),k()}})}})(jQuery);(function(b){b.effects.effect.transfer=function(t,m){var A=b(this),j=b(t.to),y="fixed"===j.css("position"),g=b("body"),f=y?g.scrollTop():0,q=y?g.scrollLeft():0,k=j.offset(),x={top:k.top-f,left:k.left-q,height:j.innerHeight(),width:j.innerWidth()},z=A.offset(),w=b("
").appendTo(document.body).addClass(t.className).css({top:z.top-f,left:z.left-q,height:A.innerHeight(),width:A.innerWidth(),position:y?"fixed":"absolute"}).animate(x,t.duration,t.easing,function(){w.remove(),m()})}})(jQuery);jQuery.timer=function(b,d){var b=b||100;if(!d){return false}_timer=function(f,g){this.stop=function(){clearInterval(e.id)};this.internalCallback=function(){g(e)};this.reset=function(h){if(e.id){clearInterval(e.id)}var h=h||100;this.id=setInterval(this.internalCallback,h)};this.interval=f;this.id=setInterval(this.internalCallback,this.interval);var e=this};return new _timer(b,d)};(function(j){var u=false,w="UndefinedTemplateError",t="TemplateCompilationError",s="TemplateExecutionError",e="[object Array]",h="[object String]",x="[object Function]",f=1,o="%",d=/^[^<]*(<[\w\W]+>)[^>]*$/,m=Object.prototype.toString;function b(n,l){throw (j.extend(n,l),n)}function k(z){var q=[];if(m.call(z)!==e){return u}for(var y=0,n=z.length;y
\s*|[\r\n\t]/g,"").split("<"+H).join(H+">\x1b").split(H+">");for(var l=0,n=F.length;l").join(">").split('"').join(""").split("'").join("'")},jqotecache:{}});j.event.special.jqote={add:function(y){var z,l=y.handler,q=!y.data?[]:m.call(y.data)!==e?[y.data]:y.data;if(!y.namespace){y.namespace="app.pre.sub"}if(!q.length||!(z=k(g(q)))){return}y.handler=function(B,n,A){return !A||A.test(z)?l.apply(this,[B,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(b){if(typeof define==="function"&&define.amd){define(["jquery"],function(d){return b(d)})}else{if(typeof module==="object"&&typeof module.exports==="object"){module.exports=b(require("jquery"))}else{b(window.jQuery)}}}(function(d){function b(f){if(f===undefined){f=window.navigator.userAgent}f=f.toLowerCase();var m=/(edge)\/([\w.]+)/.exec(f)||/(opr)[\/]([\w.]+)/.exec(f)||/(chrome)[ \/]([\w.]+)/.exec(f)||/(iemobile)[\/]([\w.]+)/.exec(f)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(f)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(f)||/(webkit)[ \/]([\w.]+)/.exec(f)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(f)||/(msie) ([\w.]+)/.exec(f)||f.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(f)||f.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(f)||[];var l=/(ipad)/.exec(f)||/(ipod)/.exec(f)||/(windows phone)/.exec(f)||/(iphone)/.exec(f)||/(kindle)/.exec(f)||/(silk)/.exec(f)||/(android)/.exec(f)||/(win)/.exec(f)||/(mac)/.exec(f)||/(linux)/.exec(f)||/(cros)/.exec(f)||/(playbook)/.exec(f)||/(bb)/.exec(f)||/(blackberry)/.exec(f)||[];var n={},g={browser:m[5]||m[3]||m[1]||"",version:m[2]||m[4]||"0",versionNumber:m[4]||m[2]||"0",platform:l[0]||""};if(g.browser){n[g.browser]=true;n.version=g.version;n.versionNumber=parseInt(g.versionNumber,10)}if(g.platform){n[g.platform]=true}if(n.android||n.bb||n.blackberry||n.ipad||n.iphone||n.ipod||n.kindle||n.playbook||n.silk||n["windows phone"]){n.mobile=true}if(n.cros||n.mac||n.linux||n.win){n.desktop=true}if(n.chrome||n.opr||n.safari){n.webkit=true}if(n.rv||n.iemobile){var e="msie";g.browser=e;n[e]=true}if(n.edge){delete n.edge;var q="msedge";g.browser=q;n[q]=true}if(n.safari&&n.blackberry){var j="blackberry";g.browser=j;n[j]=true}if(n.safari&&n.playbook){var u="playbook";g.browser=u;n[u]=true}if(n.bb){var s="blackberry";g.browser=s;n[s]=true}if(n.opr){var k="opera";g.browser=k;n[k]=true}if(n.safari&&n.android){var h="android";g.browser=h;n[h]=true}if(n.safari&&n.kindle){var t="kindle";g.browser=t;n[t]=true}if(n.safari&&n.silk){var o="silk";g.browser=o;n[o]=true}n.name=g.browser;n.platform=g.platform;return n}window.jQBrowser=b(window.navigator.userAgent);window.jQBrowser.uaMatch=b;if(d){d.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;ib.H){u.B=b.H}A.vml.image.shape.style.clip="rect("+u.T+"px "+(u.R+B)+"px "+u.B+"px "+(u.L+B)+"px)"}else{A.vml.image.shape.style.clip="rect("+y.T+"px "+y.R+"px "+y.B+"px "+y.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()}tf=window.tf||{};tf.mailRE=/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;tf=window.tf||{};tf.isDebug=function(){return !location.href.match(/trefis/i)||location.href.match(/qa\.trefis/i)};function gaTrack(b){_gaq=window._gaq||[];_gaq.push(["_trackPageview",b])}function gaEvent(b){_gaq=window._gaq||[];b.splice(0,0,"_trackEvent");_gaq.push(b);if(window.tf&&window.tf.isDebug()){console.log("GA Event: "+b)}}tf=window.tf||{};tf.status=function(d,b){return b=="success"?(d==null?"nulldata":d.status):b};function showOverlay(d){if(window.helpPopup){helpPopup.hide()}var b=$("#overlay");if(tf.ie6){b.height(Math.max($("body").height(),1200))}b.show();if(d){b.css("opacity",0).animate({opacity:0.7},d)}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.initPopup=function(d,j,g){g=$.extend({wrap:false,remove:false,show:false,parentElement:$("body"),center:false},g);var f=typeof d=="string"?$("#"+d):d;if(g.wrap){f=h(f);f.appendTo(g.parentElement)}j=j||function(){if(g.remove){f.remove()}else{f.hide()}window.hideOverlay&&hideOverlay();return false};function b(){$(this).removeClass("XClose-down")}f.find(".XClose").click(j).mouseover(function(){$(this).addClass("XClose-moused")}).mouseout(function(){$(this).removeClass("XClose-moused")}).mousedown(function(){$(this).addClass("XClose-down")}).mouseout(b).mouseup(b);if(tf.ie6&&window.DD_belatedPNG){DD_belatedPNG.fixPng(f.find(".XClose")[0])}function h(k){var l=$("").css({position:"absolute",zIndex:1000}).hide().append($("").addClass("XClose").css({zIndex:1000})).append(k);return l}var e=$("#overlay");if(e.length===0){e=$("").attr("id","overlay").appendTo($("body"))}if(g.show){if(window.showOverlay){showOverlay()}f.show()}if(g.center){f.css({top:f.parent().height()/2-f.height()/2,left:f.parent().width()/2-f.width()/2})}return f};tf=window.tf||{};tf.fixFilter=function(b){if($.browser.msie){(b||this).style.removeAttribute("filter")}};tf=window.tf||{};tf.Mutex=function(){var b=false,d=0;this.a=function(){return !b&&!d&&(b=true)};this.r=function(){b=false};this.h=function(){return b};this.i=function(){return !b&&++d>0};this.d=function(){if(d>0){d--}}};tf=window.tf||{};$.extend(tf,{hasFlag:function(b){var d=window.loggedInUser;return d&&(d.bitFlags&b)!=0},isAnalyst:function(){return tf.hasFlag(8)},isAdmin:function(){return tf.hasFlag(2)}});tf=window.tf||{};tf.truncate=function(d,b){return d.length0?"?"+x.join("&"):"")+"#/"+w}function u(w,x){g.hide();window.hideOverlay&&hideOverlay();m(w,x)}function t(x,w){tf.ajax({type:"POST",url:getHost()+"/servlet/ProfileService/setAutosaveModels",dataType:"json",data:{a:x},success:function(z,y){w(tf.status(z,y)=="success")},error:function(z,y,A){tf.ajaxError(z,y,A);w(j)}})}function n(){announceClear();u(j,j);return false}tf.getComponent("popup/canSaveModelPopup",function(B){g.html(B).show();tf.initPopup(g,n);var y=window.getSwfObj&&location.href.indexOf("company")!=-1,E=y?getSwfObj():0,A=E?E.userModelId():0,F="from=requireAccess",D="postSubscribe="+escape(o(k,(!l&&A?["userModelId="+A]:[])))+"; path=/";ulObj=g.find(".csp_models"),csp_okBtn=g.find("#csp_okBtn");$(".numToDelete").text(1+s.length-q);$.each(s,function(I,H){ulObj.append(""+H.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 z(){return g.find("#csp_autosaveCB").prop("checked")}function G(){var H=[];ulObj.find("a").each(function(){var I=$(this);if(I.find(".csp_undo").is(":visible")){$.each(I[0].className.split(" "),function(K,J){if(J.substring(0,7)=="symbol."){H.push(J.substring(7))}})}});return H}function x(I,H){return w(I)&&H}function w(H){return typeof(q)=="number"&&s.length-H.length>=q}function C(){csp_okBtn.toggleClass("gbutton2-disabled",x(G(),z()));if(tf.ie6&&window.DD_belatedPNG){DD_belatedPNG.fix("#csp_okBtn")}}g.find("#csp_autosaveCB").click(C);ulObj.find("a").click(function(){$(this).find(".csp_greyx,.csp_undo").toggle();C();return false});g.find("#csp_cancelBtn").click(n);g.find("#csp_proUpgradeBtn").click(function(){announceClear();document.cookie=D;location.href=getHost()+"/subscribe/billing?"+F;return false});csp_okBtn.click(function(){announceClear();var K=G(),J=z();if(x(K,J)){announce("You cannot save more than "+q+" models, please select model(s) to delete or turn off autosave to continue.",1)}else{function I(L){if(L){u(!w(K),!J)}else{announce("Error contacting server",1)}}function H(L){if(L){if(J){I(h)}else{t(J,I)}}else{announce("Error contacting server",1)}}if(K.length>0){tf.deleteWorkingModels(K,H);tf.track(96)}else{H(h);tf.track(97)}}return false});if(tf.ie6&&window.DD_belatedPNG){DD_belatedPNG.fix("#canSaveModelPopupHolder .coAll")}g.css("margin-top",(tf.scrollY()+20)+"px");showOverlay();C()})}};function d(g,f,j,h){if(g.length>0){g[0]($.extend({},f),function(k){if(k){j.willReload=j.willReload&&k.willReload;j.href=j.href||k.href}d(g.slice(1),f,j,h)})}else{if(h){h(j)}}}tf.loginIframeSuccess=function(k,f,h){window.loggedInUser=f;var m=getSwfObj(),l=$("#headerSignInPane").is(":visible"),g=tf.isAdmin(),j=$.extend({hasStatusChanged:true,willReload:!h&&!!tf.loginIframeReload},k);j.isNewUser=!!j.isNewUser;j.isLoggedIn=!!j.isLoggedIn;window.flashLoginCallbacksReturn=function(n){d(e,j,n,function(o){if(o.willReload){tf.doLoginRedirect(o)}})};if(m&&m.flashLoginCallbacks){m.flashLoginCallbacks(j)}else{window.flashLoginCallbacksReturn($.extend({},j))}};tf.loginIframeCancel=function(){var f={hasStatusChanged:false,isNewUser:false,isLoggedIn:getLoggedInUser()!=null,willReload:false};d(e,f,$.extend({},f))};tf.hideLoginClose=function(){$("#loginPopup .XClose").hide()};if(tf.ie6&&window.DD_belatedPNG){DD_belatedPNG.fix(".obutton,.obutton span")}}tf.toggleLogInPane=function(){var e="loginPopup",h;function g(){$("#"+e).hide();hideOverlay()}function d(k,m,l){currentlySigningIn=0;announce("Unkown local error occurred, please try again. (error: "+m+")",1)}function b(l,k){announce("Logout failed! Please try again",1)}function f(l,k){if(tf.status(l,k)=="success"){tf.loginIframeSuccess({},null)}else{b()}}function j(){g();tf.loginIframeCancel();return false}return function(k,m,l,n,s,o){if(k){if(m){if(!h){h=1;tf.resizeLoginPane=function(t){$("#loginPopup .loginPaneIframe").css("height",(t)?t+"px":null)};$("#"+e+" .loginIframeWrapper").html("");$("#"+e+" .cancel").click(j);tf.initPopup(e,j)}announceClear();var q=["ssl="+tf.isSecure(),"sendWelcome=1"];if(l){q.push("noReload=1")}if(s){q.push("showStep2=1")}if(o){q.push("signIn=1")}$("#"+e+" .loginPaneIframe")[0].src=(properties.httpsEnabled()?tf.getSecureHost():getHost())+"/loginPopupFrame.jsp"+(q.length?"?"+q.join("&"):"");$("#"+e+" .loginMsg").show().html(n||"Please log in or sign up");$("#"+e).css("margin-top",(tf.scrollY()+20)+"px");$("#"+e+" .XClose").show();window.showOverlay(300);setTimeout(function(){$("#"+e).fadeIn(300,tf.fixFilter)},300);if(s){$(".loginMsg,.splashMsg").hide()}}else{announceClear();$.ajax({type:"POST",url:getHost()+"/servlet/LoginService/logout",data:{},dataType:"json",success:f,error:b})}}else{g()}return false}}();tf=window.tf||{};tf.clearForm=function(b){b.find("input,select,textarea").each(function(e,g){var f=g.type,d=g.tagName.toLowerCase();if(f=="text"||f=="password"||d=="textarea"){g.value=""}if(f=="checkbox"||f=="radio"){g.checked=false}if(d=="select"){g.selectedIndex=-1}})};tf=window.tf||{};tf.toggleFeedback=function(){var f="feedbackPopup",h,j,d,e;function k(){$("#"+f).hide();if(e){e()}else{hideOverlay()}return false}function b(){window.announce&&announce("Thank you for the feedback!");tf.clearForm&&tf.clearForm(j);k()}function g(){window.announceClear&&announceClear();$.ajax({type:"POST",url:getHost()+"/servlet/feedback",data:j.serialize(),error:tf.ajaxError,success:b,dataType:"json"});return false}return function(m,l,n){if(m){tf.track&&tf.track(23);if(!h){h=1;j=$("#"+f+" form");d=$("#"+f+" .recommend");$("#"+f+" .cancel").click(k);$("#"+f+" .ok").click(g);tf.initPopup(f,k)}window.announceClear&&announceClear();$("#"+f+" .feedbackRating").toggle(!l);$("#"+f+" .email").toggle(!properties.loggedInUser());$("#"+f).css("margin-top",((tf.scrollY?tf.scrollY():0)+40)+"px").show();showOverlay();e=n}else{k()}return false}}();function ghostText(d,b){ghostTextObj($("#"+d),b)}function ghostTextObj(e,f){var d=e[0],b=e.val()!=""&&e.val()!=f;if(d){if(!b){e.val(f).addClass("ghostText")}d.cleared=b;e.bind("focus",function(){if(!d.cleared){d.cleared=1;e.val("").removeClass("ghostText")}}).bind("blur",function(){if(d.cleared&&e.val()==""){d.cleared=0;e.val(f).addClass("ghostText")}})}}function unghostTextObj(b){b.unbind("focus").unbind("blur").each(function(d,e){if(e.cleared){e.cleared=0}else{$(e).val("")}})}function switchToGhost(b){b.each(function(d,e){if(e.cleared){$(e).val("").blur()}})}function setTextOnGhosted(d,b){if(typeof d=="string"){d=$("#"+d)}if(d.length){if(b&&b.length){d.val(b).removeClass("ghostText").blur()[0].cleared=1}else{switchToGhost(d)}}}function getTextFromGhosted(b){return getTextFromGhostedObj($("#"+b))}function getTextFromGhostedObj(b){return b[0]&&b[0].cleared?b.val():""}tf=window.tf||{};tf.JSONparse=function(b){return typeof JSON==="object"&&JSON.parse?JSON.parse(b):(new Function("return "+b))()};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(b,e,d){tf.li.ovd={mt:b,at:e,ats:d}},init:function(b){if(tf.li.inited){if(b){b()}}else{if(getHost().indexOf("www.trefis.com")>0){if(!tf.li.tagAdded){$("body").append("");$("#li-root").append("