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

