/*************************** 
File generated by Scriptalizer.com
DateTime: Tuesday, March 16, 2010 1:27:43 PM CDT

File list:
	easing.js
	hoverIntent.min.js
	jquery.bgiframe.min.js
	jquery.cycle.min.js
	jquery.idtabs.js
	jquery.magicpreview.js
	jquery.qtip.min.js
	superfish.js
	supersubs.js
	expander.min.js
	cookie.min.js
*****************************/
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l))+e},easeOutElastic:function(f,h,e,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return g*Math.pow(2,-10*h)*Math.sin((h*m-k)*(2*Math.PI)/l)+n+e},easeInOutElastic:function(f,h,e,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m/2)==2){return e+n}if(!l){l=m*(0.3*1.5)}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l)*0.5+n+e},easeInBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}return k*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}return k*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return k/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return k/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(a){a.fn.hoverIntent=function(n,m){var o={sensitivity:7,interval:100,timeout:0};o=a.extend(o,m?{over:n,out:m}:n);var r,q,k,e;var h=function(f){r=f.pageX;q=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(k-r)+Math.abs(e-q))<o.sensitivity){a(f).unbind("mousemove",h);f.hoverIntent_s=1;return o.over.apply(f,[g])}else{k=r;e=q;f.hoverIntent_t=setTimeout(function(){c(g,f)},o.interval)}};var l=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return o.out.apply(f,[g])};var b=function(t){var s=(t.type=="mouseover"?t.fromElement:t.toElement)||t.relatedTarget;while(s&&s!=this){try{s=s.parentNode}catch(t){s=this}}if(s==this){return false}var g=jQuery.extend({},t);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(t.type=="mouseover"){k=g.pageX;e=g.pageY;a(f).bind("mousemove",h);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},o.interval)}}else{a(f).unbind("mousemove",h);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){l(g,f)},o.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var e=function(f){return f&&f.constructor==Number?f+"px":f},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":e(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":e(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":e(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":e(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this}})(jQuery);(function(l){var o="2.80";if(l.support==undefined){l.support={opacity:!(l.browser.msie)}}function a(u){if(l.fn.cycle.debug){g(u)}}function g(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}l.fn.cycle=function(v,u){var w={s:this.selector,c:this.context};if(this.length===0&&v!="stop"){if(!l.isReady&&w.s){g("DOM not ready, queuing slideshow");l(function(){l(w.s,w.c).cycle(v,u)});return this}g("terminating; zero elements found by selector"+(l.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var A=q(this,v,u);if(A===false){return}A.updateActivePagerLink=A.updateActivePagerLink||l.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var B=l(this);var C=A.slideExpr?l(A.slideExpr,this):B.children();var y=C.get();if(y.length<2){g("terminating; too few slides: "+y.length);return}var x=n(B,C,y,A,w);if(x===false){return}var z=x.continuous?10:k(x.currSlide,x.nextSlide,x,!x.rev);if(z){z+=(x.delay||0);if(z<10){z=10}a("first timeout: "+z);this.cycleTimeout=setTimeout(function(){f(y,x,0,!x.rev)},z)}})};function q(u,x,v){if(u.cycleStop==undefined){u.cycleStop=0}if(x===undefined||x===null){x={}}if(x.constructor==String){switch(x){case"destroy":case"stop":var y=l(u).data("cycle.opts");if(!y){return false}u.cycleStop++;if(u.cycleTimeout){clearTimeout(u.cycleTimeout)}u.cycleTimeout=0;l(u).removeData("cycle.opts");if(x=="destroy"){t(y)}return false;case"toggle":u.cyclePause=(u.cyclePause===1)?0:1;return false;case"pause":u.cyclePause=1;return false;case"resume":u.cyclePause=0;if(v===true){x=l(u).data("cycle.opts");if(!x){g("options not found, can not resume");return false}if(u.cycleTimeout){clearTimeout(u.cycleTimeout);u.cycleTimeout=0}f(x.elements,x,1,1)}return false;case"prev":case"next":var y=l(u).data("cycle.opts");if(!y){g('options not found, "prev/next" ignored');return false}l.fn.cycle[x](y);return false;default:x={fx:x}}return x}else{if(x.constructor==Number){var w=x;x=l(u).data("cycle.opts");if(!x){g("options not found, can not advance slide");return false}if(w<0||w>=x.elements.length){g("invalid slide index: "+w);return false}x.nextSlide=w;if(u.cycleTimeout){clearTimeout(u.cycleTimeout);u.cycleTimeout=0}if(typeof v=="string"){x.oneTimeFx=v}f(x.elements,x,1,w>=x.currSlide);return false}}return x}function b(u,v){if(!l.support.opacity&&v.cleartype&&u.style.filter){try{u.style.removeAttribute("filter")}catch(w){}}}function t(u){if(u.next){l(u.next).unbind(u.prevNextEvent)}if(u.prev){l(u.prev).unbind(u.prevNextEvent)}if(u.pager||u.pagerAnchorBuilder){l.each(u.pagerAnchors||[],function(){this.unbind().remove()})}u.pagerAnchors=null;if(u.destroy){u.destroy(u)}}function n(C,N,z,y,I){var G=l.extend({},l.fn.cycle.defaults,y||{},l.metadata?C.metadata():l.meta?C.data():{});if(G.autostop){G.countdown=G.autostopCount||z.length}var v=C[0];C.data("cycle.opts",G);G.$cont=C;G.stopCount=v.cycleStop;G.elements=z;G.before=G.before?[G.before]:[];G.after=G.after?[G.after]:[];G.after.unshift(function(){G.busy=0});if(!l.support.opacity&&G.cleartype){G.after.push(function(){b(this,G)})}if(G.continuous){G.after.push(function(){f(z,G,0,!G.rev)})}r(G);if(!l.support.opacity&&G.cleartype&&!G.cleartypeNoBg){h(N)}if(C.css("position")=="static"){C.css("position","relative")}if(G.width){C.width(G.width)}if(G.height&&G.height!="auto"){C.height(G.height)}if(G.startingSlide){G.startingSlide=parseInt(G.startingSlide)}if(G.random){G.randomMap=[];for(var L=0;L<z.length;L++){G.randomMap.push(L)}G.randomMap.sort(function(P,w){return Math.random()-0.5});G.randomIndex=1;G.startingSlide=G.randomMap[1]}else{if(G.startingSlide>=z.length){G.startingSlide=0}}G.currSlide=G.startingSlide||0;var B=G.startingSlide;N.css({position:"absolute",top:0,left:0}).hide().each(function(w){var P=B?w>=B?z.length-(w-B):B-w:z.length-w;l(this).css("z-index",P)});l(z[B]).css("opacity",1).show();b(z[B],G);if(G.fit&&G.width){N.width(G.width)}if(G.fit&&G.height&&G.height!="auto"){N.height(G.height)}var H=G.containerResize&&!C.innerHeight();if(H){var A=0,F=0;for(var J=0;J<z.length;J++){var u=l(z[J]),O=u[0],E=u.outerWidth(),M=u.outerHeight();if(!E){E=O.offsetWidth||O.width||u.attr("width")}if(!M){M=O.offsetHeight||O.height||u.attr("height")}A=E>A?E:A;F=M>F?M:F}if(A>0&&F>0){C.css({width:A+"px",height:F+"px"})}}if(G.pause){C.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(c(G)===false){return false}var x=false;y.requeueAttempts=y.requeueAttempts||0;N.each(function(){var R=l(this);this.cycleH=(G.fit&&G.height)?G.height:(R.height()||this.offsetHeight||this.height||R.attr("height")||0);this.cycleW=(G.fit&&G.width)?G.width:(R.width()||this.offsetWidth||this.width||R.attr("width")||0);if(R.is("img")){var P=(l.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var S=(l.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var Q=(l.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(P||S||Q||w){if(I.s&&G.requeueOnImageNotLoaded&&++y.requeueAttempts<100){g(y.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){l(I.s,I.c).cycle(y)},G.requeueTimeout);x=true;return false}else{g("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(x){return false}G.cssBefore=G.cssBefore||{};G.animIn=G.animIn||{};G.animOut=G.animOut||{};N.not(":eq("+B+")").css(G.cssBefore);if(G.cssFirst){l(N[B]).css(G.cssFirst)}if(G.timeout){G.timeout=parseInt(G.timeout);if(G.speed.constructor==String){G.speed=l.fx.speeds[G.speed]||parseInt(G.speed)}if(!G.sync){G.speed=G.speed/2}while((G.timeout-G.speed)<250){G.timeout+=G.speed}}if(G.easing){G.easeIn=G.easeOut=G.easing}if(!G.speedIn){G.speedIn=G.speed}if(!G.speedOut){G.speedOut=G.speed}G.slideCount=z.length;G.currSlide=G.lastSlide=B;if(G.random){if(++G.randomIndex==z.length){G.randomIndex=0}G.nextSlide=G.randomMap[G.randomIndex]}else{G.nextSlide=G.startingSlide>=(z.length-1)?0:G.startingSlide+1}if(!G.multiFx){var K=l.fn.cycle.transitions[G.fx];if(l.isFunction(K)){K(C,N,G)}else{if(G.fx!="custom"&&!G.multiFx){g("unknown transition: "+G.fx,"; slideshow terminating");return false}}}var D=N[B];if(G.before.length){G.before[0].apply(D,[D,D,G,true])}if(G.after.length>1){G.after[1].apply(D,[D,D,G,true])}if(G.next){l(G.next).bind(G.prevNextEvent,function(){return s(G,G.rev?-1:1)})}if(G.prev){l(G.prev).bind(G.prevNextEvent,function(){return s(G,G.rev?1:-1)})}if(G.pager||G.pagerAnchorBuilder){e(z,G)}m(G,z);return G}function r(u){u.original={before:[],after:[]};u.original.cssBefore=l.extend({},u.cssBefore);u.original.cssAfter=l.extend({},u.cssAfter);u.original.animIn=l.extend({},u.animIn);u.original.animOut=l.extend({},u.animOut);l.each(u.before,function(){u.original.before.push(this)});l.each(u.after,function(){u.original.after.push(this)})}function c(A){var y,w,v=l.fn.cycle.transitions;if(A.fx.indexOf(",")>0){A.multiFx=true;A.fxs=A.fx.replace(/\s*/g,"").split(",");for(y=0;y<A.fxs.length;y++){var z=A.fxs[y];w=v[z];if(!w||!v.hasOwnProperty(z)||!l.isFunction(w)){g("discarding unknown transition: ",z);A.fxs.splice(y,1);y--}}if(!A.fxs.length){g("No valid transitions named; slideshow terminating.");return false}}else{if(A.fx=="all"){A.multiFx=true;A.fxs=[];for(p in v){w=v[p];if(v.hasOwnProperty(p)&&l.isFunction(w)){A.fxs.push(p)}}}}if(A.multiFx&&A.randomizeEffects){var x=Math.floor(Math.random()*20)+30;for(y=0;y<x;y++){var u=Math.floor(Math.random()*A.fxs.length);A.fxs.push(A.fxs.splice(u,1)[0])}a("randomized fx sequence: ",A.fxs)}return true}function m(v,u){v.addSlide=function(x,y){var w=l(x),z=w[0];if(!v.autostopCount){v.countdown++}u[y?"unshift":"push"](z);if(v.els){v.els[y?"unshift":"push"](z)}v.slideCount=u.length;w.css("position","absolute");w[y?"prependTo":"appendTo"](v.$cont);if(y){v.currSlide++;v.nextSlide++}if(!l.support.opacity&&v.cleartype&&!v.cleartypeNoBg){h(w)}if(v.fit&&v.width){w.width(v.width)}if(v.fit&&v.height&&v.height!="auto"){$slides.height(v.height)}z.cycleH=(v.fit&&v.height)?v.height:w.height();z.cycleW=(v.fit&&v.width)?v.width:w.width();w.css(v.cssBefore);if(v.pager||v.pagerAnchorBuilder){l.fn.cycle.createPagerAnchor(u.length-1,z,l(v.pager),u,v)}if(l.isFunction(v.onAddSlide)){v.onAddSlide(w)}else{w.hide()}}}l.fn.cycle.resetState=function(v,u){u=u||v.fx;v.before=[];v.after=[];v.cssBefore=l.extend({},v.original.cssBefore);v.cssAfter=l.extend({},v.original.cssAfter);v.animIn=l.extend({},v.original.animIn);v.animOut=l.extend({},v.original.animOut);v.fxFn=null;l.each(v.original.before,function(){v.before.push(this)});l.each(v.original.after,function(){v.after.push(this)});var w=l.fn.cycle.transitions[u];if(l.isFunction(w)){w(v.$cont,l(v.elements),v)}};function f(B,u,A,C){if(A&&u.busy&&u.manualTrump){l(B).stop(true,true);u.busy=false}if(u.busy){return}var y=u.$cont[0],E=B[u.currSlide],D=B[u.nextSlide];if(y.cycleStop!=u.stopCount||y.cycleTimeout===0&&!A){return}if(!A&&!y.cyclePause&&((u.autostop&&(--u.countdown<=0))||(u.nowrap&&!u.random&&u.nextSlide<u.currSlide))){if(u.end){u.end(u)}return}if((A||!y.cyclePause)&&(u.nextSlide!=u.currSlide)){var z=u.fx;E.cycleH=E.cycleH||l(E).height();E.cycleW=E.cycleW||l(E).width();D.cycleH=D.cycleH||l(D).height();D.cycleW=D.cycleW||l(D).width();if(u.multiFx){if(u.lastFx==undefined||++u.lastFx>=u.fxs.length){u.lastFx=0}z=u.fxs[u.lastFx];u.currFx=z}if(u.oneTimeFx){z=u.oneTimeFx;u.oneTimeFx=null}l.fn.cycle.resetState(u,z);if(u.before.length){l.each(u.before,function(F,G){if(y.cycleStop!=u.stopCount){return}G.apply(D,[E,D,u,C])})}var w=function(){l.each(u.after,function(F,G){if(y.cycleStop!=u.stopCount){return}G.apply(D,[E,D,u,C])})};u.busy=1;if(u.fxFn){u.fxFn(E,D,u,w,C)}else{if(l.isFunction(l.fn.cycle[u.fx])){l.fn.cycle[u.fx](E,D,u,w)}else{l.fn.cycle.custom(E,D,u,w,A&&u.fastOnEvent)}}u.lastSlide=u.currSlide;if(u.random){u.currSlide=u.nextSlide;if(++u.randomIndex==B.length){u.randomIndex=0}u.nextSlide=u.randomMap[u.randomIndex]}else{var x=(u.nextSlide+1)==B.length;u.nextSlide=x?0:u.nextSlide+1;u.currSlide=x?B.length-1:u.nextSlide-1}if(u.pager){u.updateActivePagerLink(u.pager,u.currSlide,u.activePagerClass)}}var v=0;if(u.timeout&&!u.continuous){v=k(E,D,u,C)}else{if(u.continuous&&y.cyclePause){v=10}}if(v>0){y.cycleTimeout=setTimeout(function(){f(B,u,0,!u.rev)},v)}}l.fn.cycle.updateActivePagerLink=function(u,w,v){l(u).each(function(){l(this).find("a").removeClass(v).filter("a:eq("+w+")").addClass(v)})};function k(y,w,x,v){if(x.timeoutFn){var u=x.timeoutFn(y,w,x,v);while((u-x.speed)<250){u+=x.speed}a("calculated timeout: "+u+"; speed: "+x.speed);if(u!==false){return u}}return x.timeout}l.fn.cycle.next=function(u){s(u,u.rev?-1:1)};l.fn.cycle.prev=function(u){s(u,u.rev?1:-1)};function s(v,y){var u=v.elements;var x=v.$cont[0],w=x.cycleTimeout;if(w){clearTimeout(w);x.cycleTimeout=0}if(v.random&&y<0){v.randomIndex--;if(--v.randomIndex==-2){v.randomIndex=u.length-2}else{if(v.randomIndex==-1){v.randomIndex=u.length-1}}v.nextSlide=v.randomMap[v.randomIndex]}else{if(v.random){v.nextSlide=v.randomMap[v.randomIndex]}else{v.nextSlide=v.currSlide+y;if(v.nextSlide<0){if(v.nowrap){return false}v.nextSlide=u.length-1}else{if(v.nextSlide>=u.length){if(v.nowrap){return false}v.nextSlide=0}}}}if(l.isFunction(v.prevNextClick)){v.prevNextClick(y>0,v.nextSlide,u[v.nextSlide])}f(u,v,1,y>=0);return false}function e(v,w){var u=l(w.pager);l.each(v,function(x,y){l.fn.cycle.createPagerAnchor(x,y,u,v,w)});w.updateActivePagerLink(w.pager,w.startingSlide,w.activePagerClass)}l.fn.cycle.createPagerAnchor=function(y,z,w,x,A){var v;if(l.isFunction(A.pagerAnchorBuilder)){v=A.pagerAnchorBuilder(y,z)}else{v='<a href="#">'+(y+1)+"</a>"}if(!v){return}var B=l(v);if(B.parents("body").length===0){var u=[];if(w.length>1){w.each(function(){var C=B.clone(true);l(this).append(C);u.push(C[0])});B=l(u)}else{B.appendTo(w)}}A.pagerAnchors=A.pagerAnchors||[];A.pagerAnchors.push(B);B.bind(A.pagerEvent,function(E){E.preventDefault();A.nextSlide=y;var D=A.$cont[0],C=D.cycleTimeout;if(C){clearTimeout(C);D.cycleTimeout=0}if(l.isFunction(A.pagerClick)){A.pagerClick(A.nextSlide,x[A.nextSlide])}f(x,A,1,A.currSlide<y)});if(!/^click/.test(A.pagerEvent)&&!A.allowPagerClickBubble){B.bind("click.cycle",function(){return false})}if(A.pauseOnPagerHover){B.hover(function(){A.$cont[0].cyclePause++},function(){A.$cont[0].cyclePause--})}};l.fn.cycle.hopsFromLast=function(x,w){var v,u=x.lastSlide,y=x.currSlide;if(w){v=y>u?y-u:x.slideCount-u}else{v=y<u?u-y:u+x.slideCount-y}return v};function h(w){function v(x){x=parseInt(x).toString(16);return x.length<2?"0"+x:x}function u(z){for(;z&&z.nodeName.toLowerCase()!="html";z=z.parentNode){var x=l.css(z,"background-color");if(x.indexOf("rgb")>=0){var y=x.match(/\d+/g);return"#"+v(y[0])+v(y[1])+v(y[2])}if(x&&x!="transparent"){return x}}return"#ffffff"}w.each(function(){l(this).css("background-color",u(this))})}l.fn.cycle.commonReset=function(A,y,z,v,x,u){l(z.elements).not(A).hide();z.cssBefore.opacity=1;z.cssBefore.display="block";if(v!==false&&y.cycleW>0){z.cssBefore.width=y.cycleW}if(x!==false&&y.cycleH>0){z.cssBefore.height=y.cycleH}z.cssAfter=z.cssAfter||{};z.cssAfter.display="none";l(A).css("zIndex",z.slideCount+(u===true?1:0));l(y).css("zIndex",z.slideCount+(u===true?0:1))};l.fn.cycle.custom=function(F,z,u,w,v){var E=l(F),A=l(z);var x=u.speedIn,D=u.speedOut,y=u.easeIn,C=u.easeOut;A.css(u.cssBefore);if(v){if(typeof v=="number"){x=D=v}else{x=D=1}y=C=null}var B=function(){A.animate(u.animIn,x,y,w)};E.animate(u.animOut,D,C,function(){if(u.cssAfter){E.css(u.cssAfter)}if(!u.sync){B()}});if(u.sync){B()}};l.fn.cycle.transitions={fade:function(v,w,u){w.not(":eq("+u.currSlide+")").css("opacity",0);u.before.push(function(z,x,y){l.fn.cycle.commonReset(z,x,y);y.cssBefore.opacity=0});u.animIn={opacity:1};u.animOut={opacity:0};u.cssBefore={top:0,left:0}}};l.fn.cycle.ver=function(){return o};l.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click.cycle",pager:null,pagerClick:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!l.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null}})(jQuery);(function(){var g={jQuery:"http://code.jquery.com/jquery-latest.min.js"};var k=function(){(function(l){l.fn.idTabs=function(){var o={};for(var n=0;n<arguments.length;++n){var m=arguments[n];switch(m.constructor){case Object:l.extend(o,m);break;case Boolean:o.change=m;break;case Number:o.start=m;break;case Function:o.click=m;break;case String:if(m.charAt(0)=="."){o.selected=m}else{if(m.charAt(0)=="!"){o.event=m}else{o.start=m}}break}}if(typeof o["return"]=="function"){o.change=o["return"]}return this.each(function(){l.idTabs(this,o)})};l.idTabs=function(o,n){var t=(l.metadata)?l(o).metadata():{};var q=l.extend({},l.idTabs.settings,t,n);if(q.selected.charAt(0)=="."){q.selected=q.selected.substr(1)}if(q.event.charAt(0)=="!"){q.event=q.event.substr(1)}if(q.start==null){q.start=-1}var m=function(){if(l(this).is("."+q.selected)){return q.change}var w="#"+this.href.split("#")[1];var s=[];var v=[];l("a",o).each(function(){if(this.href.match(/#/)){s.push(this);v.push("#"+this.href.split("#")[1])}});if(q.click&&!q.click.apply(this,[w,v,o,q])){return q.change}for(i in s){l(s[i]).removeClass(q.selected)}for(i in v){l(v[i]).hide()}l(this).addClass(q.selected);l(w).show();return q.change};var r=l("a[href*='#']",o).unbind(q.event,m).bind(q.event,m);r.each(function(){l("#"+this.href.split("#")[1]).hide()});var u=false;if((u=r.filter("."+q.selected)).length){}else{if(typeof q.start=="number"&&(u=r.eq(q.start)).length){}else{if(typeof q.start=="string"&&(u=r.filter("[href*='#"+q.start+"']")).length){}}}if(u){u.removeClass(q.selected);u.trigger(q.event)}return q};l.idTabs.settings={start:0,change:false,click:null,selected:".selected",event:"!click"};l.idTabs.version="2.2";l(function(){l(".idTabs").idTabs()})})(jQuery)};var a=function(m,l){l=l.split(".");while(m&&l.length){m=m[l.shift()]}return m};var c=document.getElementsByTagName("head")[0];var f=function(l){var m=document.createElement("script");m.type="text/javascript";m.src=l;c.appendChild(m)};var e=document.getElementsByTagName("script");var h=e[e.length-1].src;var b=true;for(d in g){if(a(this,d)){continue}b=false;f(g[d])}if(b){return k()}f(h)})();(function(a){a.fn.magicpreview=function(f,c){if(typeof f==="object"&&typeof c==="undefined"){c=f;f=""}f=f||"";c=a.extend({},a.fn.magicpreview.options,c);var e=a.fn.magicpreview.events,b=e.length;function g(q,s,r,l,m){if(c.onBefore()&&(c.onLoad||!m)){var k=e[l].f(q),h=k;if(k!==false){k=k.replace(/\r|\n/mg,"<br />");k=c.formatValue(k)}else{k=r}if(c.change==="html"){s.html(k)}else{if(c.change==="text"){s.text(k)}else{s.attr(c.change,k)}}c.onAfter(h)}return}return this.filter(":text, :radio, :checkbox, select, textarea").each(function(){var k=this,m,l,h;if(c.child!==false){m=a("#"+f+a(k).attr("name")).find(c.child)}else{m=a("#"+f+a(k).attr("name"))}if(c.change==="html"){l=m.html()}else{if(c.change==="text"){l=m.text()}else{l=m.attr(c.change)}}for(h=0;h<b;h++){if(a(k).is(e[h].on)){k.i=h;if(typeof e[h].e!=="undefined"){for(j in e[h].e){if(e[h].e[j]==="load"){g(k,m,l,k.i,true)}else{if(typeof e[h].e[j]==="string"){a(k).bind(e[h].e[j],function(){g(this,m,l,k.i,false)})}}}}}}})};a.fn.magicpreview.events=[{on:":text, textarea",e:["keyup","load"],f:function(b){return(a(b).val().replace(/\n|\r/mg,"")!=="")?a(b).val():false}},{on:":checkbox, :radio",e:["click","load"],f:function(b){return(a(b).is(":checked"))?a(b).val():false}},{on:"select",e:["change","load"],f:function(b){return(a(b).attr("value")!==""||a(b).attr("value")!=="undefined")?a(b).attr("value"):false}}];a.fn.magicpreview.options={child:false,change:"html",onLoad:true,onBefore:function(){return true},onAfter:function(b){return true},formatValue:function(b){return b}}})(jQuery);(function(D){D.fn.qtip=function(a,k){var e,l,b,m,f,g,h,c;if(typeof a=="string"){if(typeof D(this).data("qtip")!=="object"){D.fn.qtip.log.error.call(self,1,D.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)}if(a=="api"){return D(this).data("qtip").interfaces[D(this).data("qtip").current]}else{if(a=="interfaces"){return D(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=G(a.style);m=D.extend(true,{},D.fn.qtip.defaults,a);m.style=I.call({options:m},m.style);m.user=D.extend(true,{},a)}return D(this).each(function(){if(typeof a=="string"){g=a.toLowerCase();b=D(this).qtip("interfaces");if(typeof b=="object"){if(k===true&&g=="destroy"){while(b.length>0){b[b.length-1].destroy()}}else{if(k!==true){b=[D(this).qtip("api")]}for(e=0;e<b.length;e++){if(g=="destroy"){b[e].destroy()}else{if(b[e].status.rendered===true){if(g=="show"){b[e].show()}else{if(g=="hide"){b[e].hide()}else{if(g=="focus"){b[e].focus()}else{if(g=="disable"){b[e].disable(true)}else{if(g=="enable"){b[e].disable(false)}}}}}}}}}}}else{h=D.extend(true,{},m);h.hide.effect.length=m.hide.effect.length;h.show.effect.length=m.show.effect.length;if(h.position.container===false){h.position.container=D(document.body)}if(h.position.target===false){h.position.target=D(this)}if(h.show.when.target===false){h.show.when.target=D(this)}if(h.hide.when.target===false){h.hide.when.target=D(this)}l=D.fn.qtip.interfaces.length;for(e=0;e<l;e++){if(typeof D.fn.qtip.interfaces[e]=="undefined"){l=e;break}}f=new F(D(this),h,l);D.fn.qtip.interfaces[l]=f;if(typeof D(this).data("qtip")=="object"){if(typeof D(this).attr("qtip")==="undefined"){D(this).data("qtip").current=D(this).data("qtip").interfaces.length}D(this).data("qtip").interfaces.push(f)}else{D(this).data("qtip",{current:0,interfaces:[f]})}if(h.content.prerender===false&&h.show.when.event!==false&&h.show.ready!==true){h.show.when.target.bind(h.show.when.event+".qtip-"+l+"-create",{qtip:l},function(n){c=D.fn.qtip.interfaces[n.data.qtip];c.options.show.when.target.unbind(c.options.show.when.event+".qtip-"+n.data.qtip+"-create");c.cache.mouse={x:n.pageX,y:n.pageY};u.call(c);c.options.show.when.target.trigger(c.options.show.when.event)})}else{f.cache.mouse={x:h.show.when.target.offset().left,y:h.show.when.target.offset().top};u.call(f)}}})};function F(b,c,a){var e=this;e.id=a;e.options=c;e.status={animated:false,rendered:false,disabled:false,focused:false};e.elements={target:b.addClass(e.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};e.cache={mouse:{},position:{},toggle:0};e.timers={};D.extend(e,e.options.api,{show:function(k){var f,h;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")}if(e.elements.tooltip.css("display")!=="none"){return e}e.elements.tooltip.stop(true,false);f=e.beforeShow.call(e,k);if(f===false){return e}function g(){if(e.options.position.type!=="static"){e.focus()}e.onShow.call(e,k);if(D.browser.msie){e.elements.tooltip.get(0).style.removeAttribute("filter")}}e.cache.toggle=1;if(e.options.position.type!=="static"){e.updatePosition(k,(e.options.show.effect.length>0))}if(typeof e.options.show.solo=="object"){h=D(e.options.show.solo)}else{if(e.options.show.solo===true){h=D("div.qtip").not(e.elements.tooltip)}}if(h){h.each(function(){if(D(this).qtip("api").status.rendered===true){D(this).qtip("api").hide()}})}if(typeof e.options.show.effect.type=="function"){e.options.show.effect.type.call(e.elements.tooltip,e.options.show.effect.length);e.elements.tooltip.queue(function(){g();D(this).dequeue()})}else{switch(e.options.show.effect.type.toLowerCase()){case"fade":e.elements.tooltip.fadeIn(e.options.show.effect.length,g);break;case"slide":e.elements.tooltip.slideDown(e.options.show.effect.length,function(){g();if(e.options.position.type!=="static"){e.updatePosition(k,true)}});break;case"grow":e.elements.tooltip.show(e.options.show.effect.length,g);break;default:e.elements.tooltip.show(null,g);break}e.elements.tooltip.addClass(e.options.style.classes.active)}return D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(h){var f;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")}else{if(e.elements.tooltip.css("display")==="none"){return e}}clearTimeout(e.timers.show);e.elements.tooltip.stop(true,false);f=e.beforeHide.call(e,h);if(f===false){return e}function g(){e.onHide.call(e,h)}e.cache.toggle=0;if(typeof e.options.hide.effect.type=="function"){e.options.hide.effect.type.call(e.elements.tooltip,e.options.hide.effect.length);e.elements.tooltip.queue(function(){g();D(this).dequeue()})}else{switch(e.options.hide.effect.type.toLowerCase()){case"fade":e.elements.tooltip.fadeOut(e.options.hide.effect.length,g);break;case"slide":e.elements.tooltip.slideUp(e.options.hide.effect.length,g);break;case"grow":e.elements.tooltip.hide(e.options.hide.effect.length,g);break;default:e.elements.tooltip.hide(null,g);break}e.elements.tooltip.removeClass(e.options.style.classes.active)}return D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(N,r){var g,P,m,q,O,R,o,M,h,f,n,k,Q,l;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")}else{if(e.options.position.type=="static"){return D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}}P={position:{left:0,top:0},dimensions:{height:0,width:0},corner:e.options.position.corner.target};m={position:e.getPosition(),dimensions:e.getDimensions(),corner:e.options.position.corner.tooltip};if(e.options.position.target!=="mouse"){if(e.options.position.target.get(0).nodeName.toLowerCase()=="area"){q=e.options.position.target.attr("coords").split(",");for(g=0;g<q.length;g++){q[g]=parseInt(q[g])}O=e.options.position.target.parent("map").attr("name");R=D('img[usemap="#'+O+'"]:first').offset();P.position={left:Math.floor(R.left+q[0]),top:Math.floor(R.top+q[1])};switch(e.options.position.target.attr("shape").toLowerCase()){case"rect":P.dimensions={width:Math.ceil(Math.abs(q[2]-q[0])),height:Math.ceil(Math.abs(q[3]-q[1]))};break;case"circle":P.dimensions={width:q[2]+1,height:q[2]+1};break;case"poly":P.dimensions={width:q[0],height:q[1]};for(g=0;g<q.length;g++){if(g%2==0){if(q[g]>P.dimensions.width){P.dimensions.width=q[g]}if(q[g]<q[0]){P.position.left=Math.floor(R.left+q[g])}}else{if(q[g]>P.dimensions.height){P.dimensions.height=q[g]}if(q[g]<q[1]){P.position.top=Math.floor(R.top+q[g])}}}P.dimensions.width=P.dimensions.width-(P.position.left-R.left);P.dimensions.height=P.dimensions.height-(P.position.top-R.top);break;default:return D.fn.qtip.log.error.call(e,4,D.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}P.dimensions.width-=2;P.dimensions.height-=2}else{if(e.options.position.target.add(document.body).length===1){P.position={left:D(document).scrollLeft(),top:D(document).scrollTop()};P.dimensions={height:D(window).height(),width:D(window).width()}}else{if(typeof e.options.position.target.attr("qtip")!=="undefined"){P.position=e.options.position.target.qtip("api").cache.position}else{P.position=e.options.position.target.offset()}P.dimensions={height:e.options.position.target.outerHeight(),width:e.options.position.target.outerWidth()}}}o=D.extend({},P.position);if(P.corner.search(/right/i)!==-1){o.left+=P.dimensions.width}if(P.corner.search(/bottom/i)!==-1){o.top+=P.dimensions.height}if(P.corner.search(/((top|bottom)Middle)|center/)!==-1){o.left+=(P.dimensions.width/2)}if(P.corner.search(/((left|right)Middle)|center/)!==-1){o.top+=(P.dimensions.height/2)}}else{P.position=o={left:e.cache.mouse.x,top:e.cache.mouse.y};P.dimensions={height:1,width:1}}if(m.corner.search(/right/i)!==-1){o.left-=m.dimensions.width}if(m.corner.search(/bottom/i)!==-1){o.top-=m.dimensions.height}if(m.corner.search(/((top|bottom)Middle)|center/)!==-1){o.left-=(m.dimensions.width/2)}if(m.corner.search(/((left|right)Middle)|center/)!==-1){o.top-=(m.dimensions.height/2)}M=(D.browser.msie)?1:0;h=(D.browser.msie&&parseInt(D.browser.version.charAt(0))===6)?1:0;if(e.options.style.border.radius>0){if(m.corner.search(/Left/)!==-1){o.left-=e.options.style.border.radius}else{if(m.corner.search(/Right/)!==-1){o.left+=e.options.style.border.radius}}if(m.corner.search(/Top/)!==-1){o.top-=e.options.style.border.radius}else{if(m.corner.search(/Bottom/)!==-1){o.top+=e.options.style.border.radius}}}if(M){if(m.corner.search(/top/)!==-1){o.top-=M}else{if(m.corner.search(/bottom/)!==-1){o.top+=M}}if(m.corner.search(/left/)!==-1){o.left-=M}else{if(m.corner.search(/right/)!==-1){o.left+=M}}if(m.corner.search(/leftMiddle|rightMiddle/)!==-1){o.top-=1}}if(e.options.position.adjust.screen===true){o=v.call(e,o,P,m)}if(e.options.position.target==="mouse"&&e.options.position.adjust.mouse===true){if(e.options.position.adjust.screen===true&&e.elements.tip){n=e.elements.tip.attr("rel")}else{n=e.options.position.corner.tooltip}o.left+=(n.search(/right/i)!==-1)?-6:6;o.top+=(n.search(/bottom/i)!==-1)?-6:6}if(!e.elements.bgiframe&&D.browser.msie&&parseInt(D.browser.version.charAt(0))==6){D("select, object").each(function(){k=D(this).offset();k.bottom=k.top+D(this).height();k.right=k.left+D(this).width();if(o.top+m.dimensions.height>=k.top&&o.left+m.dimensions.width>=k.left){z.call(e)}})}o.left+=e.options.position.adjust.x;o.top+=e.options.position.adjust.y;Q=e.getPosition();if(o.left!=Q.left||o.top!=Q.top){l=e.beforePositionUpdate.call(e,N);if(l===false){return e}e.cache.position=o;if(r===true){e.status.animated=true;e.elements.tooltip.animate(o,200,"swing",function(){e.status.animated=false})}else{e.elements.tooltip.css(o)}e.onPositionUpdate.call(e,N);if(typeof N!=="undefined"&&N.type&&N.type!=="mousemove"){D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}}return e},updateWidth:function(g){var f;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")}else{if(g&&typeof g!=="number"){return D.fn.qtip.log.error.call(e,2,"newWidth must be of type number","updateWidth")}}f=e.elements.contentWrapper.siblings().add(e.elements.tip).add(e.elements.button);if(!g){if(typeof e.options.style.width.value=="number"){g=e.options.style.width.value}else{e.elements.tooltip.css({width:"auto"});f.hide();if(D.browser.msie){e.elements.wrapper.add(e.elements.contentWrapper.children()).css({zoom:"normal"})}g=e.getDimensions().width+1;if(!e.options.style.width.value){if(g>e.options.style.width.max){g=e.options.style.width.max}if(g<e.options.style.width.min){g=e.options.style.width.min}}}}if(g%2!==0){g-=1}e.elements.tooltip.width(g);f.show();if(e.options.style.border.radius){e.elements.tooltip.find(".qtip-betweenCorners").each(function(h){D(this).width(g-(e.options.style.border.radius*2))})}if(D.browser.msie){e.elements.wrapper.add(e.elements.contentWrapper.children()).css({zoom:"1"});e.elements.wrapper.width(g);if(e.elements.bgiframe){e.elements.bgiframe.width(g).height(e.getDimensions.height)}}return D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(h){var k,g,f,m,l;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")}else{if(typeof h!=="string"||!D.fn.qtip.styles[h]){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}}e.options.style=I.call(e,D.fn.qtip.styles[h],e.options.user.style);e.elements.content.css(t(e.options.style));if(e.options.content.title.text!==false){e.elements.title.css(t(e.options.style.title,true))}e.elements.contentWrapper.css({borderColor:e.options.style.border.color});if(e.options.style.tip.corner!==false){if(D("<canvas>").get(0).getContext){k=e.elements.tooltip.find(".qtip-tip canvas:first");f=k.get(0).getContext("2d");f.clearRect(0,0,300,300);m=k.parent("div[rel]:first").attr("rel");l=H(m,e.options.style.tip.size.width,e.options.style.tip.size.height);B.call(e,k,l,e.options.style.tip.color||e.options.style.border.color)}else{if(D.browser.msie){k=e.elements.tooltip.find('.qtip-tip [nodeName="shape"]');k.attr("fillcolor",e.options.style.tip.color||e.options.style.border.color)}}}if(e.options.style.border.radius>0){e.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:e.options.style.border.color});if(D("<canvas>").get(0).getContext){g=C(e.options.style.border.radius);e.elements.tooltip.find(".qtip-wrapper canvas").each(function(){f=D(this).get(0).getContext("2d");f.clearRect(0,0,300,300);m=D(this).parent("div[rel]:first").attr("rel");s.call(e,D(this),g[m],e.options.style.border.radius,e.options.style.border.color)})}else{if(D.browser.msie){e.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){D(this).attr("fillcolor",e.options.style.border.color)})}}}return D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(g,m){var k,f,h;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")}else{if(!g){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}}k=e.beforeContentUpdate.call(e,g);if(typeof k=="string"){g=k}else{if(k===false){return}}if(D.browser.msie){e.elements.contentWrapper.children().css({zoom:"normal"})}if(g.jquery&&g.length>0){g.clone(true).appendTo(e.elements.content).show()}else{e.elements.content.html(g)}f=e.elements.content.find("img[complete=false]");if(f.length>0){h=0;f.each(function(n){D('<img src="'+D(this).attr("src")+'" />').load(function(){if(++h==f.length){l()}})})}else{l()}function l(){e.updateWidth();if(m!==false){if(e.options.position.type!=="static"){e.updatePosition(e.elements.tooltip.is(":visible"),true)}if(e.options.style.tip.corner!==false){w.call(e)}}}e.onContentUpdate.call(e);return D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(h,k,g){var l;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")}l=e.beforeContentLoad.call(e);if(l===false){return e}if(g=="post"){D.post(h,k,f)}else{D.get(h,k,f)}function f(m){e.onContentLoad.call(e);D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");e.updateContent(m)}return e},updateTitle:function(f){if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")}else{if(!f){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}}returned=e.beforeTitleUpdate.call(e);if(returned===false){return e}if(e.elements.button){e.elements.button=e.elements.button.clone(true)}e.elements.title.html(f);if(e.elements.button){e.elements.title.prepend(e.elements.button)}e.onTitleUpdate.call(e);return D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(g){var l,f,h,k;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")}else{if(e.options.position.type=="static"){return D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}}l=parseInt(e.elements.tooltip.css("z-index"));f=6000+D("div.qtip[qtip]").length-1;if(!e.status.focused&&l!==f){k=e.beforeFocus.call(e,g);if(k===false){return e}D("div.qtip[qtip]").not(e.elements.tooltip).each(function(){if(D(this).qtip("api").status.rendered===true){h=parseInt(D(this).css("z-index"));if(typeof h=="number"&&h>-1){D(this).css({zIndex:parseInt(D(this).css("z-index"))-1})}D(this).qtip("api").status.focused=false}});e.elements.tooltip.css({zIndex:f});e.status.focused=true;e.onFocus.call(e,g);D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_FOCUSED,"focus")}return e},disable:function(f){if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")}if(f){if(!e.status.disabled){e.status.disabled=true;D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_DISABLED,"disable")}else{D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")}}else{if(e.status.disabled){e.status.disabled=false;D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_ENABLED,"disable")}else{D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")}}return e},destroy:function(){var g,f,h;f=e.beforeDestroy.call(e);if(f===false){return e}if(e.status.rendered){e.options.show.when.target.unbind("mousemove.qtip",e.updatePosition);e.options.show.when.target.unbind("mouseout.qtip",e.hide);e.options.show.when.target.unbind(e.options.show.when.event+".qtip");e.options.hide.when.target.unbind(e.options.hide.when.event+".qtip");e.elements.tooltip.unbind(e.options.hide.when.event+".qtip");e.elements.tooltip.unbind("mouseover.qtip",e.focus);e.elements.tooltip.remove()}else{e.options.show.when.target.unbind(e.options.show.when.event+".qtip-create")}if(typeof e.elements.target.data("qtip")=="object"){h=e.elements.target.data("qtip").interfaces;if(typeof h=="object"&&h.length>0){for(g=0;g<h.length-1;g++){if(h[g].id==e.id){h.splice(g,1)}}}}delete D.fn.qtip.interfaces[e.id];if(typeof h=="object"&&h.length>0){e.elements.target.data("qtip").current=h.length-1}else{e.elements.target.removeData("qtip")}e.onDestroy.call(e);D.fn.qtip.log.error.call(e,1,D.fn.qtip.constants.EVENT_DESTROYED,"destroy");return e.elements.target},getPosition:function(){var g,f;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")}g=(e.elements.tooltip.css("display")!=="none")?false:true;if(g){e.elements.tooltip.css({visiblity:"hidden"}).show()}f=e.elements.tooltip.offset();if(g){e.elements.tooltip.css({visiblity:"visible"}).hide()}return f},getDimensions:function(){var g,f;if(!e.status.rendered){return D.fn.qtip.log.error.call(e,2,D.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")}g=(!e.elements.tooltip.is(":visible"))?true:false;if(g){e.elements.tooltip.css({visiblity:"hidden"}).show()}f={height:e.elements.tooltip.outerHeight(),width:e.elements.tooltip.outerWidth()};if(g){e.elements.tooltip.css({visiblity:"visible"}).hide()}return f}})}function u(){var g,b,e,f,c,h,a;g=this;g.beforeRender.call(g);g.status.rendered=true;g.elements.tooltip='<div qtip="'+g.id+'" class="qtip '+(g.options.style.classes.tooltip||g.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+g.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 '+g.options.style.classes.content+'"></div></div></div></div>';g.elements.tooltip=D(g.elements.tooltip);g.elements.tooltip.appendTo(g.options.position.container);g.elements.tooltip.data("qtip",{current:0,interfaces:[g]});g.elements.wrapper=g.elements.tooltip.children("div:first");g.elements.contentWrapper=g.elements.wrapper.children("div:first").css({background:g.options.style.background});g.elements.content=g.elements.contentWrapper.children("div:first").css(t(g.options.style));if(D.browser.msie){g.elements.wrapper.add(g.elements.content).css({zoom:1})}if(g.options.hide.when.event=="unfocus"){g.elements.tooltip.attr("unfocus",true)}if(typeof g.options.style.width.value=="number"){g.updateWidth()}if(D("<canvas>").get(0).getContext||D.browser.msie){if(g.options.style.border.radius>0){x.call(g)}else{g.elements.contentWrapper.css({border:g.options.style.border.width+"px solid "+g.options.style.border.color})}if(g.options.style.tip.corner!==false){E.call(g)}}else{g.elements.contentWrapper.css({border:g.options.style.border.width+"px solid "+g.options.style.border.color});g.options.style.border.radius=0;g.options.style.tip.corner=false;D.fn.qtip.log.error.call(g,2,D.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if((typeof g.options.content.text=="string"&&g.options.content.text.length>0)||(g.options.content.text.jquery&&g.options.content.text.length>0)){e=g.options.content.text}else{if(typeof g.elements.target.attr("title")=="string"&&g.elements.target.attr("title").length>0){e=g.elements.target.attr("title").replace("\\n","<br />");g.elements.target.attr("title","")}else{if(typeof g.elements.target.attr("alt")=="string"&&g.elements.target.attr("alt").length>0){e=g.elements.target.attr("alt").replace("\\n","<br />");g.elements.target.attr("alt","")}else{e=" ";D.fn.qtip.log.error.call(g,1,D.fn.qtip.constants.NO_VALID_CONTENT,"render")}}}if(g.options.content.title.text!==false){A.call(g)}g.updateContent(e);y.call(g);if(g.options.show.ready===true){g.show()}if(g.options.content.url!==false){f=g.options.content.url;c=g.options.content.data;h=g.options.content.method||"get";g.loadContent(f,c,h)}g.onRender.call(g);D.fn.qtip.log.error.call(g,1,D.fn.qtip.constants.EVENT_RENDERED,"render")}function x(){var o,f,q,c,h,J,n,m,a,g,k,b,e,r,l;o=this;o.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();q=o.options.style.border.width;c=o.options.style.border.radius;h=o.options.style.border.color||o.options.style.tip.color;J=C(c);n={};for(f in J){n[f]='<div rel="'+f+'" style="'+((f.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+c+"px; width:"+c+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(D("<canvas>").get(0).getContext){n[f]+='<canvas height="'+c+'" width="'+c+'" style="vertical-align: top"></canvas>'}else{if(D.browser.msie){m=c*2+3;n[f]+='<v:arc stroked="false" fillcolor="'+h+'" startangle="'+J[f][0]+'" endangle="'+J[f][1]+'" style="width:'+m+"px; height:"+m+"px; margin-top:"+((f.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((f.search(/Right/)!==-1)?J[f][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}}n[f]+="</div>"}a=o.getDimensions().width-(Math.max(q,c)*2);g='<div class="qtip-betweenCorners" style="height:'+c+"px; width:"+a+"px; overflow:hidden; background-color:"+h+'; line-height:0.1px; font-size:1px;">';k='<div class="qtip-borderTop" dir="ltr" style="height:'+c+"px; margin-left:"+c+'px; line-height:0.1px; font-size:1px; padding:0;">'+n.topLeft+n.topRight+g;o.elements.wrapper.prepend(k);b='<div class="qtip-borderBottom" dir="ltr" style="height:'+c+"px; margin-left:"+c+'px; line-height:0.1px; font-size:1px; padding:0;">'+n.bottomLeft+n.bottomRight+g;o.elements.wrapper.append(b);if(D("<canvas>").get(0).getContext){o.elements.wrapper.find("canvas").each(function(){e=J[D(this).parent("[rel]:first").attr("rel")];s.call(o,D(this),e,c,h)})}else{if(D.browser.msie){o.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}r=Math.max(c,(c+(q-c)));l=Math.max(q-c,0);o.elements.contentWrapper.css({border:"0px solid "+h,borderWidth:l+"px "+r+"px"})}function s(c,a,f,e){var b=c.get(0).getContext("2d");b.fillStyle=e;b.beginPath();b.arc(a[0],a[1],f,0,Math.PI*2,false);b.fill()}function E(c){var f,g,a,e,b;f=this;if(f.elements.tip!==null){f.elements.tip.remove()}g=f.options.style.tip.color||f.options.style.border.color;if(f.options.style.tip.corner===false){return}else{if(!c){c=f.options.style.tip.corner}}a=H(c,f.options.style.tip.size.width,f.options.style.tip.size.height);f.elements.tip='<div class="'+f.options.style.classes.tip+'" dir="ltr" rel="'+c+'" style="position:absolute; height:'+f.options.style.tip.size.height+"px; width:"+f.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(D("<canvas>").get(0).getContext){f.elements.tip+='<canvas height="'+f.options.style.tip.size.height+'" width="'+f.options.style.tip.size.width+'"></canvas>'}else{if(D.browser.msie){e=f.options.style.tip.size.width+","+f.options.style.tip.size.height;b="m"+a[0][0]+","+a[0][1];b+=" l"+a[1][0]+","+a[1][1];b+=" "+a[2][0]+","+a[2][1];b+=" xe";f.elements.tip+='<v:shape fillcolor="'+g+'" stroked="false" filled="true" path="'+b+'" coordsize="'+e+'" style="width:'+f.options.style.tip.size.width+"px; height:"+f.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((c.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';f.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';f.elements.contentWrapper.css("position","relative")}}f.elements.tooltip.prepend(f.elements.tip+"</div>");f.elements.tip=f.elements.tooltip.find("."+f.options.style.classes.tip).eq(0);if(D("<canvas>").get(0).getContext){B.call(f,f.elements.tip.find("canvas:first"),a,g)}if(c.search(/top/)!==-1&&D.browser.msie&&parseInt(D.browser.version.charAt(0))===6){f.elements.tip.css({marginTop:-4})}w.call(f,c)}function B(c,a,e){var b=c.get(0).getContext("2d");b.fillStyle=e;b.beginPath();b.moveTo(a[0][0],a[0][1]);b.lineTo(a[1][0],a[1][1]);b.lineTo(a[2][0],a[2][1]);b.fill()}function w(e){var f,b,g,a,c;f=this;if(f.options.style.tip.corner===false||!f.elements.tip){return}if(!e){e=f.elements.tip.attr("rel")}b=positionAdjust=(D.browser.msie)?1:0;f.elements.tip.css(e.match(/left|right|top|bottom/)[0],0);if(e.search(/top|bottom/)!==-1){if(D.browser.msie){if(parseInt(D.browser.version.charAt(0))===6){positionAdjust=(e.search(/top/)!==-1)?-3:1}else{positionAdjust=(e.search(/top/)!==-1)?1:2}}if(e.search(/Middle/)!==-1){f.elements.tip.css({left:"50%",marginLeft:-(f.options.style.tip.size.width/2)})}else{if(e.search(/Left/)!==-1){f.elements.tip.css({left:f.options.style.border.radius-b})}else{if(e.search(/Right/)!==-1){f.elements.tip.css({right:f.options.style.border.radius+b})}}}if(e.search(/top/)!==-1){f.elements.tip.css({top:-positionAdjust})}else{f.elements.tip.css({bottom:positionAdjust})}}else{if(e.search(/left|right/)!==-1){if(D.browser.msie){positionAdjust=(parseInt(D.browser.version.charAt(0))===6)?1:((e.search(/left/)!==-1)?1:2)}if(e.search(/Middle/)!==-1){f.elements.tip.css({top:"50%",marginTop:-(f.options.style.tip.size.height/2)})}else{if(e.search(/Top/)!==-1){f.elements.tip.css({top:f.options.style.border.radius-b})}else{if(e.search(/Bottom/)!==-1){f.elements.tip.css({bottom:f.options.style.border.radius+b})}}}if(e.search(/left/)!==-1){f.elements.tip.css({left:-positionAdjust})}else{f.elements.tip.css({right:positionAdjust})}}}g="padding-"+e.match(/left|right|top|bottom/)[0];a=f.options.style.tip.size[(g.search(/left|right/)!==-1)?"width":"height"];f.elements.tooltip.css("padding",0);f.elements.tooltip.css(g,a);if(D.browser.msie&&parseInt(D.browser.version.charAt(0))==6){c=parseInt(f.elements.tip.css("margin-top"))||0;c+=parseInt(f.elements.content.css("margin-top"))||0;f.elements.tip.css({marginTop:c})}}function A(){var a=this;if(a.elements.title!==null){a.elements.title.remove()}a.elements.title=D('<div class="'+a.options.style.classes.title+'">').css(t(a.options.style.title,true)).css({zoom:(D.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=D('<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 f,c,e,g;f=this;c=f.options.show.when.target;e=f.options.hide.when.target;if(f.options.hide.fixed){e=e.add(f.elements.tooltip)}if(f.options.hide.when.event=="inactive"){g=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function h(k){if(f.status.disabled===true){return}clearTimeout(f.timers.inactive);f.timers.inactive=setTimeout(function(){D(g).each(function(){e.unbind(this+".qtip-inactive");f.elements.content.unbind(this+".qtip-inactive")});f.hide(k)},f.options.hide.delay)}}else{if(f.options.hide.fixed===true){f.elements.tooltip.bind("mouseover.qtip",function(){if(f.status.disabled===true){return}clearTimeout(f.timers.hide)})}}function a(k){if(f.status.disabled===true){return}if(f.options.hide.when.event=="inactive"){D(g).each(function(){e.bind(this+".qtip-inactive",h);f.elements.content.bind(this+".qtip-inactive",h)});h()}clearTimeout(f.timers.show);clearTimeout(f.timers.hide);f.timers.show=setTimeout(function(){f.show(k)},f.options.show.delay)}function b(k){if(f.status.disabled===true){return}if(f.options.hide.fixed===true&&f.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&D(k.relatedTarget).parents("div.qtip[qtip]").length>0){k.stopPropagation();k.preventDefault();clearTimeout(f.timers.hide);return false}clearTimeout(f.timers.show);clearTimeout(f.timers.hide);f.elements.tooltip.stop(true,true);f.timers.hide=setTimeout(function(){f.hide(k)},f.options.hide.delay)}if((f.options.show.when.target.add(f.options.hide.when.target).length===1&&f.options.show.when.event==f.options.hide.when.event&&f.options.hide.when.event!=="inactive")||f.options.hide.when.event=="unfocus"){f.cache.toggle=0;c.bind(f.options.show.when.event+".qtip",function(k){if(f.cache.toggle==0){a(k)}else{b(k)}})}else{c.bind(f.options.show.when.event+".qtip",a);if(f.options.hide.when.event!=="inactive"){e.bind(f.options.hide.when.event+".qtip",b)}}if(f.options.position.type.search(/(fixed|absolute)/)!==-1){f.elements.tooltip.bind("mouseover.qtip",f.focus)}if(f.options.position.target==="mouse"&&f.options.position.type!=="static"){c.bind("mousemove.qtip",function(k){f.cache.mouse={x:k.pageX,y:k.pageY};if(f.status.disabled===false&&f.options.position.adjust.mouse===true&&f.options.position.type!=="static"&&f.elements.tooltip.css("display")!=="none"){f.updatePosition(k)}})}}function v(h,g,a){var b,l,e,c,k,f;b=this;if(a.corner=="center"){return g.position}l=D.extend({},h);c={x:false,y:false};k={left:(l.left<D.fn.qtip.cache.screen.scroll.left),right:(l.left+a.dimensions.width+2>=D.fn.qtip.cache.screen.width+D.fn.qtip.cache.screen.scroll.left),top:(l.top<D.fn.qtip.cache.screen.scroll.top),bottom:(l.top+a.dimensions.height+2>=D.fn.qtip.cache.screen.height+D.fn.qtip.cache.screen.scroll.top)};e={left:(k.left&&(a.corner.search(/right/i)!=-1||(a.corner.search(/right/i)==-1&&!k.right))),right:(k.right&&(a.corner.search(/left/i)!=-1||(a.corner.search(/left/i)==-1&&!k.left))),top:(k.top&&a.corner.search(/top/i)==-1),bottom:(k.bottom&&a.corner.search(/bottom/i)==-1)};if(e.left){if(b.options.position.target!=="mouse"){l.left=g.position.left+g.dimensions.width}else{l.left=b.cache.mouse.x}c.x="Left"}else{if(e.right){if(b.options.position.target!=="mouse"){l.left=g.position.left-a.dimensions.width}else{l.left=b.cache.mouse.x-a.dimensions.width}c.x="Right"}}if(e.top){if(b.options.position.target!=="mouse"){l.top=g.position.top+g.dimensions.height}else{l.top=b.cache.mouse.y}c.y="top"}else{if(e.bottom){if(b.options.position.target!=="mouse"){l.top=g.position.top-a.dimensions.height}else{l.top=b.cache.mouse.y-a.dimensions.height}c.y="bottom"}}if(l.left<0){l.left=h.left;c.x=false}if(l.top<0){l.top=h.top;c.y=false}if(b.options.style.tip.corner!==false){l.corner=new String(a.corner);if(c.x!==false){l.corner=l.corner.replace(/Left|Right|Middle/,c.x)}if(c.y!==false){l.corner=l.corner.replace(/top|bottom/,c.y)}if(l.corner!==b.elements.tip.attr("rel")){E.call(b,l.corner)}}return l}function t(b,c){var a,e;a=D.extend(true,{},b);for(e in a){if(c===true&&e.search(/(tip|classes)/i)!==-1){delete a[e]}else{if(!c&&e.search(/(width|border|tip|title|classes|user)/i)!==-1){delete a[e]}}}return a}function G(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 I(){var g,f,e,a,c,b;g=this;e=[true,{}];for(f=0;f<arguments.length;f++){e.push(arguments[f])}a=[D.extend.apply(D,e)];while(typeof a[0].name=="string"){a.unshift(G(D.fn.qtip.styles[a[0].name]))}a.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},D.fn.qtip.styles.defaults);c=D.extend.apply(D,a);b=(D.browser.msie)?1:0;c.tip.size.width+=b;c.tip.size.height+=b;if(c.tip.size.width%2>0){c.tip.size.width+=1}if(c.tip.size.height%2>0){c.tip.size.height+=1}if(c.tip.corner===true){c.tip.corner=(g.options.position.corner.tooltip==="center")?false:g.options.position.corner.tooltip}return c}function H(a,b,c){var e={bottomRight:[[0,0],[b,c],[b,0]],bottomLeft:[[0,0],[b,0],[0,c]],topRight:[[0,c],[b,0],[b,c]],topLeft:[[0,0],[0,c],[b,c]],topMiddle:[[0,c],[b/2,0],[b,c]],bottomMiddle:[[0,0],[b,0],[b/2,c]],rightMiddle:[[0,0],[b,c/2],[0,c]],leftMiddle:[[b,0],[b,c],[0,c/2]]};e.leftTop=e.bottomRight;e.rightTop=e.bottomLeft;e.leftBottom=e.topRight;e.rightBottom=e.topLeft;return e[a]}function C(b){var a;if(D("<canvas>").get(0).getContext){a={topLeft:[b,b],topRight:[0,b],bottomLeft:[b,0],bottomRight:[0,0]}}else{if(D.browser.msie){a={topLeft:[-90,90,0],topRight:[-90,90,-b],bottomLeft:[90,270,0],bottomRight:[90,270,-b]}}}return a}function z(){var c,b,a;c=this;a=c.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:'+a.height+"px; width:"+a.width+'px" />';c.elements.bgiframe=c.elements.wrapper.prepend(b).children(".qtip-bgiframe:first")}D(document).ready(function(){D.fn.qtip.cache={screen:{scroll:{left:D(window).scrollLeft(),top:D(window).scrollTop()},width:D(window).width(),height:D(window).height()}};var a;D(window).bind("resize scroll",function(b){clearTimeout(a);a=setTimeout(function(){if(b.type==="scroll"){D.fn.qtip.cache.screen.scroll={left:D(window).scrollLeft(),top:D(window).scrollTop()}}else{D.fn.qtip.cache.screen.width=D(window).width();D.fn.qtip.cache.screen.height=D(window).height()}for(i=0;i<D.fn.qtip.interfaces.length;i++){var c=D.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)});D(document).bind("mousedown.qtip",function(b){if(D(b.target).parents("div.qtip").length===0){D(".qtip[unfocus]").each(function(){var c=D(this).qtip("api");if(D(this).is(":visible")&&!c.status.disabled&&D(b.target).add(c.elements.target).length>1){c.hide(b)}})}})});D.fn.qtip.interfaces=[];D.fn.qtip.log={error:function(){return this}};D.fn.qtip.constants={};D.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(){}}};D.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(b){b.fn.superfish=function(n){var h=b.fn.superfish,m=h.c,g=b(['<span class="',m.arrowClass,'"> &#187;</span>'].join("")),l=function(){var c=b(this),o=e(c);clearTimeout(o.sfTimer);c.showSuperfishUl().siblings().hideSuperfishUl()},f=function(){var c=b(this),r=e(c),q=h.op;clearTimeout(r.sfTimer);r.sfTimer=setTimeout(function(){q.retainPath=(b.inArray(c[0],q.$path)>-1);c.hideSuperfishUl();if(q.$path.length&&c.parents(["li.",q.hoverClass].join("")).length<1){l.call(q.$path)}},q.delay)},e=function(c){var o=c.parents(["ul.",m.menuClass,":first"].join(""))[0];h.op=h.o[o.serial];return o},k=function(c){c.addClass(m.anchorClass).append(g.clone())};return this.each(function(){var c=this.serial=h.o.length;var r=b.extend({},h.defaults,n);r.$path=b("li."+r.pathClass,this).slice(0,r.pathLevels).each(function(){b(this).addClass([r.hoverClass,m.bcClass].join(" ")).filter("li:has(ul)").removeClass(r.pathClass)});h.o[c]=h.op=r;b("li:has(ul)",this)[(b.fn.hoverIntent&&!r.disableHI)?"hoverIntent":"hover"](l,f).each(function(){if(r.autoArrows){k(b(">a:first-child",this))}}).not("."+m.bcClass).hideSuperfishUl();var q=b("a",this);q.each(function(o){var s=q.eq(o).parents("li");q.eq(o).focus(function(){l.call(s)}).blur(function(){f.call(s)})});r.onInit.call(this)}).each(function(){menuClasses=[m.menuClass];if(h.op.dropShadows&&!(b.browser.msie&&b.browser.version<7)){menuClasses.push(m.shadowClass)}b(this).addClass(menuClasses.join(" "))})};var a=b.fn.superfish;a.o=[];a.op={};a.IE7fix=function(){var c=a.op;if(b.browser.msie&&b.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined){this.toggleClass(a.c.shadowClass+"-off")}};a.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};a.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:300,animation:{opacity:"show"},speed:"normal",autoArrows:false,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};b.fn.extend({hideSuperfishUl:function(){var f=a.op,e=(f.retainPath===true)?f.$path:"";f.retainPath=false;var c=b(["li.",f.hoverClass].join(""),this).add(this).not(e).removeClass(f.hoverClass).find(">ul").hide().css("visibility","hidden");f.onHide.call(c);return this},showSuperfishUl:function(){var f=a.op,e=a.c.shadowClass+"-off",c=this.addClass(f.hoverClass).find(">ul:hidden").css("visibility","visible");a.IE7fix.call(c);f.onBeforeShow.call(c);c.animate(f.animation,f.speed,function(){a.IE7fix.call(c);f.onShow.call(c)});return this}})})(jQuery);(function(a){a.fn.supersubs=function(b){var c=a.extend({},a.fn.supersubs.defaults,b);return this.each(function(){var e=a(this);var f=a.meta?a.extend({},c,e.data()):c;var g=a('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(e).width();a("#menu-fontsize").remove();$ULs=e.find("ul");$ULs.each(function(n){var m=$ULs.eq(n);var l=m.children();var h=l.children("a");var o=l.css("white-space","nowrap").css("float");var k=m.add(l).add(h).css({"float":"none",width:"auto"}).end().end()[0].clientWidth/g;k+=f.extraWidth;if(k>f.maxWidth){k=f.maxWidth}else{if(k<f.minWidth){k=f.minWidth}}k+="em";m.css("width",k);l.css({"float":o,width:"100%","white-space":"normal"}).each(function(){var r=a(">ul",this);var q=r.css("left")!==undefined?"left":"right";r.css(q,k)})})})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);

////////////////////////////
// http://adipalaz.awardspace.com/experiments/jquery/expand.html
// * When using this script, please keep the above url intact.
///////////////////////////
(function($){$.fn.toggler=function(options){var defaults={cllpsEl:'div.collapse',method:'slideToggle',speed:'slow'};var o=$.extend({},defaults,options);$(this).wrapInner('<a style="display:block" href="#" title="Expand/Collapse" />');var container=$(this).attr('id');return this.each(function(){$(this).click(function(){$(this).toggleClass('open').next(o.cllpsEl)[o.method](o.speed);return false;});});};$.fn.fadeToggle=function(speed,easing,callback){return this.animate({opacity:'toggle'},speed,easing,callback);};$.fn.slideFadeToggle=function(speed,easing,callback){return this.animate({opacity:'toggle',height:'toggle'},speed,easing,callback);};})(jQuery);

/**
* Cookie plugin
*
* Copyright (c) 2006 Klaus Hartl (stilbuero.de)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html */

jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}expires='; expires='+date.toUTCString();}var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}return cookieValue;}};
