",{id:t,class:m+"-title","aria-atomic":u})).insertBefore(O.content).delegate(".ui-tooltip-close","mousedown keydown mouseup keyup mouseout",function(t){e(this).toggleClass("ui-state-active ui-state-focus","down"===t.type.substr(-4))}).delegate(".ui-tooltip-close","mouseover mouseout",function(t){e(this).toggleClass("ui-state-hover","mouseover"===t.type)}),n.content.title.button?L():q.rendered&&q.redraw()}function L(){var t=n.content.title.button,i="string"==typeof t?t:"Close tooltip";O.button&&O.button.remove(),t.jquery?O.button=t:O.button=e("",{class:"ui-state-default ui-tooltip-close "+(n.style.widget?"":m+"-icon"),title:i,"aria-label":i}).prepend(e("",{class:"ui-icon ui-icon-close",html:"×"})),O.button.appendTo(O.titlebar).attr("role","button").click(function(e){return B.hasClass(y)||q.hide(e),f}),q.redraw()}function D(e){O.title&&(O.titlebar.remove(),O.titlebar=O.title=O.button=h,e!==f&&q.reposition())}function F(){var e=n.style.widget;B.toggleClass(g,e).toggleClass(b,n.style.def&&!e),O.content.toggleClass(g+"-content",e),O.titlebar&&O.titlebar.toggleClass(g+"-header",e),O.button&&O.button.toggleClass(m+"-icon",!e)}function M(e){for(var t,i=0,o=n,r=e.split(".");o=o[r[i++]];)i0&&!e("#"+r).length&&(B[0].id=r,O.content[0].id=r+"-content",O.title[0].id=r+"-title")},"^content.text$":function(e,t,n){E(n)},"^content.title.text$":function(e,t,n){if(!n)return D();!O.title&&n&&A(),S(n)},"^content.title.button$":function(e,t,n){j(n)},"^position.(my|at)$":function(e,t,n){"string"==typeof n&&(e[t]=new l.Corner(n))},"^position.container$":function(e,t,n){q.rendered&&B.appendTo(n)},"^show.ready$":function(){q.rendered?q.toggle(u):q.render(1)},"^style.classes$":function(e,t,n){B.attr("class",m+" qtip ui-helper-reset "+n)},"^style.widget|content.title":F,"^events.(render|show|move|hide|focus|blur)$":function(t,n,i){B[(e.isFunction(i)?"":"un")+"bind"]("tooltip"+n,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var e=n.position;B.attr("tracking","mouse"===e.target&&e.adjust.mouse),C(),N()}},e.extend(q,{render:function(i){if(q.rendered)return q;var o=n.content.text,r=n.content.title.text,a=n.position,s=e.Event("tooltiprender");return e.attr(t[0],"aria-describedby",P),B=O.tooltip=e("