").next(),u=d.get(0),f=(s.attr("direction")||"left").toLowerCase(),h={dir:/down|right/.test(f)?-1:1,axis:/left|right/.test(f)?"scrollLeft":"scrollTop",widthAxis:/left|right/.test(f)?"scrollWidth":"scrollHeight",last:-1,loops:s.attr("loop")||-1,scrollamount:s.attr("scrollamount")||this.scrollAmount||2,behavior:(s.attr("behavior")||"scroll").toLowerCase(),width:/left|right/.test(f)?l:c};-1==s.attr("loop")&&"slide"==h.behavior&&(h.loops=1),s.remove(),/left|right/.test(f)?d.find("> div").css("padding","0 "+l+"px"):d.find("> div").css("padding",c+"px 0"),d.bind("stop",function(){d.data("paused",!0)}).bind("pause",function(){d.data("paused",!0)}).bind("start",function(){d.data("paused",!1)}).bind("unpause",function(){d.data("paused",!1)}).data("marqueeState",h),n.push(u),u[h.axis]=o(h.dir,u,h),d.trigger("start"),a+1==i&&r()}),e(n)}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){function t(t,n){function i(e){var t,n,i="y"===e.precedance,o=y[i?"width":"height"],r=y[i?"height":"width"],a=e.string().indexOf("center")>-1,s=o*(a?.5:1),l=Math.pow,c=Math.round,d=Math.sqrt(l(s,2)+l(r,2)),u=[b/s*d,b/r*d];return u[2]=Math.sqrt(l(u[0],2)-l(b,2)),u[3]=Math.sqrt(l(u[1],2)-l(b,2)),{height:(n=[c((t=(d+u[2]+u[3]+(a?0:u[0]))/d)*r),c(t*o)])[i?0:1],width:n[i?1:0]}}function o(t){var n=p.titlebar&&"top"===t.y?p.titlebar:p.content,i=e.browser.mozilla,o=i?"-moz-":e.browser.webkit?"-webkit-":"",r=t.y+(i?"":"-")+t.x,a=o+(i?"border-radius-"+r:"border-"+r+"-radius");return parseInt(n.css(a),10)||parseInt(m.css(a),10)||0}function r(e,t,n){t=t||e[e.precedance];var i,o=m.hasClass(T),r=p.titlebar&&"top"===e.y?p.titlebar:p.tooltip,a="border-"+t+"-width";return m.addClass(T),i=parseInt(r.css(a),10),i=(n?i||parseInt(m.css(a),10):i)||0,m.toggleClass(T,o),i}function s(e,n,i,o){if(p.tip){var s,l,h=c.corner.clone(),m=i.adjusted,y=t.options.position.adjust.method.split(" "),v=y[0],b=y[1]||y[0],x={left:f,top:f,x:0,y:0},w={};c.corner.fixed!==u&&("shift"===v&&"x"===h.precedance&&m.left&&"center"!==h.y?h.precedance="x"===h.precedance?"y":"x":"shift"!==v&&m.left&&(h.x="center"===h.x?m.left>0?"left":"right":"left"===h.x?"right":"left"),"shift"===b&&"y"===h.precedance&&m.top&&"center"!==h.x?h.precedance="y"===h.precedance?"x":"y":"shift"!==b&&m.top&&(h.y="center"===h.y?m.top>0?"top":"bottom":"top"===h.y?"bottom":"top"),h.string()!==g.corner.string()&&(g.top!==m.top||g.left!==m.left)&&c.update(h,f)),(s=c.position(h,m))[h.x]+=r(h,h.x,u),s[h.y]+=r(h,h.y,u),s.right!==a&&(s.left=-s.right),s.bottom!==a&&(s.top=-s.bottom),s.user=Math.max(0,d.offset),(x.left="shift"===v&&!!m.left)&&("center"===h.x?w["margin-left"]=x.x=s["margin-left"]-m.left:(l=s.right!==a?[m.left,-s.left]:[-m.left,s.left],(x.x=Math.max(l[0],l[1]))>l[0]&&(i.left-=m.left,x.left=f),w[s.right!==a?"right":"left"]=x.x)),(x.top="shift"===b&&!!m.top)&&("center"===h.y?w["margin-top"]=x.y=s["margin-top"]-m.top:(l=s.bottom!==a?[m.top,-s.top]:[-m.top,s.top],(x.y=Math.max(l[0],l[1]))>l[0]&&(i.top-=m.top,x.top=f),w[s.bottom!==a?"bottom":"top"]=x.y)),p.tip.css(w).toggle(!(x.x&&x.y||"center"===h.x&&x.y||"center"===h.y&&x.x)),i.left-=s.left.charAt?s.user:"shift"!==v||x.top||!x.left&&!x.top?s.left:0,i.top-=s.top.charAt?s.user:"shift"!==b||x.left||!x.left&&!x.top?s.top:0,g.left=m.left,g.top=m.top,g.corner=h.clone()}}var c=this,d=t.options.style.tip,p=t.elements,m=p.tooltip,g={top:0,left:0},y={width:d.width,height:d.height},v={},b=d.border||0,x=".qtip-tip",w=!!(e("