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