").appendTo(p.tip)[0].getContext("2d").save():(t='',p.tip.html(t+t),e("*",p.tip).bind("click mousedown",function(e){e.stopPropagation()}))},update:function(t,n){var o,a,s,x,T,C=p.tip,k=C.children(),N=y.width,E=y.height,S=d.mimic,j=Math.round;t||(t=g.corner||c.corner),S===f?S=t:((S=new l.Corner(S)).precedance=t.precedance,"inherit"===S.x?S.x=t.x:"inherit"===S.y?S.y=t.y:S.x===S.y&&(S[t.precedance]=t[t.precedance])),o=S.precedance,"x"===t.precedance?function(){var e=y.width;y.width=y.height,y.height=e}():(y.width=d.width,y.height=d.height),p.tip.css({width:N=y.width,height:E=y.height}),c.detectColours(t),"transparent"!==v.border?(b=r(t,h,u),0===d.border&&b>0&&(v.fill=v.border),c.border=b=d.border!==u?d.border:b):c.border=b=0,s=function(e,t,n){var i=Math.ceil(t/2),o=Math.ceil(n/2),r={bottomright:[[0,0],[t,n],[t,0]],bottomleft:[[0,0],[t,0],[0,n]],topright:[[0,n],[t,0],[t,n]],topleft:[[0,0],[0,n],[t,n]],topcenter:[[0,n],[i,0],[t,n]],bottomcenter:[[0,0],[t,0],[i,n]],rightcenter:[[0,0],[t,o],[0,n]],leftcenter:[[t,0],[t,n],[0,o]]};return r.lefttop=r.bottomright,r.righttop=r.bottomleft,r.leftbottom=r.topright,r.rightbottom=r.topleft,r[e.string()]}(S,N,E),c.size=T=i(t),C.css(T),x="y"===t.precedance?[j("left"===S.x?b:"right"===S.x?T.width-N-b:(T.width-N)/2),j("top"===S.y?T.height-E:0)]:[j("left"===S.x?T.width-N:0),j("top"===S.y?b:"bottom"===S.y?T.height-E-b:(T.height-E)/2)],w?(k.attr(T),(a=k[0].getContext("2d")).restore(),a.save(),a.clearRect(0,0,3e3,3e3),a.fillStyle=v.fill,a.strokeStyle=v.border,a.lineWidth=2*b,a.lineJoin="miter",a.miterLimit=100,a.translate(x[0],x[1]),a.beginPath(),a.moveTo(s[0][0],s[0][1]),a.lineTo(s[1][0],s[1][1]),a.lineTo(s[2][0],s[2][1]),a.closePath(),b&&("border-box"===m.css("background-clip")&&(a.strokeStyle=v.fill,a.stroke()),a.strokeStyle=v.border,a.stroke()),a.fill()):(s="m"+s[0][0]+","+s[0][1]+" l"+s[1][0]+","+s[1][1]+" "+s[2][0]+","+s[2][1]+" xe",x[2]=b&&/^(r|b)/i.test(t.string())?8===parseFloat(e.browser.version,10)?2:1:0,k.css({antialias:""+(S.string().indexOf("center")>-1),left:x[0]-x[2]*Number("x"===o),top:x[1]-x[2]*Number("y"===o),width:N+b,height:E+b}).each(function(t){var n=e(this);n[n.prop?"prop":"attr"]({coordsize:N+b+" "+(E+b),path:s,fillcolor:v.fill,filled:!!t,stroked:!t}).css({display:b||t?"block":"none"}),!t&&""===n.html()&&n.html('')})),n!==f&&c.position(t)},position:function(t){var n,a,s,l=p.tip,h={},m=Math.max(0,d.offset);return d.corner!==f&&l?(t=t||c.corner,n=t.precedance,a=i(t),s=[t.x,t.y],"x"===n&&s.reverse(),e.each(s,function(e,i){var s,l;"center"===i?(h[s="y"===n?"left":"top"]="50%",h["margin-"+s]=-Math.round(a["y"===n?"width":"height"]/2)+m):(s=r(t,i,u),l=o(t),h[i]=e?b?r(t,i):0:m+(l>s?l:-s))}),h[t[n]]-=a["x"===n?"width":"height"],l.css({top:"",bottom:"",left:"",right:"",margin:""}).css(h),h):f},destroy:function(){p.tip&&p.tip.remove(),p.tip=!1,m.unbind(x)}}),c.init()}function n(t,n){var a,c,d,p,m,g=e(this),y=e(document.body),v=this===document?y:g,b=g.metadata?g.metadata(n.metadata):h,x="html5"===n.metadata.type&&b?b[n.metadata.name]:h,w=g.data(n.metadata.name||"qtipopts");try{w="string"==typeof w?new Function("return "+w)():w}catch(e){r("Unable to parse HTML5 attribute data: "+w)}if(c=(p=e.extend(u,{},s.defaults,n,"object"==typeof w?o(w):h,o(x||b))).position,p.id=t,"boolean"==typeof p.content.text){if(d=g.attr(p.content.attr),p.content.attr===f||!d)return r("Unable to locate content for tooltip! Aborting render of tooltip on element: ",g),f;p.content.text=d}if(c.container.length||(c.container=y),c.target===f&&(c.target=v),p.show.target===f&&(p.show.target=v),p.show.solo===u&&(p.show.solo=c.container.closest("body")),p.hide.target===f&&(p.hide.target=v),p.position.viewport===u&&(p.position.viewport=c.container),c.container=c.container.eq(0),c.at=new l.Corner(c.at),c.my=new l.Corner(c.my),e.data(this,"qtip"))if(p.overwrite)g.qtip("destroy");else if(p.overwrite===f)return f;return p.suppress&&(m=e.attr(this,"title"))&&e(this).removeAttr("title").attr(k,m),a=new i(g,p,t,!!d),e.data(this,"qtip",a),g.bind("remove.qtip-"+t+" removeqtip.qtip-"+t,function(){a.destroy()}),a}function i(t,n,i,r){function C(){var t=[n.show.target[0],n.hide.target[0],q.rendered&&O.tooltip[0],n.position.container[0],n.position.viewport[0],window,document];q.rendered?e([]).pushStack(e.grep(t,function(e){return"object"==typeof e})).unbind(z):n.show.target.unbind(z+"-create")}function N(){function o(e){q.rendered&&B[0].offsetWidth>0&&q.reposition(e)}function r(e){if(B.hasClass(y))return f;clearTimeout(q.timers.inactive),q.timers.inactive=setTimeout(function(){q.hide(e)},n.hide.inactive)}function a(t){if(B.hasClass(y)||W||_)return f;var i=e(t.relatedTarget||t.target),o=i.closest(v)[0]===B[0],r=i[0]===h.show[0];if(clearTimeout(q.timers.show),clearTimeout(q.timers.hide),"mouse"===d.target&&o||n.hide.fixed&&/mouse(out|leave|move)/.test(t.type)&&(o||r))try{t.preventDefault(),t.stopImmediatePropagation()}catch(e){}else n.hide.delay>0?q.timers.hide=setTimeout(function(){q.hide(t)},n.hide.delay):q.hide(t)}function l(e){if(B.hasClass(y))return f;clearTimeout(q.timers.show),clearTimeout(q.timers.hide);var t=function(){q.toggle(u,e)};n.show.delay>0?q.timers.show=setTimeout(t,n.show.delay):t()}var d=n.position,h={show:n.show.target,hide:n.hide.target,viewport:e(d.viewport),document:e(document),body:e(document.body),window:e(window)},p={show:e.trim(""+n.show.event).split(" "),hide:e.trim(""+n.hide.event).split(" ")},m=e.browser.msie&&6===parseInt(e.browser.version,10);B.bind("mouseenter"+z+" mouseleave"+z,function(e){var t="mouseenter"===e.type;t&&q.focus(e),B.toggleClass(w,t)}),n.hide.fixed&&(h.hide=h.hide.add(B),B.bind("mouseover"+z,function(){B.hasClass(y)||clearTimeout(q.timers.hide)})),/mouse(out|leave)/i.test(n.hide.event)?"window"===n.hide.leave&&h.window.bind("mouseout"+z+" blur"+z,function(e){/select|option/.test(e.target)&&!e.relatedTarget&&q.hide(e)}):/mouse(over|enter)/i.test(n.show.event)&&h.hide.bind("mouseleave"+z,function(e){clearTimeout(q.timers.show)}),(""+n.hide.event).indexOf("unfocus")>-1&&d.container.closest("html").bind("mousedown"+z,function(n){var i=e(n.target),o=(q.rendered&&!B.hasClass(y)&&B[0].offsetWidth,i.parents(v).filter(B[0]).length>0);i[0]!==t[0]&&i[0]!==B[0]&&!o&&!t.has(i[0]).length&&!i.attr("disabled")&&q.hide(n)}),"number"==typeof n.hide.inactive&&(h.show.bind("qtip-"+i+"-inactive",r),e.each(s.inactiveEvents,function(e,t){h.hide.add(O.tooltip).bind(t+z+"-inactive",r)})),e.each(p.hide,function(t,n){var i=e.inArray(n,p.show),o=e(h.hide);i>-1&&o.add(h.show).length===o.length||"unfocus"===n?(h.show.bind(n+z,function(e){B[0].offsetWidth>0?a(e):l(e)}),delete p.show[i]):h.hide.bind(n+z,a)}),e.each(p.show,function(e,t){h.show.bind(t+z,l)}),"number"==typeof n.hide.distance&&h.show.add(B).bind("mousemove"+z,function(e){var t=I.origin||{},i=n.hide.distance,o=Math.abs;(o(e.pageX-t.pageX)>=i||o(e.pageY-t.pageY)>=i)&&q.hide(e)}),"mouse"===d.target&&(h.show.bind("mousemove"+z,function(e){c={pageX:e.pageX,pageY:e.pageY,type:"mousemove"}}),d.adjust.mouse&&(n.hide.event&&(B.bind("mouseleave"+z,function(e){(e.relatedTarget||e.target)!==h.show[0]&&q.hide(e)}),O.target.bind("mouseenter"+z+" mouseleave"+z,function(e){I.onTarget="mouseenter"===e.type})),h.document.bind("mousemove"+z,function(e){q.rendered&&I.onTarget&&!B.hasClass(y)&&B[0].offsetWidth>0&&q.reposition(e||c)}))),(d.adjust.resize||h.viewport.length)&&(e.event.special.resize?h.viewport:h.window).bind("resize"+z,o),(h.viewport.length||m&&"fixed"===B.css("position"))&&h.viewport.bind("scroll"+z,o)}function E(n,i){function o(t){function n(n){n&&(delete s[n.src],clearTimeout(q.timers.img[n.src]),e(n).unbind(z)),e.isEmptyObject(s)&&(q.redraw(),i!==f&&q.reposition(I.event),t())}var o,s={};if(0===(o=r.find("img[src]:not([height]):not([width])")).length)return n();o.each(function(t,i){if(s[i.src]===a){var o=0;(function e(){if(i.height||i.width||o>3)return n(i);o+=1,q.timers.img[i.src]=setTimeout(e,700)})(),e(i).bind("error"+z+" load"+z,function(){n(this)}),s[i.src]=i}})}var r=O.content;return q.rendered&&n?(e.isFunction(n)&&(n=n.call(t,I.event,q)||""),n.jquery&&n.length>0?r.empty().append(n.css({display:"block"})):r.html(n),q.rendered<0?B.queue("fx",o):(_=0,o(e.noop)),q):f}function S(n,i){var o=O.title;return q.rendered&&n?(e.isFunction(n)&&(n=n.call(t,I.event,q)),n===f||!n&&""!==n?D(f):(n.jquery&&n.length>0?o.empty().append(n.css({display:"block"})):o.html(n),q.redraw(),void(i!==f&&q.rendered&&B[0].offsetWidth>0&&q.reposition(I.event)))):f}function j(e){var t=O.button,n=O.title;if(!q.rendered)return f;e?(n||A(),L()):t.remove()}function A(){var t=P+"-title";O.titlebar&&D(),O.titlebar=e("