"use strict";(function(g,j,h){var i=true,p=false,x=null,o,n,c,k="ui-tooltip",e="ui-widget",f="ui-state-disabled",q="div.qtip."+k,y=k+"-focus",d=k+"-hover",m="-31000px",w="_replacedByqTip",l="oldtitle";function a(B){var A;if(!B||"object"!==typeof B){return p}if("object"!==typeof B.metadata){B.metadata={type:B.metadata}}if("content" in B){if("object"!==typeof B.content||B.content.jquery){B.content={text:B.content}}A=B.content.text||p;if(!g.isFunction(A)&&((!A&&!A.attr)||A.length<1||("object"===typeof A&&!A.jquery))){B.content.text=p}if("title" in B.content){if("object"!==typeof B.content.title){B.content.title={text:B.content.title}}A=B.content.title.text||p;if(!g.isFunction(A)&&((!A&&!A.attr)||A.length<1||("object"===typeof A&&!A.jquery))){B.content.title.text=p}}}if("position" in B){if("object"!==typeof B.position){B.position={my:B.position,at:B.position}}}if("show" in B){if("object"!==typeof B.show){if(B.show.jquery){B.show={target:B.show}}else{B.show={event:B.show}}}}if("hide" in B){if("object"!==typeof B.hide){if(B.hide.jquery){B.hide={target:B.hide}}else{B.hide={event:B.hide}}}}if("style" in B){if("object"!==typeof B.style){B.style={classes:B.style}}}g.each(n,function(){if(this.sanitize){this.sanitize(B)}});return B}function v(V,C,P,Q){var O=this,L=document.body,I=k+"-"+P,D=0,U=0,E=g(),M,N;O.id=P;O.rendered=p;O.elements=M={target:V};O.timers={img:[]};O.options=C;O.checks={};O.plugins={};O.cache=N={event:{},target:x,disabled:p,attr:Q};function F(Y){var W=0,aa,X=C,Z=Y.split(".");while(X=X[Z[W++]]){if(W<Z.length){aa=X}}return[aa||C,Z.pop()]}function T(){var W=C.style.widget;E.toggleClass(e,W);M.content.toggleClass(e+"-content",W);if(M.titlebar){M.titlebar.toggleClass(e+"-header",W)}if(M.button){M.button.toggleClass(k+"-icon",!W)}}function A(){if(M.title){M.titlebar.remove();M.titlebar=M.title=M.button=x;O.reposition()}}function R(){var X=C.content.title.button,W=typeof X==="string",Y=W?X:"Close tooltip";if(M.button){M.button.remove()}if(X.jquery){M.button=X}else{M.button=g("<a />",{"class":"ui-state-default "+(C.style.widget?"":k+"-icon"),title:Y,"aria-label":Y}).prepend(g("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}))}M.button.appendTo(M.titlebar).attr("role","button").hover(function(Z){g(this).toggleClass("ui-state-hover",Z.type==="mouseenter")}).click(function(Z){if(!E.hasClass(f)){O.hide(Z)}return p}).bind("mousedown keydown mouseup keyup mouseout",function(Z){g(this).toggleClass("ui-state-active ui-state-focus",Z.type.substr(-4)==="down")});O.redraw()}function H(){var W=I+"-title";if(M.titlebar){A()}M.titlebar=g("<div />",{"class":k+"-titlebar "+(C.style.widget?"ui-widget-header":"")}).append(M.title=g("<div />",{id:W,"class":k+"-title","aria-atomic":i})).insertBefore(M.content);if(C.content.title.button){R()}else{if(O.rendered){O.redraw()}}}function K(W){var X=M.button,Y=M.title;if(!O.rendered){return p}if(!W){X.remove()}else{if(!Y){H()}R()}}function S(X){var W=M.title;if(!O.rendered||!X){return p}if(g.isFunction(X)){X=X.call(V,O)||""}if(X.jquery&&X.length>0){W.empty().append(X.css({display:"block"}))}else{W.html(X)}O.redraw();if(O.rendered&&E.is(":visible")){O.reposition(N.event)}}function J(Y,W){var X=M.content;Y=Y||C.content.text;if(!O.rendered||!Y){return p}if(g.isFunction(Y)){Y=Y.call(V,O)||""}if(Y.jquery&&Y.length>0){X.empty().append(Y.css({display:"block"}))}else{X.html(Y)}function Z(ab){var aa;function ac(ad){if((aa=aa.not(this)).length===0){O.redraw();if(W!==p){O.reposition(N.event)}ab()}}if((aa=X.find("img:not([height]):not([width])")).length===0){return ac.call(aa)}aa.each(function(ad,ae){(function af(){var ag=O.timers.img;if(ae.height&&ae.width){clearTimeout(ag[ad]);return ac.call(ae)}ag[ad]=setTimeout(af,20)}())})}if(O.rendered<0){E.queue("fx",Z)}else{U=0;Z(g.noop)}return O}function B(ag,ac,af,ae){var aa=".qtip-"+P,ah=C.position,ad={show:C.show.target,hide:C.hide.target,container:ah.container[0]===L?g(document):ah.container,doc:g(document)},ai={show:g.trim(""+C.show.event).split(" "),hide:g.trim(""+C.hide.event).split(" ")},ab=g.browser.msie&&parseInt(g.browser.version,10)===6,Y;function W(ak){if(E.hasClass(f)){return p}ad.show.trigger("qtip-"+P+"-inactive");clearTimeout(O.timers.show);clearTimeout(O.timers.hide);var al=function(){O.show(ak)};if(C.show.delay>0){O.timers.show=setTimeout(al,C.show.delay)}else{al()}}function Z(an){if(E.hasClass(f)){return p}var al=g(an.relatedTarget||an.target),ak=al.closest(q)[0]===E[0],am=al[0]===ad.show[0];clearTimeout(O.timers.show);clearTimeout(O.timers.hide);if((ah.target==="mouse"&&ak)||(C.hide.fixed&&((/mouse(out|leave|move)/).test(an.type)&&(ak||am)))){an.stopPropagation();an.preventDefault();return p}if(C.hide.delay>0){O.timers.hide=setTimeout(function(){O.hide(an)},C.hide.delay)}else{O.hide(an)}}function X(ak){if(E.hasClass(f)){return p}clearTimeout(O.timers.inactive);O.timers.inactive=setTimeout(function(){O.hide(ak)},C.hide.inactive)}function aj(ak){if(E.is(":visible")){O.reposition(ak)}}if(af){if(C.hide.fixed){ad.hide=ad.hide.add(E);E.bind("mouseover"+aa,function(){if(!E.hasClass(f)){clearTimeout(O.timers.hide)}})}if(ah.target==="mouse"&&ah.adjust.mouse&&C.hide.event){E.bind("mouseleave"+aa,function(ak){if((ak.relatedTarget||ak.target)!==ad.show[0]){O.hide(ak)}})}E.bind("mouseenter"+aa,function(ak){O[ak.type==="mouseenter"?"focus":"blur"](ak)});E.bind("mouseenter"+aa+" mouseleave"+aa,function(ak){E.toggleClass(d,ak.type==="mouseenter")})}if(ac){if("number"===typeof C.hide.inactive){ad.show.bind("qtip-"+P+"-inactive",X);g.each(o.inactiveEvents,function(ak,al){ad.hide.add(M.tooltip).bind(al+aa+"-inactive",X)})}if(/mouse(over|enter)/i.test(C.show.event)&&!/mouse(out|leave)/i.test(C.hide.event)){ad.hide.bind("mouseleave"+aa,function(ak){clearTimeout(O.timers.show)})}g.each(ai.hide,function(al,am){var ak=g.inArray(am,ai.show),an=g(ad.hide);if((ak>-1&&an.add(ad.show).length===an.length)||am==="unfocus"){ad.show.bind(am+aa,function(ao){if(E.is(":visible")){Z(ao)}else{W(ao)}});delete ai.show[ak]}else{ad.hide.bind(am+aa,Z)}})}if(ag){g.each(ai.show,function(ak,al){ad.show.bind(al+aa,W)});if("number"===typeof C.hide.distance){ad.show.bind("mousemove"+aa,function(an){var am=N.origin||{},al=C.hide.distance,ak=Math.abs;if(am&&(ak(an.pageX-am.pageX)>=al||ak(an.pageY-am.pageY)>=al)){O.hide(an)}})}}if(ae){if(ah.adjust.resize||ah.viewport){g(g.event.special.resize?ah.viewport:j).bind("resize"+aa,aj)}if(ah.viewport||(ab&&E.css("position")==="fixed")){g(ah.viewport).bind("scroll"+aa,aj)}if((/unfocus/i).test(C.hide.event)){ad.doc.bind("mousedown"+aa,function(al){var ak=g(al.target);if(ak.parents(q).length===0&&ak.add(V).length>1&&E.is(":visible")&&!E.hasClass(f)){O.hide(al)}})}if(C.hide.leave&&(/mouseleave|mouseout/i).test(C.hide.event)){g(j).bind("blur"+aa+" mouse"+(C.hide.leave.indexOf("frame")>-1?"out":"leave")+aa,function(ak){if(!ak.relatedTarget){O.hide(ak)}})}if(ah.target==="mouse"){ad.doc.bind("mousemove"+aa,function(ak){if(ah.adjust.mouse&&!E.hasClass(f)&&E.is(":visible")){O.reposition(ak||c)}})}}}function G(X,Y,aa,ab){ab=parseInt(ab,10)!==0;var Z=".qtip-"+P,W={show:X&&C.show.target[0],hide:Y&&C.hide.target[0],tooltip:aa&&O.rendered&&M.tooltip[0],content:aa&&O.rendered&&M.content[0],container:ab&&C.position.container[0]===L?document:C.position.container[0],window:ab&&j};if(O.rendered){g([]).pushStack(g.grep([W.show,W.hide,W.tooltip,W.container,W.content,W.window],function(ac){return typeof ac==="object"})).unbind(Z)}else{if(X){C.show.target.unbind(Z+"-create")}}}O.checks.builtin={"^id$":function(Y,Z,W){var aa=W===i?o.nextid:W,X=k+"-"+aa;if(aa!==p&&aa.length>0&&!g("#"+X).length){E[0].id=X;M.content[0].id=X+"-content";M.title[0].id=X+"-title"}},"^content.text$":function(X,Y,W){J(W)},"^content.title.text$":function(X,Y,W){if(!W){return A()}if(!M.title&&W){H()}S(W)},"^content.title.button$":function(X,Y,W){K(W)},"^position.(my|at)$":function(X,Y,W){if("string"===typeof W){X[Y]=new n.Corner(W)}},"^position.container$":function(X,Y,W){if(O.rendered){E.appendTo(W)}},"^(show|hide).(event|target|fixed|delay|inactive)$":function(aa,ab,W,Z,Y){var X=[1,0,0];X[Y[1]==="show"?"push":"unshift"](0);G.apply(O,X);B.apply(O,[1,1,0,0])},"^show.ready$":function(){if(!O.rendered){O.render(1)}else{O.show()}},"^style.classes$":function(X,Y,W){g.attr(E[0],"class",k+" qtip ui-helper-reset "+W)},"^style.widget|content.title":T,"^events.(render|show|move|hide|focus|blur)$":function(X,Y,W){E[(g.isFunction(W)?"":"un")+"bind"]("tooltip"+Y,W)}};g.extend(O,{render:function(W){if(O.rendered){return O}var X=C.content.title.text,Y=g.Event("tooltiprender");g.attr(V[0],"aria-describedby",I);E=M.tooltip=g("<div/>",{id:I,"class":k+" qtip ui-helper-reset "+C.style.classes,width:C.style.width||"",role:"alert","aria-live":"polite","aria-atomic":p,"aria-describedby":I+"-content","aria-hidden":i}).toggleClass(f,N.disabled).data("qtip",O).appendTo(C.position.container).append(M.content=g("<div />",{"class":k+"-content",id:I+"-content","aria-atomic":i}));O.rendered=-1;U=1;if(X){H();S(X)}J(p,p);O.rendered=i;T();g.each(C.events,function(Z,aa){if(g.isFunction(aa)){E.bind(Z==="toggle"?"tooltipshow tooltiphide":"tooltip"+Z,aa)}});g.each(n,function(){if(this.initialize==="render"){this(O)}});B(1,1,1,1);E.queue("fx",function(Z){Y.originalEvent=N.event;E.trigger(Y,[O]);U=0;O.redraw();if(C.show.ready||W){O.show(N.event)}Z()});return O},get:function(X){var W,Y;switch(X.toLowerCase()){case"dimensions":W={height:E.outerHeight(),width:E.outerWidth()};break;case"offset":W=n.offset(E,C.position.container);break;default:Y=F(X.toLowerCase());W=Y[0][Y[1]];W=W.precedance?W.string():W;break}return W},set:function(Z,aa){var Y=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,ab=/^content\.(title|attr)|style/i,ac=p,ae=p,X=O.checks,W;function ad(ai,ag){var ah,aj,af;for(ah in X){for(aj in X[ah]){if(af=(new RegExp(aj,"i")).exec(ai)){ag.push(af);X[ah][aj].apply(O,ag)}}}}if("string"===typeof Z){W=Z;Z={};Z[W]=aa}else{Z=g.extend(i,{},Z)}g.each(Z,function(ag,ah){var ai=F(ag.toLowerCase()),af;af=ai[0][ai[1]];ai[0][ai[1]]="object"===typeof ah&&ah.nodeType?g(ah):ah;Z[ag]=[ai[0],ai[1],ah,af];ac=Y.test(ag)||ac;ae=ab.test(ag)||ae});a(C);D=U=1;g.each(Z,ad);D=U=0;if(E.is(":visible")&&O.rendered){if(ac){O.reposition(C.position.target==="mouse"?x:N.event)}if(ae){O.redraw()}}return O},toggle:function(aa,Z){if(!O.rendered){if(aa){O.render(1)}else{return O}}var X=aa?"show":"hide",Y=C[X],ac=E.is(":visible"),W,ad;if((typeof aa).search("boolean|number")){aa=!ac}if(ac===aa){return O}if(Z){if((/over|enter/).test(Z.type)&&(/out|leave/).test(N.event.type)&&Z.target===C.show.target[0]&&E.has(Z.relatedTarget).length){return O}N.event=g.extend({},Z)}ad=g.Event("tooltip"+X);ad.originalEvent=Z?N.event:x;E.trigger(ad,[O,90]);if(ad.isDefaultPrevented()){return O}g.attr(E[0],"aria-hidden",!!!aa);if(aa){N.origin=g.extend({},c);O.focus(Z);if(g.isFunction(C.content.text)){J()}O.reposition(Z);if(Y.solo){g(q,Y.solo).not(E).qtip("hide",ad)}}else{clearTimeout(O.timers.show);delete N.origin;O.blur(Z)}function ab(){if(!aa){E.css({display:"",visibility:"",width:"",opacity:"",left:"",top:""})}else{if(g.browser.msie){E[0].style.removeAttribute("filter")}E.css("overflow","")}}E.stop(0,1);if(g.isFunction(Y.effect)){Y.effect.call(E,O);E.queue("fx",function(ae){ab();ae()})}else{if(Y.effect===p){E[X]();ab.call(E)}else{E.fadeTo(90,aa?1:0,ab)}}if(aa){Y.target.trigger("qtip-"+P+"-inactive")}return O},show:function(W){return O.toggle(i,W)},hide:function(W){return O.toggle(p,W)},focus:function(aa){if(!O.rendered){return O}var ab=g(q),Y=parseInt(E[0].style.zIndex,10),X=o.zindex+ab.length,Z=g.extend({},aa),W,ac;if(!E.hasClass(y)){ac=g.Event("tooltipfocus");ac.originalEvent=Z;E.trigger(ac,[O,X]);if(!ac.isDefaultPrevented()){if(Y!==X){ab.each(function(){if(this.style.zIndex>Y){this.style.zIndex=this.style.zIndex-1}});ab.filter("."+y).qtip("blur",Z)}E.addClass(y)[0].style.zIndex=X}}return O},blur:function(X){var W=g.extend({},X),Y;E.removeClass(y);Y=g.Event("tooltipblur");Y.originalEvent=W;E.trigger(Y,[O]);return O},reposition:function(ai,af){if(!O.rendered||D){return O}D=1;var am=C.position.target,al=C.position,ac=al.my,ae=al.at,ag=al.adjust,X=ag.method.split(" "),aj=E.outerWidth(),ah=E.outerHeight(),aa=0,ab=0,Z=g.Event("tooltipmove"),Y=E.css("position")==="fixed",ak=al.viewport,an={left:0,top:0},ad=(O.plugins.tip||{}).corner,W={horizontal:X[0],vertical:X[1]||X[0],tip:C.style.tip||{},left:function(au){var ap=W.horizontal==="shift",at=ak.offset.left+ak.scrollLeft,aq=ac.x==="left"?aj:ac.x==="right"?-aj:-aj/2,ao=ae.x==="left"?aa:ae.x==="right"?-aa:-aa/2,aw=(W.tip.width+W.tip.border*2)||0,az=ad&&ad.precedance==="x"&&!ap?aw:0,ay=at-au-az,ar=au+aj-ak.width-at+az,av=aq-(ac.precedance==="x"||ac.x===ac.y?ao:0),ax=ac.x==="center";if(ap){az=ad&&ad.precedance==="y"?aw:0;av=(ac.x==="left"?1:-1)*aq-az;an.left+=ay>0?ay:ar>0?-ar:0;an.left=Math.max(ak.offset.left+(az&&ad.x==="center"?W.tip.offset:0),au-av,Math.min(Math.max(ak.offset.left+ak.width,au+av),an.left))}else{if(ay>0&&(ac.x!=="left"||ar>0)){an.left-=av+(ax?0:2*ag.x)}else{if(ar>0&&(ac.x!=="right"||ay>0)){an.left-=ax?-av:av+(2*ag.x)}}if(an.left!==au&&ax){an.left-=ag.x}if(an.left<at&&-an.left>ar){an.left=au}}return an.left-au},top:function(aw){var ap=W.vertical==="shift",au=ak.offset.top+ak.scrollTop,aq=ac.y==="top"?ah:ac.y==="bottom"?-ah:-ah/2,ax=ae.y==="top"?ab:ae.y==="bottom"?-ab:-ab/2,ao=(W.tip.height+W.tip.border*2)||0,az=ad&&ad.precedance==="y"&&!ap?ao:0,ar=au-aw-az,at=aw+ah-ak.height-au+az,av=aq-(ac.precedance==="y"||ac.x===ac.y?ax:0),ay=ac.y==="center";if(ap){az=ad&&ad.precedance==="x"?ao:0;av=(ac.y==="top"?1:-1)*aq-az;an.top+=ar>0?ar:at>0?-at:0;an.top=Math.max(ak.offset.top+(az&&ad.x==="center"?W.tip.offset:0),aw-av,Math.min(Math.max(ak.offset.top+ak.height,aw+av),an.top))}else{if(ar>0&&(ac.y!=="top"||at>0)){an.top-=av+(ay?0:2*ag.y)}else{if(at>0&&(ac.y!=="bottom"||ar>0)){an.top-=ay?-av:av+(2*ag.y)}}if(an.top!==aw&&ay){an.top-=ag.y}if(an.top<0&&-an.top>at){an.top=aw}}return an.top-aw}};if(am==="mouse"){ae={x:"left",y:"top"};ai=ai&&(ai.type==="resize"||ai.type==="scroll")?N.event:!ag.mouse&&N.origin?N.origin:c&&(ag.mouse||!ai||!ai.pageX)?{pageX:c.pageX,pageY:c.pageY}:ai;an={top:ai.pageY,left:ai.pageX}}else{if(am==="event"){if(ai&&ai.target&&ai.type!=="scroll"&&ai.type!=="resize"){am=N.target=g(ai.target)}else{am=N.target}}am=g(am).eq(0);if(am.length===0){return O}else{if(am[0]===document||am[0]===j){aa=n.iOS?j.innerWidth:am.width();ab=n.iOS?j.innerHeight:am.height();if(am[0]===j){an={top:!Y||n.iOS?(ak||am).scrollTop():0,left:!Y||n.iOS?(ak||am).scrollLeft():0}}}else{if(am.is("area")&&n.imagemap){an=n.imagemap(am,ae)}else{if(am[0].namespaceURI==="http://www.w3.org/2000/svg"&&n.svg){an=n.svg(am,ae)}else{aa=am.outerWidth();ab=am.outerHeight();an=n.offset(am,al.container,Y)}}}}if(an.offset){aa=an.width;ab=an.height;an=an.offset}an.left+=ae.x==="right"?aa:ae.x==="center"?aa/2:0;an.top+=ae.y==="bottom"?ab:ae.y==="center"?ab/2:0}an.left+=ag.x+(ac.x==="right"?-aj:ac.x==="center"?-aj/2:0);an.top+=ag.y+(ac.y==="bottom"?-ah:ac.y==="center"?-ah/2:0);if(ak.jquery&&am[0]!==j&&am[0]!==L&&W.vertical+W.horizontal!=="nonenone"){ak={elem:ak,height:ak[(ak[0]===j?"h":"outerH")+"eight"](),width:ak[(ak[0]===j?"w":"outerW")+"idth"](),scrollLeft:ak.scrollLeft(),scrollTop:ak.scrollTop(),offset:ak.offset()||{left:0,top:0}};an.adjusted={left:W.horizontal!=="none"?W.left(an.left):0,top:W.vertical!=="none"?W.top(an.top):0}}else{an.adjusted={left:0,top:0}}E.attr("class",function(ao,ap){return g.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(k+"-pos-"+ac.abbreviation());Z.originalEvent=g.extend({},ai);E.trigger(Z,[O,an,ak.elem||ak]);if(Z.isDefaultPrevented()){return O}delete an.adjusted;if(af===p||isNaN(an.left)||isNaN(an.top)||!g.isFunction(al.effect)){E.css(an)}else{if(g.isFunction(al.effect)){al.effect.call(E,O,g.extend({},an));E.queue(function(ao){g(this).css({opacity:"",height:""});if(g.browser.msie){this.style.removeAttribute("filter")}ao()})}}D=0;return O},redraw:function(){if(O.rendered<1||U){return O}var ab=k+"-fluid",X=C.position.container,Z,aa,W,Y;U=1;if(C.style.width){E.css("width",C.style.width)}else{E.css("width","").addClass(ab);aa=E.width()+(g.browser.mozilla?1:0);W=E.css("max-width")||"";Y=E.css("min-width")||"";Z=(W+Y).indexOf("%")>-1?X.width()/100:0;W=((W.indexOf("%")>-1?Z:1)*parseInt(W,10))||aa;Y=((Y.indexOf("%")>-1?Z:1)*parseInt(Y,10))||0;aa=W+Y?Math.min(Math.max(aa,Y),W):aa;E.css("width",Math.round(aa)).removeClass(ab)}U=0;return O},disable:function(W){var X=f;if("boolean"!==typeof W){W=!(E.hasClass(X)||N.disabled)}if(O.rendered){E.toggleClass(X,W);g.attr(E[0],"aria-disabled",W)}else{N.disabled=!!W}return O},enable:function(){return O.disable(p)},destroy:function(){var W=V[0],X=g.attr(W,l);if(O.rendered){E.remove();g.each(O.plugins,function(){if(this.destroy){this.destroy()}})}clearTimeout(O.timers.show);clearTimeout(O.timers.hide);G(1,1,1,1);g.removeData(W,"qtip");if(X){g.attr(W,"title",X);V.removeAttr(l)}V.removeAttr("aria-describedby").unbind(".qtip");return V}})}function r(B,A){var E,M,I,C,D=g(this),F=g(document.body),K=this===document?F:D,J=(D.metadata)?D.metadata(A.metadata):x,L=A.metadata.type==="html5"&&J?J[A.metadata.name]:x,G=D.data(A.metadata.name||"qtipopts");try{G=typeof G==="string"?(new Function("return "+G))():G}catch(H){g.error("Unable to parse HTML5 attribute data: "+G)}C=g.extend(i,{},o.defaults,A,typeof G==="object"?a(G):x,a(L||J));if(J){g.removeData(this,"metadata")}M=C.position;C.id=B;if("boolean"===typeof C.content.text){I=D.attr(C.content.attr);if(C.content.attr!==p&&I){C.content.text=I}else{return p}}if(M.container===p){M.container=F}if(M.target===p){M.target=K}if(C.show.target===p){C.show.target=K}if(C.show.solo===i){C.show.solo=F}if(C.hide.target===p){C.hide.target=K}if(C.position.viewport===i){C.position.viewport=M.container}M.at=new n.Corner(M.at);M.my=new n.Corner(M.my);if(g.data(this,"qtip")){if(C.overwrite){D.qtip("destroy")}else{if(C.overwrite===p){return p}}}E=new v(D,C,B,!!I);g.data(this,"qtip",E);D.bind("remove.qtip",function(){E.destroy()});return E}o=g.fn.qtip=function(B,F,G){var H=(""+B).toLowerCase(),E=x,A=H==="disable"?[i]:g.makeArray(arguments).slice(1,10),D=A[A.length-1],C=this[0]?g.data(this[0],"qtip"):x;if((!arguments.length&&C)||H==="api"){return C}else{if("string"===typeof B){this.each(function(){var I=g.data(this,"qtip");if(!I){return i}if(D&&D.timeStamp){I.cache.event=D}if((H==="option"||H==="options")&&F){if(g.isPlainObject(F)||G!==h){I.set(F,G)}else{E=I.get(F);return p}}else{if(I[H]){I[H].apply(I[H],A)}}});return E!==x?E:this}else{if("object"===typeof B||!arguments.length){C=a(g.extend(i,{},B));return o.bind.call(this,C,D)}}}};o.bind=function(B,A){return this.each(function(F){var D,C,E,J=(!B.id||B.id===p||B.id.length<1||g("#"+k+"-"+B.id).length)?o.nextid++:B.id,H=".qtip-"+J+"-create",G=r.call(this,J,B);if(G===p){return i}D=G.options;g.each(n,function(){if(this.initialize==="initialize"){this(G)}});C={show:D.show.target,hide:D.hide.target};E={show:g.trim(""+D.show.event).replace(/ /g,H+" ")+H,hide:g.trim(""+D.hide.event).replace(/ /g,H+" ")+H};if(/mouse(over|enter)/i.test(E.show)&&!/mouse(out|leave)/i.test(E.hide)){E.hide+=" mouseleave"+H}function I(L){function K(){G.render(typeof L==="object"||D.show.ready);C.show.unbind(E.show);C.hide.unbind(E.hide)}if(G.cache.disabled){return p}G.cache.event=g.extend({},L);if(D.show.delay>0){clearTimeout(G.timers.show);G.timers.show=setTimeout(K,D.show.delay);if(E.show!==E.hide){C.hide.bind(E.hide,function(){clearTimeout(G.timers.show)})}}else{K()}}C.show.bind(E.show,I);if(D.show.ready||D.prerender){I(A)}})};n=o.plugins={Corner:function(A){A=(""+A).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(A.match(/left|right/i)||A.match(/center/)||["inherit"])[0].toLowerCase();this.y=(A.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.precedance=(A.charAt(0).search(/^(t|b)/)>-1)?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var B=this.x.substr(0,1),C=this.y.substr(0,1);return B===C?B:(B==="c"||(B!=="c"&&C!=="c"))?C+B:B+C}},offset:function(C,A,D){var F=C.offset(),H=A,I=0,E=document.body,B;function G(K,J){F.left+=J*K.scrollLeft();F.top+=J*K.scrollTop()}if(H){do{if(H[0]===E){break}else{if(H.css("position")!=="static"){B=H.position();F.left-=B.left+(parseInt(H.css("borderLeftWidth"),10)||0);F.top-=B.top+(parseInt(H.css("borderTopWidth"),10)||0);I++}}}while(H=H.offsetParent());if(A[0]!==E||I>1){G(A,1)}if((n.iOS<4.1&&n.iOS>3.1)||(!n.iOS&&D)){G(g(j),-1)}}return F},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||p,fn:{attr:function(A,E){if(!this.length){return}var B=this[0],D="title",C=g.data(B,"qtip");if(A===D){if(arguments.length<2){return g.attr(B,l)}else{if(typeof C==="object"){if(C&&C.rendered&&C.options.content.attr===D&&C.cache.attr){C.set("content.text",E)}g.fn["attr"+w].apply(this,arguments);g.attr(B,l,g.attr(B,D));return this.removeAttr(D)}}}},clone:function(B){var D=g([]),C="title",A;A=g.fn["clone"+w].apply(this,arguments).filter("[oldtitle]").each(function(){g.attr(this,C,g.attr(this,l));this.removeAttribute(l)}).end();return A},remove:g.ui?x:function(A,B){g(this).each(function(){if(!B){if(!A||g.filter(A,[this]).length){g("*",this).add(this).each(function(){g(this).triggerHandler("remove")})}}})}}};g.each(n.fn,function(B,C){if(!C){return i}var A=g.fn[B+w]=g.fn[B];g.fn[B]=function(){return C.apply(this,arguments)||A.apply(this,arguments)}});g(document).bind("mousemove.qtip",function(A){c={pageX:A.pageX,pageY:A.pageY,type:"mousemove"}});o.version="nightly";o.nextid=0;o.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");o.zindex=15000;o.defaults={prerender:p,id:p,overwrite:i,content:{text:i,attr:"title",title:{text:p,button:p}},position:{my:"top left",at:"bottom right",target:p,container:p,viewport:p,adjust:{x:0,y:0,mouse:i,resize:i,method:"flip flip"},effect:i},show:{target:p,event:"mouseenter",effect:i,delay:90,solo:p,ready:p},hide:{target:p,event:"mouseleave",effect:i,delay:0,fixed:p,inactive:p,leave:"window",distance:p},style:{classes:"",widget:p,width:p},events:{render:x,move:x,show:x,hide:x,toggle:x,focus:x,blur:x}};function s(D){var A=this,F=D.elements.tooltip,E=D.options.content.ajax,C=".qtip-ajax",B=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,G=i;D.checks.ajax={"^content.ajax":function(J,I,H){if(I==="ajax"){E=H}if(I==="once"){A.init()}else{if(E&&E.url){A.load()}else{F.unbind(C)}}}};g.extend(A,{init:function(){if(E&&E.url){F.unbind(C)[E.once?"one":"bind"]("tooltipshow"+C,A.load)}return A},load:function(I,M){if(I&&I.isDefaultPrevented()){return A}var L=E.url.indexOf(" "),J=E.url,K,P=E.once&&!E.loading&&M;if(P){F.css("visibility","hidden")}if(L>-1){K=J.substr(L);J=J.substr(0,L)}function H(){if(P){F.css("visibility","");M=p}}function O(Q){if(K){Q=g("<div/>").append(Q.replace(B,"")).find(K)}D.set("content.text",Q);H()}function N(S,Q,R){D.set("content.text",Q+": "+R);H()}g.ajax(g.extend({success:O,error:N,context:D},E,{url:J}));return A}});A.init()}n.ajax=function(B){var A=B.plugins.ajax;return"object"===typeof A?A:(B.plugins.ajax=new s(B))};n.ajax.initialize="render";n.ajax.sanitize=function(A){var C=A.content,B;if(C&&"ajax" in C){B=C.ajax;if(typeof B!=="object"){B=A.content.ajax={url:B}}if("boolean"!==typeof B.once&&B.once){B.once=!!B.once}}};g.extend(i,o.defaults,{content:{ajax:{loading:i,once:i}}});n.imagemap=function(A,I){if(!A.jquery){A=g(A)}var G=A.attr("shape").toLowerCase(),C=A.attr("coords").split(","),H=[],D=g('img[usemap="#'+A.parent("map").attr("name")+'"]'),J=D.offset(),K={width:0,height:0,offset:{top:10000000000,right:0,bottom:0,left:10000000000}},E=0,F=0;function B(T,S){var P=0,R=1,Q=1,N=0,M=0,O=T.width,L=T.height;while(O>0&&L>0&&R>0&&Q>0){O=Math.floor(O/2);L=Math.floor(L/2);if(I.x==="left"){R=O}else{if(I.x==="right"){R=T.width-O}else{R+=Math.floor(O/2)}}if(I.y==="top"){Q=L}else{if(I.y==="bottom"){Q=T.height-L}else{Q+=Math.floor(L/2)}}P=S.length;while(P--){if(S.length<2){break}N=S[P][0]-T.offset.left;M=S[P][1]-T.offset.top;if((I.x==="left"&&N>=R)||(I.x==="right"&&N<=R)||(I.x==="center"&&(N<R||N>(T.width-R)))||(I.y==="top"&&M>=Q)||(I.y==="bottom"&&M<=Q)||(I.y==="center"&&(M<Q||M>(T.height-Q)))){S.splice(P,1)}}}return{left:S[0][0],top:S[0][1]}}J.left+=Math.ceil((D.outerWidth()-D.width())/2);J.top+=Math.ceil((D.outerHeight()-D.height())/2);if(G==="poly"){E=C.length;while(E--){F=[parseInt(C[--E],10),parseInt(C[E+1],10)];if(F[0]>K.offset.right){K.offset.right=F[0]}if(F[0]<K.offset.left){K.offset.left=F[0]}if(F[1]>K.offset.bottom){K.offset.bottom=F[1]}if(F[1]<K.offset.top){K.offset.top=F[1]}H.push(F)}}else{H=g.map(C,function(L){return parseInt(L,10)})}switch(G){case"rect":K={width:Math.abs(H[2]-H[0]),height:Math.abs(H[3]-H[1]),offset:{left:H[0],top:H[1]}};break;case"circle":K={width:H[2]+2,height:H[2]+2,offset:{left:H[0],top:H[1]}};break;case"poly":g.extend(K,{width:Math.abs(K.offset.right-K.offset.left),height:Math.abs(K.offset.bottom-K.offset.top)});if(I.string()==="centercenter"){K.offset={left:K.offset.left+(K.width/2),top:K.offset.top+(K.height/2)}}else{K.offset=B(K,H.slice())}K.width=K.height=0;break}K.offset.left+=J.left;K.offset.top+=J.top;return K};function t(F,D,B){var C=Math.ceil(D/2),E=Math.ceil(B/2),A={bottomright:[[0,0],[D,B],[D,0]],bottomleft:[[0,0],[D,0],[0,B]],topright:[[0,B],[D,0],[D,B]],topleft:[[0,0],[0,B],[D,B]],topcenter:[[0,B],[C,0],[D,B]],bottomcenter:[[0,0],[D,0],[C,B]],rightcenter:[[0,0],[D,E],[0,B]],leftcenter:[[D,0],[D,B],[0,E]]};A.lefttop=A.bottomright;A.righttop=A.bottomleft;A.leftbottom=A.topright;A.rightbottom=A.topleft;return A[F.string()]}function u(L,K){var N=this,C=L.options.style.tip,E=L.elements,O=E.tooltip,D={top:0,left:0,corner:""},P={width:C.width,height:C.height},J={},I=C.border||0,H=".qtip-tip",G=!!(g("<canvas />")[0]||{}).getContext;N.corner=x;N.mimic=x;N.position={};L.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){if(!N.init()){N.destroy()}L.reposition()},"^style.tip.(height|width)$":function(){P={width:C.width,height:C.height};N.create();N.update();L.reposition()},"^content.title.text|style.(classes|widget)$":function(){if(E.tip){N.update()}}};function M(R,X,aa,Y){if(!E.tip){return}var ac=g.extend({},N.corner),ab=aa.adjusted,Q=L.options.position.adjust.method.split(" "),S=Q[0],U=Q[1]||Q[0],T={left:p,top:p,x:0,y:0},V,W={},Z;if(N.corner.fixed!==i){if(S==="shift"&&ac.precedance==="x"&&ab.left&&ac.y!=="center"){ac.precedance=ac.precedance==="x"?"y":"x"}else{if(S==="flip"&&ab.left){ac.x=ac.x==="center"?(ab.left>0?"left":"right"):(ac.x==="left"?"right":"left")}}if(U==="shift"&&ac.precedance==="y"&&ab.top&&ac.x!=="center"){ac.precedance=ac.precedance==="y"?"x":"y"}else{if(U==="flip"&&ab.top){ac.y=ac.y==="center"?(ab.top>0?"top":"bottom"):(ac.y==="top"?"bottom":"top")}}if(ac.string()!==D.corner&&(D.top!==ab.top||D.left!==ab.left)){N.update(ac,p)}}V=N.position(ac,ab);if(V.right!==h){V.left=-V.right}if(V.bottom!==h){V.top=-V.bottom}V.user=Math.max(0,C.offset);if(T.left=(S==="shift"&&!!ab.left)){if(ac.x==="center"){W["margin-left"]=T.x=V["margin-left"]-ab.left}else{Z=V.right!==h?[ab.left,-V.left]:[-ab.left,V.left];if((T.x=Math.max(Z[0],Z[1]))>Z[0]){aa.left-=ab.left;T.left=p}W[V.right!==h?"right":"left"]=T.x}}if(T.top=(U==="shift"&&!!ab.top)){if(ac.y==="center"){W["margin-top"]=T.y=V["margin-top"]-ab.top}else{Z=V.bottom!==h?[ab.top,-V.top]:[-ab.top,V.top];if((T.y=Math.max(Z[0],Z[1]))>Z[0]){aa.top-=ab.top;T.top=p}W[V.bottom!==h?"bottom":"top"]=T.y}}E.tip.css(W).toggle(!((T.x&&T.y)||(ac.x==="center"&&T.y)||(ac.y==="center"&&T.x)));aa.left-=V.left.charAt?V.user:S!=="shift"||T.top||!T.left&&!T.top?V.left:0;aa.top-=V.top.charAt?V.user:U!=="shift"||T.left||!T.left&&!T.top?V.top:0;D.left=ab.left;D.top=ab.top;D.corner=ac.string()}function B(V,T,R){T=!T?V[V.precedance]:T;var Q=E.titlebar&&V.y==="top",U=Q?E.titlebar:E.content,S="border-"+T+"-width",W=parseInt(U.css(S),10);return(R?W||parseInt(O.css(S),10):W)||0}function F(V){var Q=E.titlebar&&V.y==="top",U=Q?E.titlebar:E.content,T=g.browser.mozilla,W=T?"-moz-":g.browser.webkit?"-webkit-":"",S=V.y+(T?"":"-")+V.x,R=W+(T?"border-radius-"+S:"border-"+S+"-radius");return parseInt(U.css(R),10)||parseInt(O.css(R),10)||0}function A(Z){var X=Z.precedance==="y",R=P[X?"width":"height"],aa=P[X?"height":"width"],W=Z.string().indexOf("center")>-1,Q=R*(W?0.5:1),T=Math.pow,ab=Math.round,Y,V,ac,S=Math.sqrt(T(Q,2)+T(aa,2)),U=[(I/Q)*S,(I/aa)*S];U[2]=Math.sqrt(T(U[0],2)-T(I,2));U[3]=Math.sqrt(T(U[1],2)-T(I,2));Y=S+U[2]+U[3]+(W?0:U[0]);V=Y/S;ac=[ab(V*aa),ab(V*R)];return{height:ac[X?0:1],width:ac[X?1:0]}}g.extend(N,{init:function(){var Q=N.detectCorner()&&(G||g.browser.msie);if(Q){N.create();N.update();O.unbind(H).bind("tooltipmove"+H,M)}return Q},detectCorner:function(){var S=C.corner,R=L.options.position,Q=R.at,T=R.my.string?R.my.string():R.my;if(S===p||(T===p&&Q===p)){return p}else{if(S===i){N.corner=new n.Corner(T)}else{if(!S.string){N.corner=new n.Corner(S);N.corner.fixed=i}}}return N.corner.string()!=="centercenter"},detectColours:function(){var V,ae,T,ab=E.tip.css({backgroundColor:"",border:""}),ac=N.corner,R=ac[ac.precedance],Q="border-"+R+"-color",X="border"+R.charAt(0)+R.substr(1)+"Color",Y=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,aa="background-color",af="transparent",W="ui-tooltip-fluid",U=g(document.body).css("color"),ad=L.elements.content.css("color"),Z=E.titlebar&&(ac.y==="top"||(ac.y==="center"&&ab.position().top+(P.height/2)+C.offset<E.titlebar.outerHeight(1))),S=Z?E.titlebar:E.content;O.addClass(W);J.fill=ae=ab.css(aa);J.border=T=ab[0].style[X]||O.css(Q);if(!ae||Y.test(ae)){J.fill=S.css(aa)||af;if(Y.test(J.fill)){J.fill=O.css(aa)||ae}}if(!T||Y.test(T)||T===U){J.border=S.css(Q)||af;if(Y.test(J.border)||J.border===ad){J.border=T}}g("*",ab).add(ab).css(aa,af).css("border","");O.removeClass(W)},create:function(){var S=P.width,R=P.height,Q;if(E.tip){E.tip.remove()}E.tip=g("<div />",{"class":"ui-tooltip-tip"}).css({width:S,height:R}).prependTo(O);if(G){g("<canvas />").appendTo(E.tip)[0].getContext("2d").save()}else{Q='<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>';E.tip.html(I?Q+=Q:Q)}},update:function(Z,V){var Y=E.tip,ae=Y.children(),S=P.width,aa=P.height,T="px solid ",ad="px dashed transparent",ac=C.mimic,ab=Math.round,Q,R,X,U,W;if(!Z){Z=N.corner}if(ac===p){ac=Z}else{ac=new n.Corner(ac);ac.precedance=Z.precedance;if(ac.x==="inherit"){ac.x=Z.x}else{if(ac.y==="inherit"){ac.y=Z.y}else{if(ac.x===ac.y){ac[Z.precedance]=Z[Z.precedance]}}}}Q=ac.precedance;N.detectColours();I=J.border==="transparent"||J.border==="#123456"?0:C.border===i?B(Z,x,i):C.border;X=t(ac,S,aa);W=A(Z);Y.css(W);if(Z.precedance==="y"){U=[ab(ac.x==="left"?I:ac.x==="right"?W.width-S-I:(W.width-S)/2),ab(ac.y==="top"?W.height-aa:0)]}else{U=[ab(ac.x==="left"?W.width-S:0),ab(ac.y==="top"?I:ac.y==="bottom"?W.height-aa-I:(W.height-aa)/2)]}if(G){ae.attr(W);R=ae[0].getContext("2d");R.restore();R.save();R.clearRect(0,0,3000,3000);R.translate(U[0],U[1]);R.beginPath();R.moveTo(X[0][0],X[0][1]);R.lineTo(X[1][0],X[1][1]);R.lineTo(X[2][0],X[2][1]);R.closePath();R.fillStyle=J.fill;R.strokeStyle=J.border;R.lineWidth=I*2;R.lineJoin="miter";R.miterLimit=100;if(I){R.stroke()}R.fill()}else{X="m"+X[0][0]+","+X[0][1]+" l"+X[1][0]+","+X[1][1]+" "+X[2][0]+","+X[2][1]+" xe";U[2]=I&&/^(r|b)/i.test(Z.string())?parseFloat(g.browser.version,10)===8?2:1:0;ae.css({antialias:""+(ac.string().indexOf("center")>-1),left:U[0]-(U[2]*Number(Q==="x")),top:U[1]-(U[2]*Number(Q==="y")),width:S+I,height:aa+I}).each(function(af){var ag=g(this);ag[ag.prop?"prop":"attr"]({coordsize:(S+I)+" "+(aa+I),path:X,fillcolor:J.fill,filled:!!af,stroked:!!!af}).css({display:I||af?"block":"none"});if(!af&&I>0&&ag.html()===""){ag.html('<vml:stroke weight="'+(I*2)+'px" color="'+J.border+'" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:inline-block;" />')}})}if(V!==p){N.position(Z)}},position:function(V){var W=E.tip,R={},Q=Math.max(0,C.offset),S,U,T;if(C.corner===p||!W){return p}V=V||N.corner;S=V.precedance;U=A(V);T=[V.x,V.y];if(S==="x"){T.reverse()}g.each(T,function(aa,Z){var X,Y;if(Z==="center"){X=S==="y"?"left":"top";R[X]="50%";R["margin-"+X]=-Math.round(U[S==="y"?"width":"height"]/2)+Q}else{X=B(V,Z,i);Y=F(V);R[Z]=aa?B(V,Z):Q+(Y>X?Y:0)}});R[V[S]]-=U[S==="x"?"width":"height"];W.css({top:"",bottom:"",left:"",right:"",margin:""}).css(R);return R},destroy:function(){if(E.tip){E.tip.remove()}O.unbind(H)}});N.init()}n.tip=function(B){var A=B.plugins.tip;return"object"===typeof A?A:(B.plugins.tip=new u(B))};n.tip.initialize="render";n.tip.sanitize=function(A){var B=A.style,C;if(B&&"tip" in B){C=A.style.tip;if(typeof C!=="object"){A.style.tip={corner:C}}if(!(/string|boolean/i).test(typeof C.corner)){C.corner=i}if(typeof C.width!=="number"){delete C.width}if(typeof C.height!=="number"){delete C.height}if(typeof C.border!=="number"&&C.border!==i){delete C.border}if(typeof C.offset!=="number"){delete C.offset}}};g.extend(i,o.defaults,{style:{tip:{corner:i,mimic:p,width:6,height:6,border:i,offset:0}}});n.svg=function(E,I){var H=g(document),C=E[0],J={width:0,height:0,offset:{top:10000000000,left:10000000000}},D,A,F,G,B;if(C.getBBox&&C.parentNode){D=C.getBBox();A=C.getScreenCTM();F=C.farthestViewportElement||C;if(!F.createSVGPoint){return J}G=F.createSVGPoint();G.x=D.x;G.y=D.y;B=G.matrixTransform(A);J.offset.left=B.x;J.offset.top=B.y;G.x+=D.width;G.y+=D.height;B=G.matrixTransform(A);J.width=B.x-J.offset.left;J.height=B.y-J.offset.top;J.offset.left+=H.scrollLeft();J.offset.top+=H.scrollTop()}return J};function b(F){var H=this,J=F.options.show.modal,A=F.elements,I=A.tooltip,D="#qtip-overlay",B=".qtipmodal",C=B+F.id,G="is-modal-qtip",E;F.checks.modal={"^show.modal.(on|blur)$":function(){H.init();A.overlay.toggle(I.is(":visible"))}};g.extend(H,{init:function(){if(!J.on){return H}E=H.create();I.attr(G,i).unbind(B).unbind(C).bind("tooltipshow"+B+" tooltiphide"+B,function(L,K,M){H[L.type.replace("tooltip","")](L,M)}).bind("tooltipfocus"+B,function(L,K,M){E[0].style.zIndex=M-1}).bind("tooltipblur"+B,function(K){g("["+G+"]:visible").not(I).last().qtip("focus",K)});if(J.escape){g(j).unbind(C).bind("keydown"+C,function(K){if(K.keyCode===27&&I.hasClass(y)){F.hide(K)}})}if(J.blur){A.overlay.unbind(C).bind("click"+C,function(K){if(I.hasClass(y)){F.hide(K)}})}return H},create:function(){var K=g(D);if(K.length){A.overlay=K;return K}E=A.overlay=g("<div />",{id:D.substr(1),css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return p}}).appendTo(document.body);g(j).unbind(B).bind("resize"+B,function(){E.css({height:Math.max(g(j).height(),g(document).height()),width:Math.max(g(j).width(),g(document).width())})}).trigger("resize");return E},toggle:function(O,P,Q){if(O&&O.isDefaultPrevented()){return H}var N=J.effect,M=P?"show":"hide",L=g("["+G+"]:visible").not(I),K;if(!E){E=H.create()}if((E.is(":animated")&&!P)||(!P&&L.length)){return H}if(P){A.overlay.css("cursor",J.blur?"pointer":"")}E.stop(i,p);if(g.isFunction(N)){N.call(E,P)}else{if(N===p){E[M]()}else{E.fadeTo(parseInt(Q,10)||90,P?0.7:0,function(){if(!P){g(this).hide()}})}}return H},show:function(K,L){return H.toggle(K,i,L)},hide:function(K,L){return H.toggle(K,p,L)},destroy:function(){var K=E;if(K){K=g("["+G+"]").not(I).length<1;if(K){A.overlay.remove();g(j).unbind(B)}else{A.overlay.unbind(B+F.id)}}return I.removeAttr(G).unbind(B)}});H.init()}n.modal=function(B){var A=B.plugins.modal;return"object"===typeof A?A:(B.plugins.modal=new b(B))};n.modal.initialize="render";n.modal.sanitize=function(A){if(A.show){if(typeof A.show.modal!=="object"){A.show.modal={on:!!A.show.modal}}else{if(typeof A.show.modal.on==="undefined"){A.show.modal.on=i}}}};g.extend(i,o.defaults,{show:{modal:{on:p,effect:i,blur:i,escape:i}}});function z(D){var B=this,A=D.elements,E=A.tooltip,C=".bgiframe-"+D.id;g.extend(B,{init:function(){A.bgiframe=g('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>');A.bgiframe.appendTo(E);E.bind("tooltipmove"+C,B.adjust)},adjust:function(){var H=D.get("dimensions"),G=D.plugins.tip,I=A.tip,F,J;J=parseInt(E.css("border-left-width"),10)||0;J={left:-J,top:-J};if(G&&I){F=(G.corner.precedance==="x")?["width","left"]:["height","top"];J[F[1]]-=I[F[0]]()}A.bgiframe.css(J).css(H)},destroy:function(){A.bgiframe.remove();E.unbind(C)}});B.init()}n.bgiframe=function(C){var B=g.browser,A=C.plugins.bgiframe;if(g("select, object").length<1||!(B.msie&&B.version.charAt(0)==="6")){return p}return"object"===typeof A?A:(C.plugins.bgiframe=new z(C))};n.bgiframe.initialize="render"}(jQuery,window));
