(function(H){H.fn.qtip=function(a,g){var c,f,k,e,b,j,h,d;if(typeof a=="string"){if(typeof H(this).data("qtip")!=="object"){H.fn.qtip.log.error.call(self,1,H.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)}if(a=="api"){return H(this).data("qtip").interfaces[H(this).data("qtip").current]}else{if(a=="interfaces"){return H(this).data("qtip").interfaces}}}else{if(!a){a={}}if(typeof a.content!=="object"||(a.content.jquery&&a.content.length>0)){a.content={text:a.content}}if(typeof a.content.title!=="object"){a.content.title={text:a.content.title}}if(typeof a.position!=="object"){a.position={corner:a.position}}if(typeof a.position.corner!=="object"){a.position.corner={target:a.position.corner,tooltip:a.position.corner}}if(typeof a.show!=="object"){a.show={when:a.show}}if(typeof a.show.when!=="object"){a.show.when={event:a.show.when}}if(typeof a.show.effect!=="object"){a.show.effect={type:a.show.effect}}if(typeof a.hide!=="object"){a.hide={when:a.hide}}if(typeof a.hide.when!=="object"){a.hide.when={event:a.hide.when}}if(typeof a.hide.effect!=="object"){a.hide.effect={type:a.hide.effect}}if(typeof a.style!=="object"){a.style={name:a.style}}a.style=E(a.style);e=H.extend(true,{},H.fn.qtip.defaults,a);e.style=C.call({options:e},e.style);e.user=H.extend(true,{},a)}return H(this).each(function(){if(typeof a=="string"){j=a.toLowerCase();k=H(this).qtip("interfaces");if(typeof k=="object"){if(g===true&&j=="destroy"){while(k.length>0){k[k.length-1].destroy()}}else{if(g!==true){k=[H(this).qtip("api")]}for(c=0;c<k.length;c++){if(j=="destroy"){k[c].destroy()}else{if(k[c].status.rendered===true){if(j=="show"){k[c].show()}else{if(j=="hide"){k[c].hide()}else{if(j=="focus"){k[c].focus()}else{if(j=="disable"){k[c].disable(true)}else{if(j=="enable"){k[c].disable(false)}}}}}}}}}}}else{h=H.extend(true,{},e);h.hide.effect.length=e.hide.effect.length;h.show.effect.length=e.show.effect.length;if(h.position.container===false){h.position.container=H(document.body)}if(h.position.target===false){h.position.target=H(this)}if(h.show.when.target===false){h.show.when.target=H(this)}if(h.hide.when.target===false){h.hide.when.target=H(this)}f=H.fn.qtip.interfaces.length;for(c=0;c<f;c++){if(typeof H.fn.qtip.interfaces[c]=="undefined"){f=c;break}}b=new F(H(this),h,f);H.fn.qtip.interfaces[f]=b;if(typeof H(this).data("qtip")=="object"){if(typeof H(this).attr("qtip")==="undefined"){H(this).data("qtip").current=H(this).data("qtip").interfaces.length}H(this).data("qtip").interfaces.push(b)}else{H(this).data("qtip",{current:0,interfaces:[b]})}if(h.content.prerender===false&&h.show.when.event!==false&&h.show.ready!==true){h.show.when.target.bind(h.show.when.event+".qtip-"+f+"-create",{qtip:f},function(l){d=H.fn.qtip.interfaces[l.data.qtip];d.options.show.when.target.unbind(d.options.show.when.event+".qtip-"+l.data.qtip+"-create");d.cache.mouse={x:l.pageX,y:l.pageY};s.call(d);d.options.show.when.target.trigger(d.options.show.when.event)})}else{b.cache.mouse={x:h.show.when.target.offset().left,y:h.show.when.target.offset().top};s.call(b)}}})};function F(c,b,d){var a=this;a.id=d;a.options=b;a.status={animated:false,rendered:false,disabled:false,focused:false};a.elements={target:c.addClass(a.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};a.cache={mouse:{},position:{},toggle:0};a.timers={};H.extend(a,a.options.api,{show:function(f){var e,g;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")}if(a.elements.tooltip.css("display")!=="none"){return a}a.elements.tooltip.stop(true,false);e=a.beforeShow.call(a,f);if(e===false){return a}function h(){if(a.options.position.type!=="static"){a.focus()}a.onShow.call(a,f);if(H.browser.msie){a.elements.tooltip.get(0).style.removeAttribute("filter")}}a.cache.toggle=1;if(a.options.position.type!=="static"){a.updatePosition(f,(a.options.show.effect.length>0))}if(typeof a.options.show.solo=="object"){g=H(a.options.show.solo)}else{if(a.options.show.solo===true){g=H("div.qtip").not(a.elements.tooltip)}}if(g){g.each(function(){if(H(this).qtip("api").status.rendered===true){H(this).qtip("api").hide()}})}if(typeof a.options.show.effect.type=="function"){a.options.show.effect.type.call(a.elements.tooltip,a.options.show.effect.length);a.elements.tooltip.queue(function(){h();H(this).dequeue()})}else{switch(a.options.show.effect.type.toLowerCase()){case"fade":a.elements.tooltip.fadeIn(a.options.show.effect.length,h);break;case"slide":a.elements.tooltip.slideDown(a.options.show.effect.length,function(){h();if(a.options.position.type!=="static"){a.updatePosition(f,true)}});break;case"grow":a.elements.tooltip.show(a.options.show.effect.length,h);break;default:a.elements.tooltip.show(null,h);break}a.elements.tooltip.addClass(a.options.style.classes.active)}return H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(f){var e;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")}else{if(a.elements.tooltip.css("display")==="none"){return a}}clearTimeout(a.timers.show);a.elements.tooltip.stop(true,false);e=a.beforeHide.call(a,f);if(e===false){return a}function g(){a.onHide.call(a,f)}a.cache.toggle=0;if(typeof a.options.hide.effect.type=="function"){a.options.hide.effect.type.call(a.elements.tooltip,a.options.hide.effect.length);a.elements.tooltip.queue(function(){g();H(this).dequeue()})}else{switch(a.options.hide.effect.type.toLowerCase()){case"fade":a.elements.tooltip.fadeOut(a.options.hide.effect.length,g);break;case"slide":a.elements.tooltip.slideUp(a.options.hide.effect.length,g);break;case"grow":a.elements.tooltip.hide(a.options.hide.effect.length,g);break;default:a.elements.tooltip.hide(null,g);break}a.elements.tooltip.removeClass(a.options.style.classes.active)}return H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(N,l){var f,k,M,q,o,h,m,p,e,g,r,O,j,n;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")}else{if(a.options.position.type=="static"){return H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}}k={position:{left:0,top:0},dimensions:{height:0,width:0},corner:a.options.position.corner.target};M={position:a.getPosition(),dimensions:a.getDimensions(),corner:a.options.position.corner.tooltip};if(a.options.position.target!=="mouse"){if(a.options.position.target.get(0).nodeName.toLowerCase()=="area"){q=a.options.position.target.attr("coords").split(",");for(f=0;f<q.length;f++){q[f]=parseInt(q[f])}o=a.options.position.target.parent("map").attr("name");h=H('img[usemap="#'+o+'"]:first').offset();k.position={left:Math.floor(h.left+q[0]),top:Math.floor(h.top+q[1])};switch(a.options.position.target.attr("shape").toLowerCase()){case"rect":k.dimensions={width:Math.ceil(Math.abs(q[2]-q[0])),height:Math.ceil(Math.abs(q[3]-q[1]))};break;case"circle":k.dimensions={width:q[2]+1,height:q[2]+1};break;case"poly":k.dimensions={width:q[0],height:q[1]};for(f=0;f<q.length;f++){if(f%2==0){if(q[f]>k.dimensions.width){k.dimensions.width=q[f]}if(q[f]<q[0]){k.position.left=Math.floor(h.left+q[f])}}else{if(q[f]>k.dimensions.height){k.dimensions.height=q[f]}if(q[f]<q[1]){k.position.top=Math.floor(h.top+q[f])}}}k.dimensions.width=k.dimensions.width-(k.position.left-h.left);k.dimensions.height=k.dimensions.height-(k.position.top-h.top);break;default:return H.fn.qtip.log.error.call(a,4,H.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}k.dimensions.width-=2;k.dimensions.height-=2}else{if(a.options.position.target.add(document.body).length===1){k.position={left:H(document).scrollLeft(),top:H(document).scrollTop()};k.dimensions={height:H(window).height(),width:H(window).width()}}else{if(typeof a.options.position.target.attr("qtip")!=="undefined"){k.position=a.options.position.target.qtip("api").cache.position}else{k.position=a.options.position.target.offset()}k.dimensions={height:a.options.position.target.outerHeight(),width:a.options.position.target.outerWidth()}}}m=H.extend({},k.position);if(k.corner.search(/right/i)!==-1){m.left+=k.dimensions.width}if(k.corner.search(/bottom/i)!==-1){m.top+=k.dimensions.height}if(k.corner.search(/((top|bottom)Middle)|center/)!==-1){m.left+=(k.dimensions.width/2)}if(k.corner.search(/((left|right)Middle)|center/)!==-1){m.top+=(k.dimensions.height/2)}}else{k.position=m={left:a.cache.mouse.x,top:a.cache.mouse.y};k.dimensions={height:1,width:1}}if(M.corner.search(/right/i)!==-1){m.left-=M.dimensions.width}if(M.corner.search(/bottom/i)!==-1){m.top-=M.dimensions.height}if(M.corner.search(/((top|bottom)Middle)|center/)!==-1){m.left-=(M.dimensions.width/2)}if(M.corner.search(/((left|right)Middle)|center/)!==-1){m.top-=(M.dimensions.height/2)}p=(H.browser.msie)?1:0;e=(H.browser.msie&&parseInt(H.browser.version.charAt(0))===6)?1:0;if(a.options.style.border.radius>0){if(M.corner.search(/Left/)!==-1){m.left-=a.options.style.border.radius}else{if(M.corner.search(/Right/)!==-1){m.left+=a.options.style.border.radius}}if(M.corner.search(/Top/)!==-1){m.top-=a.options.style.border.radius}else{if(M.corner.search(/Bottom/)!==-1){m.top+=a.options.style.border.radius}}}if(p){if(M.corner.search(/top/)!==-1){m.top-=p}else{if(M.corner.search(/bottom/)!==-1){m.top+=p}}if(M.corner.search(/left/)!==-1){m.left-=p}else{if(M.corner.search(/right/)!==-1){m.left+=p}}if(M.corner.search(/leftMiddle|rightMiddle/)!==-1){m.top-=1}}if(a.options.position.adjust.screen===true){m=B.call(a,m,k,M)}if(a.options.position.target==="mouse"&&a.options.position.adjust.mouse===true){if(a.options.position.adjust.screen===true&&a.elements.tip){r=a.elements.tip.attr("rel")}else{r=a.options.position.corner.tooltip}m.left+=(r.search(/right/i)!==-1)?-6:6;m.top+=(r.search(/bottom/i)!==-1)?-6:6}if(!a.elements.bgiframe&&H.browser.msie&&parseInt(H.browser.version.charAt(0))==6){H("select, object").each(function(){O=H(this).offset();O.bottom=O.top+H(this).height();O.right=O.left+H(this).width();if(m.top+M.dimensions.height>=O.top&&m.left+M.dimensions.width>=O.left){x.call(a)}})}m.left+=a.options.position.adjust.x;m.top+=a.options.position.adjust.y;j=a.getPosition();if(m.left!=j.left||m.top!=j.top){n=a.beforePositionUpdate.call(a,N);if(n===false){return a}a.cache.position=m;if(l===true){a.status.animated=true;a.elements.tooltip.animate(m,200,"swing",function(){a.status.animated=false})}else{a.elements.tooltip.css(m)}a.onPositionUpdate.call(a,N);if(typeof N!=="undefined"&&N.type&&N.type!=="mousemove"){H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}}return a},updateWidth:function(f){var e;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")}else{if(f&&typeof f!=="number"){return H.fn.qtip.log.error.call(a,2,"newWidth must be of type number","updateWidth")}}e=a.elements.contentWrapper.siblings().add(a.elements.tip).add(a.elements.button);if(!f){if(typeof a.options.style.width.value=="number"){f=a.options.style.width.value}else{a.elements.tooltip.css({width:"auto"});e.hide();if(H.browser.msie){a.elements.wrapper.add(a.elements.contentWrapper.children()).css({zoom:"normal"})}f=a.getDimensions().width+1;if(!a.options.style.width.value){if(f>a.options.style.width.max){f=a.options.style.width.max}if(f<a.options.style.width.min){f=a.options.style.width.min}}}}if(f%2!==0){f-=1}a.elements.tooltip.width(f);e.show();if(a.options.style.border.radius){a.elements.tooltip.find(".qtip-betweenCorners").each(function(g){H(this).width(f-(a.options.style.border.radius*2))})}if(H.browser.msie){a.elements.wrapper.add(a.elements.contentWrapper.children()).css({zoom:"1"});a.elements.wrapper.width(f);if(a.elements.bgiframe){a.elements.bgiframe.width(f).height(a.getDimensions.height)}}return H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(h){var g,e,k,f,j;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")}else{if(typeof h!=="string"||!H.fn.qtip.styles[h]){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}}a.options.style=C.call(a,H.fn.qtip.styles[h],a.options.user.style);a.elements.content.css(t(a.options.style));if(a.options.content.title.text!==false){a.elements.title.css(t(a.options.style.title,true))}a.elements.contentWrapper.css({borderColor:a.options.style.border.color});if(a.options.style.tip.corner!==false){if(H("<canvas>").get(0).getContext){g=a.elements.tooltip.find(".qtip-tip canvas:first");k=g.get(0).getContext("2d");k.clearRect(0,0,300,300);f=g.parent("div[rel]:first").attr("rel");j=D(f,a.options.style.tip.size.width,a.options.style.tip.size.height);v.call(a,g,j,a.options.style.tip.color||a.options.style.border.color)}else{if(H.browser.msie){g=a.elements.tooltip.find('.qtip-tip [nodeName="shape"]');g.attr("fillcolor",a.options.style.tip.color||a.options.style.border.color)}}}if(a.options.style.border.radius>0){a.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:a.options.style.border.color});if(H("<canvas>").get(0).getContext){e=I(a.options.style.border.radius);a.elements.tooltip.find(".qtip-wrapper canvas").each(function(){k=H(this).get(0).getContext("2d");k.clearRect(0,0,300,300);f=H(this).parent("div[rel]:first").attr("rel");u.call(a,H(this),e[f],a.options.style.border.radius,a.options.style.border.color)})}else{if(H.browser.msie){a.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){H(this).attr("fillcolor",a.options.style.border.color)})}}}return H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(h,f){var g,e,k;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")}else{if(!h){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}}g=a.beforeContentUpdate.call(a,h);if(typeof g=="string"){h=g}else{if(g===false){return}}if(H.browser.msie){a.elements.contentWrapper.children().css({zoom:"normal"})}if(h.jquery&&h.length>0){h.clone(true).appendTo(a.elements.content).show()}else{a.elements.content.html(h)}e=a.elements.content.find("img[complete=false]");if(e.length>0){k=0;e.each(function(l){H('<img src="'+H(this).attr("src")+'" />').load(function(){if(++k==e.length){j()}})})}else{j()}function j(){a.updateWidth();if(f!==false){if(a.options.position.type!=="static"){a.updatePosition(a.elements.tooltip.is(":visible"),true)}if(a.options.style.tip.corner!==false){A.call(a)}}}a.onContentUpdate.call(a);return H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(h,g,e){var f;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")}f=a.beforeContentLoad.call(a);if(f===false){return a}if(e=="post"){H.post(h,g,j)}else{H.get(h,g,j)}function j(k){a.onContentLoad.call(a);H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");a.updateContent(k)}return a},updateTitle:function(e){if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")}else{if(!e){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}}returned=a.beforeTitleUpdate.call(a);if(returned===false){return a}if(a.elements.button){a.elements.button=a.elements.button.clone(true)}a.elements.title.html(e);if(a.elements.button){a.elements.title.prepend(a.elements.button)}a.onTitleUpdate.call(a);return H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(h){var f,e,j,g;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")}else{if(a.options.position.type=="static"){return H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}}f=parseInt(a.elements.tooltip.css("z-index"));e=6000+H("div.qtip[qtip]").length-1;if(!a.status.focused&&f!==e){g=a.beforeFocus.call(a,h);if(g===false){return a}H("div.qtip[qtip]").not(a.elements.tooltip).each(function(){if(H(this).qtip("api").status.rendered===true){j=parseInt(H(this).css("z-index"));if(typeof j=="number"&&j>-1){H(this).css({zIndex:parseInt(H(this).css("z-index"))-1})}H(this).qtip("api").status.focused=false}});a.elements.tooltip.css({zIndex:e});a.status.focused=true;a.onFocus.call(a,h);H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_FOCUSED,"focus")}return a},disable:function(e){if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")}if(e){if(!a.status.disabled){a.status.disabled=true;H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_DISABLED,"disable")}else{H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")}}else{if(a.status.disabled){a.status.disabled=false;H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_ENABLED,"disable")}else{H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")}}return a},destroy:function(){var g,e,f;e=a.beforeDestroy.call(a);if(e===false){return a}if(a.status.rendered){a.options.show.when.target.unbind("mousemove.qtip",a.updatePosition);a.options.show.when.target.unbind("mouseout.qtip",a.hide);a.options.show.when.target.unbind(a.options.show.when.event+".qtip");a.options.hide.when.target.unbind(a.options.hide.when.event+".qtip");a.elements.tooltip.unbind(a.options.hide.when.event+".qtip");a.elements.tooltip.unbind("mouseover.qtip",a.focus);a.elements.tooltip.remove()}else{a.options.show.when.target.unbind(a.options.show.when.event+".qtip-create")}if(typeof a.elements.target.data("qtip")=="object"){f=a.elements.target.data("qtip").interfaces;if(typeof f=="object"&&f.length>0){for(g=0;g<f.length-1;g++){if(f[g].id==a.id){f.splice(g,1)}}}}delete H.fn.qtip.interfaces[a.id];if(typeof f=="object"&&f.length>0){a.elements.target.data("qtip").current=f.length-1}else{a.elements.target.removeData("qtip")}a.onDestroy.call(a);H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_DESTROYED,"destroy");return a.elements.target},getPosition:function(){var f,e;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")}f=(a.elements.tooltip.css("display")!=="none")?false:true;if(f){a.elements.tooltip.css({visiblity:"hidden"}).show()}e=a.elements.tooltip.offset();if(f){a.elements.tooltip.css({visiblity:"visible"}).hide()}return e},getDimensions:function(){var f,e;if(!a.status.rendered){return H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")}f=(!a.elements.tooltip.is(":visible"))?true:false;if(f){a.elements.tooltip.css({visiblity:"hidden"}).show()}e={height:a.elements.tooltip.outerHeight(),width:a.elements.tooltip.outerWidth()};if(f){a.elements.tooltip.css({visiblity:"visible"}).hide()}return e}})}function s(){var a,e,c,b,d,g,f;a=this;a.beforeRender.call(a);a.status.rendered=true;a.elements.tooltip='<div qtip="'+a.id+'" class="qtip '+(a.options.style.classes.tooltip||a.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+a.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+a.options.style.classes.content+'"></div></div></div></div>';a.elements.tooltip=H(a.elements.tooltip);a.elements.tooltip.appendTo(a.options.position.container);a.elements.tooltip.data("qtip",{current:0,interfaces:[a]});a.elements.wrapper=a.elements.tooltip.children("div:first");a.elements.contentWrapper=a.elements.wrapper.children("div:first").css({background:a.options.style.background});a.elements.content=a.elements.contentWrapper.children("div:first").css(t(a.options.style));if(H.browser.msie){a.elements.wrapper.add(a.elements.content).css({zoom:1})}if(a.options.hide.when.event=="unfocus"){a.elements.tooltip.attr("unfocus",true)}if(typeof a.options.style.width.value=="number"){a.updateWidth()}if(H("<canvas>").get(0).getContext||H.browser.msie){if(a.options.style.border.radius>0){z.call(a)}else{a.elements.contentWrapper.css({border:a.options.style.border.width+"px solid "+a.options.style.border.color})}if(a.options.style.tip.corner!==false){G.call(a)}}else{a.elements.contentWrapper.css({border:a.options.style.border.width+"px solid "+a.options.style.border.color});a.options.style.border.radius=0;a.options.style.tip.corner=false;H.fn.qtip.log.error.call(a,2,H.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if((typeof a.options.content.text=="string"&&a.options.content.text.length>0)||(a.options.content.text.jquery&&a.options.content.text.length>0)){c=a.options.content.text}else{if(typeof a.elements.target.attr("title")=="string"&&a.elements.target.attr("title").length>0){c=a.elements.target.attr("title").replace("\\n","<br />");a.elements.target.attr("title","")}else{if(typeof a.elements.target.attr("alt")=="string"&&a.elements.target.attr("alt").length>0){c=a.elements.target.attr("alt").replace("\\n","<br />");a.elements.target.attr("alt","")}else{c=" ";H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.NO_VALID_CONTENT,"render")}}}if(a.options.content.title.text!==false){w.call(a)}a.updateContent(c);y.call(a);if(a.options.show.ready===true){a.show()}if(a.options.content.url!==false){b=a.options.content.url;d=a.options.content.data;g=a.options.content.method||"get";a.loadContent(b,d,g)}a.onRender.call(a);H.fn.qtip.log.error.call(a,1,H.fn.qtip.constants.EVENT_RENDERED,"render")}function z(){var e,j,l,a,g,d,m,f,c,h,o,b,p,k,n;e=this;e.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();l=e.options.style.border.width;a=e.options.style.border.radius;g=e.options.style.border.color||e.options.style.tip.color;d=I(a);m={};for(j in d){m[j]='<div rel="'+j+'" style="'+((j.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+a+"px; width:"+a+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(H("<canvas>").get(0).getContext){m[j]+='<canvas height="'+a+'" width="'+a+'" style="vertical-align: top"></canvas>'}else{if(H.browser.msie){f=a*2+3;m[j]+='<v:arc stroked="false" fillcolor="'+g+'" startangle="'+d[j][0]+'" endangle="'+d[j][1]+'" style="width:'+f+"px; height:"+f+"px; margin-top:"+((j.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((j.search(/Right/)!==-1)?d[j][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}}m[j]+="</div>"}c=e.getDimensions().width-(Math.max(l,a)*2);h='<div class="qtip-betweenCorners" style="height:'+a+"px; width:"+c+"px; overflow:hidden; background-color:"+g+'; line-height:0.1px; font-size:1px;">';o='<div class="qtip-borderTop" dir="ltr" style="height:'+a+"px; margin-left:"+a+'px; line-height:0.1px; font-size:1px; padding:0;">'+m.topLeft+m.topRight+h;e.elements.wrapper.prepend(o);b='<div class="qtip-borderBottom" dir="ltr" style="height:'+a+"px; margin-left:"+a+'px; line-height:0.1px; font-size:1px; padding:0;">'+m.bottomLeft+m.bottomRight+h;e.elements.wrapper.append(b);if(H("<canvas>").get(0).getContext){e.elements.wrapper.find("canvas").each(function(){p=d[H(this).parent("[rel]:first").attr("rel")];u.call(e,H(this),p,a,g)})}else{if(H.browser.msie){e.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}k=Math.max(a,(a+(l-a)));n=Math.max(l-a,0);e.elements.contentWrapper.css({border:"0px solid "+g,borderWidth:n+"px "+k+"px"})}function u(c,e,a,b){var d=c.get(0).getContext("2d");d.fillStyle=b;d.beginPath();d.arc(e[0],e[1],a,0,Math.PI*2,false);d.fill()}function G(d){var b,a,f,c,e;b=this;if(b.elements.tip!==null){b.elements.tip.remove()}a=b.options.style.tip.color||b.options.style.border.color;if(b.options.style.tip.corner===false){return}else{if(!d){d=b.options.style.tip.corner}}f=D(d,b.options.style.tip.size.width,b.options.style.tip.size.height);b.elements.tip='<div class="'+b.options.style.classes.tip+'" dir="ltr" rel="'+d+'" style="position:absolute; height:'+b.options.style.tip.size.height+"px; width:"+b.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(H("<canvas>").get(0).getContext){b.elements.tip+='<canvas height="'+b.options.style.tip.size.height+'" width="'+b.options.style.tip.size.width+'"></canvas>'}else{if(H.browser.msie){c=b.options.style.tip.size.width+","+b.options.style.tip.size.height;e="m"+f[0][0]+","+f[0][1];e+=" l"+f[1][0]+","+f[1][1];e+=" "+f[2][0]+","+f[2][1];e+=" xe";b.elements.tip+='<v:shape fillcolor="'+a+'" stroked="false" filled="true" path="'+e+'" coordsize="'+c+'" style="width:'+b.options.style.tip.size.width+"px; height:"+b.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((d.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';b.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';b.elements.contentWrapper.css("position","relative")}}b.elements.tooltip.prepend(b.elements.tip+"</div>");b.elements.tip=b.elements.tooltip.find("."+b.options.style.classes.tip).eq(0);if(H("<canvas>").get(0).getContext){v.call(b,b.elements.tip.find("canvas:first"),f,a)}if(d.search(/top/)!==-1&&H.browser.msie&&parseInt(H.browser.version.charAt(0))===6){b.elements.tip.css({marginTop:-4})}A.call(b,d)}function v(b,d,a){var c=b.get(0).getContext("2d");c.fillStyle=a;c.beginPath();c.moveTo(d[0][0],d[0][1]);c.lineTo(d[1][0],d[1][1]);c.lineTo(d[2][0],d[2][1]);c.fill()}function A(c){var b,e,a,f,d;b=this;if(b.options.style.tip.corner===false||!b.elements.tip){return}if(!c){c=b.elements.tip.attr("rel")}e=positionAdjust=(H.browser.msie)?1:0;b.elements.tip.css(c.match(/left|right|top|bottom/)[0],0);if(c.search(/top|bottom/)!==-1){if(H.browser.msie){if(parseInt(H.browser.version.charAt(0))===6){positionAdjust=(c.search(/top/)!==-1)?-3:1}else{positionAdjust=(c.search(/top/)!==-1)?1:2}}if(c.search(/Middle/)!==-1){b.elements.tip.css({left:"50%",marginLeft:-(b.options.style.tip.size.width/2)})}else{if(c.search(/Left/)!==-1){b.elements.tip.css({left:b.options.style.border.radius-e})}else{if(c.search(/Right/)!==-1){b.elements.tip.css({right:b.options.style.border.radius+e})}}}if(c.search(/top/)!==-1){b.elements.tip.css({top:-positionAdjust})}else{b.elements.tip.css({bottom:positionAdjust})}}else{if(c.search(/left|right/)!==-1){if(H.browser.msie){positionAdjust=(parseInt(H.browser.version.charAt(0))===6)?1:((c.search(/left/)!==-1)?1:2)}if(c.search(/Middle/)!==-1){b.elements.tip.css({top:"50%",marginTop:-(b.options.style.tip.size.height/2)})}else{if(c.search(/Top/)!==-1){b.elements.tip.css({top:b.options.style.border.radius-e})}else{if(c.search(/Bottom/)!==-1){b.elements.tip.css({bottom:b.options.style.border.radius+e})}}}if(c.search(/left/)!==-1){b.elements.tip.css({left:-positionAdjust})}else{b.elements.tip.css({right:positionAdjust})}}}a="padding-"+c.match(/left|right|top|bottom/)[0];f=b.options.style.tip.size[(a.search(/left|right/)!==-1)?"width":"height"];b.elements.tooltip.css("padding",0);b.elements.tooltip.css(a,f);if(H.browser.msie&&parseInt(H.browser.version.charAt(0))==6){d=parseInt(b.elements.tip.css("margin-top"))||0;d+=parseInt(b.elements.content.css("margin-top"))||0;b.elements.tip.css({marginTop:d})}}function w(){var a=this;if(a.elements.title!==null){a.elements.title.remove()}a.elements.title=H('<div class="'+a.options.style.classes.title+'">').css(t(a.options.style.title,true)).css({zoom:(H.browser.msie)?1:0}).prependTo(a.elements.contentWrapper);if(a.options.content.title.text){a.updateTitle.call(a,a.options.content.title.text)}if(a.options.content.title.button!==false&&typeof a.options.content.title.button=="string"){a.elements.button=H('<a class="'+a.options.style.classes.button+'" style="float:right; position: relative"></a>').css(t(a.options.style.button,true)).html(a.options.content.title.button).prependTo(a.elements.title).click(function(b){if(!a.status.disabled){a.hide(b)}})}}function y(){var b,d,c,a;b=this;d=b.options.show.when.target;c=b.options.hide.when.target;if(b.options.hide.fixed){c=c.add(b.elements.tooltip)}if(b.options.hide.when.event=="inactive"){a=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function g(h){if(b.status.disabled===true){return}clearTimeout(b.timers.inactive);b.timers.inactive=setTimeout(function(){H(a).each(function(){c.unbind(this+".qtip-inactive");b.elements.content.unbind(this+".qtip-inactive")});b.hide(h)},b.options.hide.delay)}}else{if(b.options.hide.fixed===true){b.elements.tooltip.bind("mouseover.qtip",function(){if(b.status.disabled===true){return}clearTimeout(b.timers.hide)})}}function f(h){if(b.status.disabled===true){return}if(b.options.hide.when.event=="inactive"){H(a).each(function(){c.bind(this+".qtip-inactive",g);b.elements.content.bind(this+".qtip-inactive",g)});g()}clearTimeout(b.timers.show);clearTimeout(b.timers.hide);b.timers.show=setTimeout(function(){b.show(h)},b.options.show.delay)}function e(h){if(b.status.disabled===true){return}if(b.options.hide.fixed===true&&b.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&H(h.relatedTarget).parents("div.qtip[qtip]").length>0){h.stopPropagation();h.preventDefault();clearTimeout(b.timers.hide);return false}clearTimeout(b.timers.show);clearTimeout(b.timers.hide);b.elements.tooltip.stop(true,true);b.timers.hide=setTimeout(function(){b.hide(h)},b.options.hide.delay)}if((b.options.show.when.target.add(b.options.hide.when.target).length===1&&b.options.show.when.event==b.options.hide.when.event&&b.options.hide.when.event!=="inactive")||b.options.hide.when.event=="unfocus"){b.cache.toggle=0;d.bind(b.options.show.when.event+".qtip",function(h){if(b.cache.toggle==0){f(h)}else{e(h)}})}else{d.bind(b.options.show.when.event+".qtip",f);if(b.options.hide.when.event!=="inactive"){c.bind(b.options.hide.when.event+".qtip",e)}}if(b.options.position.type.search(/(fixed|absolute)/)!==-1){b.elements.tooltip.bind("mouseover.qtip",b.focus)}if(b.options.position.target==="mouse"&&b.options.position.type!=="static"){d.bind("mousemove.qtip",function(h){b.cache.mouse={x:h.pageX,y:h.pageY};if(b.status.disabled===false&&b.options.position.adjust.mouse===true&&b.options.position.type!=="static"&&b.elements.tooltip.css("display")!=="none"){b.updatePosition(h)}})}}function B(f,g,j){var c,d,a,b,e,h;c=this;if(j.corner=="center"){return g.position}d=H.extend({},f);b={x:false,y:false};e={left:(d.left<H.fn.qtip.cache.screen.scroll.left),right:(d.left+j.dimensions.width+2>=H.fn.qtip.cache.screen.width+H.fn.qtip.cache.screen.scroll.left),top:(d.top<H.fn.qtip.cache.screen.scroll.top),bottom:(d.top+j.dimensions.height+2>=H.fn.qtip.cache.screen.height+H.fn.qtip.cache.screen.scroll.top)};a={left:(e.left&&(j.corner.search(/right/i)!=-1||(j.corner.search(/right/i)==-1&&!e.right))),right:(e.right&&(j.corner.search(/left/i)!=-1||(j.corner.search(/left/i)==-1&&!e.left))),top:(e.top&&j.corner.search(/top/i)==-1),bottom:(e.bottom&&j.corner.search(/bottom/i)==-1)};if(a.left){if(c.options.position.target!=="mouse"){d.left=g.position.left+g.dimensions.width}else{d.left=c.cache.mouse.x}b.x="Left"}else{if(a.right){if(c.options.position.target!=="mouse"){d.left=g.position.left-j.dimensions.width}else{d.left=c.cache.mouse.x-j.dimensions.width}b.x="Right"}}if(a.top){if(c.options.position.target!=="mouse"){d.top=g.position.top+g.dimensions.height}else{d.top=c.cache.mouse.y}b.y="top"}else{if(a.bottom){if(c.options.position.target!=="mouse"){d.top=g.position.top-j.dimensions.height}else{d.top=c.cache.mouse.y-j.dimensions.height}b.y="bottom"}}if(d.left<0){d.left=f.left;b.x=false}if(d.top<0){d.top=f.top;b.y=false}if(c.options.style.tip.corner!==false){d.corner=new String(j.corner);if(b.x!==false){d.corner=d.corner.replace(/Left|Right|Middle/,b.x)}if(b.y!==false){d.corner=d.corner.replace(/top|bottom/,b.y)}if(d.corner!==c.elements.tip.attr("rel")){G.call(c,d.corner)}}return d}function t(c,b){var d,a;d=H.extend(true,{},c);for(a in d){if(b===true&&a.search(/(tip|classes)/i)!==-1){delete d[a]}else{if(!b&&a.search(/(width|border|tip|title|classes|user)/i)!==-1){delete d[a]}}}return d}function E(a){if(typeof a.tip!=="object"){a.tip={corner:a.tip}}if(typeof a.tip.size!=="object"){a.tip.size={width:a.tip.size,height:a.tip.size}}if(typeof a.border!=="object"){a.border={width:a.border}}if(typeof a.width!=="object"){a.width={value:a.width}}if(typeof a.width.max=="string"){a.width.max=parseInt(a.width.max.replace(/([0-9]+)/i,"$1"))}if(typeof a.width.min=="string"){a.width.min=parseInt(a.width.min.replace(/([0-9]+)/i,"$1"))}if(typeof a.tip.size.x=="number"){a.tip.size.width=a.tip.size.x;delete a.tip.size.x}if(typeof a.tip.size.y=="number"){a.tip.size.height=a.tip.size.y;delete a.tip.size.y}return a}function C(){var a,b,c,f,d,e;a=this;c=[true,{}];for(b=0;b<arguments.length;b++){c.push(arguments[b])}f=[H.extend.apply(H,c)];while(typeof f[0].name=="string"){f.unshift(E(H.fn.qtip.styles[f[0].name]))}f.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},H.fn.qtip.styles.defaults);d=H.extend.apply(H,f);e=(H.browser.msie)?1:0;d.tip.size.width+=e;d.tip.size.height+=e;if(d.tip.size.width%2>0){d.tip.size.width+=1}if(d.tip.size.height%2>0){d.tip.size.height+=1}if(d.tip.corner===true){d.tip.corner=(a.options.position.corner.tooltip==="center")?false:a.options.position.corner.tooltip}return d}function D(d,c,b){var a={bottomRight:[[0,0],[c,b],[c,0]],bottomLeft:[[0,0],[c,0],[0,b]],topRight:[[0,b],[c,0],[c,b]],topLeft:[[0,0],[0,b],[c,b]],topMiddle:[[0,b],[c/2,0],[c,b]],bottomMiddle:[[0,0],[c,0],[c/2,b]],rightMiddle:[[0,0],[c,b/2],[0,b]],leftMiddle:[[c,0],[c,b],[0,b/2]]};a.leftTop=a.bottomRight;a.rightTop=a.bottomLeft;a.leftBottom=a.topRight;a.rightBottom=a.topLeft;return a[d]}function I(a){var b;if(H("<canvas>").get(0).getContext){b={topLeft:[a,a],topRight:[0,a],bottomLeft:[a,0],bottomRight:[0,0]}}else{if(H.browser.msie){b={topLeft:[-90,90,0],topRight:[-90,90,-a],bottomLeft:[90,270,0],bottomRight:[90,270,-a]}}}return b}function x(){var a,b,c;a=this;c=a.getDimensions();b='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+c.height+"px; width:"+c.width+'px" />';a.elements.bgiframe=a.elements.wrapper.prepend(b).children(".qtip-bgiframe:first")}H(document).ready(function(){H.fn.qtip.cache={screen:{scroll:{left:H(window).scrollLeft(),top:H(window).scrollTop()},width:H(window).width(),height:H(window).height()}};var a;H(window).bind("resize scroll",function(b){clearTimeout(a);a=setTimeout(function(){if(b.type==="scroll"){H.fn.qtip.cache.screen.scroll={left:H(window).scrollLeft(),top:H(window).scrollTop()}}else{H.fn.qtip.cache.screen.width=H(window).width();H.fn.qtip.cache.screen.height=H(window).height()}for(i=0;i<H.fn.qtip.interfaces.length;i++){var c=H.fn.qtip.interfaces[i];if(c.status.rendered===true&&(c.options.position.type!=="static"||c.options.position.adjust.scroll&&b.type==="scroll"||c.options.position.adjust.resize&&b.type==="resize")){c.updatePosition(b,true)}}},100)});H(document).bind("mousedown.qtip",function(b){if(H(b.target).parents("div.qtip").length===0){H(".qtip[unfocus]").each(function(){var c=H(this).qtip("api");if(H(this).is(":visible")&&!c.status.disabled&&H(b.target).add(c.elements.target).length>1){c.hide(b)}})}})});H.fn.qtip.interfaces=[];H.fn.qtip.log={error:function(){return this}};H.fn.qtip.constants={};H.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};H.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);
