/*
* jquery.qtip. The jQuery tooltip plugin
*
* Copyright (c) 2009 Craig Thompson
* http://craigsworks.com
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* Launch: February 2009
* Version: UNSTABLE REVISION CODE! Visit http://craigsworks.com/projects/qtip/ for stable code
*
* FOR STABLE VERSIONS VISIT: http://craigsworks.com/projects/qtip/download/
*/
"use strict";(function(g){var b=true,d=false,f=null,c=function(){};function e(i){if(!i){return d}try{if("metadata" in i&&"object"!==typeof i.metadata){i.metadata={type:i.metadata}}if("content" in i){if("object"!==typeof i.content||i.content.jquery){i.content={text:i.content}}var j=i.content.text||d;if(j.length<1||(!j&&!j.attr)||(j.jquery&&j.is(":empty"))){i.content.text=d}if("title" in i.content&&"object"!==typeof i.content.title){i.content.title={text:i.content.title}}}if("position" in i){if("object"!==typeof i.position){i.position={my:i.position,at:i.position}}if("object"!==typeof i.position.adjust){i.position.adjust={}}if("undefined"!==typeof i.position.adjust.screen){i.position.adjust.screen=String(i.position.adjust.screen).replace("true","flip");if(i.position.adjust.screen.search(/flip|fit/)<0){i.position.adjust.screen=d}}}if("show" in i){if("object"!==typeof i.show){i.show={event:i.show}}if("object"!==typeof i.show){if(i.show.jquery){i.show={target:i.show}}else{i.show={event:i.show}}}}if("hide" in i){if("object"!==typeof i.hide){if(i.hide.jquery){i.hide={target:i.hide}}else{i.hide={event:i.hide}}}}if("style" in i&&"object"!==typeof i.style){i.style={classes:i.style}}}catch(k){}g.each(g.fn.qtip.plugins,function(){if(this.sanitize){this.sanitize(i)}})}function a(m,u,i){var s=this;s.id=i;s.rendered=d;s.elements={target:m};s.cache={event:{},disabled:d};s.timers={};s.options=u;s.plugins={};function p(x){var y,w,v;y=x.split(".");w=u[y[0]];for(v=1;v<y.length;v+=1){if(typeof w[y[v]]==="object"&&!w[y[v]].jquery){w=w[y[v]]}else{break}}return[w,y[v]]}function k(w){var v=(!s.elements.tooltip.is(":visible"))?b:d,x=d;if(!s.rendered){return d}if(v){s.elements.tooltip.addClass("ui-tooltip-accessible")}switch(w){case"dimensions":x={height:s.elements.tooltip.outerHeight(),width:s.elements.tooltip.outerWidth()};break;case"position":x=s.elements.tooltip.offset();break}if(v){s.elements.tooltip.removeClass("ui-tooltip-accessible")}return x}function t(x){if(!s.rendered||!g.browser.msie){return d}var y=s.elements.tooltip,v,w;y.css({width:"auto",maxWidth:"none"});x=k("dimensions").width;y.css({maxWidth:""});v=parseInt(y.css("max-width"),10)||0;w=parseInt(y.css("min-width"),10)||0;x=Math.min(Math.max(x,w),v);y.width(x)}function l(){var v=s.elements,w=u.content.title.button;if(v.title){v.title.remove()}v.tooltip.attr("aria-labelledby","ui-tooltip-title-"+i);v.titlebar=g("<div />").addClass("ui-tooltip-titlebar").toggleClass("ui-widget-header",u.style.widget).prependTo(v.wrapper);v.title=g("<div />").attr("id","ui-tooltip-"+i+"-title").addClass("ui-tooltip-title").html(u.content.title.text).appendTo(v.titlebar);if(w){if(w.jquery){v.button=w}else{if("string"===typeof w){v.button=g("<a />").html(w)}else{v.button=g("<a />").addClass("ui-state-default").append(g("<span />").addClass("ui-icon ui-icon-close"))}}v.button.prependTo(v.titlebar).attr("role","button").addClass("ui-tooltip-"+(w===b?"close":"button")).hover(function(x){g(this).toggleClass("ui-state-hover",x.type==="mouseenter")}).click(function(){if(!v.tooltip.hasClass("ui-state-disabled")){s.hide()}return d}).bind("mousedown keydown mouseup keyup mouseout",function(x){g(this).toggleClass("ui-state-active ui-state-focus",(/down$/i).test(x.type))})}else{if(v.button){v.button.remove()}}}function j(){var v=s.elements;if(v.title){v.titlebar.remove();v.titlebar=v.title=v.button=f;v.tooltip.removeAttr("aria-labelledby")}}function o(v){if(!s.rendered){return d}if(!s.elements.title&&v){l();s.reposition()}else{if(!v){j()}else{s.elements.title.html(v)}}}function q(v){if(!s.rendered||!v){return d}if(v.jquery&&v.length>0){if(u.content.clone){s.elements.content.html(v.clone(b).removeAttr("id").css({display:"block"}))}else{s.elements.content.append(v.css({display:"block"}))}}else{s.elements.content.html(v)}t();s.reposition(s.cache.event);if(s.rendered<0){if(u.show.ready||s.rendered===-2){s.show(s.cache.event)}s.rendered=b}return s}function n(C,z,E,B){var y=".qtip-"+i,A={show:u.show.target,hide:u.hide.target,tooltip:s.elements.tooltip},D={show:String(u.show.event).split(" "),hide:String(u.hide.event).split(" ")};function v(F){if(A.tooltip.hasClass("ui-state-disabled")){return d}A.show.trigger("qtip-"+i+"-inactive");clearTimeout(s.timers.show);clearTimeout(s.timers.hide);s.timers.show=setTimeout(function(){s.show(F)},u.show.delay)}function x(F){if(A.tooltip.hasClass("ui-state-disabled")){return d}clearTimeout(s.timers.show);clearTimeout(s.timers.hide);if(u.hide.fixed&&(/mouse(out|leave|move)/).test(F.type)&&g(F.relatedTarget).parents(".qtip.ui-tooltip")[0]==A.tooltip[0]){F.stopPropagation();F.preventDefault();return d}A.tooltip.stop(b,b);s.timers.hide=setTimeout(function(){s.hide(F)},u.hide.delay)}function w(F){if(A.tooltip.hasClass("ui-state-disabled")){return d}clearTimeout(s.timers.inactive);s.timers.inactive=setTimeout(function(){s.hide(F)},u.hide.inactive)}if(E&&u.hide.fixed){A.hide=A.hide.add(A.tooltip);A.tooltip.bind("mouseover"+y,function(){if(!A.tooltip.hasClass("ui-state-disabled")){clearTimeout(s.timers.hide)}})}if(z){if("number"===typeof u.hide.inactive){A.show.bind("qtip-"+i+"-inactive",w);g.each(g.fn.qtip.inactiveEvents,function(F,G){A.hide.add(s.elements.tooltip).bind(G+y+"-inactive",w)})}g.each(D.hide,function(G,H){var F=g.inArray(H,D.show);if((F>-1&&g(A.hide).add(A.show).length===g(A.hide).length)||H==="unfocus"){A.show.bind(H+y,function(I){if(A.tooltip.is(":visible")){x(I)}else{v(I)}});delete D.show[F]}else{A.hide.bind(H+y,x)}})}if(C){g.each(D.show,function(F,G){A.show.bind(G+y,v)});A.tooltip.bind("mouseover"+y,function(){s.focus()})}if(B){if(u.position.adjust.resize){g(window).bind("resize"+y,function(F){if(s.elements.tooltip.is(":visible")){s.reposition(F)}})}if((/unfocus/i).test(u.hide.event)){g(document).bind("mousedown"+y,function(F){var G=s.elements.tooltip;if(g(F.target).parents(".qtip.ui-tooltip").length===0&&g(F.target).add(m).length>1&&G.is(":visible")&&!G.hasClass("ui-state-disabled")){s.hide()}})}if(u.position.target==="mouse"){g(document).bind("mousemove"+y,function(F){if(u.position.adjust.mouse&&!A.tooltip.hasClass("ui-state-disabled")&&A.tooltip.is(":visible")){s.reposition(F)}})}}}function r(w,y,A,B){B=parseInt(B,10)!==0;var z=".qtip-"+i,v={show:w?u.show.target:g("<div/>"),hide:y?u.hide.target:g("<div/>"),tooltip:A?s.elements.tooltip:g("<div/>")},x={show:String(u.show.event).split(" "),hide:String(u.hide.event).split(" ")};if(s.rendered){g.each(x.show,function(C,D){v.show.unbind(D+z)});v.show.unbind("mousemove"+z).unbind("mouseout"+z).unbind("qtip-"+i+"-inactive");g.each(x.hide,function(C,D){v.hide.add(v.tooltip).unbind(D+z)});g.each(g.fn.qtip.inactiveEvents,function(C,D){v.hide.add(A?s.elements.content:f).unbind(D+z+"-inactive")});v.hide.unbind("mouseout"+z);v.tooltip.unbind("mouseover"+z);if(B){g(window).unbind("resize"+z);g(document).unbind("mousedown"+z+" mousemove"+z)}}else{if(w){v.show.unbind(x.show+z+"-create")}}}g.extend(s,{render:function(v){var w=s.elements;if(s.rendered){return d}s.rendered=v?-2:-1;w.tooltip=g("<div/>").attr({id:"ui-tooltip-"+i,role:"tooltip","aria-describedby":"ui-tooltip-"+i+"-content"}).addClass("qtip ui-tooltip ui-helper-reset "+u.style.classes).toggleClass("ui-widget",u.style.widget).toggleClass("ui-state-disabled",s.cache.disabled).css("z-index",g.fn.qtip.zindex+g("div.qtip.ui-tooltip").length).data("qtip",s).appendTo(u.position.container);w.wrapper=g("<div />").addClass("ui-tooltip-wrapper").appendTo(w.tooltip);w.content=g("<div />").addClass("ui-tooltip-content").attr("id","ui-tooltip-"+i+"-content").addClass("ui-tooltip-content").toggleClass("ui-widget-content",u.style.widget).appendTo(w.wrapper);if(u.content.title.text){l()}g.each(g.fn.qtip.plugins,function(){if(this.initialize==="render"){this(s)}});n(1,1,1,1);g.each(u.events,function(x,y){w.tooltip.bind("tooltip"+x,y)});q(u.content.text);w.tooltip.trigger("tooltiprender",[s.hash()]);return s},get:function(x){var v,w;switch(x.toLowerCase()){case"offset":v=k("position");break;case"dimensions":v=k("dimensions");break;default:w=p(x.toLowerCase());v=(w[0].precedance)?w[0].string():(w[0].jquery)?w[0]:w[0][w[1]];break}return v},set:function(z,A){var w=p(z.toLowerCase()),y={show:u.show.target,hide:u.hide.target},x,B,v={builtin:{"^content.text":function(){q(A)},"^content.title.text":function(){o(A)},"^position.container$":function(){if(s.rendered){s.elements.tooltip.appendTo(A)}},"^position.(corner|adjust|target)":function(){if(s.rendered){s.reposition()}},"^position.(my|at)$":function(){var C=(z.search(/my$/i)>-1)?"my":"at";if("string"===typeof A){u.position[C]=new g.fn.qtip.plugins.Corner(A)}},"^(show|hide).(event|target|fixed)":function(){var C=(z.search(/fixed/i)>-1)?[0,[0,1,1,1]]:(z.search(/hide/i)<0)?["show",[1,0,0,0]]:["hide",[0,1,0,0]];if(C[0]){u[C[0]].target=y[C[0]]}r.apply(s,C[1]);if(C[0]){u[C[0]].target=A}n.apply(s,C[1])}}};g.each(s.plugins,function(C){if("object"===typeof this.checks){v[C]=this.checks}});w[0][w[1]]=A;e(u);for(x in v){for(B in v[x]){if((new RegExp(B,"i")).test(z)){v[x][B].call(s,w[0],w[1],A)}}}return s},toggle:function(z,x){if(!s.rendered){return d}var v=z?"show":"hide",y=s.elements.tooltip,w=u[v],B=y.is(":visible"),C;if((typeof z).search("boolean|number")){z=!y.is(":visible")}function A(){g(this).css({opacity:"",height:""});if(z&&g.browser.msie&&g(this).get(0).style){g(this).get(0).style.removeAttribute("filter")}}if((B&&z)||(!B&&!z)||y.is(":animated")){return s}if(x){if(s.cache.event&&(/over|enter/).test(x.type)&&(/out|leave/).test(s.cache.event.type)&&g(x.target).add(u.show.target).length<2&&g(x.relatedTarget).parents(".qtip.ui-tooltip").length>0){return s}s.cache.event=g.extend({},x)}C=g.Event("tooltip"+v);y.trigger(C,[s.hash(),90]);if(C.isDefaultPrevented()){return s}if(z){if(s.rendered===b){s.focus();s.reposition(x)}if(w.solo){g(":not(.qtip.ui-tooltip)").qtip("hide")}}else{clearTimeout(s.timers.show);y.css({opacity:""})}y.attr("aria-hidden",Boolean(!z));y.stop(b,d);if(g.isFunction(w.effect)){w.effect.call(y);y.queue(function(){A();g(this).dequeue()})}else{if(w.effect===d){y[v]();A()}else{y["fade"+(z?"In":"Out")](90,A)}}if(z){w.target.trigger("qtip-"+i+"-inactive")}return s},show:function(v){s.toggle(b,v)},hide:function(v){s.toggle(d,v)},focus:function(x){if(!s.rendered){return d}var y=s.elements.tooltip,w=parseInt(y.css("z-index"),10),v=g.fn.qtip.zindex+g(".qtip.ui-tooltip").length,z;if(!y.hasClass("ui-tooltip-focus")&&w!==v){g(":not(.qtip.ui-tooltip)").each(function(){var B=g(this).qtip(),C,A;if(!B||!B.rendered){return b}C=B.elements.tooltip;A=parseInt(C.css("z-index"),10);if(!isNaN(A)){C.css({zIndex:A-1})}C.removeClass("ui-tooltip-focus");C.trigger("tooltipblur",[B,v])});z=g.Event("tooltipfocus");y.trigger(z,[s.hash(),v]);if(!z.isDefaultPrevented()){y.css({zIndex:v}).addClass("ui-tooltip-focus")}}return s},reposition:function(v){if(s.rendered===d){return d}var C=u.position.target==="event"&&v?g(v.target):u.position.target,H=s.elements.tooltip,G=u.position,D,A,y=s.elements.tooltip.width(),w=s.elements.tooltip.height(),z,E,x,F,B={fit:{left:function(){var I=parseInt(z.left,10),J=z.left+y-g(window).width()-g(window).scrollLeft();z.left=J>0?z.left-J:Math.max(0,z.left);return Math.ceil(I-z.left)},top:function(){var I=parseInt(z.top,10),J=z.top+w-g(window).height()-g(window).scrollTop();z.top=J>0?z.top-J:Math.max(0,z.top);return Math.ceil(I-z.top)}},flip:{left:function(){var J=z.left+y-g(window).width()-g(window).scrollLeft(),I=E.x==="left"?-y:E.x==="right"?y:0,K=-2*G.adjust.x;z.left+=z.left<0?I+D+K:J>0?I-D+K:0;return Math.round(J)},top:function(){var K=z.top+w-g(window).height()-g(window).scrollTop(),I=E.y==="top"?-w:E.y==="bottom"?w:0,J=x.y==="top"?A:x.y==="bottom"?-A:0,L=-2*G.adjust.y;z.top+=z.top<0?I+A+L:K>0?I+J+L:0;return Math.round(K)}}};if(G.at.left&&G.at.top){z=g.extend({},u.position.corner);E=x={x:"left",y:"top"}}else{E=G.my;x=G.at;if(G.target==="mouse"){x={x:"left",y:"top"};D=A=0;if(!v){v=s.cache.event}z={top:v.pageY,left:v.pageX}}else{if(C[0]===document){D=C.width();A=C.height();z={top:0,left:0}}else{if(C[0]===window){D=C.width();A=C.height();z={top:(H.css("position")==="fixed")?0:C.scrollTop(),left:C.scrollLeft()}}else{if(C.is("area")&&g.fn.qtip.plugins.imagemap){z=g.fn.qtip.plugins.imagemap(C,x);D=z.width;A=z.height;z=z.offset}else{D=C.outerWidth();A=C.outerHeight();z=C.offset()}}}z.left+=x.x==="right"?D:x.x==="center"?D/2:0;z.top+=x.y==="bottom"?A:x.y==="center"?A/2:0}z.left+=G.adjust.x+(E.x==="right"?-y:E.x==="center"?-y/2:0);z.top+=G.adjust.y+(E.y==="bottom"?-w:E.y==="center"?-w/2:0)}if(G.adjust.screen){z.adjust={left:B[G.adjust.screen].left(),top:B[G.adjust.screen].top()}}else{z.adjust={left:0,top:0}}F=g.Event("tooltipmove");H.trigger(F,[s.hash(),z]);if(F.isDefaultPrevented()){return s}delete z.adjust;if(H.is(":visible")&&g.isFunction(G.adjust.effect)){G.adjust.effect.call(H,z);H.queue(function(){g(this).css({opacity:"",height:""});if(g.browser.msie&&g(this).get(0).style){g(this).get(0).style.removeAttribute("filter")}g(this).dequeue()})}else{H.css(z)}return s},disable:function(w){var v=s.elements.tooltip;if(s.rendered){v.toggleClass("ui-state-disabled",w)}else{s.cache.disabled=Boolean(w)}return s},destroy:function(){var v=s.elements,w=v.target.data("oldtitle");if(s.rendered){g.each(s.plugins,function(){if(this.initialize==="render"){this.destroy()}})}r(1,1,1,1);m.removeData("qtip");if(s.rendered){v.tooltip.remove()}if(w.length){m.attr("title",w)}return m},hash:function(){var v=g.extend({},s);delete v.cache;delete v.timers;delete v.options;delete v.plugins;delete v.render;delete v.hash;return v}})}function h(n,k){var l,j=(g(this).metadata)?g(this).metadata(k.metadata):{},i=g.extend(b,{},k,j),m=g(this)[0]===document?g(document.body):g(this);if("boolean"===typeof i.content.text){if(i.content.attr!==d&&g(this).attr(i.content.attr)){i.content.text=g(this).attr(i.content.attr)}else{return d}}if(i.position.container===d){i.position.container=g(document.body)}if(i.position.target===d){i.position.target=m}if(i.show.target===d){i.show.target=m}if(i.hide.target===d){i.hide.target=m}i.position.at=new g.fn.qtip.plugins.Corner(i.position.at);i.position.my=new g.fn.qtip.plugins.Corner(i.position.my);if(g(this).data("qtip")){if(i.overwrite){g(this).qtip("destroy")}else{if(i.overwrite===d){return d}}}l=new a(g(this),i,n);g(this).data("qtip",l);return l}g.fn.qtip=function(j,m,n){var o=String(j).toLowerCase(),l=d,i=o==="disable"?[b]:g.makeArray(arguments).splice(1),k;if((!j&&g(this).data("qtip"))||o==="api"){k=g(this).eq(0).data("qtip");return k?k.hash():undefined}else{if("string"===typeof j){g(this).each(function(){var p=g(this).data("qtip");if(!p){return b}if((/option|set/).test(o)&&m){if(n!==undefined){p.set(m,n)}else{l=p.get(m)}}else{if(o==="show"||(o==="toggle"&&!p.rendered&&!p.elements.tooltip.is(":visible"))){p.render()}else{if(o==="enable"){o="disable";i=[d]}}if(p[o]){p[o].apply(p[o],i)}}});return l!==d?l:g(this)}else{if("object"===typeof j){e(j);k=g.extend(b,{},g.fn.qtip.defaults,j);return g.fn.qtip.bind.call(this,k)}}}};g.fn.qtip.bind=function(i){return g(this).each(function(){var p,k,l,j,m,n;p=(i.id===d||i.id.length<1||g("#ui-tooltip-"+i.id).length)?g.fn.qtip.nextid++:i.id;n=".qtip-"+p+"-create";k=h.call(g(this),p,i);if(k===d){return b}l=k.options;if(g(this).attr("title")){g(this).data("oldtitle",g(this).attr("title")).removeAttr("title")}g.each(g.fn.qtip.plugins,function(){if(this.initialize==="initialize"){this(k)}});j={show:l.show.target,hide:l.hide.target};m={show:String(l.show.event).replace(" ",n+" ")+n,hide:(String(l.hide.event)+" mouseleave").replace(" ",n+" ")+n};function o(r){function q(){k.render(typeof r==="object"||l.show.ready);j.show.unbind(m.show);j.hide.unbind(m.hide)}if(k.cache.disabled){return false}k.cache.event=g.extend({},r);if(l.show.delay>0){k.timers.show=setTimeout(q,l.show.delay);if(m.show!==m.hide){j.hide.bind(m.hide,function(s){clearTimeout(k.timers.show)})}}else{q()}}if(l.show.ready||l.prerender||l.show.event===d){o()}else{j.show.bind(m.show,o)}})};g.fn.qtip.fn={attr:g.fn.attr};g.fn.attr=function(i){var j=g(this).data("qtip");return(arguments.length===1&&i==="title"&&j&&j.rendered===true)?g(this).data("oldtitle"):g.fn.qtip.fn.attr.apply(this,arguments)};g.fn.qtip.nextid=0;g.fn.qtip.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");g.fn.qtip.zindex=15000;g.fn.qtip.plugins={Corner:function(i){this.x=String(i).replace(/middle/i,"center").match(/left|right|center/i)[0].toLowerCase();this.y=String(i).replace(/middle/i,"center").match(/top|bottom|center/i)[0].toLowerCase();this.offset={left:0,top:0};this.precedance=(i.charAt(0).search(/^(t|b)/)>-1)?"y":"x";this.string=function(){return(this.precedance==="y")?this.y+this.x:this.x+this.y}}};g.fn.qtip.defaults={prerender:d,id:d,overwrite:b,metadata:{type:"class"},content:{text:b,attr:"title",clone:b,title:{text:d,button:d}},position:{my:"top left",at:"bottom right",target:d,container:d,adjust:{x:0,y:0,mouse:b,screen:d,resize:b,effect:b}},show:{target:d,event:"mouseenter",effect:b,delay:140,solo:d,ready:d},hide:{target:d,event:"mouseleave",effect:b,delay:0,fixed:d,inactive:d},style:{classes:"",widget:true},events:{render:c,move:c,show:c,hide:c,focus:c,blur:c}}}(jQuery));/*
* jquery.qtip.ie6 - qTip IE6 compatibility plugin
*
* This plugin addeds various IE6 specific fixes to qTip to make it play nicely.
* Includes BGIFrame jquery plugin adaption (http://plugins.jquery.com/project/bgiframe)
*   - Special thanks to Brandon Aaron
*
* Copyright (c) 2009 Craig Thompson
* http://craigsworks.com
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*
* Launch: August 2009
* Version: UNSTABLE REVISION CODE! Visit http://craigsworks.com/projects/qtip/ for stable code
*
* FOR STABLE VERSIONS VISIT: http://craigsworks.com/projects/qtip/download/
*/
"use strict";(function(d){var b=false,c=null;if(!d.fn.qtip){if(window.console){window.console.error("This plugin requires the qTip library.","")}return b}function a(f){var e=this;e.elements={bgiframe:c};e.ns=".qtipie6-"+f.id;d.extend(e,{init:function(){var h=f.elements.tooltip,g=e.elements.bgiframe;if(d("select, object").length){g=d('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0);"></iframe>');g.appendTo(h);h.bind("tooltipmove"+e.ns+" tooltipshow"+e.ns,e.bgiframe)}if(h.css("position")==="fixed"){h.css({position:"absolute"});d(window).bind("scroll"+e.ns,e.scroll)}},scroll:function(h){var g=e.dimensions();if(f.elements.tooltip.is(":visible")&&!(g.height>d(window).height()||g.width>d(window).width())){f.reposition(h)}},bgiframe:function(){var g,i={left:0,top:0},h=e.dimensions();i=parseInt(f.elements.tooltip.css("border-left-width"),10);i={left:-i,top:-i};if(f.plugins.tip&&f.plugins.tip.tip){g=(f.plugins.tip.corner.precedance==="x")?["width","left"]:["height","top"];i[g[1]]-=f.plugins.tip.tip[g[0]]()}e.elements.bgiframe.css(i).css(h)},destroy:function(){e.elements.bgiframe.remove();d(window).unbind("scroll"+e.ns);f.elements.tooltip.unbind("tooltipmove"+e.ns+" tooltipshow"+e.ns)}});e.init()}d.fn.qtip.plugins.ie6=function(f){if(!(d.browser.msie&&(/^6\.[0-9]/).test(d.browser.version))){return b}var e=f.plugins.ie6;if(e){return e}else{f.plugins.ie6=new a(f);return f.plugins.ie6}};d.fn.qtip.plugins.ie6.initialize="render"}(jQuery));/*
* qTip - Speech bubble tips plugin
*
* This plugin requires the main qTip library in order to function.
* Download it here: http://craigsworks.com/projects/qtip/
*
* Copyright (c) 2009 Craig Thompson
* http://craigsworks.com
*
* Launch: December 2009
* Version: UNSTABLE REVISION CODE! Visit http://craigsworks.com/projects/qtip/ for stable code
*
* Licensed under MIT
* http://www.opensource.org/licenses/mit-license.php
*/
"use strict";(function(f){var c=true,d=false,e=null;if(!f.fn.qtip){if(window.console){window.console.error("This plugin requires the qTip library.","")}return d}function b(j,i,h){var g={bottomright:[[0,0],[i,h],[i,0]],bottomleft:[[0,0],[i,0],[0,h]],topright:[[0,h],[i,0],[i,h]],topleft:[[0,0],[0,h],[i,h]],topcenter:[[0,h],[i/2,0],[i,h]],bottomcenter:[[0,0],[i,0],[i/2,h]],rightcenter:[[0,0],[i,h/2],[0,h]],leftcenter:[[i,0],[i,h],[0,h/2]]};g.lefttop=g.bottomright;g.righttop=g.bottomleft;g.leftbottom=g.topright;g.rightbottom=g.topleft;return g[j]}function a(i,k){var h=this;h.qTip=i;h.tip=e;h.corner=e;h.type=e;h.size={width:i.options.style.tip.width,height:i.options.style.tip.height};h.method="css";h.cache={overflow:{left:d,top:d}};h.checks={"^position.my$":function(){if(this.get("style.tip.corner")===c){h.checks["^style.tip.(corner|type)"].call(this)}},"^style.tip.(corner|type)":function(){h.determine();h.update();if(this.get("position.target")!=="mouse"){this.reposition()}},"^style.tip.(height|width)":function(){h.size={width:i.options.style.tip.width,height:i.options.style.tip.height};h.create();h.update();i.reposition()}};function g(n){var l=["left","right"],m=i.options.style,p=0,r=n.y+n.x.substr(0,1).toUpperCase()+n.x.substr(1),q={left:0,right:0,top:0,bottom:0};n=n||h.corner;if(i.options.style.tip.corner===d||!h.tip){return d}h.tip.css({top:"",bottom:"",left:"",right:"",margin:""});l[(n.precedance==="y")?"push":"unshift"]("top","bottom");try{r=m.radius||m[r].radius}catch(o){r=0}if(f.browser.msie&&h.method!=="css"){q={left:1,top:1,right:(n.precedance==="y")?1:2,bottom:(n.precedance==="x")?1:2}}switch(n[n.precedance==="y"?"x":"y"]){case"center":h.tip.css(l[0],"50%").css("margin-"+l[0],-(h.size[(n.precedance==="y")?"width":"height"]/2));break;case l[0]:h.tip.css(l[0],n.offset.left-q[l[0]]-p+r);break;case l[1]:h.tip.css(l[1],n.offset.left+q[l[1]]-p+r);break}p+=h.size[(n.precedance==="x")?"width":"height"];if(n[n.precedance]===l[2]){h.tip.css(l[2],n.offset[l[2]]-q[l[2]]-p)}else{h.tip.css(l[3],n.offset[l[2]]+q[l[3]]-p)}}function j(q,p,l){if(!h.corner.adjust){return d}var r=f.extend({},h.corner),o=f.extend(c,{},l),m=r.precedance==="y"?["y","x","top","height"]:["x","y","left","width"],s=o.adjust,n=p.get("position.adjust.screen");r.offset={left:0,top:0};o[m[2]]+=(r[m[0]]===m[2]?1:-1)*h.size[m[3]];f.extend(l,o);if((function(){var t=h.cache.overflow.left,w=h.cache.overflow.top,v=s.left>0,u=s.top>0;return n==="fit"?c:!((!t&&v)||(t&&!v)||(w&&!u)||(!w&&u))}())===c){return}if(r.x!=="center"&&s.left>-1){r.x=r.x==="left"?"right":"left"}if(r.y!=="center"&&s.top>-1){r.y=r.y==="top"?"bottom":"top"}h.cache.overflow={left:h.corner.x!==r.x,top:h.corner.y!==r.y};if(h.corner.string()!==r.string()){h.create()}h.update(r)}f.extend(h,{init:function(){var l=h.determine();if(l===d){return d}i.elements.tooltip.bind("tooltipmove.tip",j);h.create();h.update();return h},determine:function(){var n=i.options.style.tip.corner,m=i.options.style.tip.type||n,l=i.options.position.at,o=i.options.position.my;if(o.string){o=o.string()}if(n===d||(o===d&&l===d)){return d}else{if(n===c){h.corner=new f.fn.qtip.plugins.Corner(o);h.corner.adjust=c}else{if(!n.string){h.corner=new f.fn.qtip.plugins.Corner(n)}}if(m===c){h.type=new f.fn.qtip.plugins.Corner(o);h.type.adjust=c}else{if(!m.string){h.type=new f.fn.qtip.plugins.Corner(m)}}}return h.corner.string()!=="centercenter"},create:function(){if(h.tip){h.tip.remove()}h.tip=f('<div class="ui-tooltip-tip ui-widget-content"></div>').css(h.size).prependTo(i.elements.tooltip);h.method=i.options.style.tip.antialias!==d?f("<canvas/>").get(0).getContext?"canvas":f.browser.msie?"vml":"css":"css";switch(h.method){case"canvas":h.tip.append('<canvas height="'+h.size.height+'" width="'+h.size.width+'"></canvas>');break;case"vml":h.tip.html('<vml:shape coordorigin="0 0" coordsize="'+h.size.width+" "+h.size.height+'" stroked="FALSE"  style="behavior:url(#default#VML); display:inline-block; antialias:TRUE; width:'+h.size.width+"px; height:"+h.size.height+"px; vertical-align:"+h.corner.y+';"></vml:shape>');break;case"css":h.tip.addClass("ui-tooltip-tip-"+h.corner.string()).append('<div class="ui-tooltip-tip-inner"></div>');break}return h},update:function(q){var n,m,r,t,p,u=h.tip.children(":first"),l="px solid ",s="px solid transparent",o=q;if(!q){q=h.corner;o=h.type}if(h.method!=="css"){p=b(o.string(),h.size.width,h.size.height)}n=h.tip.css("background-color","").css("background-color");n=(n==="transparent"||n==="rgba(0, 0, 0, 0)")?i.elements.wrapper.css("border-top-color"):n;h.tip.css("background-color","transparent");l+=n;switch(h.method){case"canvas":m=u.get(0).getContext("2d");m.fillStyle=n;m.miterLimit=0;m.clearRect(0,0,3000,3000);m.beginPath();m.moveTo(p[0][0],p[0][1]);m.lineTo(p[1][0],p[1][1]);m.lineTo(p[2][0],p[2][1]);m.closePath();m.fill();break;case"vml":t="m"+p[0][0]+","+p[0][1]+" l"+p[1][0]+","+p[1][1]+" "+p[2][0]+","+p[2][1]+" xe";u.attr({path:t,fillcolor:n});break;case"css":u.removeAttr("style");r={x:o.precedance==="x"?(o.x==="left"?"right":"left"):o.x,y:o.precedance==="y"?(o.y==="top"?"bottom":"top"):o.y};if(o.x==="center"){u.css({borderLeft:(h.size.width/2)+s,borderRight:(h.size.width/2)+s}).css("border-"+r.y,h.size.height+l)}else{if(o.y==="center"){u.css({borderTop:(h.size.height/2)+s,borderBottom:(h.size.height/2)+s}).css("border-"+r.x,h.size.width+l)}else{u.css("border-width",(h.size.height/2)+"px "+(h.size.width/2)+"px").css("border-"+r.x,(h.size.width/2)+l).css("border-"+r.y,(h.size.height/2)+l)}}break}g(q);return h},destroy:function(){if(h.tip){h.tip.add(h.elements.qTip).removeData("qtip").remove()}i.elements.tooltip.unbind("tooltipmove.tip")}})}f.fn.qtip.plugins.tip=function(h){var g=h.plugins.tip,i=h.options.style.tip;if(i){if(g){return g}else{h.plugins.tip=new a(h);if(h.plugins.tip.determine()){h.plugins.tip.init()}else{delete h.plugins.tip}return h.plugins.tip}}};f.fn.qtip.plugins.tip.initialize="render";f.fn.qtip.plugins.tip.sanitize=function(g){if(g.style!==undefined&&g.style.tip!==undefined){if(typeof g.style.tip!=="object"){g.style.tip={corner:g.style.tip}}if(typeof g.style.tip.width!=="number"){g.style.tip.width=14}if(typeof g.style.tip.height!=="number"){g.style.tip.height=14}}}}(jQuery));