(function(E){E.fn.jqm=function(F){var A={overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:O,ajaxText:"",target:O,modal:O,toTop:O,onShow:O,onHide:O,onLoad:O};
return this.each(function(){if(this._jqm){return N[this._jqm].c=E.extend({},N[this._jqm].c,F)
}P++;
this._jqm=P;
N[P]={c:E.extend(A,E.jqm.params,F),a:O,w:E(this).addClass("jqmID"+P),s:P};
if(A.trigger){E(this).jqmAddTrigger(A.trigger)
}})
};
E.fn.jqmAddClose=function(A){return M(this,A,"jqmHide")
};
E.fn.jqmAddTrigger=function(A){return M(this,A,"jqmShow")
};
E.fn.jqmShow=function(A){return this.each(function(){A=A||window.event;
E.jqm.open(this._jqm,A)
})
};
E.fn.jqmHide=function(A){return this.each(function(){A=A||window.event;
E.jqm.close(this._jqm,A)
})
};
E.jqm={hash:{},open:function(V,U){var L=N[V],Q=L.c,H="."+Q.closeClass,R=(parseInt(L.w.css("z-index"))),R=(R>0)?R:3000,F=E("<div></div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":R-1,opacity:Q.overlay/100});
if(L.a){return O
}L.t=U;
L.a=true;
L.w.css("z-index",R);
if(Q.modal){if(!B[0]){K("bind")
}B.push(V)
}else{if(Q.overlay>0){L.w.jqmAddClose(F)
}else{F=O
}}L.o=(F)?F.addClass(Q.overlayClass).prependTo("body"):O;
if(D){E("html,body").css({height:"100%",width:"100%"});
if(F){F=F.css({position:"absolute"})[0];
for(var S in {Top:1,Left:1}){F.style.setExpression(S.toLowerCase(),"(_=(document.documentElement.scroll"+S+" || document.body.scroll"+S+"))+'px'")
}}}if(Q.ajax){var A=Q.target||L.w,T=Q.ajax,A=(typeof A=="string")?E(A,L.w):E(A),T=(T.substr(0,1)=="@")?E(U).attr(T.substring(1)):T;
A.html(Q.ajaxText).load(T,function(){if(Q.onLoad){Q.onLoad.call(this,L)
}if(H){L.w.jqmAddClose(E(H,L.w))
}J(L)
})
}else{if(H){L.w.jqmAddClose(E(H,L.w))
}}if(Q.toTop&&L.o){L.w.before('<span id="jqmP'+L.w[0]._jqm+'"></span>').insertAfter(L.o)
}(Q.onShow)?Q.onShow(L):L.w.show();
J(L);
return O
},close:function(F){var A=N[F];
if(!A.a){return O
}A.a=O;
if(B[0]){B.pop();
if(!B[0]){K("unbind")
}}if(A.c.toTop&&A.o){E("#jqmP"+A.w[0]._jqm).after(A.w).remove()
}if(A.c.onHide){A.c.onHide(A)
}else{A.w.hide();
if(A.o){A.o.remove()
}}return O
},params:{}};
var P=0,N=E.jqm.hash,B=[],D=E.browser.msie&&(E.browser.version=="6.0"),O=false,G=E('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),J=function(A){if(D){if(A.o){A.o.html('<p style="width:100%;height:100%"/>').prepend(G)
}else{if(!E("iframe.jqm",A.w)[0]){A.w.prepend(G)
}}}I(A)
},I=function(F){try{E(":input:visible",F.w)[0].focus()
}catch(A){}},K=function(A){E()[A]("keypress",C)[A]("keydown",C)[A]("mousedown",C)
},C=function(H){var A=N[B[B.length-1]],F=(!E(H.target).parents(".jqmID"+A.s)[0]);
if(F){I(A)
}return !F
},M=function(A,F,H){return A.each(function(){var L=this._jqm;
E(F).each(function(){if(!this[H]){this[H]=[];
E(this).click(function(){for(var Q in {jqmShow:1,jqmHide:1}){for(var R in this[Q]){if(N[this[Q][R]]){N[this[Q][R]].w[Q](this)
}}}return O
})
}this[H].push(L)
})
})
}
})(jQuery);
(function(E){var B={},K,M,O,J=E.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),A=false;
E.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){E.tooltip.blocked=!E.tooltip.blocked
}};
E.fn.extend({tooltip:function(P){P=E.extend({},E.tooltip.defaults,P);
H(P);
return this.each(function(){E.data(this,"tooltip",P);
this.tOpacity=B.parent.css("opacity");
this.tooltipText=this.title;
E(this).removeAttr("title");
this.alt=""
}).mouseover(L).mouseout(F).click(F)
},fixPNG:J?function(){return this.each(function(){var P=E(this).css("backgroundImage");
if(P.match(/^url\(["']?(.*\.png)["']?\)$/i)){P=RegExp.$1;
E(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+P+"')"}).each(function(){var Q=E(this).css("position");
if(Q!="absolute"&&Q!="relative"){E(this).css("position","relative")
}})
}})
}:function(){return this
},unfixPNG:J?function(){return this.each(function(){E(this).css({filter:"",backgroundImage:""})
})
}:function(){return this
},hideWhenEmpty:function(){return this.each(function(){E(this)[E(this).html()?"show":"hide"]()
})
},url:function(){return this.attr("href")||this.attr("src")
}});
function H(P){if(B.parent){return 
}B.parent=E('<div id="'+P.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();
if(E.fn.bgiframe){B.parent.bgiframe()
}B.title=E("h3",B.parent);
B.body=E("div.body",B.parent);
B.url=E("div.url",B.parent)
}function C(P){return E.data(P,"tooltip")
}function G(P){if(C(this).delay){O=setTimeout(N,C(this).delay)
}else{N()
}A=!!C(this).track;
E(document.body).bind("mousemove",D);
D(P)
}function L(){if(E.tooltip.blocked||this==K||(!this.tooltipText&&!C(this).bodyHandler)){return 
}K=this;
M=this.tooltipText;
if(C(this).bodyHandler){B.title.hide();
var S=C(this).bodyHandler.call(this);
if(S.nodeType||S.jquery){B.body.empty().append(S)
}else{B.body.html(S)
}B.body.show()
}else{if(C(this).showBody){var R=M.split(C(this).showBody);
B.title.html(R.shift()).show();
B.body.empty();
for(var Q=0,P;
(P=R[Q]);
Q++){if(Q>0){B.body.append("<br/>")
}B.body.append(P)
}B.body.hideWhenEmpty()
}else{B.title.html(M).show();
B.body.hide()
}}if(C(this).showURL&&E(this).url()){B.url.html(E(this).url().replace("http://","")).show()
}else{B.url.hide()
}B.parent.addClass(C(this).extraClass);
if(C(this).fixPNG){B.parent.fixPNG()
}G.apply(this,arguments)
}function N(){O=null;
if((!J||!E.fn.bgiframe)&&C(K).fade){if(B.parent.is(":animated")){B.parent.stop().show().fadeTo(C(K).fade,K.tOpacity)
}else{B.parent.is(":visible")?B.parent.fadeTo(C(K).fade,K.tOpacity):B.parent.fadeIn(C(K).fade)
}}else{B.parent.show()
}D()
}function D(S){if(E.tooltip.blocked){return 
}if(S&&S.target.tagName=="OPTION"){return 
}if(!A&&B.parent.is(":visible")){E(document.body).unbind("mousemove",D)
}if(K==null){E(document.body).unbind("mousemove",D);
return 
}B.parent.removeClass("viewport-right").removeClass("viewport-bottom");
var U=B.parent[0].offsetLeft;
var T=B.parent[0].offsetTop;
if(S){U=S.pageX+C(K).left;
T=S.pageY+C(K).top;
var Q="auto";
if(C(K).positionLeft){Q=E(window).width()-U;
U="auto"
}B.parent.css({left:U,right:Q,top:T})
}var P=I(),R=B.parent[0];
if(P.x+P.cx<R.offsetLeft+R.offsetWidth){U-=R.offsetWidth+20+C(K).left;
B.parent.css({left:U+"px"}).addClass("viewport-right")
}if(P.y+P.cy<R.offsetTop+R.offsetHeight){T-=R.offsetHeight+20+C(K).top;
B.parent.css({top:T+"px"}).addClass("viewport-bottom")
}}function I(){return{x:E(window).scrollLeft(),y:E(window).scrollTop(),cx:E(window).width(),cy:E(window).height()}
}function F(R){if(E.tooltip.blocked){return 
}if(O){clearTimeout(O)
}K=null;
var Q=C(this);
function P(){B.parent.removeClass(Q.extraClass).hide().css("opacity","")
}if((!J||!E.fn.bgiframe)&&Q.fade){if(B.parent.is(":animated")){B.parent.stop().fadeTo(Q.fade,0,P)
}else{B.parent.stop().fadeOut(Q.fade,P)
}}else{P()
}if(C(this).fixPNG){B.parent.unfixPNG()
}}})(jQuery);
(function(A){A.fn.hoverIntent=function(I,H){var J={sensitivity:7,interval:100,timeout:0};
J=A.extend(J,H?{over:I,out:H}:I);
var L,K,F,D;
var E=function(M){L=M.pageX;
K=M.pageY
};
var C=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);
if((Math.abs(F-L)+Math.abs(D-K))<J.sensitivity){A(M).unbind("mousemove",E);
M.hoverIntent_s=1;
return J.over.apply(M,[N])
}else{F=L;
D=K;
M.hoverIntent_t=setTimeout(function(){C(N,M)
},J.interval)
}};
var G=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);
M.hoverIntent_s=0;
return J.out.apply(M,[N])
};
var B=function(P){var O=(P.type=="mouseover"?P.fromElement:P.toElement)||P.relatedTarget;
while(O&&O!=this){try{O=O.parentNode
}catch(P){O=this
}}if(O==this){return false
}var N=jQuery.extend({},P);
var M=this;
if(M.hoverIntent_t){M.hoverIntent_t=clearTimeout(M.hoverIntent_t)
}if(P.type=="mouseover"){F=N.pageX;
D=N.pageY;
A(M).bind("mousemove",E);
if(M.hoverIntent_s!=1){M.hoverIntent_t=setTimeout(function(){C(N,M)
},J.interval)
}}else{A(M).unbind("mousemove",E);
if(M.hoverIntent_s==1){M.hoverIntent_t=setTimeout(function(){G(N,M)
},J.timeout)
}}};
return this.mouseover(B).mouseout(B)
}
})(jQuery);
(function(A){A.browserTest=function(D,F){var E="unknown",C="X",B=function(J,I){for(var H=0;
H<I.length;
H=H+1){J=J.replace(I[H][0],I[H][1])
}return J
},G=function(J,I,H,L){var K={name:B((I.exec(J)||[E,E])[1],H)};
K[K.name]=true;
K.version=(L.exec(J)||[C,C,C,C])[3];
if(K.name.match(/safari/)&&K.version>400){K.version="2.0"
}if(K.name==="presto"){K.version=(A.browser.version>9.27)?"futhark":"linear_b"
}K.versionNumber=parseFloat(K.version,10)||0;
K.versionX=(K.version!==C)?(K.version+"").substr(0,1):C;
K.className=K.name+K.versionX;
return K
};
D=(D.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?B(D,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,""],["Chrome Safari","Chrome"],["KHTML","Konqueror"],["Minefield","Firefox"],["Navigator","Netscape"]]):D).toLowerCase();
A.browser=A.extend((!F)?A.browser:{},G(D,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));
A.layout=G(D,/(gecko|konqueror|msie|opera|webkit)/,[["konqueror","khtml"],["msie","trident"],["opera","presto"]],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);
A.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[E])[0].replace("sunos","solaris")};
if(!F){A("html").addClass([A.os.name,A.browser.name,A.browser.className,A.layout.name,A.layout.className].join(" "))
}};
A.browserTest(navigator.userAgent)
})(jQuery);
(function(D){D.fn.jCarouselLite=function(E){E=D.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},E||{});
return this.each(function(){var N=false,L=E.vertical?"top":"left",G=E.vertical?"height":"width";
var F=D(this),P=D("ul",F),I=D("li",P),T=I.size(),S=E.visible;
if(E.circular){P.prepend(I.slice(T-S-1+1).clone()).append(I.slice(0,S).clone());
E.start+=S
}var R=D("li",P),O=R.size(),U=E.start;
F.css("visibility","visible");
R.css({overflow:"hidden","float":E.vertical?"none":"left"});
P.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});
F.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});
var K=E.vertical?A(R):C(R);
var Q=K*O;
var M=K*S;
R.css({width:R.width(),height:R.height()});
P.css(G,Q+"px").css(L,-(U*K));
F.css(G,M+"px");
if(E.btnPrev){D(E.btnPrev).click(function(){return J(U-E.scroll)
})
}if(E.btnNext){D(E.btnNext).click(function(){return J(U+E.scroll)
})
}if(E.btnGo){D.each(E.btnGo,function(V,W){D(W).click(function(){return J(E.circular?E.visible+V:V)
})
})
}if(E.mouseWheel&&F.mousewheel){F.mousewheel(function(V,W){return W>0?J(U-E.scroll):J(U+E.scroll)
})
}if(E.auto){setInterval(function(){J(U+E.scroll)
},E.auto+E.speed)
}function H(){return R.slice(U).slice(0,S)
}function J(V){if(!N){if(E.beforeStart){E.beforeStart.call(this,H())
}if(E.circular){if(V<=E.start-S-1){P.css(L,-((O-(S*2))*K)+"px");
U=V==E.start-S-1?O-(S*2)-1:O-(S*2)-E.scroll
}else{if(V>=O-S+1){P.css(L,-((S)*K)+"px");
U=V==O-S+1?S+1:S+E.scroll
}else{U=V
}}}else{if(V<0||V>O-S){return 
}else{U=V
}}N=true;
P.animate(L=="left"?{left:-(U*K)}:{top:-(U*K)},E.speed,E.easing,function(){if(E.afterEnd){E.afterEnd.call(this,H())
}N=false
});
if(!E.circular){D(E.btnPrev+","+E.btnNext).removeClass("disabled");
D((U-E.scroll<0&&E.btnPrev)||(U+E.scroll>O-S&&E.btnNext)||[]).addClass("disabled")
}}return false
}})
};
function B(E,F){return parseInt(D.css(E[0],F))||0
}function C(E){return E[0].offsetWidth+B(E,"marginLeft")+B(E,"marginRight")
}function A(E){return E[0].offsetHeight+B(E,"marginTop")+B(E,"marginBottom")
}})(jQuery);
(function(A){A.Jcrop=function(D,Z){var j=A.extend({},A.Jcrop.defaults),AJ,AU,AL=false;
function L(AV){return parseInt(AV,10)+"px"
}function m(AV){return parseInt(AV,10)+"%"
}function b(AV){return j.baseClass+"-"+AV
}function c(){return A.fx.step.hasOwnProperty("backgroundColor")
}function d(AV){var AW=A(AV).offset();
return[AW.left,AW.top]
}function f(AV){return[(AV.pageX-AJ[0]),(AV.pageY-AJ[1])]
}function Y(AV){if(typeof (AV)!=="object"){AV={}
}j=A.extend(j,AV);
if(typeof (j.onChange)!=="function"){j.onChange=function(){}
}if(typeof (j.onSelect)!=="function"){j.onSelect=function(){}
}if(typeof (j.onRelease)!=="function"){j.onRelease=function(){}
}}function e(AV){if(AV!==AU){r.setCursor(AV);
AU=AV
}}function F(AX,AZ){AJ=d(AS);
r.setCursor(AX==="move"?AX:AX+"-resize");
if(AX==="move"){return r.activateHandlers(t(AZ),P)
}var AV=AF.getFixed();
var AW=R(AX);
var AY=AF.getCorner(R(AW));
AF.setPressed(AF.getCorner(AW));
AF.setCurrent(AY);
r.activateHandlers(g(AX,AV),P)
}function g(AW,AV){return function(AX){if(!j.aspectRatio){switch(AW){case"e":AX[1]=AV.y2;
break;
case"w":AX[1]=AV.y2;
break;
case"n":AX[0]=AV.x2;
break;
case"s":AX[0]=AV.x2;
break
}}else{switch(AW){case"e":AX[1]=AV.y+1;
break;
case"w":AX[1]=AV.y+1;
break;
case"n":AX[0]=AV.x+1;
break;
case"s":AX[0]=AV.x+1;
break
}}AF.setCurrent(AX);
AB.update()
}
}function t(AW){var AV=AW;
AR.watchKeys();
return function(AX){AF.moveOffset([AX[0]-AV[0],AX[1]-AV[1]]);
AV=AX;
AB.update()
}
}function R(AV){switch(AV){case"n":return"sw";
case"s":return"nw";
case"e":return"nw";
case"w":return"ne";
case"ne":return"sw";
case"nw":return"se";
case"se":return"nw";
case"sw":return"ne"
}}function C(AV){return function(AW){if(j.disabled){return false
}if((AV==="move")&&!j.allowMove){return false
}Q=true;
F(AV,f(AW));
AW.stopPropagation();
AW.preventDefault();
return false
}
}function z(AZ,AW,AY){var AV=AZ.width(),AX=AZ.height();
if((AV>AW)&&AW>0){AV=AW;
AX=(AW/AZ.width())*AZ.height()
}if((AX>AY)&&AY>0){AX=AY;
AV=(AY/AZ.height())*AZ.width()
}o=AZ.width()/AV;
E=AZ.height()/AX;
AZ.width(AV).height(AX)
}function AD(AV){return{x:parseInt(AV.x*o,10),y:parseInt(AV.y*E,10),x2:parseInt(AV.x2*o,10),y2:parseInt(AV.y2*E,10),w:parseInt(AV.w*o,10),h:parseInt(AV.h*E,10)}
}function P(AW){var AV=AF.getFixed();
if((AV.w>j.minSelect[0])&&(AV.h>j.minSelect[1])){AB.enableHandles();
AB.done()
}else{AB.release()
}r.setCursor(j.allowSelect?"crosshair":"default")
}function AI(AV){if(j.disabled){return false
}if(!j.allowSelect){return false
}Q=true;
AJ=d(AS);
AB.disableHandles();
e("crosshair");
var AW=f(AV);
AF.setPressed(AW);
AB.update();
r.activateHandlers(AQ,P);
AR.watchKeys();
AV.stopPropagation();
AV.preventDefault();
return false
}function AQ(AV){AF.setCurrent(AV);
AB.update()
}function AK(){var AV=A("<div></div>").addClass(b("tracker"));
if(A.browser.msie){AV.css({opacity:0,backgroundColor:"white"})
}return AV
}if(A.browser.msie&&(A.browser.version.split(".")[0]==="6")){AL=true
}if(typeof (D)!=="object"){D=A(D)[0]
}if(typeof (Z)!=="object"){Z={}
}Y(Z);
var H={border:"none",margin:0,padding:0,position:"absolute"};
var AC=A(D);
var AS=AC.clone().removeAttr("id").css(H);
AS.width(AC.width());
AS.height(AC.height());
AC.after(AS).hide();
z(AS,j.boxWidth,j.boxHeight);
var s=AS.width(),q=AS.height(),AE=A("<div />").width(s).height(q).addClass(b("holder")).css({position:"relative",backgroundColor:j.bgColor}).insertAfter(AC).append(AS);
delete (j.bgColor);
if(j.addClass){AE.addClass(j.addClass)
}var k=A("<img />").attr("src",AS.attr("src")).css(H).width(s).height(q),K=A("<div />").width(m(100)).height(m(100)).css({zIndex:310,position:"absolute",overflow:"hidden"}).append(k),n=A("<div />").width(m(100)).height(m(100)).css("zIndex",320),X=A("<div />").css({position:"absolute",zIndex:300}).insertBefore(AS).append(K,n);
if(AL){X.css({overflowY:"hidden"})
}var T=j.boundary;
var B=AK().width(s+(T*2)).height(q+(T*2)).css({position:"absolute",top:L(-T),left:L(-T),zIndex:290}).mousedown(AI);
var AG=j.bgOpacity,W,AO,O,v,o,E,N=true,Q,a,AH;
AJ=d(AS);
var u=(function(){function AV(){var Ac={},Aa=["touchstart","touchmove","touchend"],Ab=document.createElement("div"),AZ;
try{for(AZ=0;
AZ<Aa.length;
AZ++){var AX=Aa[AZ];
AX="on"+AX;
var AY=(AX in Ab);
if(!AY){Ab.setAttribute(AX,"return;");
AY=typeof Ab[AX]=="function"
}Ac[Aa[AZ]]=AY
}return Ac.touchstart&&Ac.touchend&&Ac.touchmove
}catch(Ad){return false
}}function AW(){if((j.touchSupport===true)||(j.touchSupport===false)){return j.touchSupport
}else{return AV()
}}return{createDragger:function(AX){return function(AY){AY.pageX=AY.originalEvent.changedTouches[0].pageX;
AY.pageY=AY.originalEvent.changedTouches[0].pageY;
if(j.disabled){return false
}if((AX==="move")&&!j.allowMove){return false
}Q=true;
F(AX,f(AY));
AY.stopPropagation();
AY.preventDefault();
return false
}
},newSelection:function(AX){AX.pageX=AX.originalEvent.changedTouches[0].pageX;
AX.pageY=AX.originalEvent.changedTouches[0].pageY;
return AI(AX)
},isSupported:AV,support:AW()}
}());
var AF=(function(){var AX=0,Ai=0,AW=0,Ah=0,Aa,AY;
function Ac(Al){Al=AZ(Al);
AW=AX=Al[0];
Ah=Ai=Al[1]
}function Ab(Al){Al=AZ(Al);
Aa=Al[0]-AW;
AY=Al[1]-Ah;
AW=Al[0];
Ah=Al[1]
}function Ak(){return[Aa,AY]
}function AV(An){var Am=An[0],Al=An[1];
if(0>AX+Am){Am-=Am+AX
}if(0>Ai+Al){Al-=Al+Ai
}if(q<Ah+Al){Al+=q-(Ah+Al)
}if(s<AW+Am){Am+=s-(AW+Am)
}AX+=Am;
AW+=Am;
Ai+=Al;
Ah+=Al
}function Ad(Al){var Am=Aj();
switch(Al){case"ne":return[Am.x2,Am.y];
case"nw":return[Am.x,Am.y];
case"se":return[Am.x2,Am.y2];
case"sw":return[Am.x,Am.y2]
}}function Aj(){if(!j.aspectRatio){return Ag()
}var An=j.aspectRatio,At=j.minSize[0]/o,Am=j.maxSize[0]/o,Av=j.maxSize[1]/E,Ao=AW-AX,Au=Ah-Ai,Ap=Math.abs(Ao),Aq=Math.abs(Au),Ar=Ap/Aq,Al,As;
if(Am===0){Am=s*10
}if(Av===0){Av=q*10
}if(Ar<An){As=Ah;
w=Aq*An;
Al=Ao<0?AX-w:w+AX;
if(Al<0){Al=0;
h=Math.abs((Al-AX)/An);
As=Au<0?Ai-h:h+Ai
}else{if(Al>s){Al=s;
h=Math.abs((Al-AX)/An);
As=Au<0?Ai-h:h+Ai
}}}else{Al=AW;
h=Ap/An;
As=Au<0?Ai-h:Ai+h;
if(As<0){As=0;
w=Math.abs((As-Ai)*An);
Al=Ao<0?AX-w:w+AX
}else{if(As>q){As=q;
w=Math.abs(As-Ai)*An;
Al=Ao<0?AX-w:w+AX
}}}if(Al>AX){if(Al-AX<At){Al=AX+At
}else{if(Al-AX>Am){Al=AX+Am
}}if(As>Ai){As=Ai+(Al-AX)/An
}else{As=Ai-(Al-AX)/An
}}else{if(Al<AX){if(AX-Al<At){Al=AX-At
}else{if(AX-Al>Am){Al=AX-Am
}}if(As>Ai){As=Ai+(AX-Al)/An
}else{As=Ai-(AX-Al)/An
}}}if(Al<0){AX-=Al;
Al=0
}else{if(Al>s){AX-=Al-s;
Al=s
}}if(As<0){Ai-=As;
As=0
}else{if(As>q){Ai-=As-q;
As=q
}}return Af(Ae(AX,Ai,Al,As))
}function AZ(Al){if(Al[0]<0){Al[0]=0
}if(Al[1]<0){Al[1]=0
}if(Al[0]>s){Al[0]=s
}if(Al[1]>q){Al[1]=q
}return[Al[0],Al[1]]
}function Ae(Ao,Aq,An,Ap){var As=Ao,Ar=An,Am=Aq,Al=Ap;
if(An<Ao){As=An;
Ar=Ao
}if(Ap<Aq){Am=Ap;
Al=Aq
}return[Math.round(As),Math.round(Am),Math.round(Ar),Math.round(Al)]
}function Ag(){var Am=AW-AX,Al=Ah-Ai,An;
if(W&&(Math.abs(Am)>W)){AW=(Am>0)?(AX+W):(AX-W)
}if(AO&&(Math.abs(Al)>AO)){Ah=(Al>0)?(Ai+AO):(Ai-AO)
}if(v/E&&(Math.abs(Al)<v/E)){Ah=(Al>0)?(Ai+v/E):(Ai-v/E)
}if(O/o&&(Math.abs(Am)<O/o)){AW=(Am>0)?(AX+O/o):(AX-O/o)
}if(AX<0){AW-=AX;
AX-=AX
}if(Ai<0){Ah-=Ai;
Ai-=Ai
}if(AW<0){AX-=AW;
AW-=AW
}if(Ah<0){Ai-=Ah;
Ah-=Ah
}if(AW>s){An=AW-s;
AX-=An;
AW-=An
}if(Ah>q){An=Ah-q;
Ai-=An;
Ah-=An
}if(AX>s){An=AX-q;
Ah-=An;
Ai-=An
}if(Ai>q){An=Ai-q;
Ah-=An;
Ai-=An
}return Af(Ae(AX,Ai,AW,Ah))
}function Af(Al){return{x:Al[0],y:Al[1],x2:Al[2],y2:Al[3],w:Al[2]-Al[0],h:Al[3]-Al[1]}
}return{flipCoords:Ae,setPressed:Ac,setCurrent:Ab,getOffset:Ak,moveOffset:AV,getCorner:Ad,getFixed:Aj}
}());
var AB=(function(){var Af,An=370;
var Aa={};
var Aq={};
var AX=false;
var Ae=j.handleOffset;
function Ab(Au){var Av=A("<div />").css({position:"absolute",opacity:j.borderOpacity}).addClass(b(Au));
K.append(Av);
return Av
}function AW(Au,Av){var Aw=A("<div />").mousedown(C(Au)).css({cursor:Au+"-resize",position:"absolute",zIndex:Av});
if(u.support){Aw.bind("touchstart",u.createDragger(Au))
}n.append(Aw);
return Aw
}function Ag(Au){return AW(Au,An++).css({top:L(-Ae+1),left:L(-Ae+1),opacity:j.handleOpacity}).addClass(b("handle"))
}function Am(Aw){var Az=j.handleSize,Ay=Az,Av=Az,Ax=Ae,Au=Ae;
switch(Aw){case"n":case"s":Av=m(100);
break;
case"e":case"w":Ay=m(100);
break
}return AW(Aw,An++).width(Av).height(Ay).css({top:L(-Ax+1),left:L(-Au+1)})
}function Ai(Au){var Av;
for(Av=0;
Av<Au.length;
Av++){Aq[Au[Av]]=Ag(Au[Av])
}}function Ak(Ay){var Av=Math.round((Ay.h/2)-Ae),Au=Math.round((Ay.w/2)-Ae),Aw=-Ae+1,A2=-Ae+1,Az=Ay.w-Ae,Ax=Ay.h-Ae,A1,A0;
if(Aq.e){Aq.e.css({top:L(Av),left:L(Az)});
Aq.w.css({top:L(Av)});
Aq.s.css({top:L(Ax),left:L(Au)});
Aq.n.css({left:L(Au)})
}if(Aq.ne){Aq.ne.css({left:L(Az)});
Aq.se.css({top:L(Ax),left:L(Az)});
Aq.sw.css({top:L(Ax)})
}if(Aq.b){Aq.b.css({top:L(Ax)});
Aq.r.css({left:L(Az)})
}}function Ad(Au,Av){k.css({top:L(-Av),left:L(-Au)});
X.css({top:L(Av),left:L(Au)})
}function At(Au,Av){X.width(Au).height(Av)
}function AY(){var Au=AF.getFixed();
AF.setPressed([Au.x,Au.y]);
AF.setCurrent([Au.x2,Au.y2]);
Ar()
}function Ar(){if(Af){return Ac()
}}function Ac(){var Au=AF.getFixed();
At(Au.w,Au.h);
Ad(Au.x,Au.y);
if(AX){Ak(Au)
}if(!Af){As()
}j.onChange.call(G,AD(Au))
}function As(){X.show();
if(j.bgFade){AS.fadeTo(j.fadeTime,AG)
}else{AS.css("opacity",AG)
}Af=true
}function Ao(){Ap();
X.hide();
if(j.bgFade){AS.fadeTo(j.fadeTime,1)
}else{AS.css("opacity",1)
}Af=false;
j.onRelease.call(G)
}function AV(){if(AX){Ak(AF.getFixed());
n.show()
}}function Aj(){AX=true;
if(j.allowResize){Ak(AF.getFixed());
n.show();
return true
}}function Ap(){AX=false;
n.hide()
}function Al(Au){if(a===Au){Ap()
}else{Aj()
}}function Ah(){Al(false);
AY()
}if(j.drawBorders){Aa={top:Ab("hline"),bottom:Ab("hline bottom"),left:Ab("vline"),right:Ab("vline right")}
}if(j.dragEdges){Aq.t=Am("n");
Aq.b=Am("s");
Aq.r=Am("e");
Aq.l=Am("w")
}if(j.sideHandles){Ai(["n","s","e","w"])
}if(j.cornerHandles){Ai(["sw","nw","ne","se"])
}var AZ=AK().mousedown(C("move")).css({cursor:"move",position:"absolute",zIndex:360});
if(u.support){AZ.bind("touchstart.jcrop",u.createDragger("move"))
}K.append(AZ);
Ap();
return{updateVisible:Ar,update:Ac,release:Ao,refresh:AY,isAwake:function(){return Af
},setCursor:function(Au){AZ.css("cursor",Au)
},enableHandles:Aj,enableOnly:function(){AX=true
},showHandles:AV,disableHandles:Ap,animMode:Al,done:Ah}
}());
var r=(function(){var AW=function(){},AY=function(){},AX=j.trackDocument;
function Af(){B.css({zIndex:450});
if(AX){A(document).bind("mousemove",AV).bind("mouseup",AZ)
}}function Ad(){B.css({zIndex:290});
if(AX){A(document).unbind("mousemove",AV).unbind("mouseup",AZ)
}}function AV(Ag){AW(f(Ag));
return false
}function AZ(Ag){Ag.preventDefault();
Ag.stopPropagation();
if(Q){Q=false;
AY(f(Ag));
if(AB.isAwake()){j.onSelect.call(G,AD(AF.getFixed()))
}Ad();
AW=function(){};
AY=function(){}
}return false
}function Aa(Ah,Ag){Q=true;
AW=Ah;
AY=Ag;
Af();
return false
}function Ae(Ag){Ag.pageX=Ag.originalEvent.changedTouches[0].pageX;
Ag.pageY=Ag.originalEvent.changedTouches[0].pageY;
return AV(Ag)
}function Ab(Ag){Ag.pageX=Ag.originalEvent.changedTouches[0].pageX;
Ag.pageY=Ag.originalEvent.changedTouches[0].pageY;
return AZ(Ag)
}function Ac(Ag){B.css("cursor",Ag)
}if(u.support){A(document).bind("touchmove",Ae).bind("touchend",Ab)
}if(!AX){B.mousemove(AV).mouseup(AZ).mouseout(AZ)
}AS.before(B);
return{activateHandlers:Aa,setCursor:Ac}
}());
var AR=(function(){var AY=A('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}),Aa=A("<div />").css({position:"absolute",overflow:"hidden"}).append(AY);
function AW(){if(j.keySupport){AY.show();
AY.focus()
}}function AZ(Ab){AY.hide()
}function AX(Ac,Ab,Ad){if(j.allowMove){AF.moveOffset([Ab,Ad]);
AB.updateVisible()
}Ac.preventDefault();
Ac.stopPropagation()
}function AV(Ac){if(Ac.ctrlKey){return true
}AH=Ac.shiftKey?true:false;
var Ab=AH?10:1;
switch(Ac.keyCode){case 37:AX(Ac,-Ab,0);
break;
case 39:AX(Ac,Ab,0);
break;
case 38:AX(Ac,0,-Ab);
break;
case 40:AX(Ac,0,Ab);
break;
case 27:AB.release();
break;
case 9:return true
}return false
}if(j.keySupport){AY.keydown(AV).blur(AZ);
if(AL||!j.fixedSupport){AY.css({position:"absolute",left:"-20px"});
Aa.append(AY).insertBefore(AS)
}else{AY.insertBefore(AS)
}}return{watchKeys:AW}
}());
function J(AV){AE.removeClass().addClass(b("holder")).addClass(AV)
}function S(Ao,Ac){var Ai=parseInt(Ao[0],10)/o,AX=parseInt(Ao[1],10)/E,Ah=parseInt(Ao[2],10)/o,AW=parseInt(Ao[3],10)/E;
if(a){return 
}var Ag=AF.flipCoords(Ai,AX,Ah,AW),Am=AF.getFixed(),Aj=[Am.x,Am.y,Am.x2,Am.y2],AZ=Aj,AY=j.animationDelay,Al=Ag[0]-Aj[0],Ab=Ag[1]-Aj[1],Ak=Ag[2]-Aj[2],Aa=Ag[3]-Aj[3],Af=0,Ad=j.swingSpeed;
x=AZ[0];
y=AZ[1];
Ah=AZ[2];
AW=AZ[3];
AB.animMode(true);
var AV;
function Ae(){window.setTimeout(An,AY)
}var An=(function(){return function(){Af+=(100-Af)/Ad;
AZ[0]=x+((Af/100)*Al);
AZ[1]=y+((Af/100)*Ab);
AZ[2]=Ah+((Af/100)*Ak);
AZ[3]=AW+((Af/100)*Aa);
if(Af>=99.8){Af=100
}if(Af<100){AP(AZ);
Ae()
}else{AB.done();
if(typeof (Ac)==="function"){Ac.call(G)
}}}
}());
Ae()
}function l(AV){AP([parseInt(AV[0],10)/o,parseInt(AV[1],10)/E,parseInt(AV[2],10)/o,parseInt(AV[3],10)/E])
}function AP(AV){AF.setPressed([AV[0],AV[1]]);
AF.setCurrent([AV[2],AV[3]]);
AB.update()
}function I(){return AD(AF.getFixed())
}function AN(){return AF.getFixed()
}function U(AV){Y(AV);
p()
}function V(){j.disabled=true;
AB.disableHandles();
AB.setCursor("default");
r.setCursor("default")
}function AA(){j.disabled=false;
p()
}function M(){AB.done();
r.activateHandlers(null,null)
}function AM(){AE.remove();
AC.show();
A(D).removeData("Jcrop")
}function AT(AW,AX){AB.release();
V();
var AV=new Image();
AV.onload=function(){var AY=AV.width;
var Aa=AV.height;
var Ab=j.boxWidth;
var AZ=j.boxHeight;
AS.width(AY).height(Aa);
AS.attr("src",AW);
k.attr("src",AW);
z(AS,Ab,AZ);
s=AS.width();
q=AS.height();
k.width(s).height(q);
B.width(s+(T*2)).height(q+(T*2));
AE.width(s).height(q);
AA();
if(typeof (AX)==="function"){AX.call(G)
}};
AV.src=AW
}function p(AV){if(j.allowResize){if(AV){AB.enableOnly()
}else{AB.enableHandles()
}}else{AB.disableHandles()
}r.setCursor(j.allowSelect?"crosshair":"default");
AB.setCursor(j.allowMove?"move":"default");
if(j.hasOwnProperty("setSelect")){l(j.setSelect);
AB.done();
delete (j.setSelect)
}if(j.hasOwnProperty("trueSize")){o=j.trueSize[0]/s;
E=j.trueSize[1]/q
}if(j.hasOwnProperty("bgColor")){if(c()&&j.fadeTime){AE.animate({backgroundColor:j.bgColor},{queue:false,duration:j.fadeTime})
}else{AE.css("backgroundColor",j.bgColor)
}delete (j.bgColor)
}if(j.hasOwnProperty("bgOpacity")){AG=j.bgOpacity;
if(AB.isAwake()){if(j.fadeTime){AS.fadeTo(j.fadeTime,AG)
}else{AE.css("opacity",j.opacity)
}}delete (j.bgOpacity)
}W=j.maxSize[0]||0;
AO=j.maxSize[1]||0;
O=j.minSize[0]||0;
v=j.minSize[1]||0;
if(j.hasOwnProperty("outerImage")){AS.attr("src",j.outerImage);
delete (j.outerImage)
}AB.refresh()
}if(u.support){B.bind("touchstart",u.newSelection)
}n.hide();
p(true);
var G={setImage:AT,animateTo:S,setSelect:l,setOptions:U,tellSelect:I,tellScaled:AN,setClass:J,disable:V,enable:AA,cancel:M,release:AB.release,destroy:AM,focus:AR.watchKeys,getBounds:function(){return[s*o,q*E]
},getWidgetSize:function(){return[s,q]
},getScaleFactor:function(){return[o,E]
},ui:{holder:AE,selection:X}};
if(A.browser.msie){AE.bind("selectstart",function(){return false
})
}AC.data("Jcrop",G);
return G
};
A.fn.Jcrop=function(C,D){function B(H){var G=(typeof (C)==="object")?C:{};
var F=G.useImg||H.src;
var E=new Image();
E.onload=function(){function I(){var K=A.Jcrop(H,G);
if(typeof (D)==="function"){D.call(K)
}}function J(){if(!E.width||!E.height){window.setTimeout(J,50)
}else{I()
}}window.setTimeout(J,50)
};
E.src=F
}this.each(function(){if(A(this).data("Jcrop")){if(C==="api"){return A(this).data("Jcrop")
}else{A(this).data("Jcrop").setOptions(C)
}}else{B(this)
}});
return this
};
A.Jcrop.defaults={allowSelect:true,allowMove:true,allowResize:true,trackDocument:true,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:0.6,bgFade:false,borderOpacity:0.4,handleOpacity:0.5,handleSize:9,handleOffset:5,aspectRatio:0,keySupport:true,cornerHandles:true,sideHandles:true,drawBorders:true,dragEdges:true,fixedSupport:true,touchSupport:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onRelease:function(){}}
}(jQuery));
(function(C){var A=C.scrollTo=function(F,E,D){C(window).scrollTo(F,E,D)
};
A.defaults={axis:"xy",duration:parseFloat(C.fn.jquery)>=1.3?0:1};
A.window=function(D){return C(window)._scrollable()
};
C.fn._scrollable=function(){return this.map(function(){var E=this,D=!E.nodeName||C.inArray(E.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;
if(!D){return E
}var F=(E.contentWindow||E).document||E.ownerDocument||E;
return C.browser.safari||F.compatMode=="BackCompat"?F.body:F.documentElement
})
};
C.fn.scrollTo=function(F,E,D){if(typeof E=="object"){D=E;
E=0
}if(typeof D=="function"){D={onAfter:D}
}if(F=="max"){F=9000000000
}D=C.extend({},A.defaults,D);
E=E||D.speed||D.duration;
D.queue=D.queue&&D.axis.length>1;
if(D.queue){E/=2
}D.offset=B(D.offset);
D.over=B(D.over);
return this._scrollable().each(function(){var L=this,J=C(L),K=F,I,G={},M=J.is("html,body");
switch(typeof K){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(K)){K=B(K);
break
}K=C(K,this);
case"object":if(K.is||K.style){I=(K=C(K)).offset()
}}C.each(D.axis.split(""),function(Q,R){var S=R=="x"?"Left":"Top",U=S.toLowerCase(),P="scroll"+S,O=L[P],N=A.max(L,R);
if(I){G[P]=I[U]+(M?0:O-J.offset()[U]);
if(D.margin){G[P]-=parseInt(K.css("margin"+S))||0;
G[P]-=parseInt(K.css("border"+S+"Width"))||0
}G[P]+=D.offset[U]||0;
if(D.over[U]){G[P]+=K[R=="x"?"width":"height"]()*D.over[U]
}}else{var T=K[U];
G[P]=T.slice&&T.slice(-1)=="%"?parseFloat(T)/100*N:T
}if(/^\d+$/.test(G[P])){G[P]=G[P]<=0?0:Math.min(G[P],N)
}if(!Q&&D.queue){if(O!=G[P]){H(D.onAfterFirst)
}delete G[P]
}});
H(D.onAfter);
function H(N){J.animate(G,E,D.easing,N&&function(){N.call(this,F,D)
})
}}).end()
};
A.max=function(J,I){var H=I=="x"?"Width":"Height",E="scroll"+H;
if(!C(J).is("html,body")){return J[E]-C(J)[H.toLowerCase()]()
}var G="client"+H,F=J.ownerDocument.documentElement,D=J.ownerDocument.body;
return Math.max(F[E],D[E])-Math.min(F[G],D[G])
};
function B(D){return typeof D=="object"?D:{top:D,left:D}
}})(jQuery);
/*
 * 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 : 1.0.0-rc3
 * Released: Tuesday 12th May, 2009 - 00:00
 * Debug: jquery.qtip.debug.js
 */
(function(F){F.fn.qtip=function(a,T){var X,S,Z,R,W,V,U,Y;
if(typeof a=="string"){if(typeof F(this).data("qtip")!=="object"){F.fn.qtip.log.error.call(self,1,F.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)
}if(a=="api"){return F(this).data("qtip").interfaces[F(this).data("qtip").current]
}else{if(a=="interfaces"){return F(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=C(a.style);
R=F.extend(true,{},F.fn.qtip.defaults,a);
R.style=A.call({options:R},R.style);
R.user=F.extend(true,{},a)
}return F(this).each(function(){if(typeof a=="string"){V=a.toLowerCase();
Z=F(this).qtip("interfaces");
if(typeof Z=="object"){if(T===true&&V=="destroy"){while(Z.length>0){Z[Z.length-1].destroy()
}}else{if(T!==true){Z=[F(this).qtip("api")]
}for(X=0;
X<Z.length;
X++){if(V=="destroy"){Z[X].destroy()
}else{if(Z[X].status.rendered===true){if(V=="show"){Z[X].show()
}else{if(V=="hide"){Z[X].hide()
}else{if(V=="focus"){Z[X].focus()
}else{if(V=="disable"){Z[X].disable(true)
}else{if(V=="enable"){Z[X].disable(false)
}}}}}}}}}}}else{U=F.extend(true,{},R);
U.hide.effect.length=R.hide.effect.length;
U.show.effect.length=R.show.effect.length;
if(U.position.container===false){U.position.container=F(document.body)
}if(U.position.target===false){U.position.target=F(this)
}if(U.show.when.target===false){U.show.when.target=F(this)
}if(U.hide.when.target===false){U.hide.when.target=F(this)
}S=F.fn.qtip.interfaces.length;
for(X=0;
X<S;
X++){if(typeof F.fn.qtip.interfaces[X]=="undefined"){S=X;
break
}}W=new D(F(this),U,S);
F.fn.qtip.interfaces[S]=W;
if(typeof F(this).data("qtip")=="object"){if(typeof F(this).attr("qtip")==="undefined"){F(this).data("qtip").current=F(this).data("qtip").interfaces.length
}F(this).data("qtip").interfaces.push(W)
}else{F(this).data("qtip",{current:0,interfaces:[W]})
}if(U.content.prerender===false&&U.show.when.event!==false&&U.show.ready!==true){U.show.when.target.bind(U.show.when.event+".qtip-"+S+"-create",{qtip:S},function(b){Y=F.fn.qtip.interfaces[b.data.qtip];
Y.options.show.when.target.unbind(Y.options.show.when.event+".qtip-"+b.data.qtip+"-create");
Y.cache.mouse={x:b.pageX,y:b.pageY};
O.call(Y);
Y.options.show.when.target.trigger(Y.options.show.when.event)
})
}else{W.cache.mouse={x:U.show.when.target.offset().left,y:U.show.when.target.offset().top};
O.call(W)
}}})
};
function D(T,S,U){var R=this;
R.id=U;
R.options=S;
R.status={animated:false,rendered:false,disabled:false,focused:false};
R.elements={target:T.addClass(R.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};
R.cache={mouse:{},position:{},toggle:0};
R.timers={};
F.extend(R,R.options.api,{show:function(X){var W,Y;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")
}if(R.elements.tooltip.css("display")!=="none"){return R
}R.elements.tooltip.stop(true,false);
W=R.beforeShow.call(R,X);
if(W===false){return R
}function V(){if(R.options.position.type!=="static"){R.focus()
}R.onShow.call(R,X);
if(F.browser.msie){R.elements.tooltip.get(0).style.removeAttribute("filter")
}}R.cache.toggle=1;
if(R.options.position.type!=="static"){R.updatePosition(X,(R.options.show.effect.length>0))
}if(typeof R.options.show.solo=="object"){Y=F(R.options.show.solo)
}else{if(R.options.show.solo===true){Y=F("div.qtip").not(R.elements.tooltip)
}}if(Y){Y.each(function(){if(F(this).qtip("api").status.rendered===true){F(this).qtip("api").hide()
}})
}if(typeof R.options.show.effect.type=="function"){R.options.show.effect.type.call(R.elements.tooltip,R.options.show.effect.length);
R.elements.tooltip.queue(function(){V();
F(this).dequeue()
})
}else{switch(R.options.show.effect.type.toLowerCase()){case"fade":R.elements.tooltip.fadeIn(R.options.show.effect.length,V);
break;
case"slide":R.elements.tooltip.slideDown(R.options.show.effect.length,function(){V();
if(R.options.position.type!=="static"){R.updatePosition(X,true)
}});
break;
case"grow":R.elements.tooltip.show(R.options.show.effect.length,V);
break;
default:R.elements.tooltip.show(null,V);
break
}R.elements.tooltip.addClass(R.options.style.classes.active)
}return F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_SHOWN,"show")
},hide:function(X){var W;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")
}else{if(R.elements.tooltip.css("display")==="none"){return R
}}clearTimeout(R.timers.show);
R.elements.tooltip.stop(true,false);
W=R.beforeHide.call(R,X);
if(W===false){return R
}function V(){R.onHide.call(R,X)
}R.cache.toggle=0;
if(typeof R.options.hide.effect.type=="function"){R.options.hide.effect.type.call(R.elements.tooltip,R.options.hide.effect.length);
R.elements.tooltip.queue(function(){V();
F(this).dequeue()
})
}else{switch(R.options.hide.effect.type.toLowerCase()){case"fade":R.elements.tooltip.fadeOut(R.options.hide.effect.length,V);
break;
case"slide":R.elements.tooltip.slideUp(R.options.hide.effect.length,V);
break;
case"grow":R.elements.tooltip.hide(R.options.hide.effect.length,V);
break;
default:R.elements.tooltip.hide(null,V);
break
}R.elements.tooltip.removeClass(R.options.style.classes.active)
}return F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_HIDDEN,"hide")
},updatePosition:function(V,W){var b,f,m,k,g,d,X,j,a,c,l,Z,e,Y;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")
}else{if(R.options.position.type=="static"){return F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")
}}f={position:{left:0,top:0},dimensions:{height:0,width:0},corner:R.options.position.corner.target};
m={position:R.getPosition(),dimensions:R.getDimensions(),corner:R.options.position.corner.tooltip};
if(R.options.position.target!=="mouse"){if(R.options.position.target.get(0).nodeName.toLowerCase()=="area"){k=R.options.position.target.attr("coords").split(",");
for(b=0;
b<k.length;
b++){k[b]=parseInt(k[b])
}g=R.options.position.target.parent("map").attr("name");
d=F('img[usemap="#'+g+'"]:first').offset();
f.position={left:Math.floor(d.left+k[0]),top:Math.floor(d.top+k[1])};
switch(R.options.position.target.attr("shape").toLowerCase()){case"rect":f.dimensions={width:Math.ceil(Math.abs(k[2]-k[0])),height:Math.ceil(Math.abs(k[3]-k[1]))};
break;
case"circle":f.dimensions={width:k[2]+1,height:k[2]+1};
break;
case"poly":f.dimensions={width:k[0],height:k[1]};
for(b=0;
b<k.length;
b++){if(b%2==0){if(k[b]>f.dimensions.width){f.dimensions.width=k[b]
}if(k[b]<k[0]){f.position.left=Math.floor(d.left+k[b])
}}else{if(k[b]>f.dimensions.height){f.dimensions.height=k[b]
}if(k[b]<k[1]){f.position.top=Math.floor(d.top+k[b])
}}}f.dimensions.width=f.dimensions.width-(f.position.left-d.left);
f.dimensions.height=f.dimensions.height-(f.position.top-d.top);
break;
default:return F.fn.qtip.log.error.call(R,4,F.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");
break
}f.dimensions.width-=2;
f.dimensions.height-=2
}else{if(R.options.position.target.add(document.body).length===1){f.position={left:F(document).scrollLeft(),top:F(document).scrollTop()};
f.dimensions={height:F(window).height(),width:F(window).width()}
}else{if(typeof R.options.position.target.attr("qtip")!=="undefined"){f.position=R.options.position.target.qtip("api").cache.position
}else{f.position=R.options.position.target.offset()
}f.dimensions={height:R.options.position.target.outerHeight(),width:R.options.position.target.outerWidth()}
}}X=F.extend({},f.position);
if(f.corner.search(/right/i)!==-1){X.left+=f.dimensions.width
}if(f.corner.search(/bottom/i)!==-1){X.top+=f.dimensions.height
}if(f.corner.search(/((top|bottom)Middle)|center/)!==-1){X.left+=(f.dimensions.width/2)
}if(f.corner.search(/((left|right)Middle)|center/)!==-1){X.top+=(f.dimensions.height/2)
}}else{f.position=X={left:R.cache.mouse.x,top:R.cache.mouse.y};
f.dimensions={height:1,width:1}
}if(m.corner.search(/right/i)!==-1){X.left-=m.dimensions.width
}if(m.corner.search(/bottom/i)!==-1){X.top-=m.dimensions.height
}if(m.corner.search(/((top|bottom)Middle)|center/)!==-1){X.left-=(m.dimensions.width/2)
}if(m.corner.search(/((left|right)Middle)|center/)!==-1){X.top-=(m.dimensions.height/2)
}j=(F.browser.msie)?1:0;
a=(F.browser.msie&&parseInt(F.browser.version.charAt(0))===6)?1:0;
if(R.options.style.border.radius>0){if(m.corner.search(/Left/)!==-1){X.left-=R.options.style.border.radius
}else{if(m.corner.search(/Right/)!==-1){X.left+=R.options.style.border.radius
}}if(m.corner.search(/Top/)!==-1){X.top-=R.options.style.border.radius
}else{if(m.corner.search(/Bottom/)!==-1){X.top+=R.options.style.border.radius
}}}if(j){if(m.corner.search(/top/)!==-1){X.top-=j
}else{if(m.corner.search(/bottom/)!==-1){X.top+=j
}}if(m.corner.search(/left/)!==-1){X.left-=j
}else{if(m.corner.search(/right/)!==-1){X.left+=j
}}if(m.corner.search(/leftMiddle|rightMiddle/)!==-1){X.top-=1
}}if(R.options.position.adjust.screen===true){X=N.call(R,X,f,m)
}if(R.options.position.target==="mouse"&&R.options.position.adjust.mouse===true){if(R.options.position.adjust.screen===true&&R.elements.tip){l=R.elements.tip.attr("rel")
}else{l=R.options.position.corner.tooltip
}X.left+=(l.search(/right/i)!==-1)?-6:6;
X.top+=(l.search(/bottom/i)!==-1)?-6:6
}if(!R.elements.bgiframe&&F.browser.msie&&parseInt(F.browser.version.charAt(0))==6){F("select, object").each(function(){Z=F(this).offset();
Z.bottom=Z.top+F(this).height();
Z.right=Z.left+F(this).width();
if(X.top+m.dimensions.height>=Z.top&&X.left+m.dimensions.width>=Z.left){J.call(R)
}})
}X.left+=R.options.position.adjust.x;
X.top+=R.options.position.adjust.y;
e=R.getPosition();
if(X.left!=e.left||X.top!=e.top){Y=R.beforePositionUpdate.call(R,V);
if(Y===false){return R
}R.cache.position=X;
if(W===true){R.status.animated=true;
R.elements.tooltip.animate(X,200,"swing",function(){R.status.animated=false
})
}else{R.elements.tooltip.css(X)
}R.onPositionUpdate.call(R,V);
if(typeof V!=="undefined"&&V.type&&V.type!=="mousemove"){F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")
}}return R
},updateWidth:function(V){var W;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")
}else{if(V&&typeof V!=="number"){return F.fn.qtip.log.error.call(R,2,"newWidth must be of type number","updateWidth")
}}W=R.elements.contentWrapper.siblings().add(R.elements.tip).add(R.elements.button);
if(!V){if(typeof R.options.style.width.value=="number"){V=R.options.style.width.value
}else{R.elements.tooltip.css({width:"auto"});
W.hide();
if(F.browser.msie){R.elements.wrapper.add(R.elements.contentWrapper.children()).css({zoom:"normal"})
}V=R.getDimensions().width+1;
if(!R.options.style.width.value){if(V>R.options.style.width.max){V=R.options.style.width.max
}if(V<R.options.style.width.min){V=R.options.style.width.min
}}}}if(V%2!==0){V-=1
}R.elements.tooltip.width(V);
W.show();
if(R.options.style.border.radius){R.elements.tooltip.find(".qtip-betweenCorners").each(function(X){F(this).width(V-(R.options.style.border.radius*2))
})
}if(F.browser.msie){R.elements.wrapper.add(R.elements.contentWrapper.children()).css({zoom:"1"});
R.elements.wrapper.width(V);
if(R.elements.bgiframe){R.elements.bgiframe.width(V).height(R.getDimensions.height)
}}return F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")
},updateStyle:function(V){var Y,Z,W,X,a;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")
}else{if(typeof V!=="string"||!F.fn.qtip.styles[V]){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")
}}R.options.style=A.call(R,F.fn.qtip.styles[V],R.options.user.style);
R.elements.content.css(P(R.options.style));
if(R.options.content.title.text!==false){R.elements.title.css(P(R.options.style.title,true))
}R.elements.contentWrapper.css({borderColor:R.options.style.border.color});
if(R.options.style.tip.corner!==false){if(F("<canvas>").get(0).getContext){Y=R.elements.tooltip.find(".qtip-tip canvas:first");
W=Y.get(0).getContext("2d");
W.clearRect(0,0,300,300);
X=Y.parent("div[rel]:first").attr("rel");
a=B(X,R.options.style.tip.size.width,R.options.style.tip.size.height);
H.call(R,Y,a,R.options.style.tip.color||R.options.style.border.color)
}else{if(F.browser.msie){Y=R.elements.tooltip.find('.qtip-tip [nodeName="shape"]');
Y.attr("fillcolor",R.options.style.tip.color||R.options.style.border.color)
}}}if(R.options.style.border.radius>0){R.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:R.options.style.border.color});
if(F("<canvas>").get(0).getContext){Z=G(R.options.style.border.radius);
R.elements.tooltip.find(".qtip-wrapper canvas").each(function(){W=F(this).get(0).getContext("2d");
W.clearRect(0,0,300,300);
X=F(this).parent("div[rel]:first").attr("rel");
Q.call(R,F(this),Z[X],R.options.style.border.radius,R.options.style.border.color)
})
}else{if(F.browser.msie){R.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){F(this).attr("fillcolor",R.options.style.border.color)
})
}}}return F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")
},updateContent:function(Z,X){var Y,W,V;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")
}else{if(!Z){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")
}}Y=R.beforeContentUpdate.call(R,Z);
if(typeof Y=="string"){Z=Y
}else{if(Y===false){return 
}}if(F.browser.msie){R.elements.contentWrapper.children().css({zoom:"normal"})
}if(Z.jquery&&Z.length>0){Z.clone(true).appendTo(R.elements.content).show()
}else{R.elements.content.html(Z)
}W=R.elements.content.find("img[complete=false]");
if(W.length>0){V=0;
W.each(function(b){F('<img src="'+F(this).attr("src")+'" />').load(function(){if(++V==W.length){a()
}})
})
}else{a()
}function a(){R.updateWidth();
if(X!==false){if(R.options.position.type!=="static"){R.updatePosition(R.elements.tooltip.is(":visible"),true)
}if(R.options.style.tip.corner!==false){M.call(R)
}}}R.onContentUpdate.call(R);
return F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")
},loadContent:function(V,Y,Z){var X;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")
}X=R.beforeContentLoad.call(R);
if(X===false){return R
}if(Z=="post"){F.post(V,Y,W)
}else{F.get(V,Y,W)
}function W(a){R.onContentLoad.call(R);
F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");
R.updateContent(a)
}return R
},updateTitle:function(V){if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")
}else{if(!V){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")
}}returned=R.beforeTitleUpdate.call(R);
if(returned===false){return R
}if(R.elements.button){R.elements.button=R.elements.button.clone(true)
}R.elements.title.html(V);
if(R.elements.button){R.elements.title.prepend(R.elements.button)
}R.onTitleUpdate.call(R);
return F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")
},focus:function(Z){var X,W,V,Y;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")
}else{if(R.options.position.type=="static"){return F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")
}}X=parseInt(R.elements.tooltip.css("z-index"));
W=6000+F("div.qtip[qtip]").length-1;
if(!R.status.focused&&X!==W){Y=R.beforeFocus.call(R,Z);
if(Y===false){return R
}F("div.qtip[qtip]").not(R.elements.tooltip).each(function(){if(F(this).qtip("api").status.rendered===true){V=parseInt(F(this).css("z-index"));
if(typeof V=="number"&&V>-1){F(this).css({zIndex:parseInt(F(this).css("z-index"))-1})
}F(this).qtip("api").status.focused=false
}});
R.elements.tooltip.css({zIndex:W});
R.status.focused=true;
R.onFocus.call(R,Z);
F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_FOCUSED,"focus")
}return R
},disable:function(V){if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")
}if(V){if(!R.status.disabled){R.status.disabled=true;
F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_DISABLED,"disable")
}else{F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")
}}else{if(R.status.disabled){R.status.disabled=false;
F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_ENABLED,"disable")
}else{F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")
}}return R
},destroy:function(){var V,W,X;
W=R.beforeDestroy.call(R);
if(W===false){return R
}if(R.status.rendered){R.options.show.when.target.unbind("mousemove.qtip",R.updatePosition);
R.options.show.when.target.unbind("mouseout.qtip",R.hide);
R.options.show.when.target.unbind(R.options.show.when.event+".qtip");
R.options.hide.when.target.unbind(R.options.hide.when.event+".qtip");
R.elements.tooltip.unbind(R.options.hide.when.event+".qtip");
R.elements.tooltip.unbind("mouseover.qtip",R.focus);
R.elements.tooltip.remove()
}else{R.options.show.when.target.unbind(R.options.show.when.event+".qtip-create")
}if(typeof R.elements.target.data("qtip")=="object"){X=R.elements.target.data("qtip").interfaces;
if(typeof X=="object"&&X.length>0){for(V=0;
V<X.length-1;
V++){if(X[V].id==R.id){X.splice(V,1)
}}}}delete F.fn.qtip.interfaces[R.id];
if(typeof X=="object"&&X.length>0){R.elements.target.data("qtip").current=X.length-1
}else{R.elements.target.removeData("qtip")
}R.onDestroy.call(R);
F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_DESTROYED,"destroy");
return R.elements.target
},getPosition:function(){var V,W;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")
}V=(R.elements.tooltip.css("display")!=="none")?false:true;
if(V){R.elements.tooltip.css({visiblity:"hidden"}).show()
}W=R.elements.tooltip.offset();
if(V){R.elements.tooltip.css({visiblity:"visible"}).hide()
}return W
},getDimensions:function(){var V,W;
if(!R.status.rendered){return F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")
}V=(!R.elements.tooltip.is(":visible"))?true:false;
if(V){R.elements.tooltip.css({visiblity:"hidden"}).show()
}W={height:R.elements.tooltip.outerHeight(),width:R.elements.tooltip.outerWidth()};
if(V){R.elements.tooltip.css({visiblity:"visible"}).hide()
}return W
}})
}function O(){var R,V,T,S,U,X,W;
R=this;
R.beforeRender.call(R);
R.status.rendered=true;
R.elements.tooltip='<div qtip="'+R.id+'" class="qtip '+(R.options.style.classes.tooltip||R.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+R.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 '+R.options.style.classes.content+'"></div></div></div></div>';
R.elements.tooltip=F(R.elements.tooltip);
R.elements.tooltip.appendTo(R.options.position.container);
R.elements.tooltip.data("qtip",{current:0,interfaces:[R]});
R.elements.wrapper=R.elements.tooltip.children("div:first");
R.elements.contentWrapper=R.elements.wrapper.children("div:first").css({background:R.options.style.background});
R.elements.content=R.elements.contentWrapper.children("div:first").css(P(R.options.style));
if(F.browser.msie){R.elements.wrapper.add(R.elements.content).css({zoom:1})
}if(R.options.hide.when.event=="unfocus"){R.elements.tooltip.attr("unfocus",true)
}if(typeof R.options.style.width.value=="number"){R.updateWidth()
}if(F("<canvas>").get(0).getContext||F.browser.msie){if(R.options.style.border.radius>0){L.call(R)
}else{R.elements.contentWrapper.css({border:R.options.style.border.width+"px solid "+R.options.style.border.color})
}if(R.options.style.tip.corner!==false){E.call(R)
}}else{R.elements.contentWrapper.css({border:R.options.style.border.width+"px solid "+R.options.style.border.color});
R.options.style.border.radius=0;
R.options.style.tip.corner=false;
F.fn.qtip.log.error.call(R,2,F.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")
}if((typeof R.options.content.text=="string"&&R.options.content.text.length>0)||(R.options.content.text.jquery&&R.options.content.text.length>0)){T=R.options.content.text
}else{if(typeof R.elements.target.attr("title")=="string"&&R.elements.target.attr("title").length>0){T=R.elements.target.attr("title").replace("\\n","<br />");
R.elements.target.attr("title","")
}else{if(typeof R.elements.target.attr("alt")=="string"&&R.elements.target.attr("alt").length>0){T=R.elements.target.attr("alt").replace("\\n","<br />");
R.elements.target.attr("alt","")
}else{T=" ";
F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.NO_VALID_CONTENT,"render")
}}}if(R.options.content.title.text!==false){I.call(R)
}R.updateContent(T);
K.call(R);
if(R.options.show.ready===true){R.show()
}if(R.options.content.url!==false){S=R.options.content.url;
U=R.options.content.data;
X=R.options.content.method||"get";
R.loadContent(S,U,X)
}R.onRender.call(R);
F.fn.qtip.log.error.call(R,1,F.fn.qtip.constants.EVENT_RENDERED,"render")
}function L(){var e,Y,S,a,W,d,T,f,c,X,V,b,Z,R,U;
e=this;
e.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();
S=e.options.style.border.width;
a=e.options.style.border.radius;
W=e.options.style.border.color||e.options.style.tip.color;
d=G(a);
T={};
for(Y in d){T[Y]='<div rel="'+Y+'" style="'+((Y.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+a+"px; width:"+a+'px; overflow:hidden; line-height:0.1px; font-size:1px">';
if(F("<canvas>").get(0).getContext){T[Y]+='<canvas height="'+a+'" width="'+a+'" style="vertical-align: top"></canvas>'
}else{if(F.browser.msie){f=a*2+3;
T[Y]+='<v:arc stroked="false" fillcolor="'+W+'" startangle="'+d[Y][0]+'" endangle="'+d[Y][1]+'" style="width:'+f+"px; height:"+f+"px; margin-top:"+((Y.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((Y.search(/Right/)!==-1)?d[Y][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'
}}T[Y]+="</div>"
}c=e.getDimensions().width-(Math.max(S,a)*2);
X='<div class="qtip-betweenCorners" style="height:'+a+"px; width:"+c+"px; overflow:hidden; background-color:"+W+'; line-height:0.1px; font-size:1px;">';
V='<div class="qtip-borderTop" dir="ltr" style="height:'+a+"px; margin-left:"+a+'px; line-height:0.1px; font-size:1px; padding:0;">'+T.topLeft+T.topRight+X;
e.elements.wrapper.prepend(V);
b='<div class="qtip-borderBottom" dir="ltr" style="height:'+a+"px; margin-left:"+a+'px; line-height:0.1px; font-size:1px; padding:0;">'+T.bottomLeft+T.bottomRight+X;
e.elements.wrapper.append(b);
if(F("<canvas>").get(0).getContext){e.elements.wrapper.find("canvas").each(function(){Z=d[F(this).parent("[rel]:first").attr("rel")];
Q.call(e,F(this),Z,a,W)
})
}else{if(F.browser.msie){e.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')
}}R=Math.max(a,(a+(S-a)));
U=Math.max(S-a,0);
e.elements.contentWrapper.css({border:"0px solid "+W,borderWidth:U+"px "+R+"px"})
}function Q(T,V,R,S){var U=T.get(0).getContext("2d");
U.fillStyle=S;
U.beginPath();
U.arc(V[0],V[1],R,0,Math.PI*2,false);
U.fill()
}function E(U){var S,R,W,T,V;
S=this;
if(S.elements.tip!==null){S.elements.tip.remove()
}R=S.options.style.tip.color||S.options.style.border.color;
if(S.options.style.tip.corner===false){return 
}else{if(!U){U=S.options.style.tip.corner
}}W=B(U,S.options.style.tip.size.width,S.options.style.tip.size.height);
S.elements.tip='<div class="'+S.options.style.classes.tip+'" dir="ltr" rel="'+U+'" style="position:absolute; height:'+S.options.style.tip.size.height+"px; width:"+S.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';
if(F("<canvas>").get(0).getContext){S.elements.tip+='<canvas height="'+S.options.style.tip.size.height+'" width="'+S.options.style.tip.size.width+'"></canvas>'
}else{if(F.browser.msie){T=S.options.style.tip.size.width+","+S.options.style.tip.size.height;
V="m"+W[0][0]+","+W[0][1];
V+=" l"+W[1][0]+","+W[1][1];
V+=" "+W[2][0]+","+W[2][1];
V+=" xe";
S.elements.tip+='<v:shape fillcolor="'+R+'" stroked="false" filled="true" path="'+V+'" coordsize="'+T+'" style="width:'+S.options.style.tip.size.width+"px; height:"+S.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((U.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';
S.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';
S.elements.contentWrapper.css("position","relative")
}}S.elements.tooltip.prepend(S.elements.tip+"</div>");
S.elements.tip=S.elements.tooltip.find("."+S.options.style.classes.tip).eq(0);
if(F("<canvas>").get(0).getContext){H.call(S,S.elements.tip.find("canvas:first"),W,R)
}if(U.search(/top/)!==-1&&F.browser.msie&&parseInt(F.browser.version.charAt(0))===6){S.elements.tip.css({marginTop:-4})
}M.call(S,U)
}function H(S,U,R){var T=S.get(0).getContext("2d");
T.fillStyle=R;
T.beginPath();
T.moveTo(U[0][0],U[0][1]);
T.lineTo(U[1][0],U[1][1]);
T.lineTo(U[2][0],U[2][1]);
T.fill()
}function M(T){var S,V,R,W,U;
S=this;
if(S.options.style.tip.corner===false||!S.elements.tip){return 
}if(!T){T=S.elements.tip.attr("rel")
}V=positionAdjust=(F.browser.msie)?1:0;
S.elements.tip.css(T.match(/left|right|top|bottom/)[0],0);
if(T.search(/top|bottom/)!==-1){if(F.browser.msie){if(parseInt(F.browser.version.charAt(0))===6){positionAdjust=(T.search(/top/)!==-1)?-3:1
}else{positionAdjust=(T.search(/top/)!==-1)?1:2
}}if(T.search(/Middle/)!==-1){S.elements.tip.css({left:"50%",marginLeft:-(S.options.style.tip.size.width/2)})
}else{if(T.search(/Left/)!==-1){S.elements.tip.css({left:S.options.style.border.radius-V})
}else{if(T.search(/Right/)!==-1){S.elements.tip.css({right:S.options.style.border.radius+V})
}}}if(T.search(/top/)!==-1){S.elements.tip.css({top:-positionAdjust})
}else{S.elements.tip.css({bottom:positionAdjust})
}}else{if(T.search(/left|right/)!==-1){if(F.browser.msie){positionAdjust=(parseInt(F.browser.version.charAt(0))===6)?1:((T.search(/left/)!==-1)?1:2)
}if(T.search(/Middle/)!==-1){S.elements.tip.css({top:"50%",marginTop:-(S.options.style.tip.size.height/2)})
}else{if(T.search(/Top/)!==-1){S.elements.tip.css({top:S.options.style.border.radius-V})
}else{if(T.search(/Bottom/)!==-1){S.elements.tip.css({bottom:S.options.style.border.radius+V})
}}}if(T.search(/left/)!==-1){S.elements.tip.css({left:-positionAdjust})
}else{S.elements.tip.css({right:positionAdjust})
}}}R="padding-"+T.match(/left|right|top|bottom/)[0];
W=S.options.style.tip.size[(R.search(/left|right/)!==-1)?"width":"height"];
S.elements.tooltip.css("padding",0);
S.elements.tooltip.css(R,W);
if(F.browser.msie&&parseInt(F.browser.version.charAt(0))==6){U=parseInt(S.elements.tip.css("margin-top"))||0;
U+=parseInt(S.elements.content.css("margin-top"))||0;
S.elements.tip.css({marginTop:U})
}}function I(){var R=this;
if(R.elements.title!==null){R.elements.title.remove()
}R.elements.title=F('<div class="'+R.options.style.classes.title+'">').css(P(R.options.style.title,true)).css({zoom:(F.browser.msie)?1:0}).prependTo(R.elements.contentWrapper);
if(R.options.content.title.text){R.updateTitle.call(R,R.options.content.title.text)
}if(R.options.content.title.button!==false&&typeof R.options.content.title.button=="string"){R.elements.button=F('<a class="'+R.options.style.classes.button+'" style="float:right; position: relative"></a>').css(P(R.options.style.button,true)).html(R.options.content.title.button).prependTo(R.elements.title).click(function(S){if(!R.status.disabled){R.hide(S)
}})
}}function K(){var S,U,T,R;
S=this;
U=S.options.show.when.target;
T=S.options.hide.when.target;
if(S.options.hide.fixed){T=T.add(S.elements.tooltip)
}if(S.options.hide.when.event=="inactive"){R=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];
function X(Y){if(S.status.disabled===true){return 
}clearTimeout(S.timers.inactive);
S.timers.inactive=setTimeout(function(){F(R).each(function(){T.unbind(this+".qtip-inactive");
S.elements.content.unbind(this+".qtip-inactive")
});
S.hide(Y)
},S.options.hide.delay)
}}else{if(S.options.hide.fixed===true){S.elements.tooltip.bind("mouseover.qtip",function(){if(S.status.disabled===true){return 
}clearTimeout(S.timers.hide)
})
}}function W(Y){if(S.status.disabled===true){return 
}if(S.options.hide.when.event=="inactive"){F(R).each(function(){T.bind(this+".qtip-inactive",X);
S.elements.content.bind(this+".qtip-inactive",X)
});
X()
}clearTimeout(S.timers.show);
clearTimeout(S.timers.hide);
S.timers.show=setTimeout(function(){S.show(Y)
},S.options.show.delay)
}function V(Y){if(S.status.disabled===true){return 
}if(S.options.hide.fixed===true&&S.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&F(Y.relatedTarget).parents("div.qtip[qtip]").length>0){Y.stopPropagation();
Y.preventDefault();
clearTimeout(S.timers.hide);
return false
}clearTimeout(S.timers.show);
clearTimeout(S.timers.hide);
S.elements.tooltip.stop(true,true);
S.timers.hide=setTimeout(function(){S.hide(Y)
},S.options.hide.delay)
}if((S.options.show.when.target.add(S.options.hide.when.target).length===1&&S.options.show.when.event==S.options.hide.when.event&&S.options.hide.when.event!=="inactive")||S.options.hide.when.event=="unfocus"){S.cache.toggle=0;
U.bind(S.options.show.when.event+".qtip",function(Y){if(S.cache.toggle==0){W(Y)
}else{V(Y)
}})
}else{U.bind(S.options.show.when.event+".qtip",W);
if(S.options.hide.when.event!=="inactive"){T.bind(S.options.hide.when.event+".qtip",V)
}}if(S.options.position.type.search(/(fixed|absolute)/)!==-1){S.elements.tooltip.bind("mouseover.qtip",S.focus)
}if(S.options.position.target==="mouse"&&S.options.position.type!=="static"){U.bind("mousemove.qtip",function(Y){S.cache.mouse={x:Y.pageX,y:Y.pageY};
if(S.status.disabled===false&&S.options.position.adjust.mouse===true&&S.options.position.type!=="static"&&S.elements.tooltip.css("display")!=="none"){S.updatePosition(Y)
}})
}}function N(T,U,Z){var Y,R,W,X,S,V;
Y=this;
if(Z.corner=="center"){return U.position
}R=F.extend({},T);
X={x:false,y:false};
S={left:(R.left<F.fn.qtip.cache.screen.scroll.left),right:(R.left+Z.dimensions.width+2>=F.fn.qtip.cache.screen.width+F.fn.qtip.cache.screen.scroll.left),top:(R.top<F.fn.qtip.cache.screen.scroll.top),bottom:(R.top+Z.dimensions.height+2>=F.fn.qtip.cache.screen.height+F.fn.qtip.cache.screen.scroll.top)};
W={left:(S.left&&(Z.corner.search(/right/i)!=-1||(Z.corner.search(/right/i)==-1&&!S.right))),right:(S.right&&(Z.corner.search(/left/i)!=-1||(Z.corner.search(/left/i)==-1&&!S.left))),top:(S.top&&Z.corner.search(/top/i)==-1),bottom:(S.bottom&&Z.corner.search(/bottom/i)==-1)};
if(W.left){if(Y.options.position.target!=="mouse"){R.left=U.position.left+U.dimensions.width
}else{R.left=Y.cache.mouse.x
}X.x="Left"
}else{if(W.right){if(Y.options.position.target!=="mouse"){R.left=U.position.left-Z.dimensions.width
}else{R.left=Y.cache.mouse.x-Z.dimensions.width
}X.x="Right"
}}if(W.top){if(Y.options.position.target!=="mouse"){R.top=U.position.top+U.dimensions.height
}else{R.top=Y.cache.mouse.y
}X.y="top"
}else{if(W.bottom){if(Y.options.position.target!=="mouse"){R.top=U.position.top-Z.dimensions.height
}else{R.top=Y.cache.mouse.y-Z.dimensions.height
}X.y="bottom"
}}if(R.left<0){R.left=T.left;
X.x=false
}if(R.top<0){R.top=T.top;
X.y=false
}if(Y.options.style.tip.corner!==false){R.corner=new String(Z.corner);
if(X.x!==false){R.corner=R.corner.replace(/Left|Right|Middle/,X.x)
}if(X.y!==false){R.corner=R.corner.replace(/top|bottom/,X.y)
}if(R.corner!==Y.elements.tip.attr("rel")){E.call(Y,R.corner)
}}return R
}function P(T,S){var U,R;
U=F.extend(true,{},T);
for(R in U){if(S===true&&R.search(/(tip|classes)/i)!==-1){delete U[R]
}else{if(!S&&R.search(/(width|border|tip|title|classes|user)/i)!==-1){delete U[R]
}}}return U
}function C(R){if(typeof R.tip!=="object"){R.tip={corner:R.tip}
}if(typeof R.tip.size!=="object"){R.tip.size={width:R.tip.size,height:R.tip.size}
}if(typeof R.border!=="object"){R.border={width:R.border}
}if(typeof R.width!=="object"){R.width={value:R.width}
}if(typeof R.width.max=="string"){R.width.max=parseInt(R.width.max.replace(/([0-9]+)/i,"$1"))
}if(typeof R.width.min=="string"){R.width.min=parseInt(R.width.min.replace(/([0-9]+)/i,"$1"))
}if(typeof R.tip.size.x=="number"){R.tip.size.width=R.tip.size.x;
delete R.tip.size.x
}if(typeof R.tip.size.y=="number"){R.tip.size.height=R.tip.size.y;
delete R.tip.size.y
}return R
}function A(){var R,S,T,W,U,V;
R=this;
T=[true,{}];
for(S=0;
S<arguments.length;
S++){T.push(arguments[S])
}W=[F.extend.apply(F,T)];
while(typeof W[0].name=="string"){W.unshift(C(F.fn.qtip.styles[W[0].name]))
}W.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},F.fn.qtip.styles.defaults);
U=F.extend.apply(F,W);
V=(F.browser.msie)?1:0;
U.tip.size.width+=V;
U.tip.size.height+=V;
if(U.tip.size.width%2>0){U.tip.size.width+=1
}if(U.tip.size.height%2>0){U.tip.size.height+=1
}if(U.tip.corner===true){U.tip.corner=(R.options.position.corner.tooltip==="center")?false:R.options.position.corner.tooltip
}return U
}function B(U,T,S){var R={bottomRight:[[0,0],[T,S],[T,0]],bottomLeft:[[0,0],[T,0],[0,S]],topRight:[[0,S],[T,0],[T,S]],topLeft:[[0,0],[0,S],[T,S]],topMiddle:[[0,S],[T/2,0],[T,S]],bottomMiddle:[[0,0],[T,0],[T/2,S]],rightMiddle:[[0,0],[T,S/2],[0,S]],leftMiddle:[[T,0],[T,S],[0,S/2]]};
R.leftTop=R.bottomRight;
R.rightTop=R.bottomLeft;
R.leftBottom=R.topRight;
R.rightBottom=R.topLeft;
return R[U]
}function G(R){var S;
if(F("<canvas>").get(0).getContext){S={topLeft:[R,R],topRight:[0,R],bottomLeft:[R,0],bottomRight:[0,0]}
}else{if(F.browser.msie){S={topLeft:[-90,90,0],topRight:[-90,90,-R],bottomLeft:[90,270,0],bottomRight:[90,270,-R]}
}}return S
}function J(){var R,S,T;
R=this;
T=R.getDimensions();
S='<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:'+T.height+"px; width:"+T.width+'px" />';
R.elements.bgiframe=R.elements.wrapper.prepend(S).children(".qtip-bgiframe:first")
}F(document).ready(function(){F.fn.qtip.cache={screen:{scroll:{left:F(window).scrollLeft(),top:F(window).scrollTop()},width:F(window).width(),height:F(window).height()}};
var R;
F(window).bind("resize scroll",function(S){clearTimeout(R);
R=setTimeout(function(){if(S.type==="scroll"){F.fn.qtip.cache.screen.scroll={left:F(window).scrollLeft(),top:F(window).scrollTop()}
}else{F.fn.qtip.cache.screen.width=F(window).width();
F.fn.qtip.cache.screen.height=F(window).height()
}for(i=0;
i<F.fn.qtip.interfaces.length;
i++){var T=F.fn.qtip.interfaces[i];
if(!T){if(console&&console.log){console.log("qTip interface with id "+i+" not found")
}continue
}if(T.status.rendered===true&&(T.options.position.type!=="static"||T.options.position.adjust.scroll&&S.type==="scroll"||T.options.position.adjust.resize&&S.type==="resize")){T.updatePosition(S,true)
}}},100)
});
F(document).bind("mousedown.qtip",function(S){if(F(S.target).parents("div.qtip").length===0){F(".qtip[unfocus]").each(function(){var T=F(this).qtip("api");
if(F(this).is(":visible")&&!T.status.disabled&&F(S.target).add(T.elements.target).length>1){T.hide(S)
}})
}})
});
F.fn.qtip.interfaces=[];
F.fn.qtip.log={error:function(){return this
}};
F.fn.qtip.constants={};
F.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(){}}};
F.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);
(function(A){A.belowthefold=function(C,D){var B=A(window).height()+A(window).scrollTop();
return B<=A(C).offset().top-D.threshold
};
A.abovethetop=function(B,C){var D=A(window).scrollTop();
return D>=A(B).offset().top+A(B).height()-C.threshold
};
A.rightofscreen=function(C,D){var B=A(window).width()+A(window).scrollLeft();
return B<=A(C).offset().left-D.threshold
};
A.leftofscreen=function(B,C){var D=A(window).scrollLeft();
return D>=A(B).offset().left+A(B).width()-C.threshold
};
A.inviewport=function(B,C){return !A.rightofscreen(B,C)&&!A.leftofscreen(B,C)&&!A.belowthefold(B,C)&&!A.abovethetop(B,C)
};
A.extend(A.expr[":"],{"below-the-fold":function(C,D,B){return A.belowthefold(C,{threshold:0})
},"above-the-top":function(C,D,B){return A.abovethetop(C,{threshold:0})
},"left-of-screen":function(C,D,B){return A.leftofscreen(C,{threshold:0})
},"right-of-screen":function(C,D,B){return A.rightofscreen(C,{threshold:0})
},"in-viewport":function(C,D,B){return A.inviewport(C,{threshold:0})
}})
})(jQuery);
