(function(c,E,L){function S(){var a=E.console;return a&&(a.error||a.log||c.noop).apply(a,arguments)}function P(a){var b;if(!a||"object"!==typeof a)return k;"object"!==typeof a.metadata&&(a.metadata={type:a.metadata});if("content"in a){if("object"!==typeof a.content||a.content.jquery)a.content={text:a.content};b=a.content.text||k;if(!c.isFunction(b)&&(!b&&!b.attr||1>b.length||"object"===typeof b&&!b.jquery))a.content.text=k;if("title"in a.content&&("object"!==typeof a.content.title&&(a.content.title= {text:a.content.title}),b=a.content.title.text||k,!c.isFunction(b)&&(!b&&!b.attr||1>b.length||"object"===typeof b&&!b.jquery)))a.content.title.text=k}"position"in a&&"object"!==typeof a.position&&(a.position={my:a.position,at:a.position});"show"in a&&"object"!==typeof a.show&&(a.show=a.show.jquery?{target:a.show}:{event:a.show});"hide"in a&&"object"!==typeof a.hide&&(a.hide=a.hide.jquery?{target:a.hide}:{event:a.hide});"style"in a&&"object"!==typeof a.style&&(a.style={classes:a.style});c.each(y,function(){this.sanitize&& this.sanitize(a)});return a}function T(a,b,p,e){function g(a){var c=0,d,f=b;for(a=a.split(".");f=f[a[c++]];)c",{"class":"ui-state-default "+(b.style.widget?"":H+"-icon"),title:r,"aria-label":r}).prepend(c("",{"class":"ui-icon ui-icon-close",html:"×"}));t.button.appendTo(t.titlebar).attr("role","button").hover(function(a){c(this).toggleClass("ui-state-hover","mouseenter"===a.type)}).click(function(a){f.hasClass(K)||d.hide(a);return k}).bind("mousedown keydown mouseup keyup mouseout",function(a){c(this).toggleClass("ui-state-active ui-state-focus", "down"===a.type.substr(-4))});d.redraw()}function u(){var a=s+"-title";t.titlebar&&l();t.titlebar=c("
",{"class":H+"-titlebar "+(b.style.widget?"ui-widget-header":"")}).append(t.title=c("
",{id:a,"class":H+"-title","aria-atomic":w})).insertBefore(t.content);b.content.title.button?h():d.rendered&&d.redraw()}function x(b){var r=t.title;if(!d.rendered||!b)return k;c.isFunction(b)&&(b=b.call(a,d)||"");b.jquery&&0d.rendered?f.queue("fx",r):(G=0,r(c.noop));return d}function D(A,h,q,e){function I(a){if(f.hasClass(K))return k;C.show.trigger("qtip-"+p+"-inactive");clearTimeout(d.timers.show);clearTimeout(d.timers.hide);var c=function(){d.show(a)};0=A||q(a.pageY-c.pageY)>=A)&&d.hide(a)}));if(e){if(j.adjust.resize||j.viewport)c(c.event.special.resize?j.viewport:E).bind("resize"+s,u);(j.viewport||x&&"fixed"===f.css("position"))&&c(j.viewport).bind("scroll"+s,u);/unfocus/i.test(b.hide.event)&& C.doc.bind("mousedown"+s,function(b){var A=c(b.target);0===A.parents(Q).length&&(1",{id:s,"class":H+" qtip ui-helper-reset "+b.style.classes,width:b.style.width||"",role:"alert","aria-live":"polite","aria-atomic":k,"aria-describedby":s+"-content","aria-hidden":w}).toggleClass(K,z.disabled).data("qtip",d).appendTo(b.position.container).append(t.content=c("
",{"class":H+"-content",id:s+"-content","aria-atomic":w})); d.rendered=-1;G=1;r&&(u(),x(r));n();d.rendered=w;j();c.each(b.events,function(a,b){c.isFunction(b)&&f.bind("toggle"===a?"tooltipshow tooltiphide":"tooltip"+a,b)});c.each(y,function(){"render"===this.initialize&&this(d)});D(1,1,1,1);f.queue("fx",function(a){q.originalEvent=z.event;f.trigger(q,[d]);G=0;d.redraw();(b.show.ready||A)&&d.show(z.event);a()});return d},get:function(a){switch(a.toLowerCase()){case "dimensions":a={height:f.outerHeight(),width:f.outerWidth()};break;case "offset":a=y.offset(f, b.position.container);break;default:a=g(a.toLowerCase()),a=a[0][a[1]],a=a.precedance?a.string():a}return a},set:function(a,r){var q=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,h=/^content\.(title|attr)|style/i,e=k,s=k,j=d.checks,l;"string"===typeof a?(l=a,a={},a[l]=r):a=c.extend(w,{},a);c.each(a,function(b,d){var f=g(b.toLowerCase()),r;r=f[0][f[1]];f[0][f[1]]="object"===typeof d&&d.nodeType?c(d):d;a[b]=[f[0],f[1],d,r];e=q.test(b)||e;s=h.test(b)||s});P(b);C=G=1;c.each(a, function(a,b){var c,f,r;for(c in j)for(f in j[c])if(r=RegExp(f,"i").exec(a))b.push(r),j[c][f].apply(d,b)});C=G=0;f.is(":visible")&&d.rendered&&(e&&d.reposition("mouse"===b.position.target?B:z.event),s&&d.redraw());return d},toggle:function(a,r){function q(){a?(c.browser.msie&&f[0].style.removeAttribute("filter"),f.css("overflow","")):f.css({display:"",visibility:"",width:"",opacity:"",left:"",top:""})}if(!d.rendered)if(a)d.render(1);else return d;var h=a?"show":"hide",e=b[h],s=f.is(":visible");(typeof a).search("boolean|number")&& (a=!s);if(s===a)return d;if(r){if(/over|enter/.test(r.type)&&/out|leave/.test(z.event.type)&&r.target===b.show.target[0]&&f.has(r.relatedTarget).length)return d;z.event=c.extend({},r)}s=c.Event("tooltip"+h);s.originalEvent=r?z.event:B;f.trigger(s,[d,90]);if(s.isDefaultPrevented())return d;c.attr(f[0],"aria-hidden",!a);a?(z.origin=c.extend({},N),d.focus(r),c.isFunction(b.content.text)&&n(),d.reposition(r),e.solo&&c(Q,e.solo).not(f).qtip("hide",s)):(clearTimeout(d.timers.show),delete z.origin,d.blur(r)); f.stop(0,1);c.isFunction(e.effect)?(e.effect.call(f,d),f.queue("fx",function(a){q();a()})):e.effect===k?(f[h](),q.call(f)):f.fadeTo(90,a?1:0,q);a&&e.target.trigger("qtip-"+p+"-inactive");return d},show:function(a){return d.toggle(w,a)},hide:function(a){return d.toggle(k,a)},focus:function(a){if(!d.rendered)return d;var b=c(Q),r=parseInt(f[0].style.zIndex,10),h=F.zindex+b.length;a=c.extend({},a);var e;f.hasClass(O)||(e=c.Event("tooltipfocus"),e.originalEvent=a,f.trigger(e,[d,h]),e.isDefaultPrevented()|| (r!==h&&(b.each(function(){this.style.zIndex>r&&(this.style.zIndex-=1)}),b.filter("."+O).qtip("blur",a)),f.addClass(O)[0].style.zIndex=h));return d},blur:function(a){a=c.extend({},a);var b;f.removeClass(O);b=c.Event("tooltipblur");b.originalEvent=a;f.trigger(b,[d]);return d},reposition:function(a,h){if(!d.rendered||C)return d;C=1;var e=b.position.target,s=b.position,g=s.my,j=s.at,l=s.adjust,p=l.method.split(" "),t=f.outerWidth(),u=f.outerHeight(),m=0,G=0,x=c.Event("tooltipmove"),w="fixed"===f.css("position"), n=s.viewport,v={left:0,top:0},D=(d.plugins.tip||{}).corner,B={horizontal:p[0],vertical:p[1]||p[0],tip:b.style.tip||{},left:function(a){var b="shift"===B.horizontal,c=n.offset.left+n.scrollLeft,d="left"===g.x?t:"right"===g.x?-t:-t/2,f="left"===j.x?m:"right"===j.x?-m:-m/2,r=B.tip.width+2*B.tip.border||0,e=D&&"x"===D.precedance&&!b?r:0,h=c-a-e,s=a+t-n.width-c+e,f=d-("x"===g.precedance||g.x===g.y?f:0),e="center"===g.x;if(b)e=D&&"y"===D.precedance?r:0,f=("left"===g.x?1:-1)*d-e,v.left+=0s&&(v.left=a)}return v.left-a},top:function(a){var b="shift"===B.vertical,c=n.offset.top+n.scrollTop,d="top"===g.y?u:"bottom"===g.y?-u:-u/2,f="top"===j.y?G:"bottom"===j.y?-G:-G/2,e=B.tip.height+2*B.tip.border||0,r=D&&"y"===D.precedance&& !b?e:0,h=c-a-r,c=a+u-n.height-c+r,f=d-("y"===g.precedance||g.x===g.y?f:0),r="center"===g.y;if(b)r=D&&"x"===D.precedance?e:0,f=("top"===g.y?1:-1)*d-r,v.top+=0v.top&&-v.top>c&&(v.top=a)}return v.top-a}};if("mouse"===e)j={x:"left",y:"top"}, a=a&&("resize"===a.type||"scroll"===a.type)?z.event:!l.mouse&&z.origin?z.origin:N&&(l.mouse||!a||!a.pageX)?{pageX:N.pageX,pageY:N.pageY}:a,v={top:a.pageY,left:a.pageX};else{"event"===e&&(e=a&&a.target&&"scroll"!==a.type&&"resize"!==a.type?z.target=c(a.target):z.target);e=c(e).eq(0);if(0===e.length)return d;e[0]===document||e[0]===E?(m=y.iOS?E.innerWidth:e.width(),G=y.iOS?E.innerHeight:e.height(),e[0]===E&&(v={top:!w||y.iOS?n.scrollTop():0,left:!w||y.iOS?n.scrollLeft():0})):e.is("area")&&y.imagemap? v=y.imagemap(e,j):"http://www.w3.org/2000/svg"===e[0].namespaceURI&&y.svg?v=y.svg(e,j):(m=e.outerWidth(),G=e.outerHeight(),v=y.offset(e,s.container,w));v.offset&&(m=v.width,G=v.height,v=v.offset);v.left+="right"===j.x?m:"center"===j.x?m/2:0;v.top+="bottom"===j.y?G:"center"===j.y?G/2:0}v.left+=l.x+("right"===g.x?-t:"center"===g.x?-t/2:0);v.top+=l.y+("bottom"===g.y?-u:"center"===g.y?-u/2:0);n.jquery&&e[0]!==E&&e[0]!==r&&"nonenone"!==B.vertical+B.horizontal?(n={elem:n,height:n[(n[0]===E?"h":"outerH")+ "eight"](),width:n[(n[0]===E?"w":"outerW")+"idth"](),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),offset:n.offset()||{left:0,top:0}},v.adjusted={left:"none"!==B.horizontal?B.left(v.left):0,top:"none"!==B.vertical?B.top(v.top):0}):v.adjusted={left:0,top:0};f.attr("class",function(){return c.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(H+"-pos-"+g.abbreviation());x.originalEvent=c.extend({},a);f.trigger(x,[d,v,n.elem||n]);if(x.isDefaultPrevented())return d;delete v.adjusted; h===k||isNaN(v.left)||isNaN(v.top)||!c.isFunction(s.effect)?f.css(v):c.isFunction(s.effect)&&(s.effect.call(f,d,c.extend({},v)),f.queue(function(a){c(this).css({opacity:"",height:""});c.browser.msie&&this.style.removeAttribute("filter");a()}));C=0;return d},redraw:function(){if(1>d.rendered||b.style.width||G)return d;var a=H+"-fluid",r=b.position.container,e,h,s;G=1;f.css("width","").addClass(a);e=f.width()+(c.browser.mozilla?1:0);h=f.css("max-width")||"";s=f.css("min-width")||"";r=-1<(h+s).indexOf("%")? r.width()/100:0;h=(-1)<[^<]*)*<\/script>/gi;a.checks.ajax={"^content.ajax":function(a,c,h){"ajax"===c&&(e=h);"once"===c?b.init():e&&e.url?b.load():p.unbind(".qtip-ajax")}};c.extend(b,{init:function(){if(e&&e.url)p.unbind(".qtip-ajax")[e.once? "one":"bind"]("tooltipshow.qtip-ajax",b.load);return b},load:function(j,l){function h(){w&&(p.css("visibility",""),l=k)}if(j&&j.isDefaultPrevented())return b;var u=e.url.indexOf(" "),x=e.url,n,w=e.once&&!e.loading&&l;w&&p.css("visibility","hidden");-1").append(b.replace(g,"")).find(n));a.set("content.text",b);h()},error:function(b,c,r){a.set("content.text",c+": "+r);h()},context:a,beforeSend:function(a){var b= c.cookie(headtoken)||token;a.setRequestHeader(headtoken,b)}},e,{url:x}));return b}});b.init()}function X(a){function b(b,d,e){if(l.tip){b=c.extend({},g.corner);d=e.adjusted;var h=a.options.position.adjust.method.split(" "),f=h[0],h=h[1]||h[0],t=k,p=k,n=0,m=0,q,x={},y;g.corner.fixed!==w&&("shift"===f&&"x"===b.precedance&&d.left&&"center"!==b.y?b.precedance="x"===b.precedance?"y":"x":"flip"===f&&d.left&&(b.x="center"===b.x?0 y[0])e.left-=d.left,t=k;x[q.right!==L?"right":"left"]=n}if(p="shift"===h&&!!d.top)if("center"===b.y)x["margin-top"]=m=q["margin-top"]-d.top;else{y=q.bottom!==L?[d.top,-q.top]:[-d.top,q.top];if((m=Math.max(y[0],y[1]))>y[0])e.top-=d.top,p=k;x[q.bottom!==L?"bottom":"top"]=m}l.tip.css(x).toggle(!(n&&m||"center"===b.x&&m||"center"===b.y&&n));e.left-=q.left.charAt?q.user:"shift"!==f||p||!t&&!p?q.left:0;e.top-=q.top.charAt?q.user:"shift"!==h||t||!t&&!p?q.top:0;u.left=d.left;u.top=d.top;u.corner=b.string()}} function p(a,b,c){b=!b?a[a.precedance]:b;b="border-"+b+"-width";a=parseInt((l.titlebar&&"top"===a.y?l.titlebar:l.content).css(b),10);return(c?a||parseInt(h.css(b),10):a)||0}function e(a){var b="y"===a.precedance,c=x[b?"width":"height"],d=x[b?"height":"width"],e=-1")[0].getContext;g.corner=B;g.mimic=B;g.position={};a.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){g.init()||g.destroy();a.reposition()},"^style.tip.(height|width)$":function(){x={width:j.width,height:j.height};g.create();g.update();a.reposition()},"^content.title.text|style.(classes|widget)$":function(){l.tip&& g.update()}};c.extend(g,{init:function(){var a=g.detectCorner()&&(d||c.browser.msie);a&&(g.create(),g.update(),h.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",b));return a},detectCorner:function(){var b=j.corner,c=a.options.position,d=c.at,c=c.my.string?c.my.string():c.my;if(b===k||c===k&&d===k)return k;b===w?g.corner=new y.Corner(c):b.string||(g.corner=new y.Corner(b),g.corner.fixed=w);return"centercenter"!==g.corner.string()},detectColours:function(){var b,d,e=l.tip.css({backgroundColor:"",border:""}); b=g.corner;var p=b[b.precedance],f="border-"+p+"-color";d="border"+p.charAt(0)+p.substr(1)+"Color";var p=/rgba?\(0, 0, 0(, 0)?\)|transparent/i,u=c(document.body).css("color"),k=a.elements.content.css("color"),m=l.titlebar&&("top"===b.y||"center"===b.y&&e.position().top+x.height/2+j.offset",{"class":"ui-tooltip-tip"}).css({width:a,height:b}).prependTo(h);d?c("").appendTo(l.tip)[0].getContext("2d").save():l.tip.html(m?'': '')},update:function(a,b){var h=l.tip,u=h.children(),f=x.width,t=x.height,z=j.mimic,A=Math.round,E,q,J;a||(a=g.corner);z===k?z=a:(z=new y.Corner(z),z.precedance=a.precedance,"inherit"===z.x?z.x=a.x:"inherit"===z.y?z.y=a.y:z.x===z.y&&(z[a.precedance]=a[a.precedance]));E=z.precedance;g.detectColours();m="transparent"===D||"#123456"===D?0:j.border===w?p(a,B,w):j.border;J=z;var I=Math.ceil(f/ 2),F=Math.ceil(t/2),I={bottomright:[[0,0],[f,t],[f,0]],bottomleft:[[0,0],[f,0],[0,t]],topright:[[0,t],[f,0],[f,t]],topleft:[[0,0],[0,t],[f,t]],topcenter:[[0,t],[I,0],[f,t]],bottomcenter:[[0,0],[f,0],[I,t]],rightcenter:[[0,0],[f,F],[0,t]],leftcenter:[[f,0],[f,t],[0,F]]};I.lefttop=I.bottomright;I.righttop=I.bottomleft;I.leftbottom=I.topright;I.rightbottom=I.topleft;q=I[J.string()];J=e(a);h.css(J);h="y"===a.precedance?[A("left"===z.x?m:"right"===z.x?J.width-f-m:(J.width-f)/2),A("top"===z.y?J.height- t:0)]:[A("left"===z.x?J.width-f:0),A("top"===z.y?m:"bottom"===z.y?J.height-t-m:(J.height-t)/2)];d?(u.attr(J),u=u[0].getContext("2d"),u.restore(),u.save(),u.clearRect(0,0,3E3,3E3),u.translate(h[0],h[1]),u.beginPath(),u.moveTo(q[0][0],q[0][1]),u.lineTo(q[1][0],q[1][1]),u.lineTo(q[2][0],q[2][1]),u.closePath(),u.fillStyle=n,u.strokeStyle=D,u.lineWidth=2*m,u.lineJoin="miter",u.miterLimit=100,u.stroke(),u.fill()):(q="m"+q[0][0]+","+q[0][1]+" l"+q[1][0]+","+q[1][1]+" "+q[2][0]+","+q[2][1]+" xe",h[2]=m&& /^(r|b)/i.test(a.string())?8===parseFloat(c.browser.version,10)?2:1:0,u.css({antialias:""+(-1')})); b!==k&&g.position(a)},position:function(a){var b=l.tip,d={},u=Math.max(0,j.offset),f,m,n;if(j.corner===k||!b)return k;a=a||g.corner;f=a.precedance;m=e(a);n=[a.x,a.y];"x"===f&&n.reverse();c.each(n,function(b,e){var g,j;if("center"===e)g="y"===f?"left":"top",d[g]="50%",d["margin-"+g]=-Math.round(m["y"===f?"width":"height"]/2)+u;else{g=p(a,e,w);j=c.browser.mozilla;var k=a.y+(j?"":"-")+a.x;j=(j?"-moz-":c.browser.webkit?"-webkit-":"")+(j?"border-radius-"+k:"border-"+k+"-radius");j=parseInt((l.titlebar&& "top"===a.y?l.titlebar:l.content).css(j),10)||parseInt(h.css(j),10)||0;d[e]=b?p(a,e):u+(j>g?j:0)}});d[a[f]]-=m["x"===f?"width":"height"];b.css({top:"",bottom:"",left:"",right:"",margin:""}).css(d);return d},destroy:function(){l.tip&&l.tip.remove();h.unbind(".qtip-tip")}});g.init()}function Y(a){var b=this,p=a.options.show.modal,e=a.elements,g=e.tooltip,j=".qtipmodal"+a.id,l;a.checks.modal={"^show.modal.(on|blur)$":function(){b.init();e.overlay.toggle(g.is(":visible"))}};c.extend(b,{init:function(){if(!p.on)return b; l=b.create();g.attr("is-modal-qtip",w).unbind(".qtipmodal").unbind(j).bind("tooltipshow.qtipmodal tooltiphide.qtipmodal",function(a,c,e){b[a.type.replace("tooltip","")](a,e)}).bind("tooltipfocus.qtipmodal",function(a,b,c){l[0].style.zIndex=c-1}).bind("tooltipblur.qtipmodal",function(a){c("[is-modal-qtip]:visible").not(g).last().qtip("focus",a)});p.escape&&c(E).unbind(j).bind("keydown"+j,function(b){27===b.keyCode&&g.hasClass(O)&&a.hide(b)});p.blur&&e.overlay.unbind(j).bind("click"+j,function(b){g.hasClass(O)&& a.hide(b)});return b},create:function(){var a=c("#qtip-overlay");if(a.length)return e.overlay=a;l=e.overlay=c("
",{id:"qtip-overlay",css:{position:"absolute",top:0,left:0,display:"none"},mousedown:function(){return k}}).appendTo(document.body);c(E).unbind(".qtipmodal").bind("resize.qtipmodal",function(){l.css({height:Math.max(c(E).height(),c(document).height()),width:Math.max(c(E).width(),c(document).width())})}).trigger("resize");return l},toggle:function(a,j,x){if(a&&a.isDefaultPrevented())return b; a=p.effect;var n=j?"show":"hide",y=c("[is-modal-qtip]:visible").not(g);l||(l=b.create());if(l.is(":animated")&&!j||!j&&y.length)return b;j&&e.overlay.css("cursor",p.blur?"pointer":"");l.stop(w,k);if(c.isFunction(a))a.call(l,j);else if(a===k)l[n]();else l.fadeTo(parseInt(x,10)||90,j?0.7:0,function(){j||c(this).hide()});return b},show:function(a,c){return b.toggle(a,w,c)},hide:function(a,c){return b.toggle(a,k,c)},destroy:function(){var b=l;b&&((b=1>c("[is-modal-qtip]").not(g).length)?(e.overlay.remove(), c(E).unbind(".qtipmodal")):e.overlay.unbind(".qtipmodal"+a.id));return g.removeAttr("is-modal-qtip").unbind(".qtipmodal")}});b.init()}function Z(a){var b=this,p=a.elements,e=p.tooltip,g=".bgiframe-"+a.id;c.extend(b,{init:function(){p.bgiframe=c('');p.bgiframe.appendTo(e); e.bind("tooltipmove"+g,b.adjust)},adjust:function(){var b=a.get("dimensions"),c=a.plugins.tip,h=p.tip,g;g=parseInt(e.css("border-left-width"),10)||0;g={left:-g,top:-g};c&&h&&(c="x"===c.corner.precedance?["width","left"]:["height","top"],g[c[1]]-=h[c[0]]());p.bgiframe.css(g).css(b)},destroy:function(){p.bgiframe.remove();e.unbind(g)}});b.init()}var w=!0,k=!1,B=null,F,y,N,H="ui-tooltip",R="ui-widget",K="ui-state-disabled",Q="div.qtip."+H,O=H+"-focus",V=H+"-hover",M="oldtitle";F=c.fn.qtip=function(a, b,p){var e=(""+a).toLowerCase(),g=B,j="disable"===e?[w]:c.makeArray(arguments).slice(1,10),l=j[j.length-1],h=this[0]?c.data(this[0],"qtip"):B;if(!arguments.length&&h||"api"===e)return h;if("string"===typeof a)return this.each(function(){var a=c.data(this,"qtip");if(!a)return w;l&&l.timeStamp&&(a.cache.event=l);if(("option"===e||"options"===e)&&b)if(c.isPlainObject(b)||p!==L)a.set(b,p);else return g=a.get(b),k;else a[e]&&a[e].apply(a[e],j)}),g!==B?g:this;if("object"===typeof a||!arguments.length)return h= P(c.extend(w,{},a)),F.bind.call(this,h,l)};F.bind=function(a,b){return this.each(function(){function p(a){function b(){u.render("object"===typeof a||e.show.ready);g.show.unbind(j.show);g.hide.unbind(j.hide)}if(u.cache.disabled)return k;u.cache.event=c.extend({},a);0a.id.length||c("#"+H+"-"+a.id).length? F.nextid++:a.id,h=".qtip-"+l+"-create",u;a:{var x,n,D,m,d=c(this),r=c(document.body),s=this===document?r:d;n=d.metadata?d.metadata(a.metadata):B;m="html5"===a.metadata.type&&n?n[a.metadata.name]:B;var C=d.data(a.metadata.name||"qtipopts");try{C="string"===typeof C?(new Function("return "+C))():C}catch(E){S("Unable to parse HTML5 attribute data: "+C)}m=c.extend(w,{},F.defaults,a,"object"===typeof C?P(C):B,P(m||n));n&&c.removeData(this,"metadata");n=m.position;m.id=l;if("boolean"===typeof m.content.text)if(D= d.attr(m.content.attr),m.content.attr!==k&&D)m.content.text=D;else{u=k;break a}n.container===k&&(n.container=r);n.target===k&&(n.target=s);m.show.target===k&&(m.show.target=s);m.show.solo===w&&(m.show.solo=r);m.hide.target===k&&(m.hide.target=s);m.position.viewport===w&&(m.position.viewport=n.container);n.at=new y.Corner(n.at);n.my=new y.Corner(n.my);if(c.data(this,"qtip"))if(m.overwrite)d.qtip("destroy");else if(m.overwrite===k){u=k;break a}c.attr(this,"title")&&(c.attr(this,M,c.attr(this,"title")), this.removeAttribute("title"));x=new T(d,m,l,!!D);c.data(this,"qtip",x);d.bind("remove.qtip",function(){x.destroy()});u=x}if(u===k)return w;e=u.options;c.each(y,function(){"initialize"===this.initialize&&this(u)});g={show:e.show.target,hide:e.hide.target};j={show:c.trim(""+e.show.event).replace(/ /g,h+" ")+h,hide:c.trim(""+e.hide.event).replace(/ /g,h+" ")+h};/mouse(over|enter)/i.test(j.show)&&!/mouse(out|leave)/i.test(j.hide)&&(j.hide+=" mouseleave"+h);g.show.bind(j.show,p);(e.show.ready||e.prerender)&& p(b)})};y=F.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=-1y.iOS&&3.1arguments.length)return c.attr(p,M);if("object"===typeof e)return e&&(e.rendered&&"title"===e.options.content.attr&&e.cache.attr)&&e.set("content.text",b),c.fn.attr_replacedByqTip.apply(this,arguments),c.attr(p,M,c.attr(p,"title")),this.removeAttr("title")}}},clone:function(a){c([]);return c.fn.clone_replacedByqTip.apply(this,arguments).filter("[oldtitle]").each(function(){c.attr(this, "title",c.attr(this,M));this.removeAttribute(M)}).end()},remove:c.ui?B:function(a,b){c(this).each(function(){b||(!a||c.filter(a,[this]).length)&&c("*",this).add(this).each(function(){c(this).triggerHandler("remove")})})}}};c.each(y.fn,function(a,b){if(!b)return w;var p=c.fn[a+"_replacedByqTip"]=c.fn[a];c.fn[a]=function(){return b.apply(this,arguments)||p.apply(this,arguments)}});c(document).bind("mousemove.qtip",function(a){N={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}});F.version="nightly";F.nextid= 0;F.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");F.zindex=15E3;F.defaults={prerender:k,id:k,overwrite:w,content:{text:w,attr:"title",title:{text:k,button:k}},position:{my:"top left",at:"bottom right",target:k,container:k,viewport:k,adjust:{x:0,y:0,mouse:w,resize:w,method:"flip flip"},effect:w},show:{target:k,event:"mouseenter",effect:w,delay:90,solo:k,ready:k},hide:{target:k,event:"mouseleave",effect:w,delay:0,fixed:k,inactive:k,leave:"window",distance:k}, style:{classes:"",widget:k,width:k},events:{render:B,move:B,show:B,hide:B,toggle:B,focus:B,blur:B}};y.ajax=function(a){var b=a.plugins.ajax;return"object"===typeof b?b:a.plugins.ajax=new W(a)};y.ajax.initialize="render";y.ajax.sanitize=function(a){var b=a.content;b&&"ajax"in b&&(b=b.ajax,"object"!==typeof b&&(b=a.content.ajax={url:b}),"boolean"!==typeof b.once&&b.once&&(b.once=!!b.once))};c.extend(w,F.defaults,{content:{ajax:{loading:w,once:w}}});y.imagemap=function(a,b){var p=a.attr("shape").toLowerCase(), e=a.attr("coords").split(","),g=[],j=c('img[usemap="#'+a.parent("map").attr("name")+'"]'),l=j.offset(),h={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},k=0,x=0;l.left+=Math.ceil((j.outerWidth()-j.width())/2);l.top+=Math.ceil((j.outerHeight()-j.height())/2);if("poly"===p)for(k=e.length;k--;)x=[parseInt(e[--k],10),parseInt(e[k+1],10)],x[0]>h.offset.right&&(h.offset.right=x[0]),x[0]h.offset.bottom&&(h.offset.bottom=x[1]),x[1]g.length);)n=g[j][0]-e.offset.left,w=g[j][1]-e.offset.top,("left"===b.x&&n>=k||"right"===b.x&&n<=k||"center"===b.x&&(ne.width-k)||"top"===b.y&&w>=x||"bottom"===b.y&&w<=x||"center"===b.y&&(we.height-x))&&g.splice(j,1)}p.offset={left:g[0][0],top:g[0][1]}}h.width= h.height=0}h.offset.left+=l.left;h.offset.top+=l.top;return h};y.tip=function(a){var b=a.plugins.tip;return"object"===typeof b?b:a.plugins.tip=new X(a)};y.tip.initialize="render";y.tip.sanitize=function(a){var b=a.style;b&&"tip"in b&&(b=a.style.tip,"object"!==typeof b&&(a.style.tip={corner:b}),/string|boolean/i.test(typeof b.corner)||(b.corner=w),"number"!==typeof b.width&&delete b.width,"number"!==typeof b.height&&delete b.height,"number"!==typeof b.border&&b.border!==w&&delete b.border,"number"!== typeof b.offset&&delete b.offset)};c.extend(w,F.defaults,{style:{tip:{corner:w,mimic:k,width:6,height:6,border:w,offset:0}}});y.svg=function(a){var b=c(document),k=a[0];a={width:0,height:0,offset:{top:1E10,left:1E10}};var e,g,j;if(k.getBBox&&k.parentNode){e=k.getBBox();g=k.getScreenCTM();k=k.farthestViewportElement||k;if(!k.createSVGPoint)return a;k=k.createSVGPoint();k.x=e.x;k.y=e.y;j=k.matrixTransform(g);a.offset.left=j.x;a.offset.top=j.y;k.x+=e.width;k.y+=e.height;j=k.matrixTransform(g);a.width= j.x-a.offset.left;a.height=j.y-a.offset.top;a.offset.left+=b.scrollLeft();a.offset.top+=b.scrollTop()}return a};y.modal=function(a){var b=a.plugins.modal;return"object"===typeof b?b:a.plugins.modal=new Y(a)};y.modal.initialize="render";y.modal.sanitize=function(a){a.show&&("object"!==typeof a.show.modal?a.show.modal={on:!!a.show.modal}:"undefined"===typeof a.show.modal.on&&(a.show.modal.on=w))};c.extend(w,F.defaults,{show:{modal:{on:k,effect:w,blur:w,escape:w}}});y.bgiframe=function(a){var b=c.browser, p=a.plugins.bgiframe;return 1>c("select, object").length||!(b.msie&&"6"===b.version.charAt(0))?k:"object"===typeof p?p:a.plugins.bgiframe=new Z(a)};y.bgiframe.initialize="render"})(jQuery,window);