(function(c){c.effects=c.effects||{};c.extend(c.effects,{save:function(f,g){for(var e=0;e<g.length;e++){if(g[e]!==null){c.data(f[0],"ec.storage."+g[e],f[0].style[g[e]])}}},restore:function(f,g){for(var e=0;e<g.length;e++){if(g[e]!==null){f.css(g[e],c.data(f[0],"ec.storage."+g[e]))}}},setMode:function(e,f){if(f=="toggle"){f=e.is(":hidden")?"show":"hide"}return f},getBaseline:function(f,g){var h,e;switch(f[0]){case"top":h=0;break;case"middle":h=0.5;break;case"bottom":h=1;break;default:h=f[0]/g.height}switch(f[1]){case"left":e=0;break;case"center":e=0.5;break;case"right":e=1;break;default:e=f[1]/g.width}return{x:e,y:h}},createWrapper:function(f){if(f.parent().attr("id")=="fxWrapper"){return f}var e={width:f.outerWidth({margin:true}),height:f.outerHeight({margin:true}),"float":f.css("float")};f.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var i=f.parent();if(f.css("position")=="static"){i.css({position:"relative"});f.css({position:"relative"})}else{var h=f.css("top");if(isNaN(parseInt(h))){h="auto"}var g=f.css("left");if(isNaN(parseInt(g))){g="auto"}i.css({position:f.css("position"),top:h,left:g,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}i.css(e);return i},removeWrapper:function(e){if(e.parent().attr("id")=="fxWrapper"){return e.parent().replaceWith(e)}return e},setTransition:function(f,g,e,h){h=h||{};c.each(g,function(k,j){unit=f.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*e+unit[1]}});return h},animateClass:function(g,h,j,i){var e=(typeof j=="function"?j:(i?i:null));var f=(typeof j=="object"?j:null);return this.each(function(){var p={};var m=c(this);var o=m.attr("style")||"";if(typeof o=="object"){o=o.cssText}if(g.toggle){m.hasClass(g.toggle)?g.remove=g.toggle:g.add=g.toggle}var k=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(g.add){m.addClass(g.add)}if(g.remove){m.removeClass(g.remove)}var l=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(g.add){m.removeClass(g.add)}if(g.remove){m.addClass(g.remove)}for(var q in l){if(typeof l[q]!="function"&&l[q]&&q.indexOf("Moz")==-1&&q.indexOf("length")==-1&&l[q]!=k[q]&&(q.match(/color/i)||(!q.match(/color/i)&&!isNaN(parseInt(l[q],10))))&&(k.position!="static"||(k.position=="static"&&!q.match(/left|top|bottom|right/)))){p[q]=l[q]}}m.animate(p,h,f,function(){if(typeof c(this).attr("style")=="object"){c(this).attr("style")["cssText"]="";c(this).attr("style")["cssText"]=o}else{c(this).attr("style",o)}if(g.add){c(this).addClass(g.add)}if(g.remove){c(this).removeClass(g.remove)}if(e){e.apply(this,arguments)}})})}});c.fn.extend({_show:c.fn.show,_hide:c.fn.hide,__toggle:c.fn.toggle,_addClass:c.fn.addClass,_removeClass:c.fn.removeClass,_toggleClass:c.fn.toggleClass,effect:function(e,g,f,h){return c.effects[e]?c.effects[e].call(this,{method:e,options:g||{},duration:f,callback:h}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="show";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="hide";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="toggle";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},addClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{add:f},e,h,g]):this._addClass(f)},removeClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{remove:f},e,h,g]):this._removeClass(f)},toggleClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{toggle:f},e,h,g]):this._toggleClass(f)},morph:function(e,g,f,i,h){return c.effects.animateClass.apply(this,[{add:g,remove:e},f,i,h])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(e){var f=this.css(e),g=[];c.each(["em","px","%","pt"],function(h,j){if(f.indexOf(j)>0){g=[parseFloat(f),j]}});return g}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){jQuery.fx.step[e]=function(g){if(g.state==0){g.start=d(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[jQuery.trim(f).toLowerCase()]}function d(g,e){var f;do{f=jQuery.curCSS(g,e);if(f!=""&&f!="transparent"||jQuery.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(f,g,e,i,h){return jQuery.easing[jQuery.easing.def](f,g,e,i,h)},easeInQuad:function(f,g,e,i,h){return i*(g/=h)*g+e},easeOutQuad:function(f,g,e,i,h){return -i*(g/=h)*(g-2)+e},easeInOutQuad:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g+e}return -i/2*((--g)*(g-2)-1)+e},easeInCubic:function(f,g,e,i,h){return i*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,i,h){return i*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g+e}return i/2*((g-=2)*g*g+2)+e},easeInQuart:function(f,g,e,i,h){return i*(g/=h)*g*g*g+e},easeOutQuart:function(f,g,e,i,h){return -i*((g=g/h-1)*g*g*g-1)+e},easeInOutQuart:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g*g+e}return -i/2*((g-=2)*g*g*g-2)+e},easeInQuint:function(f,g,e,i,h){return i*(g/=h)*g*g*g*g+e},easeOutQuint:function(f,g,e,i,h){return i*((g=g/h-1)*g*g*g*g+1)+e},easeInOutQuint:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g*g*g+e}return i/2*((g-=2)*g*g*g*g+2)+e},easeInSine:function(f,g,e,i,h){return -i*Math.cos(g/h*(Math.PI/2))+i+e},easeOutSine:function(f,g,e,i,h){return i*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e},easeInExpo:function(f,g,e,i,h){return(g==0)?e:i*Math.pow(2,10*(g/h-1))+e},easeOutExpo:function(f,g,e,i,h){return(g==h)?e+i:i*(-Math.pow(2,-10*g/h)+1)+e},easeInOutExpo:function(f,g,e,i,h){if(g==0){return e}if(g==h){return e+i}if((g/=h/2)<1){return i/2*Math.pow(2,10*(g-1))+e}return i/2*(-Math.pow(2,-10*--g)+2)+e},easeInCirc:function(f,g,e,i,h){return -i*(Math.sqrt(1-(g/=h)*g)-1)+e},easeOutCirc:function(f,g,e,i,h){return i*Math.sqrt(1-(g=g/h-1)*g)+e},easeInOutCirc:function(f,g,e,i,h){if((g/=h/2)<1){return -i/2*(Math.sqrt(1-g*g)-1)+e}return i/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*(g/=i)*g*((h+1)*g-h)+e},easeOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*((g=g/i-1)*g*((h+1)*g+h)+1)+e},easeInOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}if((g/=i/2)<1){return j/2*(g*g*(((h*=(1.525))+1)*g-h))+e}return j/2*((g-=2)*g*(((h*=(1.525))+1)*g+h)+2)+e},easeInBounce:function(f,g,e,i,h){return i-jQuery.easing.easeOutBounce(f,h-g,0,i,h)+e},easeOutBounce:function(f,g,e,i,h){if((g/=h)<(1/2.75)){return i*(7.5625*g*g)+e}else{if(g<(2/2.75)){return i*(7.5625*(g-=(1.5/2.75))*g+0.75)+e}else{if(g<(2.5/2.75)){return i*(7.5625*(g-=(2.25/2.75))*g+0.9375)+e}else{return i*(7.5625*(g-=(2.625/2.75))*g+0.984375)+e}}}},easeInOutBounce:function(f,g,e,i,h){if(g<h/2){return jQuery.easing.easeInBounce(f,g*2,0,i,h)*0.5+e}return jQuery.easing.easeOutBounce(f,g*2-h,0,i,h)*0.5+i*0.5+e}})})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var i=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(i=="show"){e.css(f,c=="pos"?-j:j)}var g={};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);(function(a){a.effects.blind=function(b){return this.queue(function(){var d=a(this),c=["position","top","left"];var h=a.effects.setMode(d,b.options.mode||"hide");var g=b.options.direction||"vertical";a.effects.save(d,c);d.show();var j=a.effects.createWrapper(d).css({overflow:"hidden"});var e=(g=="vertical")?"height":"width";var i=(g=="vertical")?j.height():j.width();if(h=="show"){j.css(e,0)}var f={};f[e]=h=="show"?i:0;j.animate(f,b.duration,b.options.easing,function(){if(h=="hide"){d.hide()}a.effects.restore(d,c);a.effects.removeWrapper(d);if(b.callback){b.callback.apply(d[0],arguments)}d.dequeue()})})}})(jQuery);(function(a){jQuery.fn.superbgimage=function(c){var b=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options,c);a.superbg_inAnimation=false;a.superbg_slideshowActive=false;a.superbg_imgIndex=1;a.superbg_imgActual=1;a.superbg_imgLast=-1;a.superbg_imgSlide=0;a.superbg_interval=0;a.superbg_preload=0;a.superbg_direction=0;a.superbg_max_randomtrans=7;a.superbg_lasttrans=-1;a.superbg_isIE6=false;a.superbg_firstLoaded=false;a.superbg_saveId=a(this).attr("id");if(a("#"+b.id).length===0){a("body").prepend('<div id="'+b.id+'" style="display:none;"></div>')}else{a("body").prepend(a("#"+b.id))}a("#"+b.id).css("display","none").css("overflow","hidden").css("z-index",b.z_index);if(b.inlineMode===0){a("#"+b.id).css("position","fixed").css("width","100%").css("height","100%").css("top",0).css("left",0)}if(b.reload){a("#"+b.id+" img").remove()}a("#"+b.id+" img").hide().css("position","absolute");a("#"+b.id).children("img").each(function(){a(this).attr("rel",a.superbg_imgIndex++);if(!b.showtitle){a(this).attr("title","")}});a(this).children("a").each(function(){a(this).attr("rel",a.superbg_imgIndex++).click(function(){a(this).superbgShowImage();return false}).addClass("preload")});a.superbg_imgIndex--;a(window).bind("load",function(){a(this).superbgLoad()});a(window).bind("resize",function(){a(this).superbgResize()});a.superbg_isIE6=/msie|MSIE 6/.test(navigator.userAgent);if(a.superbg_isIE6&&(b.inlineMode===0)){a("#"+b.id).css("position","absolute").width(a(window).width()).height(a(window).height());a(window).bind("scroll",function(){a(this).superbgScrollIE6()})}if(b.reload){a(this).superbgLoad()}return this};jQuery.fn.superbgScrollIE6=function(){var b=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);a("#"+b.id).css("top",document.documentElement.scrollTop+"px")};jQuery.fn.superbgLoad=function(){var b=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);if((a("#"+b.id).children("img").length>0)||(a("#"+a.superbg_saveId).children("a").length>0)){a("#"+b.id).show()}if((typeof b.showimage!="undefined")&&(b.showimage>=0)){a.superbg_imgActual=b.showimage}if(b.randomimage===1){a.superbg_imgActual=(1+parseInt(Math.random()*(a.superbg_imgIndex-1+1),10))}a(this).superbgShowImage(a.superbg_imgActual)};jQuery.fn.superbgimagePreload=function(){var b=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);clearInterval(a.superbg_preload);if(!a.superbg_firstLoaded&&(a("#"+a.superbg_saveId).children("a").length>0)){a.superbg_preload=setInterval("$(this).superbgimagePreload()",111);return}a("#"+a.superbg_saveId).children("a.preload:first").each(function(){var d=a(this).attr("rel");var c=a(this).attr("title");var e=new Image();a(e).load(function(){a(this).css("position","absolute").hide();if(a("#"+b.id).children("img[rel='"+d+"']").length===0){a(this).attr("rel",d);if(b.showtitle===1){a(this).attr("title",c)}a("#"+b.id).prepend(this)}e.onload=function(){}}).error(function(){e.onerror=function(){}}).attr("src",a(this).attr("href"));a.superbg_preload=setInterval("$(this).superbgimagePreload()",111)}).removeClass("preload")};jQuery.fn.startSlideShow=function(){var b=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);a.superbg_imgSlide=a.superbg_imgActual;if(a.superbg_interval!==0){clearInterval(a.superbg_interval)}a.superbg_interval=setInterval("$(this).nextSlide()",b.slide_interval);a.superbg_slideshowActive=true;return false};jQuery.fn.stopSlideShow=function(){var b=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);clearInterval(a.superbg_interval);a.superbg_slideshowActive=false;return false};jQuery.fn.nextSlide=function(){var b=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);if(a.superbg_inAnimation){return false}if(a.superbg_slideshowActive){clearInterval(a.superbg_preload)}a.superbg_direction=0;a.superbg_imgSlide++;if(a.superbg_imgSlide>a.superbg_imgIndex){a.superbg_imgSlide=1}if(b.randomimage===1){a.superbg_imgSlide=(1+parseInt(Math.random()*(a.superbg_imgIndex-1+1),10));while(a.superbg_imgSlide===a.superbg_imgLast){a.superbg_imgSlide=(1+parseInt(Math.random()*(a.superbg_imgIndex-1+1),10))}}a.superbg_imgActual=a.superbg_imgSlide;return a(this).superbgShowImage(a.superbg_imgActual)};jQuery.fn.prevSlide=function(){var b=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);if(a.superbg_inAnimation){return false}a.superbg_direction=1;a.superbg_imgSlide--;if(a.superbg_imgSlide<1){a.superbg_imgSlide=a.superbg_imgIndex}if(b.randomimage===1){a.superbg_imgSlide=(1+parseInt(Math.random()*(a.superbg_imgIndex-1+1),10));while(a.superbg_imgSlide===a.superbg_imgLast){a.superbg_imgSlide=(1+parseInt(Math.random()*(a.superbg_imgIndex-1+1),10))}}a.superbg_imgActual=a.superbg_imgSlide;return a(this).superbgShowImage(a.superbg_imgActual)};jQuery.fn.superbgResize=function(){var d=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);var g=a("#"+d.id+" img.activeslide");var f=a(this).superbgCalcSize(a(g).width(),a(g).height());var b=f[0];var c=f[1];var h=f[2];var e=f[3];a(g).css("width",b+"px");a(g).css("height",c+"px");if(a.superbg_isIE6&&(d.inlineMode===0)){a("#"+d.id).width(b).height(c);a(g).width(b);a(g).height(c)}a(g).css("left",h+"px");if(d.vertical_center===1){a(g).css("top",e+"px")}else{a(g).css("top","0px")}};jQuery.fn.superbgCalcSize=function(c,k){var l=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);var b=a(window).width();var e=a(window).height();if(l.inlineMode===1){b=a("#"+l.id).width();e=a("#"+l.id).height()}var g=k/c;var j=0;var h=0;if((e/b)>g){j=e;h=Math.round(e/g)}else{j=Math.round(b*g);h=b}var d=Math.round((b-h)/2);var f=Math.round((e-j)/2);var i=[h,j,d,f];return i};jQuery.fn.superbgShowImage=function(c){var d=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);a.superbg_imgActual=a(this).attr("rel");if(typeof c!=="undefined"){a.superbg_imgActual=c}if(a("#"+d.id+" img.activeslide").attr("rel")===a.superbg_imgActual){return false}if(a.superbg_inAnimation){return false}else{a.superbg_inAnimation=true}var e="";var b="";if(a("#"+d.id).children("img[rel='"+a.superbg_imgActual+"']").length===0){e=a("#"+a.superbg_saveId+" a[rel='"+a.superbg_imgActual+"']").attr("href");b=a("#"+a.superbg_saveId+" a[rel='"+a.superbg_imgActual+"']").attr("title")}else{e=a("#"+d.id).children("img[rel='"+a.superbg_imgActual+"']").attr("src")}if((typeof d.onHide==="function")&&(d.onHide!==null)&&(a.superbg_imgLast>=0)){d.onHide(a.superbg_imgLast)}a("#"+d.id+" img.activeslide").superbgLoadImage(e,b);a("#"+a.superbg_saveId+" a").removeClass("activeslide");a("#"+a.superbg_saveId).children("a[rel='"+a.superbg_imgActual+"']").addClass("activeslide");a.superbg_imgSlide=a.superbg_imgActual;a.superbg_imgLast=a.superbg_imgActual;return false};jQuery.fn.superbgLoadImage=function(g,b){var d=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);if(a("#"+d.id).children("img[rel='"+a.superbg_imgActual+"']").length===0){var c=new Image();a(c).load(function(){a(this).css("position","absolute").hide();if(a("#"+d.id).children("img[rel='"+a.superbg_imgActual+"']").length===0){a(this).attr("rel",a.superbg_imgActual);if(d.showtitle===1){a(this).attr("title",b)}a("#"+d.id).prepend(this)}var i=a("#"+d.id).children("img[rel='"+a.superbg_imgActual+"']");var h=a(this).superbgCalcSize(c.width,c.height);a(this).superbgTransition(i,h);if(!a.superbg_firstLoaded){if(d.slideshow===1){a(this).startSlideShow()}if((d.preload===1)&&(a("#"+a.superbg_saveId).children("a").length>0)){a.superbg_preload=setInterval("$(this).superbgimagePreload()",250)}}a.superbg_firstLoaded=true;c.onload=function(){}}).error(function(){a.superbg_inAnimation=false;c.onerror=function(){}}).attr("src",g)}else{var f=a("#"+d.id).children("img[rel='"+a.superbg_imgActual+"']");var e=a(this).superbgCalcSize(a(f).width(),a(f).height());a(this).superbgTransition(f,e);if(!a.superbg_firstLoaded){if(d.slideshow===1){a(this).startSlideShow()}if((d.preload===1)&&(a("#"+a.superbg_saveId).children("a").length>0)){a.superbg_preload=setInterval("$(this).superbgimagePreload()",250)}a.superbg_firstLoaded=true}}};jQuery.fn.superbgTransition=function(d,b){var m=a.extend(a.fn.superbgimage.defaults,a.fn.superbgimage.options);var k=b[0];var l=b[1];var h=b[2];var j=b[3];a(d).css("width",k+"px").css("height",l+"px").css("left",h+"px");if((typeof m.onClick==="function")&&(m.onClick!==null)){a(d).unbind("click").click(function(){m.onClick(a.superbg_imgActual)})}if((typeof m.onMouseenter==="function")&&(m.onMouseenter!==null)){a(d).unbind("mouseenter").mouseenter(function(){m.onMouseenter(a.superbg_imgActual)})}if((typeof m.onMouseleave==="function")&&(m.onMouseleave!==null)){a(d).unbind("mouseleave").mouseleave(function(){m.onMouseleave(a.superbg_imgActual)})}if((typeof m.onMousemove==="function")&&(m.onMousemove!==null)){a(d).unbind("mousemove").mousemove(function(n){m.onMousemove(a.superbg_imgActual,n)})}if(m.randomtransition===1){var e=(0+parseInt(Math.random()*(a.superbg_max_randomtrans-0+1),10));while(e===a.superbg_lasttrans){e=(0+parseInt(Math.random()*(a.superbg_max_randomtrans-0+1),10))}m.transition=e}if(m.vertical_center===1){a(d).css("top",j+"px")}else{a(d).css("top","0px")}var c=m.transitionout;if((m.transition===6)||(m.transition===7)){c=0}if(c===1){a("#"+m.id+" img.activeslide").removeClass("activeslide").addClass("lastslide").css("z-index",0)}else{a("#"+m.id+" img.activeslide").removeClass("activeslide").addClass("lastslideno").css("z-index",0)}a(d).css("z-index",1);m.transition=parseInt(m.transition,10);a.superbg_lasttrans=m.transition;var f="";var g="";if(m.transition===0){a(d).show(1,function(){if((typeof m.onShow==="function")&&(m.onShow!==null)){m.onShow(a.superbg_imgActual)}a.superbg_inAnimation=false;if(a.superbg_slideshowActive){a("#"+m.id).startSlideShow()}}).addClass("activeslide")}else{if(m.transition===1){a(d).fadeIn(m.speed,function(){if((typeof m.onShow==="function")&&(m.onShow!==null)){m.onShow(a.superbg_imgActual)}a("#"+m.id+" img.lastslideno").hide(1,null).removeClass("lastslideno");a.superbg_inAnimation=false;if(a.superbg_slideshowActive){a("#"+m.id).startSlideShow()}}).addClass("activeslide")}else{if(m.transition===2){f="slide";g="up"}if(m.transition===3){f="slide";g="right"}if(m.transition===4){f="slide";g="down"}if(m.transition===5){f="slide";g="left"}if(m.transition===6){f="blind";g="horizontal"}if(m.transition===7){f="blind";g="vertical"}if(m.transition===90){f="slide";g="left";if(a.superbg_direction===1){g="right"}}if(m.transition===91){f="slide";g="down";if(a.superbg_direction===1){g="up"}}a(d).show(f,{direction:g},m.speed,function(){if((typeof m.onShow==="function")&&(m.onShow!==null)){m.onShow(a.superbg_imgActual)}a("#"+m.id+" img.lastslideno").hide(1,null).removeClass("lastslideno");a.superbg_inAnimation=false;if(a.superbg_slideshowActive){a("#"+m.id).startSlideShow()}}).addClass("activeslide")}}if(c===1){var i=m.speed;if(m.speed=="slow"){i=600+200}else{if(m.speed=="normal"){i=400+200}else{if(m.speed=="fast"){i=400+200}else{i=m.speed+200}}}if(m.transition===0){a("#"+m.id+" img.lastslide").hide(1,null).removeClass("lastslide")}else{if(m.transition==1){a("#"+m.id+" img.lastslide").fadeOut(i).removeClass("lastslide")}else{if(m.transition===2){f="slide";g="down"}if(m.transition===3){f="slide";g="left"}if(m.transition===4){f="slide";g="up"}if(m.transition===5){f="slide";g="right"}if(m.transition===6){f="";g=""}if(m.transition===7){f="";g=""}if(m.transition===90){f="slide";g="right";if(a.superbg_direction===1){g="left"}}if(m.transition===91){f="slide";g="up";if(a.superbg_direction===1){g="down"}}a("#"+m.id+" img.lastslide").hide(f,{direction:g},i).removeClass("lastslide")}}}else{a("#"+m.id+" img.lastslide").hide(1,null).removeClass("lastslide")}};jQuery.fn.superbgimage.defaults={id:"superbgimage",z_index:0,inlineMode:0,showimage:1,vertical_center:1,transition:1,transitionout:1,randomtransition:0,showtitle:0,slideshow:0,slide_interval:5000,randomimage:0,speed:"slow",preload:1,onShow:null,onClick:null,onHide:null,onMouseenter:null,onMouseleave:null,onMousemove:null}})(jQuery);(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;if(a.browser.mozilla){a(this).bind("mousemove.mousewheel",function(c){a.data(this,"mwcursorposdata",{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY})})}if(this.addEventListener){this.addEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=b}},teardown:function(){var b=a.event.special.mousewheel.handler;a(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=function(){}}a.removeData(this,"mwcursorposdata")},handler:function(d){var b=Array.prototype.slice.call(arguments,1);d=a.event.fix(d||window.event);a.extend(d,a.data(this,"mwcursorposdata")||{});var e=0,c=true;if(d.wheelDelta){e=d.wheelDelta/120}if(d.detail){e=-d.detail/3}d.data=d.data||{};d.type="mousewheel";b.unshift(e);b.unshift(d);return a.event.handle.apply(this,b)}};a.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);jQuery(function(b){var a="emchange";b.em=b.extend({version:"1.0",delay:200,element:b("<div />").css({left:"-100em",position:"absolute",width:"100em"}).prependTo("body")[0],action:function(){var c=b.em.element.offsetWidth/100;if(c!=b.em.current){b.em.previous=b.em.current;b.em.current=c;b.event.trigger(a,[b.em.current,b.em.previous])}}},b.em);b.fn[a]=function(c){return c?this.bind(a,c):this.trigger(a)};b.em.current=b.em.element.offsetWidth/100;b.em.iid=setInterval(b.em.action,b.em.delay)});jQuery.jScrollPane={active:[]};jQuery.fn.jScrollPane=function(b){b=jQuery.extend({},jQuery.fn.jScrollPane.defaults,b);var a=function(){return false};return this.each(function(){var n=jQuery(this);n.css("overflow","hidden");var x=this;if(jQuery(this).parent().is(".jScrollPaneContainer")){var ab=b.maintainPosition?n.offset({relativeTo:jQuery(this).parent()[0]}).top:0;var k=jQuery(this).parent();var D=k.innerWidth();var ac=k.outerHeight();var l=ac;jQuery(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",k).remove();n.css({top:0})}else{var ab=0;this.originalPadding=n.css("paddingTop")+" "+n.css("paddingRight")+" "+n.css("paddingBottom")+" "+n.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(n.css("paddingLeft"))||0)+(parseInt(n.css("paddingRight"))||0);var D=n.innerWidth();var ac=n.innerHeight();var l=ac;n.wrap(jQuery("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:ac+"px",width:D+"px"}));jQuery(document).bind("emchange",function(ad,ae,p){n.jScrollPane(b)})}if(b.reinitialiseOnImageLoad){var m=$.data(x,"jScrollPaneImagesToLoad")||$("img",n);var f=[];if(m.length){m.each(function(p,ad){$(this).bind("load",function(){if(jQuery.inArray(p,f)==-1){f.push(ad);m=$.grep(m,function(af,ae){return af!=ad});$.data(x,"jScrollPaneImagesToLoad",m);b.reinitialiseOnImageLoad=false;n.jScrollPane(b)}}).each(function(ae,af){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var O=this.originalSidePaddingTotal;var L={height:"auto",width:D-b.scrollbarWidth-b.scrollbarMargin-O+"px"};if(b.scrollbarOnLeft){L.paddingLeft=b.scrollbarMargin+b.scrollbarWidth+"px"}else{L.paddingRight=b.scrollbarMargin+"px"}n.css(L);var M=n.outerHeight();var I=ac/M;if(I<0.99){var g=n.parent();g.append(jQuery("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:b.scrollbarWidth+"px"}).append(jQuery("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:b.scrollbarWidth+"px"}).append(jQuery("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:b.scrollbarWidth+"px"}),jQuery("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:b.scrollbarWidth+"px"}))));var Y=jQuery(">.jScrollPaneTrack",g);var o=jQuery(">.jScrollPaneTrack .jScrollPaneDrag",g);if(b.showArrows){var G;var aa;var s;var Q;var J=function(){if(Q>4||Q%4==0){X(T+aa*B)}Q++};var j=function(p){jQuery("html").unbind("mouseup",j);G.removeClass("jScrollActiveArrowButton");clearInterval(s)};var z=function(){jQuery("html").bind("mouseup",j);G.addClass("jScrollActiveArrowButton");Q=0;J();s=setInterval(J,100)};g.append(jQuery("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp"}).css({width:b.scrollbarWidth+"px"}).html("Scroll up").bind("mousedown",function(){G=jQuery(this);aa=-1;z();this.blur();return false}).bind("click",a),jQuery("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown"}).css({width:b.scrollbarWidth+"px"}).html("Scroll down").bind("mousedown",function(){G=jQuery(this);aa=1;z();this.blur();return false}).bind("click",a));var q=jQuery(">.jScrollArrowUp",g);var i=jQuery(">.jScrollArrowDown",g);if(b.arrowSize){l=ac-b.arrowSize-b.arrowSize;Y.css({height:l+"px",top:b.arrowSize+"px"})}else{var R=q.height();b.arrowSize=R;l=ac-R-i.height();Y.css({height:l+"px",top:R+"px"})}}var V=jQuery(this).css({position:"absolute",overflow:"visible"});var c;var y;var B;var T=0;var v=I*ac/2;var A=function(ad,af){var ae=af=="X"?"Left":"Top";return ad["page"+af]||(ad["client"+af]+(document.documentElement["scroll"+ae]||document.body["scroll"+ae]))||0};var F=function(){return false};var U=function(){N();c=o.offset(false);c.top-=T;y=l-o[0].offsetHeight;B=2*b.wheelSpeed*y/M};var d=function(p){U();v=A(p,"Y")-T-c.top;jQuery("html").bind("mouseup",t).bind("mousemove",H);if(jQuery.browser.msie){jQuery("html").bind("dragstart",F).bind("selectstart",F)}return false};var t=function(){jQuery("html").unbind("mouseup",t).unbind("mousemove",H);v=I*ac/2;if(jQuery.browser.msie){jQuery("html").unbind("dragstart",F).unbind("selectstart",F)}};var X=function(ad){ad=ad<0?0:(ad>y?y:ad);T=ad;o.css({top:ad+"px"});var ae=ad/y;V.css({top:((ac-M)*ae)+"px"});n.trigger("scroll");if(b.showArrows){q[ad==0?"addClass":"removeClass"]("disabled");i[ad==y?"addClass":"removeClass"]("disabled")}};var H=function(p){X(A(p,"Y")-c.top-v)};var P=Math.max(Math.min(I*(ac-b.arrowSize*2),b.dragMaxHeight),b.dragMinHeight);o.css({height:P+"px"}).bind("mousedown",d);var K;var r;var h;var S=function(){if(r>8||r%4==0){X((T-((T-h)/2)))}r++};var Z=function(){clearInterval(K);jQuery("html").unbind("mouseup",Z).unbind("mousemove",E)};var E=function(p){h=A(p,"Y")-c.top-v};var u=function(p){U();E(p);r=0;jQuery("html").bind("mouseup",Z).bind("mousemove",E);K=setInterval(S,100);S()};Y.bind("mousedown",u);g.bind("mousewheel",function(ad,af){U();N();var ae=T;X(T-af*B);var p=ae!=T;return !p});var e;var w;function C(){var p=(e-T)/b.animateStep;if(p>1||p<-1){X(T+p)}else{X(e);N()}}var N=function(){if(w){clearInterval(w);delete e}};var W=function(ae,p){if(typeof ae=="string"){$e=jQuery(ae,this);if(!$e.length){return}ae=$e.offset().top-n.offset().top}N();var ad=-ae/(ac-M)*y;if(p||!b.animateTo){X(ad)}else{e=ad;w=setInterval(C,b.animateInterval)}};n[0].scrollTo=W;n[0].scrollBy=function(ad){var p=-parseInt(V.css("top"))||0;W(p+ad)};U();W(-ab,true);$("*",this).bind("focus",function(af){var ah=$(this).position().top;var p=-parseInt(V.css("top"))||0;var ag=p+ac;var ae=ah>p&&ah<ag;if(!ae){g.scrollTop(0);var ad=ah-b.scrollbarMargin;if(ah>p){ad+=$(this).height()+15+b.scrollbarMargin-ac}W(ad)}});if(location.hash){setTimeout(function(){$(location.hash,n).trigger("focus")},$.browser.msie?100:0)}$(document).bind("click",function(ad){$target=$(ad.target);if($target.is("a")){var p=$target.attr("href");if(p.substr(0,1)=="#"){$linkedEle=$(p,n);if($linkedEle.length){$linkedEle.trigger("focus");return false}}}});jQuery.jScrollPane.active.push(n[0])}else{n.css({height:ac+"px",width:D-this.originalSidePaddingTotal+"px",padding:this.originalPadding})}})};jQuery.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:10,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false};jQuery(window).bind("unload",function(){var b=jQuery.jScrollPane.active;for(var a=0;a<b.length;a++){b[a].scrollTo=b[a].scrollBy=null}});
