var idfrommaps="map",mapscontroll=1,mapsoptions=0,mapscale=0,mapsnavi=0,mapscroll=1,zoomlevel=15,map=null,geocoder=null,icon=null,textindivAD=[],textindivLL=[],textindivMM=[];function loadinner(e){e=e.childNodes[0];for(k=z=i=0;e;){if("p"==e.nodeName.toLowerCase())switch(e.className){case "address":textindivAD[i]=e.innerHTML;i++;break;case "latlong":textindivLL[z]=e.innerHTML;z++;break;case "mostra":textindivMM[k]=e.innerHTML,k++}e=e.nextSibling}} function insertaddress(){for(i=0;i<textindivMM.length;i++)finale=textindivMM[i];for(i=0;i<textindivAD.length;i++)showAddress(textindivAD[i],!0,"whereIsIt",finale,!1);for(i=0;i<textindivLL.length;i++)latlon=textindivLL[i].split(","),showlatlng(latlon[0],latlon[1])} function googlesapi_load(){if(document.getElementById(idfrommaps)){divmaps=document.getElementById(idfrommaps);loadinner(divmaps);if(GBrowserIsCompatible()&&divmaps){map=new GMap2(divmaps);geocoder=new GClientGeocoder;switch(mapscontroll){case 1:map.addControl(new GSmallMapControl);break;case 2:map.addControl(new GLargeMapControl);break;case 3:map.addControl(new GSmallZoomControl)}switch(mapsoptions){case 1:map.addControl(new GMapTypeControl)}switch(mapscale){case 1:map.addControl(new GScaleControl)}switch(mapsnavi){case 1:map.addControl(new GOverviewMapControl)}map.enableContinuousZoom(); switch(mapscroll){case 1:GEvent.addDomListener(divmaps,"DOMMouseScroll",wheelZoom),GEvent.addDomListener(divmaps,"mousewheel",wheelZoom)}}insertaddress()}} function showAddress(e,d,b,h){geocoder&&geocoder.getLatLng(e,function(g){g?(map.setCenter(g,zoomlevel),d&&(marker=new GMarker(g),infoTabs=[new GInfoWindowTab(b,h)],GEvent.addListener(marker,"click",function(){marker.openInfoWindowTabsHtml(infoTabs)}),map.addOverlay(marker),marker.openInfoWindowTabsHtml(infoTabs))):(idmap=document.getElementById(idfrommaps),idmap.innerHTML="Google Maps error<br /><strong>"+e+"</strong> not found",idmap.style.width="610",idmap.style.height="0",idmap.style.border="0", idmap.style.background="#fff")})}function showlatlng(e,d){map.setCenter(new GLatLng(e,d),zoomlevel)}function wheelZoom(e){e.detail?0>e.detail?map.zoomIn():0<e.detail&&map.zoomOut():e.wheelDelta&&(0<e.wheelDelta?map.zoomIn():0>e.wheelDelta&&map.zoomOut())}function showmaps(){googlesapi_load()}jQuery.easing.jswing=jQuery.easing.swing; jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,d,b,h,g){return jQuery.easing[jQuery.easing.def](e,d,b,h,g)},easeInQuad:function(e,d,b,h,g){return h*(d/=g)*d+b},easeOutQuad:function(e,d,b,h,g){return-h*(d/=g)*(d-2)+b},easeInOutQuad:function(e,d,b,h,g){return 1>(d/=g/2)?h/2*d*d+b:-h/2*(--d*(d-2)-1)+b},easeInCubic:function(e,d,b,h,g){return h*(d/=g)*d*d+b},easeOutCubic:function(e,d,b,h,g){return h*((d=d/g-1)*d*d+1)+b},easeInOutCubic:function(e,d,b,h,g){return 1>(d/=g/2)?h/2*d*d*d+b: h/2*((d-=2)*d*d+2)+b},easeInQuart:function(e,d,b,h,g){return h*(d/=g)*d*d*d+b},easeOutQuart:function(e,d,b,h,g){return-h*((d=d/g-1)*d*d*d-1)+b},easeInOutQuart:function(e,d,b,h,g){return 1>(d/=g/2)?h/2*d*d*d*d+b:-h/2*((d-=2)*d*d*d-2)+b},easeInQuint:function(e,d,b,h,g){return h*(d/=g)*d*d*d*d+b},easeOutQuint:function(e,d,b,h,g){return h*((d=d/g-1)*d*d*d*d+1)+b},easeInOutQuint:function(e,d,b,h,g){return 1>(d/=g/2)?h/2*d*d*d*d*d+b:h/2*((d-=2)*d*d*d*d+2)+b},easeInSine:function(e,d,b,h,g){return-h*Math.cos(d/ g*(Math.PI/2))+h+b},easeOutSine:function(e,d,b,h,g){return h*Math.sin(d/g*(Math.PI/2))+b},easeInOutSine:function(e,d,b,h,g){return-h/2*(Math.cos(Math.PI*d/g)-1)+b},easeInExpo:function(e,d,b,h,g){return 0==d?b:h*Math.pow(2,10*(d/g-1))+b},easeOutExpo:function(e,d,b,h,g){return d==g?b+h:h*(-Math.pow(2,-10*d/g)+1)+b},easeInOutExpo:function(e,d,b,h,g){return 0==d?b:d==g?b+h:1>(d/=g/2)?h/2*Math.pow(2,10*(d-1))+b:h/2*(-Math.pow(2,-10*--d)+2)+b},easeInCirc:function(e,d,b,h,g){return-h*(Math.sqrt(1-(d/=g)* d)-1)+b},easeOutCirc:function(e,d,b,h,g){return h*Math.sqrt(1-(d=d/g-1)*d)+b},easeInOutCirc:function(e,d,b,h,g){return 1>(d/=g/2)?-h/2*(Math.sqrt(1-d*d)-1)+b:h/2*(Math.sqrt(1-(d-=2)*d)+1)+b},easeInElastic:function(e,d,b,h,g){var e=1.70158,o=0,s=h;if(0==d)return b;if(1==(d/=g))return b+h;o||(o=0.3*g);s<Math.abs(h)?(s=h,e=o/4):e=o/(2*Math.PI)*Math.asin(h/s);return-(s*Math.pow(2,10*(d-=1))*Math.sin(2*(d*g-e)*Math.PI/o))+b},easeOutElastic:function(e,d,b,h,g){var e=1.70158,o=0,s=h;if(0==d)return b;if(1== (d/=g))return b+h;o||(o=0.3*g);s<Math.abs(h)?(s=h,e=o/4):e=o/(2*Math.PI)*Math.asin(h/s);return s*Math.pow(2,-10*d)*Math.sin(2*(d*g-e)*Math.PI/o)+h+b},easeInOutElastic:function(e,d,b,h,g){var e=1.70158,o=0,s=h;if(0==d)return b;if(2==(d/=g/2))return b+h;o||(o=1.5*0.3*g);s<Math.abs(h)?(s=h,e=o/4):e=o/(2*Math.PI)*Math.asin(h/s);return 1>d?-0.5*s*Math.pow(2,10*(d-=1))*Math.sin(2*(d*g-e)*Math.PI/o)+b:0.5*s*Math.pow(2,-10*(d-=1))*Math.sin(2*(d*g-e)*Math.PI/o)+h+b},easeInBack:function(e,d,b,h,g,o){void 0== o&&(o=1.70158);return h*(d/=g)*d*((o+1)*d-o)+b},easeOutBack:function(e,d,b,h,g,o){void 0==o&&(o=1.70158);return h*((d=d/g-1)*d*((o+1)*d+o)+1)+b},easeInOutBack:function(e,d,b,h,g,o){void 0==o&&(o=1.70158);return 1>(d/=g/2)?h/2*d*d*(((o*=1.525)+1)*d-o)+b:h/2*((d-=2)*d*(((o*=1.525)+1)*d+o)+2)+b},easeInBounce:function(e,d,b,h,g){return h-jQuery.easing.easeOutBounce(e,g-d,0,h,g)+b},easeOutBounce:function(e,d,b,h,g){return(d/=g)<1/2.75?7.5625*h*d*d+b:d<2/2.75?h*(7.5625*(d-=1.5/2.75)*d+0.75)+b:d<2.5/2.75? h*(7.5625*(d-=2.25/2.75)*d+0.9375)+b:h*(7.5625*(d-=2.625/2.75)*d+0.984375)+b},easeInOutBounce:function(e,d,b,h,g){return d<g/2?0.5*jQuery.easing.easeInBounce(e,2*d,0,h,g)+b:0.5*jQuery.easing.easeOutBounce(e,2*d-g,0,h,g)+0.5*h+b}}); (function(e){e.fn.hoverIntent=function(d,b){var h={sensitivity:7,interval:100,timeout:0},h=e.extend(h,b?{over:d,out:b}:d),g,o,s,A,I=function(b){g=b.pageX;o=b.pageY},S=function(b,d){d.hoverIntent_t=clearTimeout(d.hoverIntent_t);if(Math.abs(s-g)+Math.abs(A-o)<h.sensitivity)return e(d).unbind("mousemove",I),d.hoverIntent_s=1,h.over.apply(d,[b]);s=g;A=o;d.hoverIntent_t=setTimeout(function(){S(b,d)},h.interval)},M=function(b){var d=jQuery.extend({},b),g=this;if(g.hoverIntent_t)g.hoverIntent_t=clearTimeout(g.hoverIntent_t); if("mouseenter"==b.type){if(s=d.pageX,A=d.pageY,e(g).bind("mousemove",I),1!=g.hoverIntent_s)g.hoverIntent_t=setTimeout(function(){S(d,g)},h.interval)}else if(e(g).unbind("mousemove",I),1==g.hoverIntent_s)g.hoverIntent_t=setTimeout(function(){g.hoverIntent_t=clearTimeout(g.hoverIntent_t);g.hoverIntent_s=0;h.out.apply(g,[d])},h.timeout)};return this.bind("mouseenter",M).bind("mouseleave",M)}})(jQuery); (function(e){function d(b){var d=b||window.event,h=[].slice.call(arguments,1),A=0,I=0,S=0,b=e.event.fix(d);b.type="mousewheel";d.wheelDelta&&(A=d.wheelDelta/120);d.detail&&(A=-d.detail/3);S=A;void 0!==d.axis&&d.axis===d.HORIZONTAL_AXIS&&(S=0,I=-1*A);void 0!==d.wheelDeltaY&&(S=d.wheelDeltaY/120);void 0!==d.wheelDeltaX&&(I=-1*d.wheelDeltaX/120);h.unshift(b,A,I,S);return(e.event.dispatch||e.event.handle).apply(this,h)}var b=["DOMMouseScroll","mousewheel"];if(e.event.fixHooks)for(var h=b.length;h;)e.event.fixHooks[b[--h]]= e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=b.length;e;)this.addEventListener(b[--e],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var e=b.length;e;)this.removeEventListener(b[--e],d,!1);else this.onmousewheel=null}};e.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery); (function(e,d,b){e.fn.jScrollPane=function(d){function g(d,h){function g(f){var h,n,W,T,w,J=!1,r=!1;t=f;if(E===b)T=d.scrollTop(),w=d.scrollLeft(),d.css({overflow:"hidden",padding:0}),y=d.innerWidth()+ua,v=d.innerHeight(),d.width(y),E=e('<div class="jspPane" />').css("padding",Fa).append(d.children()),u=e('<div class="jspContainer" />').css({width:y+"px",height:v+"px"}).append(E).appendTo(d);else{d.css("width","");J=t.stickToBottom&&na();r=t.stickToRight&&fa();if(W=d.innerWidth()+ua!=y||d.outerHeight()!= v)y=d.innerWidth()+ua,v=d.innerHeight(),u.css({width:y+"px",height:v+"px"});if(!W&&Ga==j&&E.outerHeight()==x){d.width(y);return}Ga=j;E.css("width","");d.width(y);u.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}E.css("overflow","auto");j=f.contentWidth?f.contentWidth:E[0].scrollWidth;x=E[0].scrollHeight;E.css("overflow","");C=j/y;m=x/v;q=1<m;K=1<C;if(!K&&!q)d.removeClass("jspScrollable"),E.css({top:0,width:u.width()-ua}),u.unbind(Da),E.find(":input,a").unbind("focus.jsp"),d.attr("tabindex", "-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp"),ia(),oa();else{d.addClass("jspScrollable");if(f=t.maintainPosition&&(L||G))h=ca(),n=p();I();M();ha();f&&(ba(r?j-y:h,!1),F(J?x-v:n,!1));V();R();pa();t.enableKeyboardNavigation&&ga();t.clickOnTrack&&ja();ka();t.hijackInternalLinks&&qa()}t.autoReinitialise&&!ya?ya=setInterval(function(){g(t)},t.autoReinitialiseDelay):!t.autoReinitialise&&ya&&clearInterval(ya);T&&d.scrollTop(0)&&F(T,!1);w&&d.scrollLeft(0)&&ba(w,!1);d.trigger("jsp-initialised", [K||q])}function I(){q&&(u.append(e('<div class="jspVerticalBar" />').append(e('<div class="jspCap jspCapTop" />'),e('<div class="jspTrack" />').append(e('<div class="jspDrag" />').append(e('<div class="jspDragTop" />'),e('<div class="jspDragBottom" />'))),e('<div class="jspCap jspCapBottom" />'))),Y=u.find(">.jspVerticalBar"),Z=Y.find(">.jspTrack"),r=Z.find(">.jspDrag"),t.showArrows&&(W=e('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",aa(0,-1)).bind("click.jsp",Q),w=e('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp", aa(0,1)).bind("click.jsp",Q),t.arrowScrollOnHover&&(W.bind("mouseover.jsp",aa(0,-1,W)),w.bind("mouseover.jsp",aa(0,1,w))),ma(Z,t.verticalArrowPositions,W,w)),O=v,u.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){O-=e(this).outerHeight()}),r.hover(function(){r.addClass("jspHover")},function(){r.removeClass("jspHover")}).bind("mousedown.jsp",function(f){e("html").bind("dragstart.jsp selectstart.jsp",Q);r.addClass("jspActive");var b=f.pageY-r.position().top;e("html").bind("mousemove.jsp", function(f){P(f.pageY-b,!1)}).bind("mouseup.jsp mouseleave.jsp",sa);return!1}),S())}function S(){Z.height(O+"px");L=0;va=t.verticalGutter+Z.outerWidth();E.width(y-va-ua);try{0===Y.position().left&&E.css("margin-left",va+"px")}catch(f){}}function M(){K&&(u.append(e('<div class="jspHorizontalBar" />').append(e('<div class="jspCap jspCapLeft" />'),e('<div class="jspTrack" />').append(e('<div class="jspDrag" />').append(e('<div class="jspDragLeft" />'),e('<div class="jspDragRight" />'))),e('<div class="jspCap jspCapRight" />'))), J=u.find(">.jspHorizontalBar"),N=J.find(">.jspTrack"),n=N.find(">.jspDrag"),t.showArrows&&(wa=e('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",aa(-1,0)).bind("click.jsp",Q),xa=e('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",aa(1,0)).bind("click.jsp",Q),t.arrowScrollOnHover&&(wa.bind("mouseover.jsp",aa(-1,0,wa)),xa.bind("mouseover.jsp",aa(1,0,xa))),ma(N,t.horizontalArrowPositions,wa,xa)),n.hover(function(){n.addClass("jspHover")},function(){n.removeClass("jspHover")}).bind("mousedown.jsp", function(f){e("html").bind("dragstart.jsp selectstart.jsp",Q);n.addClass("jspActive");var b=f.pageX-n.position().left;e("html").bind("mousemove.jsp",function(f){X(f.pageX-b,!1)}).bind("mouseup.jsp mouseleave.jsp",sa);return!1}),la=u.innerWidth(),H())}function H(){u.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){la-=e(this).outerWidth()});N.width(la+"px");G=0}function ha(){if(K&&q){var b=N.outerHeight(),d=Z.outerWidth();O-=b;e(J).find(">.jspCap:visible,>.jspArrow").each(function(){la+= e(this).outerWidth()});la-=d;v-=d;y-=b;N.parent().append(e('<div class="jspCorner" />').css("width",b+"px"));S();H()}K&&E.width(u.outerWidth()-ua+"px");x=E.outerHeight();m=x/v;if(K){ta=Math.ceil(1/C*la);if(ta>t.horizontalDragMaxWidth)ta=t.horizontalDragMaxWidth;else if(ta<t.horizontalDragMinWidth)ta=t.horizontalDragMinWidth;n.width(ta+"px");f=la-ta;da(G)}if(q){T=Math.ceil(1/m*O);if(T>t.verticalDragMaxHeight)T=t.verticalDragMaxHeight;else if(T<t.verticalDragMinHeight)T=t.verticalDragMinHeight;r.height(T+ "px");B=O-T;ea(L)}}function ma(f,b,e,d){var j="before",v="after";"os"==b&&(b=/Mac/.test(navigator.platform)?"after":"split");b==j?v=b:b==v&&(j=b,b=e,e=d,d=b);f[j](e)[v](d)}function aa(f,b,e){return function(){ra(f,b,this,e);this.blur();return!1}}function ra(f,b,d,j){var d=e(d).addClass("jspActive"),v,u,h=!0,n=function(){0!==f&&D.scrollByX(f*t.arrowButtonSpeed);0!==b&&D.scrollByY(b*t.arrowButtonSpeed);u=setTimeout(n,h?t.initialDelay:t.arrowRepeatFreq);h=!1};n();v=j?"mouseout.jsp":"mouseup.jsp";j=j|| e("html");j.bind(v,function(){d.removeClass("jspActive");u&&clearTimeout(u);u=null;j.unbind(v)})}function ja(){ia();q&&Z.bind("mousedown.jsp",function(f){if(f.originalTarget===b||f.originalTarget==f.currentTarget){var d=e(this),j=d.offset(),u=f.pageY-j.top-L,h,n=!0,W=function(){var b=d.offset(),b=f.pageY-b.top-T/2,e=v*t.scrollPagePercent,j=B*e/(x-v);if(0>u)L-j>b?D.scrollByY(-e):P(b);else if(0<u)L+j<b?D.scrollByY(e):P(b);else{g();return}h=setTimeout(W,n?t.initialDelay:t.trackClickRepeatFreq);n=!1}, g=function(){h&&clearTimeout(h);h=null;e(document).unbind("mouseup.jsp",g)};W();e(document).bind("mouseup.jsp",g);return!1}});K&&N.bind("mousedown.jsp",function(d){if(d.originalTarget===b||d.originalTarget==d.currentTarget){var v=e(this),u=v.offset(),h=d.pageX-u.left-G,n,W=!0,g=function(){var b=v.offset(),b=d.pageX-b.left-ta/2,e=y*t.scrollPagePercent,u=f*e/(j-y);if(0>h)G-u>b?D.scrollByX(-e):X(b);else if(0<h)G+u<b?D.scrollByX(e):X(b);else{T();return}n=setTimeout(g,W?t.initialDelay:t.trackClickRepeatFreq); W=!1},T=function(){n&&clearTimeout(n);n=null;e(document).unbind("mouseup.jsp",T)};g();e(document).bind("mouseup.jsp",T);return!1}})}function ia(){N&&N.unbind("mousedown.jsp");Z&&Z.unbind("mousedown.jsp")}function sa(){e("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");r&&r.removeClass("jspActive");n&&n.removeClass("jspActive")}function P(f,e){if(q){0>f?f=0:f>B&&(f=B);if(e===b)e=t.animateScroll;e?D.animate(r,"top",f,ea):(r.css("top",f),ea(f))}}function ea(f){if(f=== b)f=r.position().top;u.scrollTop(0);L=f;var e=0===L,j=L==B,f=-(f/B)*(x-v);if(za!=e||Aa!=j)za=e,Aa=j,d.trigger("jsp-arrow-change",[za,Aa,Ba,Ca]);t.showArrows&&(W[e?"addClass":"removeClass"]("jspDisabled"),w[j?"addClass":"removeClass"]("jspDisabled"));E.css("top",f);d.trigger("jsp-scroll-y",[-f,e,j]).trigger("scroll")}function X(e,d){if(K){0>e?e=0:e>f&&(e=f);if(d===b)d=t.animateScroll;d?D.animate(n,"left",e,da):(n.css("left",e),da(e))}}function da(e){if(e===b)e=n.position().left;u.scrollTop(0);G=e; var v=0===G,h=G==f,e=-(e/f)*(j-y);if(Ba!=v||Ca!=h)Ba=v,Ca=h,d.trigger("jsp-arrow-change",[za,Aa,Ba,Ca]);t.showArrows&&(wa[v?"addClass":"removeClass"]("jspDisabled"),xa[h?"addClass":"removeClass"]("jspDisabled"));E.css("left",e);d.trigger("jsp-scroll-x",[-e,v,h]).trigger("scroll")}function F(f,b){P(f/(x-v)*B,b)}function ba(b,e){X(b/(j-y)*f,e)}function U(f,b,d){var j,h,n=0,W=0,g,T,m;try{j=e(f)}catch(w){return}h=j.outerHeight();f=j.outerWidth();u.scrollTop(0);for(u.scrollLeft(0);!j.is(".jspPane");)if(n+= j.position().top,W+=j.position().left,j=j.offsetParent(),/^body|html$/i.test(j[0].nodeName))return;j=p();g=j+v;n<j||b?T=n-t.verticalGutter:n+h>g&&(T=n-v+h+t.verticalGutter);T&&F(T,d);n=ca();T=n+y;W<n||b?m=W-t.horizontalGutter:W+f>T&&(m=W-y+f+t.horizontalGutter);m&&ba(m,d)}function ca(){return-E.position().left}function p(){return-E.position().top}function na(){var f=x-v;return 20<f&&10>f-p()}function fa(){var f=j-y;return 20<f&&10>f-ca()}function R(){u.unbind(Da).bind(Da,function(f,b,e,d){f=G;b=L; D.scrollBy(e*t.mouseWheelSpeed,-d*t.mouseWheelSpeed,!1);return f==G&&b==L})}function Q(){return!1}function V(){E.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(f){U(f.target,!1)})}function ga(){function f(){var e=G,d=L;switch(b){case 40:D.scrollByY(t.keyboardSpeed,!1);break;case 38:D.scrollByY(-t.keyboardSpeed,!1);break;case 34:case 32:D.scrollByY(v*t.scrollPagePercent,!1);break;case 33:D.scrollByY(-v*t.scrollPagePercent,!1);break;case 39:D.scrollByX(t.keyboardSpeed,!1);break;case 37:D.scrollByX(-t.keyboardSpeed, !1)}return j=e!=G||d!=L}var b,j,h=[];K&&h.push(J[0]);q&&h.push(Y[0]);E.focus(function(){d.focus()});d.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(d){if(!(d.target!==this&&(!h.length||!e(d.target).closest(h).length))){var u=G,n=L;switch(d.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:b=d.keyCode;f();break;case 35:F(x-v);b=null;break;case 36:F(0),b=null}j=d.keyCode==b&&u!=G||n!=L;return!j}}).bind("keypress.jsp",function(e){e.keyCode==b&&f();return!j}); t.hideFocus?(d.css("outline","none"),"hideFocus"in u[0]&&d.attr("hideFocus",!0)):(d.css("outline",""),"hideFocus"in u[0]&&d.attr("hideFocus",!1))}function ka(){if(location.hash&&1<location.hash.length){var f,b,d=escape(location.hash);try{f=e(d)}catch(j){return}f.length&&E.find(d)&&(0===u.scrollTop()?b=setInterval(function(){0<u.scrollTop()&&(U(d,!0),e(document).scrollTop(u.position().top),clearInterval(b))},50):(U(d,!0),e(document).scrollTop(u.position().top)))}}function oa(){e("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")} function qa(){oa();e("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var f=this.href.split("#");if(1<f.length&&(f=f[1],0<f.length&&0<E.find("#"+f).length))return U("#"+f,!0),!1})}function pa(){var f,b,e,d,j,v=!1;u.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(u){u=u.originalEvent.touches[0];f=ca();b=p();e=u.pageX;d=u.pageY;j=!1;v=!0}).bind("touchmove.jsp",function(u){if(v){var u=u.originalEvent.touches[0],h=G,n=L;D.scrollTo(f+ e-u.pageX,b+d-u.pageY);j=j||5<Math.abs(e-u.pageX)||5<Math.abs(d-u.pageY);return h==G&&n==L}}).bind("touchend.jsp",function(){v=!1}).bind("click.jsp-touchclick",function(){if(j)return j=!1})}var t,D=this,E,y,v,u,j,x,C,m,q,K,r,B,L,n,f,G,Y,Z,va,O,T,W,w,J,N,la,ta,wa,xa,ya,Fa,ua,Ga,za=!0,Ba=!0,Aa=!1,Ca=!1,Ea=d.clone(!1,!1).empty(),Da=e.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";Fa=d.css("paddingTop")+" "+d.css("paddingRight")+" "+d.css("paddingBottom")+" "+d.css("paddingLeft");ua=(parseInt(d.css("paddingLeft"), 10)||0)+(parseInt(d.css("paddingRight"),10)||0);e.extend(D,{reinitialise:function(f){f=e.extend({},t,f);g(f)},scrollToElement:function(f,b,e){U(f,b,e)},scrollTo:function(f,b,e){ba(f,e);F(b,e)},scrollToX:function(f,b){ba(f,b)},scrollToY:function(f,b){F(f,b)},scrollToPercentX:function(f,b){ba(f*(j-y),b)},scrollToPercentY:function(f,b){F(f*(x-v),b)},scrollBy:function(f,b,e){D.scrollByX(f,e);D.scrollByY(b,e)},scrollByX:function(b,e){var d=(ca()+Math[0>b?"floor":"ceil"](b))/(j-y);X(d*f,e)},scrollByY:function(f, b){var e=(p()+Math[0>f?"floor":"ceil"](f))/(x-v);P(e*B,b)},positionDragX:function(f,b){X(f,b)},positionDragY:function(f,b){P(f,b)},animate:function(f,b,e,d){var j={};j[b]=e;f.animate(j,{duration:t.animateDuration,easing:t.animateEase,queue:!1,step:d})},getContentPositionX:function(){return ca()},getContentPositionY:function(){return p()},getContentWidth:function(){return j},getContentHeight:function(){return x},getPercentScrolledX:function(){return ca()/(j-y)},getPercentScrolledY:function(){return p()/ (x-v)},getIsScrollableH:function(){return K},getIsScrollableV:function(){return q},getContentPane:function(){return E},scrollToBottom:function(f){P(B,f)},hijackInternalLinks:function(){qa()},destroy:function(){var f=p(),b=ca();d.removeClass("jspScrollable").unbind(".jsp");d.replaceWith(Ea.append(E.children()));Ea.scrollTop(f);Ea.scrollLeft(b)}});g(h)}d=e.extend({},e.fn.jScrollPane.defaults,d);e.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){d[this]=d[this]|| d.speed});return this.each(function(){var b=e(this),s=b.data("jsp");s?s.reinitialise(d):(s=new g(b,d),b.data("jsp",s))})};e.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:b,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4, mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this); (function(e){e(document).ready(function(){e("body").append('<div id="supersized-loader"></div><ul id="supersized"></ul>')});e.supersized=function(d){var b=this;b.$el=e("#supersized");b.el="#supersized";vars=e.supersized.vars;b.$el.data("supersized",b);api=b.$el.data("supersized");b.init=function(){e.supersized.vars=e.extend(e.supersized.vars,e.supersized.themeVars);e.supersized.vars.options=e.extend({},e.supersized.defaultOptions,e.supersized.themeOptions,d);b.options=e.supersized.vars.options;b._build()}; b._build=function(){for(var d=0,g="",o="",s,A="",I;d<=b.options.slides.length-1;){switch(b.options.slide_links){case "num":s=d;break;case "name":s=b.options.slides[d].title;break;case "blank":s=""}g=g+'<li class="slide-'+d+'"></li>';if(d==b.options.start_slide-1){if(b.options.slide_links&&(o=o+'<li class="slide-link-'+d+' current-slide"><a>'+s+"</a></li>"),b.options.thumb_links)b.options.slides[d].thumb?I=b.options.slides[d].thumb:I=b.options.slides[d].image,A=A+'<li class="thumb'+d+' current-thumb"><img src="'+ I+'"/></li>'}else if(b.options.slide_links&&(o=o+'<li class="slide-link-'+d+'" ><a>'+s+"</a></li>"),b.options.thumb_links)b.options.slides[d].thumb?I=b.options.slides[d].thumb:I=b.options.slides[d].image,A=A+'<li class="thumb'+d+'"><img src="'+I+'"/></li>';d++}b.options.slide_links&&e(vars.slide_list).html(o);b.options.thumb_links&&vars.thumb_tray.length&&e(vars.thumb_tray).append('<ul id="'+vars.thumb_list.replace("#","")+'">'+A+"</ul>");e(b.el).append(g);b.options.thumbnail_navigation&&(0>vars.current_slide- 1?prevThumb=b.options.slides.length-1:prevThumb=vars.current_slide-1,e(vars.prev_thumb).show().html(e("<img/>").attr("src",b.options.slides[prevThumb].image)),vars.current_slide==b.options.slides.length-1?nextThumb=0:nextThumb=vars.current_slide+1,e(vars.next_thumb).show().html(e("<img/>").attr("src",b.options.slides[nextThumb].image)));b._start()};b._start=function(){vars.current_slide=b.options.start_slide?b.options.start_slide-1:Math.floor(Math.random()*b.options.slides.length);var d=b.options.new_window? ' target="_blank"':"";3==b.options.performance?b.$el.addClass("speed"):(1==b.options.performance||2==b.options.performance)&&b.$el.addClass("quality");if(b.options.random){arr=b.options.slides;for(var g,o,s=arr.length;s;g=parseInt(Math.random()*s),o=arr[--s],arr[s]=arr[g],arr[g]=o);b.options.slides=arr}1<b.options.slides.length?2<b.options.slides.length&&(0>vars.current_slide-1?loadPrev=b.options.slides.length-1:loadPrev=vars.current_slide-1,g=b.options.slides[loadPrev].url?"href='"+b.options.slides[loadPrev].url+ "'":"",o=e('<img src="'+b.options.slides[loadPrev].image+'"/>'),o.appendTo(b.el+" li:eq("+loadPrev+")").wrap("<a "+g+d+"></a>").parent().parent().addClass("image-loading prevslide"),o.load(function(){e(this).data("origWidth",e(this).width()).data("origHeight",e(this).height());b.resizeNow()})):b.options.slideshow=0;g=api.getField("url")?"href='"+api.getField("url")+"'":"";o=e('<img src="'+api.getField("image")+'"/>');o.appendTo(b.el+" li:eq("+vars.current_slide+")").wrap("<a "+g+d+"></a>").parent().parent().addClass("image-loading activeslide"); o.load(function(){b._origDim(e(this));b.resizeNow();b.launch();"undefined"!=typeof theme&&"function"==typeof theme._init&&theme._init()});1<b.options.slides.length&&(vars.current_slide==b.options.slides.length-1?loadNext=0:loadNext=vars.current_slide+1,g=b.options.slides[loadNext].url?"href='"+b.options.slides[loadNext].url+"'":"",o=e('<img src="'+b.options.slides[loadNext].image+'"/>'),o.appendTo(b.el+" li:eq("+loadNext+")").wrap("<a "+g+d+"></a>").parent().parent().addClass("image-loading"),o.load(function(){e(this).data("origWidth", e(this).width()).data("origHeight",e(this).height());b.resizeNow()}));b.$el.css("visibility","hidden");e(".load-item").hide()};b.launch=function(){b.$el.css("visibility","visible");e("#supersized-loader").remove();"undefined"!=typeof theme&&"function"==typeof theme.beforeAnimation&&theme.beforeAnimation("next");e(".load-item").show();b.options.keyboard_nav&&e(document.documentElement).keyup(function(e){if(vars.in_animation)return!1;37==e.keyCode||40==e.keyCode?(clearInterval(vars.slideshow_interval), b.prevSlide()):39==e.keyCode||38==e.keyCode?(clearInterval(vars.slideshow_interval),b.nextSlide()):32==e.keyCode&&!vars.hover_pause&&(clearInterval(vars.slideshow_interval),b.playToggle())});b.options.slideshow&&b.options.pause_hover&&e(b.el).hover(function(){if(vars.in_animation)return!1;vars.hover_pause=!0;if(!vars.is_paused)vars.hover_pause="resume",b.playToggle()},function(){if("resume"==vars.hover_pause)b.playToggle(),vars.hover_pause=!1});b.options.slide_links&&e(vars.slide_list+"> li").click(function(){index= e(vars.slide_list+"> li").index(this);targetSlide=index+1;b.goTo(targetSlide);return!1});b.options.thumb_links&&e(vars.thumb_list+"> li").click(function(){index=e(vars.thumb_list+"> li").index(this);targetSlide=index+1;api.goTo(targetSlide);return!1});if(b.options.slideshow&&1<b.options.slides.length)b.options.autoplay&&1<b.options.slides.length?vars.slideshow_interval=setInterval(b.nextSlide,b.options.slide_interval):vars.is_paused=!0,e(".load-item img").bind("contextmenu mousedown",function(){return!1}); e(window).resize(function(){b.resizeNow()})};b.resizeNow=function(){return b.$el.each(function(){e("img",b.el).each(function(){function d(e){if(e){if(thisSlide.width()<s||thisSlide.width()<b.options.min_width)thisSlide.width()*o>=b.options.min_height?(thisSlide.width(b.options.min_width),thisSlide.height(thisSlide.width()*o)):g()}else b.options.min_height>=A&&!b.options.fit_landscape?s*o>=b.options.min_height||s*o>=b.options.min_height&&1>=o?(thisSlide.width(s),thisSlide.height(s*o)):1<o?(thisSlide.height(b.options.min_height), thisSlide.width(thisSlide.height()/o)):thisSlide.width()<s&&(thisSlide.width(s),thisSlide.height(thisSlide.width()*o)):(thisSlide.width(s),thisSlide.height(s*o))}function g(e){e?thisSlide.height()<A&&(thisSlide.height()/o>=b.options.min_width?(thisSlide.height(b.options.min_height),thisSlide.width(thisSlide.height()/o)):d(!0)):b.options.min_width>=s?A/o>=b.options.min_width||1<o?(thisSlide.height(A),thisSlide.width(A/o)):1>=o&&(thisSlide.width(b.options.min_width),thisSlide.height(thisSlide.width()* o)):(thisSlide.height(A),thisSlide.width(A/o))}thisSlide=e(this);var o=(thisSlide.data("origHeight")/thisSlide.data("origWidth")).toFixed(2),s=b.$el.width(),A=b.$el.height();b.options.fit_always?A/s>o?d():g():A<=b.options.min_height&&s<=b.options.min_width?A/s>o?b.options.fit_landscape&&1>o?d(!0):g(!0):b.options.fit_portrait&&1<=o?g(!0):d(!0):s<=b.options.min_width?A/s>o?b.options.fit_landscape&&1>o?d(!0):g():b.options.fit_portrait&&1<=o?g():d(!0):A<=b.options.min_height?A/s>o?b.options.fit_landscape&& 1>o?d():g(!0):b.options.fit_portrait&&1<=o?g(!0):d():A/s>o?b.options.fit_landscape&&1>o?d():g():b.options.fit_portrait&&1<=o?g():d();thisSlide.parents("li").hasClass("image-loading")&&e(".image-loading").removeClass("image-loading");b.options.horizontal_center&&e(this).css("left",(s-e(this).width())/2);b.options.vertical_center&&e(this).css("top",(A-e(this).height())/2)});b.options.image_protect&&e("img",b.el).bind("contextmenu mousedown",function(){return!1});return!1})};b.nextSlide=function(){if(vars.in_animation|| !api.options.slideshow)return!1;vars.in_animation=!0;clearInterval(vars.slideshow_interval);var d=b.$el.find(".activeslide");e(".prevslide").removeClass("prevslide");d.removeClass("activeslide").addClass("prevslide");vars.current_slide+1==b.options.slides.length?vars.current_slide=0:vars.current_slide++;var g=e(b.el+" li:eq("+vars.current_slide+")");b.$el.find(".prevslide");1==b.options.performance&&b.$el.removeClass("quality").addClass("speed");loadSlide=!1;vars.current_slide==b.options.slides.length- 1?loadSlide=0:loadSlide=vars.current_slide+1;var o=b.el+" li:eq("+loadSlide+")";if(!e(o).html()){var s=b.options.new_window?' target="_blank"':"";imageLink=b.options.slides[loadSlide].url?"href='"+b.options.slides[loadSlide].url+"'":"";var A=e('<img src="'+b.options.slides[loadSlide].image+'"/>');A.appendTo(o).wrap("<a "+imageLink+s+"></a>").parent().parent().addClass("image-loading").css("visibility","hidden");A.load(function(){b._origDim(e(this));b.resizeNow()})}1==b.options.thumbnail_navigation&& (0>vars.current_slide-1?prevThumb=b.options.slides.length-1:prevThumb=vars.current_slide-1,e(vars.prev_thumb).html(e("<img/>").attr("src",b.options.slides[prevThumb].image)),nextThumb=loadSlide,e(vars.next_thumb).html(e("<img/>").attr("src",b.options.slides[nextThumb].image)));"undefined"!=typeof theme&&"function"==typeof theme.beforeAnimation&&theme.beforeAnimation("next");b.options.slide_links&&(e(".current-slide").removeClass("current-slide"),e(vars.slide_list+"> li").eq(vars.current_slide).addClass("current-slide")); g.css("visibility","hidden").addClass("activeslide");switch(b.options.transition){case 0:case "none":g.css("visibility","visible");vars.in_animation=!1;break;case 1:case "fade":g.animate({opacity:0},0).css("visibility","visible").animate({opacity:1,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});break;case 2:case "slideTop":g.animate({top:-b.$el.height()},0).css("visibility","visible").animate({top:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()}); break;case 3:case "slideRight":g.animate({left:b.$el.width()},0).css("visibility","visible").animate({left:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});break;case 4:case "slideBottom":g.animate({top:b.$el.height()},0).css("visibility","visible").animate({top:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});break;case 5:case "slideLeft":g.animate({left:-b.$el.width()},0).css("visibility","visible").animate({left:0,avoidTransforms:!1}, b.options.transition_speed,function(){b.afterAnimation()});break;case 6:case "carouselRight":g.animate({left:b.$el.width()},0).css("visibility","visible").animate({left:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});d.animate({left:-b.$el.width(),avoidTransforms:!1},b.options.transition_speed);break;case 7:case "carouselLeft":g.animate({left:-b.$el.width()},0).css("visibility","visible").animate({left:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()}), d.animate({left:b.$el.width(),avoidTransforms:!1},b.options.transition_speed)}return!1};b.prevSlide=function(){if(vars.in_animation||!api.options.slideshow)return!1;vars.in_animation=!0;clearInterval(vars.slideshow_interval);var d=b.$el.find(".activeslide");e(".prevslide").removeClass("prevslide");d.removeClass("activeslide").addClass("prevslide");0==vars.current_slide?vars.current_slide=b.options.slides.length-1:vars.current_slide--;var g=e(b.el+" li:eq("+vars.current_slide+")");b.$el.find(".prevslide"); 1==b.options.performance&&b.$el.removeClass("quality").addClass("speed");loadSlide=!1;0>vars.current_slide-1?loadSlide=b.options.slides.length-1:loadSlide=vars.current_slide-1;var o=b.el+" li:eq("+loadSlide+")";if(!e(o).html()){var s=b.options.new_window?' target="_blank"':"";imageLink=b.options.slides[loadSlide].url?"href='"+b.options.slides[loadSlide].url+"'":"";var A=e('<img src="'+b.options.slides[loadSlide].image+'"/>');A.appendTo(o).wrap("<a "+imageLink+s+"></a>").parent().parent().addClass("image-loading").css("visibility", "hidden");A.load(function(){b._origDim(e(this));b.resizeNow()})}1==b.options.thumbnail_navigation&&(prevThumb=loadSlide,e(vars.prev_thumb).html(e("<img/>").attr("src",b.options.slides[prevThumb].image)),vars.current_slide==b.options.slides.length-1?nextThumb=0:nextThumb=vars.current_slide+1,e(vars.next_thumb).html(e("<img/>").attr("src",b.options.slides[nextThumb].image)));"undefined"!=typeof theme&&"function"==typeof theme.beforeAnimation&&theme.beforeAnimation("prev");b.options.slide_links&&(e(".current-slide").removeClass("current-slide"), e(vars.slide_list+"> li").eq(vars.current_slide).addClass("current-slide"));g.css("visibility","hidden").addClass("activeslide");switch(b.options.transition){case 0:case "none":g.css("visibility","visible");vars.in_animation=!1;b.afterAnimation();break;case 1:case "fade":g.animate({opacity:0},0).css("visibility","visible").animate({opacity:1,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});break;case 2:case "slideTop":g.animate({top:b.$el.height()},0).css("visibility", "visible").animate({top:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});break;case 3:case "slideRight":g.animate({left:-b.$el.width()},0).css("visibility","visible").animate({left:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});break;case 4:case "slideBottom":g.animate({top:-b.$el.height()},0).css("visibility","visible").animate({top:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});break;case 5:case "slideLeft":g.animate({left:b.$el.width()}, 0).css("visibility","visible").animate({left:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});break;case 6:case "carouselRight":g.animate({left:-b.$el.width()},0).css("visibility","visible").animate({left:0,avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()});d.animate({left:0},0).animate({left:b.$el.width(),avoidTransforms:!1},b.options.transition_speed);break;case 7:case "carouselLeft":g.animate({left:b.$el.width()},0).css("visibility","visible").animate({left:0, avoidTransforms:!1},b.options.transition_speed,function(){b.afterAnimation()}),d.animate({left:0},0).animate({left:-b.$el.width(),avoidTransforms:!1},b.options.transition_speed)}return!1};b.playToggle=function(){if(vars.in_animation||!api.options.slideshow)return!1;vars.is_paused?(vars.is_paused=!1,"undefined"!=typeof theme&&"function"==typeof theme.playToggle&&theme.playToggle("play"),vars.slideshow_interval=setInterval(b.nextSlide,b.options.slide_interval)):(vars.is_paused=!0,"undefined"!=typeof theme&& "function"==typeof theme.playToggle&&theme.playToggle("pause"),clearInterval(vars.slideshow_interval));return!1};b.goTo=function(d){if(vars.in_animation||!api.options.slideshow)return!1;var g=b.options.slides.length;0>d?d=g:d>g&&(d=1);d=g-d+1;clearInterval(vars.slideshow_interval);"undefined"!=typeof theme&&"function"==typeof theme.goTo&&theme.goTo();if(vars.current_slide==g-d){if(!vars.is_paused)vars.slideshow_interval=setInterval(b.nextSlide,b.options.slide_interval);return!1}if(g-d>vars.current_slide)vars.current_slide= g-d-1,vars.update_images="next",b._placeSlide(vars.update_images);else if(g-d<vars.current_slide)vars.current_slide=g-d+1,vars.update_images="prev",b._placeSlide(vars.update_images);b.options.slide_links&&(e(vars.slide_list+"> .current-slide").removeClass("current-slide"),e(vars.slide_list+"> li").eq(g-d).addClass("current-slide"));b.options.thumb_links&&(e(vars.thumb_list+"> .current-thumb").removeClass("current-thumb"),e(vars.thumb_list+"> li").eq(g-d).addClass("current-thumb"))};b._placeSlide= function(d){var g=b.options.new_window?' target="_blank"':"";loadSlide=!1;if("next"==d){vars.current_slide==b.options.slides.length-1?loadSlide=0:loadSlide=vars.current_slide+1;d=b.el+" li:eq("+loadSlide+")";if(!e(d).html()){g=b.options.new_window?' target="_blank"':"";imageLink=b.options.slides[loadSlide].url?"href='"+b.options.slides[loadSlide].url+"'":"";var o=e('<img src="'+b.options.slides[loadSlide].image+'"/>');o.appendTo(d).wrap("<a "+imageLink+g+"></a>").parent().parent().addClass("image-loading").css("visibility", "hidden");o.load(function(){b._origDim(e(this));b.resizeNow()})}b.nextSlide()}else"prev"==d&&(0>vars.current_slide-1?loadSlide=b.options.slides.length-1:loadSlide=vars.current_slide-1,d=b.el+" li:eq("+loadSlide+")",e(d).html()||(g=b.options.new_window?' target="_blank"':"",imageLink=b.options.slides[loadSlide].url?"href='"+b.options.slides[loadSlide].url+"'":"",o=e('<img src="'+b.options.slides[loadSlide].image+'"/>'),o.appendTo(d).wrap("<a "+imageLink+g+"></a>").parent().parent().addClass("image-loading").css("visibility", "hidden"),o.load(function(){b._origDim(e(this));b.resizeNow()})),b.prevSlide())};b._origDim=function(b){b.data("origWidth",b.width()).data("origHeight",b.height())};b.afterAnimation=function(){1==b.options.performance&&b.$el.removeClass("speed").addClass("quality");if(vars.update_images)0>vars.current_slide-1?setPrev=b.options.slides.length-1:setPrev=vars.current_slide-1,vars.update_images=!1,e(".prevslide").removeClass("prevslide"),e(b.el+" li:eq("+setPrev+")").addClass("prevslide");vars.in_animation= !1;if(!vars.is_paused&&b.options.slideshow)vars.slideshow_interval=setInterval(b.nextSlide,b.options.slide_interval),b.options.stop_loop&&vars.current_slide==b.options.slides.length-1&&b.playToggle();"undefined"!=typeof theme&&"function"==typeof theme.afterAnimation&&theme.afterAnimation();return!1};b.getField=function(e){return b.options.slides[vars.current_slide][e]};b.init()};e.supersized.vars={thumb_tray:"#thumb-tray",thumb_list:"#thumb-list",slide_list:"#slide-list",current_slide:0,in_animation:!1, is_paused:!1,hover_pause:!1,slideshow_interval:!1,update_images:!1,options:{}};e.supersized.defaultOptions={slideshow:1,autoplay:1,start_slide:1,stop_loop:0,random:0,slide_interval:5E3,transition:1,transition_speed:750,new_window:1,pause_hover:0,keyboard_nav:1,performance:1,image_protect:1,fit_always:0,fit_landscape:0,fit_portrait:1,min_width:0,min_height:0,horizontal_center:1,vertical_center:1,slide_links:1,thumb_links:1,thumbnail_navigation:0};e.fn.supersized=function(d){return this.each(function(){new e.supersized(d)})}})(jQuery); (function(e){function d(b,e){return{anims:[],duration:b,orgDuration:b,easing:e,startTime:E()}}function b(e){"object"==typeof e.pre&&b(e.pre);for(var d=0,j=e.anims.length;d<j;d++){var g=e.anims[d];g&&(g[3]&&g[0].stop(),g[0].animate(g[1],{complete:g[2],duration:e.duration,easing:e.easing}))}"object"==typeof e.post&&b(e.post)}function h(b,e){"boolean"!=typeof e&&(e=!0);"object"==typeof b.pre&&h(b.pre,e);for(var d=0,g=b.anims.length;d<g;d++){var o=b.anims[d];o[0].stop(!0);if(e&&(o[0].css(o[1]),"function"== typeof o[2]))o[2]()}"object"==typeof b.post&&h(b.post,e)}function g(b){b.auto&&clearTimeout(b.auto);return b}function o(b,e,d){if(b.length)for(var g=0,h=b.length;g<h;g++)b[g].apply(e,d);return[]}function s(b,d,j,g,h){var m=X(ia(d.children(),g),g,!0)[0],o=X(j.children(),g,!0)[0],p={},r={};p[g.d.width]=o;p[g.d.left]=h?-o:m;r[g.d.left]=0;b.pre.anims.push([d,{opacity:1}]);b.post.anims.push([j,r,function(){e(this).remove()}]);j.css(p);return b}function A(b,d,j,g,h,m){var d=X(sa(d.children(),g,m),g,!0)[0], m=X(j.children(),g,!0)[0],o={},p={};o[g.d.width]=m;o[g.d.left]=0;p[g.d.left]=h?-m:d;b.post.anims.push([j,p,function(){e(this).remove()}]);j.css(o);return b}function I(b,e,d){"show"==e||"hide"==e||(b.items.minimum>=e?(y(d,"Not enough items: hiding navigation ("+e+" items, "+b.items.minimum+" needed)."),e="hide"):e="show");var g="show"==e?"removeClass":"addClass";if(b.prev.button)b.prev.button[e]()[g](d.classnames.hidden);if(b.next.button)b.next.button[e]()[g](d.classnames.hidden);if(b.pagination.container)b.pagination.container[e]()[g](d.classnames.hidden)} function S(b,e,d){if(!b.circular&&!b.infinite){var g="removeClass"==e||"addClass"==e?e:!1;if(b.next.button)b.next.button[g||e==b.items.visible?"addClass":"removeClass"](d.classnames.disabled);if(b.prev.button)b.prev.button[g||0==e?"addClass":"removeClass"](d.classnames.disabled)}}function M(b,e){"function"==typeof e&&(e=e.call(b));"undefined"==typeof e&&(e={});return e}function H(b,d,j){"string"!=typeof j&&(j="");d=M(b,d);if("string"==typeof d)var g=oa(d),d=-1==g?e(d):g;if("pagination"==j){"boolean"== typeof d&&(d={keys:d});"undefined"!=typeof d.jquery&&(d={container:d});if("function"==typeof d.container)d.container=d.container.call(b);if("string"==typeof d.container)d.container=e(d.container);if("number"!=typeof d.items)d.items=!1}else if("auto"==j)"boolean"==typeof d&&(d={play:d}),"number"==typeof d&&(d={pauseDuration:d});else{"undefined"!=typeof d.jquery&&(d={button:d});"number"==typeof d&&(d={key:d});if("function"==typeof d.button)d.button=d.button.call(b);if("string"==typeof d.button)d.button= e(d.button);if("string"==typeof d.key)d.key=oa(d.key)}return d}function ha(b,d,j,g,h){"string"==typeof b&&(b=isNaN(b)?e(b):parseInt(b));"object"==typeof b?("undefined"==typeof b.jquery&&(b=e(b)),b=h.children().index(b),-1==b&&(b=0),"boolean"!=typeof j&&(j=!1)):"boolean"!=typeof j&&(j=!0);b=isNaN(b)?0:parseInt(b);d=isNaN(d)?0:parseInt(d);j&&(b+=g.first);b+=d;if(0<g.total){for(;b>=g.total;)b-=g.total;for(;0>b;)b+=g.total}return b}function ma(b,d,e){for(var g=0,h=0;0<=e;e--){g+=b.eq(e)[d.d.outerWidth](!0); if(g>d.maxDimention)return h;if(0==e)e=b.length;h++}}function aa(b,d,e){for(var g=0,h=0,m=b.length-1;e<=m;e++){g+=b.eq(e)[d.d.outerWidth](!0);if(g>d.maxDimention)return h;e==m&&(e=-1);h++}}function ra(b,d,e,g){b=aa(b,d,e);d.circular||e+b>g&&(b=g-e);return b}function ja(b,d){return b.slice(0,d.items.visible)}function ia(b,d){return b.slice(0,d.items.visibleConf.old)}function sa(b,d,e){return b.slice(e,d.items.visible+e)}function P(b,d,j){var g="boolean"==typeof j?j:!1;"number"!=typeof j&&(j=0);b.each(function(){var b= parseInt(e(this).css(d.d.marginRight));isNaN(b)&&(b=0);e(this).data("cfs_tempCssMargin",b);e(this).css(d.d.marginRight,g?e(this).data("cfs_tempCssMargin"):j+e(this).data("cfs_origCssMargin"))})}function ea(b,d,e){var g=b.parent(),h=b.children(),m=ja(h,d),o=na(X(m,d,!0),d,e);g.css(o);if(d.usePadding)e=d.padding,g=e[d.d[1]],d.align&&0>g&&(g=0),m=m.last(),m.css(d.d.marginRight,m.data("cfs_origCssMargin")+g),b.css(d.d.top,e[d.d[0]]),b.css(d.d.left,e[d.d[3]]);b.css(d.d.width,o[d.d.width]+2*U(h,d,"width")); b.css(d.d.height,da(h,d,"height"));return o}function X(b,d,e){s1=U(b,d,"width",e);s2=da(b,d,"height",e);return[s1,s2]}function da(b,d,e,g){"boolean"!=typeof g&&(g=!1);if("number"==typeof d[d.d[e]]&&g)return d[d.d[e]];if("number"==typeof d.items[d.d[e]])return d.items[d.d[e]];e=-1<e.toLowerCase().indexOf("width")?"outerWidth":"outerHeight";return F(b,d,e)}function F(b,d,j){var g=0;b.each(function(){var b=e(this)[d.d[j]](!0);g<b&&(g=b)});return g}function ba(b,d,e){var g=b[d.d[e]](),d=-1<d.d[e].toLowerCase().indexOf("width")? ["paddingLeft","paddingRight"]:["paddingTop","paddingBottom"];for(a=0,l=d.length;a<l;a++)e=parseInt(b.css(d[a])),isNaN(e)&&(e=0),g-=e;return g}function U(b,d,j,g){"boolean"!=typeof g&&(g=!1);if("number"==typeof d[d.d[j]]&&g)return d[d.d[j]];if("number"==typeof d.items[d.d[j]])return d.items[d.d[j]]*b.length;var h=-1<j.toLowerCase().indexOf("width")?"outerWidth":"outerHeight",m=0;b.each(function(){var b=e(this);b.is(":visible")&&(m+=b[d.d[h]](!0))});return m}function ca(b,d,j){var g=!1,h=!1;b.each(function(){c= e(this)[d.d[j]](!0);!1===g?g=c:g!=c&&(h=!0);0==g&&(h=!0)});return h}function p(b,d,e,g){"boolean"!=typeof e&&(e=!0);"boolean"!=typeof g&&(g=!0);e&&(b=d.events.prefix+b);g&&(b=b+"."+d.events.namespace);return b}function na(b,d,e){"boolean"!=typeof e&&(e=!0);var e=d.usePadding&&e?d.padding:[0,0,0,0],g={};g[d.d.width]=b[0]+e[1]+e[3];g[d.d.height]=b[1]+e[0]+e[2];return g}function fa(b,d){for(var e=[],g=0,h=b.length;g<h;g++)for(var m=0,o=d.length;m<o;m++)if(-1<d[m].indexOf(typeof b[g])&&"undefined"==typeof e[m]){e[m]= b[g];break}return e}function R(b){if("undefined"==typeof b)return[0,0,0,0];if("number"==typeof b)return[b,b,b,b];"string"==typeof b&&(b=b.split("px").join("").split("em").join("").split(" "));if(!D(b))return[0,0,0,0];for(var d=0;4>d;d++)b[d]=parseInt(b[d]);switch(b.length){case 0:return[0,0,0,0];case 1:return[b[0],b[0],b[0],b[0]];case 2:return[b[0],b[1],b[0],b[1]];case 3:return[b[0],b[1],b[2],b[1]];default:return[b[0],b[1],b[2],b[3]]}}function Q(b,d){var e="number"==typeof d[d.d.width]?Math.ceil(d[d.d.width]- U(b,d,"width")):0;switch(d.align){case "left":return[0,e];case "right":return[e,0];default:return[Math.ceil(e/2),Math.floor(e/2)]}}function V(b,d,e,g){d=b;if("function"==typeof e)d=e.call(g,d);else if("string"==typeof e){var d=e.split("+"),h=e.split("-");h.length>d.length?(e=!0,g=h[0],h=h[1]):(e=!1,g=d[0],h=d[1]);switch(g){case "even":d=1==b%2?b-1:b;break;case "odd":d=0==b%2?b-1:b;break;default:d=b}h=parseInt(h);isNaN(h)||(e&&(h=-h),d+=h)}"number"!=typeof d&&(d=1);1>d&&(d=1);return d}function ga(b, d,e,g){b=V(b,d,e,g);d=d.items.visibleConf;if("number"==typeof d.min&&b<d.min)b=d.min;if("number"==typeof d.max&&b>d.max)b=d.max;1>b&&(b=1);return b}function ka(b){D(b)||(b=[[b]]);D(b[0])||(b=[b]);for(var d=0,g=b.length;d<g;d++)"string"==typeof b[d][0]&&(b[d][0]=e(b[d][0])),"boolean"!=typeof b[d][1]&&(b[d][1]=!0),"boolean"!=typeof b[d][2]&&(b[d][2]=!0),"number"!=typeof b[d][3]&&(b[d][3]=0);return b}function oa(b){return"right"==b?39:"left"==b?37:"up"==b?38:"down"==b?40:-1}function qa(b,d){if(b)document.cookie= b+"="+d+"; path=/"}function pa(b){for(var b=b+"=",d=document.cookie.split(";"),e=0,g=d.length;e<g;e++){for(var h=d[e];" "==h.charAt(0);)h=h.substring(1,h.length);if(0==h.indexOf(b))return h.substring(b.length,h.length)}return 0}function t(b){if(b&&"string"==typeof b)var d=-1<b.indexOf("immediate")?!0:!1,b=-1<b.indexOf("resume")?!0:!1;else d=b=!1;return[d,b]}function D(b){return"object"==typeof b&&b instanceof Array}function E(){return(new Date).getTime()}function y(b,d){if("object"==typeof b)var e= " ("+b.selector+")",b=b.debug;else e="";if(!b)return!1;d="string"==typeof d?"carouFredSel"+e+": "+d:["carouFredSel"+e+":",d];window.console&&window.console.log&&window.console.log(d);return!1}if(!e.fn.carouFredSel)e.fn.carouFredSel=function(v,u){if(0==this.length)return y(!0,'No element found for "'+this.selector+'".'),this;if(1<this.length)return this.each(function(){e(this).carouFredSel(v,u)});var j=this,x=this[0];if(j.data("cfs_isCarousel")){var C=j.triggerHandler("_cfs_currentPosition");j.trigger("_cfs_destroy", !0)}else C=!1;j._cfs_init=function(b,d,g){b=M(x,b);if(b.debug)n.debug=b.debug,y(n,'The "debug" option should be moved to the second configuration-object.');for(var h="items,scroll,auto,prev,next,pagination".split(","),o=0,p=h.length;o<p;o++)b[h[o]]=M(x,b[h[o]]);if("number"==typeof b.scroll)b.scroll=50>=b.scroll?{items:b.scroll}:{duration:b.scroll};else if("string"==typeof b.scroll)b.scroll={easing:b.scroll};if("number"==typeof b.items)b.items={visible:b.items};else if("variable"==b.items)b.items= {visible:b.items,width:b.items,height:b.items};if("object"!=typeof b.items)b.items={};d&&(G=e.extend(!0,{},e.fn.carouFredSel.defaults,b));f=e.extend(!0,{},e.fn.carouFredSel.defaults,b);if("object"!=typeof f.items.visibleConf)f.items.visibleConf={};if(0==f.items.start&&"number"==typeof g)f.items.start=g;m.direction="up"==f.direction||"left"==f.direction?"next":"prev";b=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight", "outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]];d=b[0].length;g="right"==f.direction||"left"==f.direction?0:1;f.d={};for(h=0;h<d;h++)f.d[b[0][h]]=b[g][h];b=j.children();"auto"==f[f.d.width]&&(d=F(b,f,"outerWidth"),f[f.d.width]=d);"auto"==f[f.d.height]&&(d=F(b,f,"outerHeight"),f[f.d.height]=d);f.items[f.d.width]||(f.items[f.d.width]=ca(b,f,"outerWidth")?"variable":b[f.d.outerWidth](!0));f.items[f.d.height]||(f.items[f.d.height]=ca(b,f,"outerHeight")?"variable": b[f.d.outerHeight](!0));f[f.d.height]||(f[f.d.height]=f.items[f.d.height]);if("object"==typeof f.items.visible)f.items.visibleConf.min=f.items.visible.min,f.items.visibleConf.max=f.items.visible.max,f.items.visible=!1;if("string"==typeof f.items.visible||"function"==typeof f.items.visible)f.items.visibleConf.adjust=f.items.visible,f.items.visible=!1;if(!f.items.visible){if("variable"==f.items[f.d.width])f.items.visibleConf.variable=!0;if(!f.items.visibleConf.variable){if("number"==typeof f[f.d.width])f.items.visible= Math.floor(f[f.d.width]/f.items[f.d.width]);else if(d=ba(Y.parent(),f,"innerWidth"),f.items.visible=Math.floor(d/f.items[f.d.width]),f[f.d.width]=f.items.visible*f.items[f.d.width],!f.items.visibleConf.adjust)f.align=!1;if("Infinity"==f.items.visible||1>f.items.visible)y(!0,'Not a valid number of visible items: Set to "variable".'),f.items.visibleConf.variable=!0}}if(!f[f.d.width])!f.items.visibleConf.variable&&"variable"!=f.items[f.d.width]?(f[f.d.width]=f.items.visible*f.items[f.d.width],f.align= !1):f[f.d.width]="variable";if(f.items.visibleConf.variable&&(f.maxDimention="variable"==f[f.d.width]?ba(Y.parent(),f,"innerWidth"):f[f.d.width],!1===f.align&&(f[f.d.width]="variable"),f.items.visible=aa(b,f,0),f.items.visible>q.total))f.items.visible=q.total;if("undefined"==typeof f.padding)f.padding=0;if("undefined"==typeof f.align)f.align="variable"==f[f.d.width]?!1:"center";f.items.visible=ga(f.items.visible,f,f.items.visibleConf.adjust,x);f.items.visibleConf.old=f.items.visible;f.usePadding= !1;f.padding=R(f.padding);if("top"==f.align)f.align="left";if("bottom"==f.align)f.align="right";switch(f.align){case "center":case "left":case "right":if("variable"!=f[f.d.width])b=Q(ja(b,f),f),f.usePadding=!0,f.padding[f.d[1]]=b[1],f.padding[f.d[3]]=b[0];break;default:f.align=!1,f.usePadding=0==f.padding[0]&&0==f.padding[1]&&0==f.padding[2]&&0==f.padding[3]?!1:!0}if("boolean"==typeof f.cookie&&f.cookie)f.cookie="caroufredsel_cookie_"+j.attr("id");if("number"!=typeof f.items.minimum)f.items.minimum= f.items.visible;if("number"!=typeof f.scroll.duration)f.scroll.duration=500;if("undefined"==typeof f.scroll.items)f.scroll.items=f.items.visibleConf.variable?"variable":f.items.visible;f.auto=H(x,f.auto,"auto");f.prev=H(x,f.prev);f.next=H(x,f.next);f.pagination=H(x,f.pagination,"pagination");f.auto=e.extend(!0,{},f.scroll,f.auto);f.prev=e.extend(!0,{},f.scroll,f.prev);f.next=e.extend(!0,{},f.scroll,f.next);f.pagination=e.extend(!0,{},f.scroll,f.pagination);if("boolean"!=typeof f.pagination.keys)f.pagination.keys= !1;if("function"!=typeof f.pagination.anchorBuilder)f.pagination.anchorBuilder=e.fn.carouFredSel.pageAnchorBuilder;if("boolean"!=typeof f.auto.play)f.auto.play=!0;if("number"!=typeof f.auto.delay)f.auto.delay=0;if("number"!=typeof f.auto.pauseDuration)f.auto.pauseDuration=10>f.auto.duration?2500:5*f.auto.duration;if(f.synchronise)f.synchronise=ka(f.synchronise);n.debug&&(y(n,"Carousel width: "+f.width),y(n,"Carousel height: "+f.height),"variable"==f[f.d.width]&&y(n,"Available "+f.d.width+": "+f.maxDimention), y(n,"Item widths: "+f.items.width),y(n,"Item heights: "+f.items.height),y(n,"Number of items visible: "+f.items.visible),f.auto.play&&y(n,"Number of items scrolled automatically: "+f.auto.items),f.prev.button&&y(n,"Number of items scrolled backward: "+f.prev.items),f.next.button&&y(n,"Number of items scrolled forward: "+f.next.items))};j._cfs_build=function(){j.data("cfs_isCarousel",!0);("absolute"==j.css("position")||"fixed"==j.css("position"))&&y(n,'Carousels CSS-attribute "position" should be "static" or "relative".'); var b={"float":j.css("float"),position:j.css("position"),top:j.css("top"),right:j.css("right"),bottom:j.css("bottom"),left:j.css("left"),width:j.css("width"),height:j.css("height"),marginTop:j.css("marginTop"),marginRight:j.css("marginRight"),marginBottom:j.css("marginBottom"),marginLeft:j.css("marginLeft")};Y.css(b).css({overflow:"hidden",position:"absolute"==b.position?"absolute":"relative"});j.data("cfs_origCss",b).css({"float":"none",position:"absolute",top:0,left:0,marginTop:0,marginRight:0, marginBottom:0,marginLeft:0});f.usePadding&&j.children().each(function(){var b=parseInt(e(this).css(f.d.marginRight));isNaN(b)&&(b=0);e(this).data("cfs_origCssMargin",b)})};j._cfs_bind_events=function(){j._cfs_unbind_events();j.bind(p("stop",n),function(b,d){b.stopPropagation();m.isStopped=!0;if(f.auto.play)f.auto.play=!1,j.trigger(p("pause",n),d);return!0});j.bind(p("finish",n),function(b){b.stopPropagation();m.isScrolling&&h(r);return!0});j.bind(p("pause",n),function(b,d,e){b.stopPropagation(); K=g(K);if(d&&m.isScrolling)r.isStopped=!0,b=E()-r.startTime,r.duration-=b,r.pre&&(r.pre.duration-=b),r.post&&(r.post.duration-=b),h(r,!1);!m.isPaused&&!m.isScrolling&&e&&(K.timePassed+=E()-K.startTime);m.isPaused=!0;f.auto.onPausePause&&(e=f.auto.pauseDuration-K.timePassed,b=100-Math.ceil(100*e/f.auto.pauseDuration),f.auto.onPausePause.call(x,b,e));return!0});j.bind(p("play",n),function(b,d,e,h){b.stopPropagation();K=g(K);h=fa([d,e,h],["string","number","boolean"]);d=h[0];e=h[1];h=h[2];if("prev"!= d&&"next"!=d)d=m.direction;"number"!=typeof e&&(e=0);"boolean"!=typeof h&&(h=!1);if(h)m.isStopped=!1,f.auto.play=!0;if(!f.auto.play)return b.stopImmediatePropagation(),y(n,"Carousel stopped: Not scrolling.");m.isPaused=!1;K.startTime=E();b=f.auto.pauseDuration+e;dur2=b-K.timePassed;perc=100-Math.ceil(100*dur2/b);K.auto=setTimeout(function(){f.auto.onPauseEnd&&f.auto.onPauseEnd.call(x,perc,dur2);m.isScrolling?j.trigger(p("play",n),d):j.trigger(p(d,n),f.auto)},dur2);f.auto.onPauseStart&&f.auto.onPauseStart.call(x, perc,dur2);return!0});j.bind(p("resume",n),function(d){d.stopPropagation();r.isStopped?(r.isStopped=!1,m.isPaused=!1,m.isScrolling=!0,r.startTime=E(),b(r)):j.trigger(p("play",n));return!0});j.bind(p("prev",n)+" "+p("next",n),function(b,d,e,g){b.stopPropagation();if(m.isStopped||j.is(":hidden"))return b.stopImmediatePropagation(),y(n,"Carousel stopped or hidden: Not scrolling.");if(f.items.minimum>=q.total)return b.stopImmediatePropagation(),y(n,"Not enough items ("+q.total+", "+f.items.minimum+" needed): Not scrolling."); var h=fa([d,e,g],["object","number/string","function"]),d=h[0],e=h[1],g=h[2],o=b.type.substr(n.events.prefix.length);if("object"!=typeof d||null==d)d=f[o];if("function"==typeof g)d.onAfter=g;if("number"!=typeof e){for(var s=[e,d.items,f[o].items],h=0,A=s.length;h<A;h++)if("number"==typeof s[h]||"page"==s[h]||"visible"==s[h]){e=s[h];break}switch(e){case "page":return b.stopImmediatePropagation(),j.triggerHandler(o+"Page",[d,g]);case "visible":if(!f.items.visibleConf.variable)e=f.items.visible}}if(r.isStopped)return j.trigger(p("resume", n)),j.trigger(p("queue",n),[o,[d,e,g]]),b.stopImmediatePropagation(),y(n,"Carousel resumed scrolling.");if(0<d.duration&&m.isScrolling)return d.queue&&j.trigger(p("queue",n),[o,[d,e,g]]),b.stopImmediatePropagation(),y(n,"Carousel currently scrolling.");if(d.conditions&&!d.conditions.call(x))return b.stopImmediatePropagation(),y(n,'Callback "conditions" returned false.');K.timePassed=0;j.trigger("_cfs_slide_"+o,[d,e]);if(f.synchronise){b=f.synchronise;d=[d,e];g=0;for(A=b.length;g<A;g++)h=o,b[g][1]|| (d[0]=b[g][0].triggerHandler("_cfs_configuration",o)),b[g][2]||(h="prev"==h?"next":"prev"),d[1]=e+b[g][3],b[g][0].trigger("_cfs_slide_"+h,d)}return!0});j.bind(p("_cfs_slide_prev",n,!1),function(e,h,w){e.stopPropagation();var J=j.children();if(!f.circular&&0==q.first)return f.infinite&&j.trigger(p("next",n),q.total-1),e.stopImmediatePropagation();f.usePadding&&P(J,f);"number"!=typeof w&&(w=f.items.visibleConf.variable?ma(J,f,q.total-1):f.items.visible,w=V(w,f,h.items,x));f.circular||q.total-w<q.first&& (w=q.total-q.first);if(f.items.visibleConf.variable){var N=aa(J,f,q.total-w);f.items.visible+w<=N&&w<q.total&&(w++,N=aa(J,f,q.total-w));f.items.visibleConf.old=f.items.visible;f.items.visible=ga(N,f,f.items.visibleConf.adjust,x)}f.usePadding&&P(J,f,!0);if(0==w)return e.stopImmediatePropagation(),y(n,"0 items to scroll: Not scrolling.");y(n,"Scrolling "+w+" items backward.");for(q.first+=w;q.first>=q.total;)q.first-=q.total;f.circular||(0==q.first&&h.onEnd&&h.onEnd.call(x),f.infinite||S(f,q.first, n));j.children().slice(q.total-w).prependTo(j);q.total<f.items.visible+w&&j.children().slice(0,f.items.visible+w-q.total).clone(!0).appendTo(j);var J=j.children(),G=J.slice(w,f.items.visibleConf.old+w),t=J.slice(0,f.items.visible),u=J.eq(w-1),v=G.last(),e=t.last();f.usePadding&&P(J,f);if(f.align)var N=Q(t,f),I=N[0],C=N[1];else C=I=0;N=0>I?f.padding[f.d[3]]:0;if("directscroll"==h.fx&&f.items.visible<w){var E=J.slice(f.items.visibleConf.old,w).hide(),D=f.items[f.d.width];f.items[f.d.width]="variable"}else E= !1;var M=U(J.slice(0,w),f,"width"),F=na(X(t,f,!0),f,!f.usePadding);E&&(f.items[f.d.width]=D);f.usePadding&&(P(J,f,!0),0<=C&&P(v,f,f.padding[f.d[1]]),P(u,f,f.padding[f.d[3]]));f.align&&(f.padding[f.d[1]]=C,f.padding[f.d[3]]=I);J={};D=h.duration;"none"==h.fx?D=0:"auto"==D?D=f.scroll.duration/f.scroll.items*w:0>=D?D=0:10>D&&(D=M/D);r=d(D,h.easing);("variable"==f[f.d.width]||"variable"==f[f.d.height])&&r.anims.push([Y,F]);if(f.usePadding){var Z=f.padding[f.d[3]];if(e.not(u).length){var O={};O[f.d.marginRight]= u.data("cfs_origCssMargin");0>I?u.css(O):r.anims.push([u,O])}e.not(v).length&&(u={},u[f.d.marginRight]=v.data("cfs_origCssMargin"),r.anims.push([v,u]));0<=C&&(v={},v[f.d.marginRight]=e.data("cfs_origCssMargin")+f.padding[f.d[1]],r.anims.push([e,v]))}else Z=0;J[f.d.left]=Z;e=[G,t,F,D];h.onBefore&&h.onBefore.apply(x,e);B.onBefore=o(B.onBefore,x,e);switch(h.fx){case "fade":case "crossfade":case "cover":case "uncover":r.pre=d(r.duration,r.easing),r.post=d(r.duration,r.easing),r.duration=0}switch(h.fx){case "crossfade":case "cover":case "uncover":var H= j.clone().appendTo(Y)}switch(h.fx){case "uncover":H.children().slice(0,w).remove();case "crossfade":case "cover":H.children().slice(f.items.visible).remove()}switch(h.fx){case "fade":r.pre.anims.push([j,{opacity:0}]);break;case "crossfade":H.css({opacity:0});r.pre.anims.push([j,{width:"+=0"},function(){H.remove()}]);r.post.anims.push([H,{opacity:1}]);break;case "cover":r=s(r,j,H,f,!0);break;case "uncover":r=A(r,j,H,f,!0,w)}r.anims.push([j,J,function(){var e=f.items.visible+w-q.total;0<e&&(j.children().slice(q.total).remove(), G=j.children().slice(q.total-(w-e)).get().concat(j.children().slice(0,e).get()));E&&E.show();f.usePadding&&(e=j.children().eq(f.items.visible+w-1),e.css(f.d.marginRight,e.data("cfs_origCssMargin")));r.anims=[];if(r.pre)r.pre=d(r.orgDuration,r.easing);e=function(){switch(h.fx){case "fade":case "crossfade":j.css("filter","")}r.post=d(0,null);m.isScrolling=!1;var b=[G,t,F];h.onAfter&&h.onAfter.apply(x,b);B.onAfter=o(B.onAfter,x,b);L.length&&(j.trigger(p(L[0][0],n),L[0][1]),L.shift());m.isPaused||j.trigger(p("play", n))};switch(h.fx){case "fade":r.pre.anims.push([j,{opacity:1},e]);b(r.pre);break;case "uncover":r.pre.anims.push([j,{width:"+=0"},e]);b(r.pre);break;default:e()}}]);m.isScrolling=!0;j.css(f.d.left,-(M-N));K=g(K);b(r);qa(f.cookie,j.triggerHandler(p("currentPosition",n)));j.trigger(p("updatePageStatus",n),[!1,F]);return!0});j.bind(p("_cfs_slide_next",n,!1),function(e,h,w){e.stopPropagation();var J=j.children();if(!f.circular&&q.first==f.items.visible)return f.infinite&&j.trigger(p("prev",n),q.total- 1),e.stopImmediatePropagation();f.usePadding&&P(J,f);if("number"!=typeof w)w=f.items.visible,w=V(w,f,h.items,x);var N=0==q.first?q.total:q.first;if(!f.circular){if(f.items.visibleConf.variable)var G=aa(J,f,w),t=ma(J,f,N-1);else t=G=f.items.visible;w+G>N&&(w=N-t)}if(f.items.visibleConf.variable){for(G=ra(J,f,w,N);f.items.visible-w>=G&&w<q.total;)w++,G=ra(J,f,w,N);f.items.visibleConf.old=f.items.visible;f.items.visible=ga(G,f,f.items.visibleConf.adjust,x)}f.usePadding&&P(J,f,!0);if(0==w)return e.stopImmediatePropagation(), y(n,"0 items to scroll: Not scrolling.");y(n,"Scrolling "+w+" items forward.");for(q.first-=w;0>q.first;)q.first+=q.total;f.circular||(q.first==f.items.visible&&h.onEnd&&h.onEnd.call(x),f.infinite||S(f,q.first,n));q.total<f.items.visible+w&&j.children().slice(0,f.items.visible+w-q.total).clone(!0).appendTo(j);var J=j.children(),u=ia(J,f),v=sa(J,f,w),e=J.eq(w-1),t=u.last(),I=v.last();f.usePadding&&P(J,f);if(f.align)var G=Q(v,f),N=G[0],D=G[1];else D=N=0;if("directscroll"==h.fx&&f.items.visibleConf.old< w){var C=J.slice(f.items.visibleConf.old,w).hide(),E=f.items[f.d.width];f.items[f.d.width]="variable"}else C=!1;var G=U(J.slice(0,w),f,"width"),H=na(X(v,f,!0),f,!f.usePadding);C&&(f.items[f.d.width]=E);f.align&&0>f.padding[f.d[1]]&&(f.padding[f.d[1]]=0);f.usePadding&&(P(J,f,!0),P(t,f,f.padding[f.d[1]]));f.align&&(f.padding[f.d[1]]=D,f.padding[f.d[3]]=N);var E={},F=h.duration;"none"==h.fx?F=0:"auto"==F?F=f.scroll.duration/f.scroll.items*w:0>=F?F=0:10>F&&(F=G/F);r=d(F,h.easing);("variable"==f[f.d.width]|| "variable"==f[f.d.height])&&r.anims.push([Y,H]);if(f.usePadding){var M=I.data("cfs_origCssMargin");0<=D&&(M+=f.padding[f.d[1]]);I.css(f.d.marginRight,M);e.not(t).length&&(I={},I[f.d.marginRight]=t.data("cfs_origCssMargin"),r.anims.push([t,I]));t=e.data("cfs_origCssMargin");0<=N&&(t+=f.padding[f.d[3]]);I={};I[f.d.marginRight]=t;r.anims.push([e,I])}E[f.d.left]=-G;0>N&&(E[f.d.left]+=N);e=[u,v,H,F];h.onBefore&&h.onBefore.apply(x,e);B.onBefore=o(B.onBefore,x,e);switch(h.fx){case "fade":case "crossfade":case "cover":case "uncover":r.pre= d(r.duration,r.easing),r.post=d(r.duration,r.easing),r.duration=0}switch(h.fx){case "crossfade":case "cover":case "uncover":var O=j.clone().appendTo(Y)}switch(h.fx){case "uncover":O.children().slice(f.items.visibleConf.old).remove();break;case "crossfade":case "cover":O.children().slice(0,w).remove(),O.children().slice(f.items.visible).remove()}switch(h.fx){case "fade":r.pre.anims.push([j,{opacity:0}]);break;case "crossfade":O.css({opacity:0});r.pre.anims.push([j,{width:"+=0"},function(){O.remove()}]); r.post.anims.push([O,{opacity:1}]);break;case "cover":r=s(r,j,O,f,!1);break;case "uncover":r=A(r,j,O,f,!1,w)}r.anims.push([j,E,function(){var e=f.items.visible+w-q.total;j.css(f.d.left,f.usePadding?f.padding[f.d[3]]:0);0<e&&j.children().slice(q.total).remove();var g=j.children().slice(0,w).appendTo(j).last();0<e&&(v=ja(J,f));C&&C.show();f.usePadding&&(q.total<f.items.visible+w&&(e=j.children().eq(f.items.visible-1),e.css(f.d.marginRight,e.data("cfs_origCssMargin")+f.padding[f.d[3]])),g.css(f.d.marginRight, g.data("cfs_origCssMargin")));r.anims=[];if(r.pre)r.pre=d(r.orgDuration,r.easing);g=function(){switch(h.fx){case "fade":case "crossfade":j.css("filter","")}r.post=d(0,null);m.isScrolling=!1;var b=[u,v,H];h.onAfter&&h.onAfter.apply(x,b);B.onAfter=o(B.onAfter,x,b);L.length&&(j.trigger(p(L[0][0],n),L[0][1]),L.shift());m.isPaused||j.trigger(p("play",n))};switch(h.fx){case "fade":r.pre.anims.push([j,{opacity:1},g]);b(r.pre);break;case "uncover":r.pre.anims.push([j,{width:"+=0"},g]);b(r.pre);break;default:g()}}]); m.isScrolling=!0;K=g(K);b(r);qa(f.cookie,j.triggerHandler(p("currentPosition",n)));j.trigger(p("updatePageStatus",n),[!1,H]);return!0});j.bind(p("slideTo",n),function(b,d,e,g,h,o,r){b.stopPropagation();b=fa([d,e,g,h,o,r],"string/number/object,number,boolean,object,string,function".split(","));h=b[3];o=b[4];r=b[5];d=ha(b[0],b[1],b[2],q,j);if(0!=d){"object"!=typeof h&&(h=!1);if(m.isScrolling&&("object"!=typeof h||0<h.duration))return!1;"prev"!=o&&"next"!=o&&(o=f.circular?d<=q.total/2?"next":"prev": 0==q.first||q.first>d?"next":"prev");"prev"==o&&(d=q.total-d);j.trigger(p(o,n),[h,d,r]);return!0}});j.bind(p("prevPage",n),function(b,d,e){b.stopPropagation();b=j.triggerHandler(p("currentPage",n));return j.triggerHandler(p("slideToPage",n),[b-1,d,"prev",e])});j.bind(p("nextPage",n),function(b,d,e){b.stopPropagation();b=j.triggerHandler(p("currentPage",n));return j.triggerHandler(p("slideToPage",n),[b+1,d,"next",e])});j.bind(p("slideToPage",n),function(b,d,e,g,h){b.stopPropagation();"number"!=typeof d&& (d=j.triggerHandler(p("currentPage",n)));var b=f.pagination.items||f.items.visible,m=Math.floor(q.total/b);0>d&&(d=m);d>m&&(d=0);return j.triggerHandler(p("slideTo",n),[d*b,0,!0,e,g,h])});j.bind(p("jumpToStart",n),function(b,d){b.stopPropagation();d=d?ha(d,0,!0,q,j):0;d+=q.first;if(0!=d){for(;d>q.total;)d-=q.total;j.prepend(j.children().slice(d))}return!0});j.bind(p("synchronise",n),function(b,d){b.stopPropagation();if(d)d=ka(d);else if(f.synchronise)d=f.synchronise;else return y(n,"No carousel to synchronise."); for(var e=j.triggerHandler(p("currentPosition",n)),g=!0,h=0,m=d.length;h<m;h++)d[h][0].triggerHandler(p("slideTo",n),[e,d[h][3],!0])||(g=!1);return g});j.bind(p("queue",n),function(b,d,e){b.stopPropagation();"function"==typeof d?d.call(x,L):D(d)?L=d:"undefined"!=typeof d&&L.push([d,e]);return L});j.bind(p("insertItem",n),function(b,d,g,h,m){b.stopPropagation();m=fa([d,g,h,m],["string/object","string/number/object","boolean","number"]);d=m[0];g=m[1];h=m[2];m=m[3];"object"==typeof d&&"undefined"==typeof d.jquery&& (d=e(d));"string"==typeof d&&(d=e(d));if("object"!=typeof d||"undefined"==typeof d.jquery||0==d.length)return y(n,"Not a valid object.");"undefined"==typeof g&&(g="end");f.usePadding&&d.each(function(){var b=parseInt(e(this).css(f.d.marginRight));isNaN(b)&&(b=0);e(this).data("cfs_origCssMargin",b)});var o=g,b="before";"end"==g?h?(0==q.first?(g=q.total-1,b="after"):(g=q.first,q.first+=d.length),0>g&&(g=0)):(g=q.total-1,b="after"):g=ha(g,m,h,q,j);"end"!=o&&!h&&g<q.first&&(q.first+=d.length);q.first>= q.total&&(q.first-=q.total);g=j.children().eq(g);if(g.length)g[b](d);else j.append(d);q.total=j.children().length;d=ea(j,f);I(f,q.total,n);S(f,q.first,n);j.trigger(p("linkAnchors",n));j.trigger(p("updatePageStatus",n),[!0,d]);return!0});j.bind(p("removeItem",n),function(b,d,e,g){b.stopPropagation();b=fa([d,e,g],["string/number/object","boolean","number"]);d=b[0];e=b[1];g=b[2];"undefined"==typeof d||"end"==d?j.children().last().remove():(d=ha(d,g,e,q,j),e=j.children().eq(d),e.length&&(d<q.first&&(q.first-= e.length),e.remove()));q.total=j.children().length;d=ea(j,f);I(f,q.total,n);S(f,q.first,n);j.trigger(p("updatePageStatus",n),[!0,d]);return!0});j.bind(p("onBefore",n)+" "+p("onAfter",n),function(b,d){b.stopPropagation();var e=b.type.substr(n.events.prefix.length);D(d)&&(B[e]=d);"function"==typeof d&&B[e].push(d);return B[e]});j.bind(p("_cfs_currentPosition",n,!1),function(b,d){b.stopPropagation();return j.triggerHandler(p("currentPosition",n),d)});j.bind(p("currentPosition",n),function(b,d){b.stopPropagation(); var e=0==q.first?0:q.total-q.first;"function"==typeof d&&d.call(x,e);return e});j.bind(p("currentPage",n),function(b,d){b.stopPropagation();var e=f.pagination.items||f.items.visible,g=Math.ceil(q.total/e-1),e=0==q.first?0:q.first<q.total%e?0:q.first==e&&!f.circular?g:Math.round((q.total-q.first)/e);0>e&&(e=0);e>g&&(e=g);"function"==typeof d&&d.call(x,e);return e});j.bind(p("currentVisible",n),function(b,d){b.stopPropagation();$i=ja(j.children(),f);"function"==typeof d&&d.call(x,$i);return $i});j.bind(p("isPaused", n)+" "+p("isStopped",n)+" "+p("isScrolling",n),function(b,d){b.stopPropagation();var e=b.type.substr(n.events.prefix.length);"function"==typeof d&&d.call(x,m[e]);return m[e]});j.bind(p("_cfs_configuration",n,!1),function(b,d,e,f){b.stopPropagation();return j.triggerHandler(p("configuration",n),[d,e,f])});j.bind(p("configuration",n),function(b,d,g,h){b.stopPropagation();b=!1;if("function"==typeof d)d.call(x,f);else if("object"==typeof d)G=e.extend(!0,{},G,d),!1!==g?b=!0:f=e.extend(!0,{},f,d);else if("undefined"!= typeof d)if("function"==typeof g)d=eval("opts."+d),"undefined"==typeof d&&(d=""),g.call(x,d);else if("undefined"!=typeof g)"boolean"!==typeof h&&(h=!0),eval("opts_orig."+d+" = b"),!1!==h?b=!0:eval("opts."+d+" = b");else return eval("opts."+d);b&&(P(j.children(),f),j._cfs_init(G),j._cfs_bind_buttons(),g=ea(j,f),j.trigger(p("updatePageStatus",n),[!0,g]));return f});j.bind(p("linkAnchors",n),function(b,d,f){b.stopPropagation();"undefined"==typeof d||0==d.length?d=e("body"):"string"==typeof d&&(d=e(d)); if("object"!=typeof d)return y(n,"Not a valid object.");if("string"!=typeof f||0==f.length)f="a.caroufredsel";d.find(f).each(function(){var b=this.hash||"";0<b.length&&-1!=j.children().index(e(b))&&e(this).unbind("click").click(function(d){d.preventDefault();j.trigger(p("slideTo",n),b)})});return!0});j.bind(p("updatePageStatus",n),function(b,d){b.stopPropagation();if(f.pagination.container){if("boolean"==typeof d&&d){f.pagination.container.children().remove();for(var g=f.pagination.items||f.items.visible, h=0,m=Math.ceil(q.total/g);h<m;h++){var o=j.children().eq(ha(h*g,0,!0,q,j));f.pagination.container.append(f.pagination.anchorBuilder(h+1,o))}f.pagination.container.each(function(){e(this).children().unbind(f.pagination.event).each(function(b){e(this).bind(f.pagination.event,function(d){d.preventDefault();j.trigger(p("slideTo",n),[b*g,0,!0,f.pagination])})})})}f.pagination.container.each(function(){e(this).children().removeClass(n.classnames.selected).eq(j.triggerHandler(p("currentPage",n))).addClass(n.classnames.selected)}); return!0}});j.bind(p("_cfs_destroy",n,!1),function(b,d){b.stopPropagation();j.trigger(p("destroy",n),d);return!0});j.bind(p("destroy",n),function(b,d){b.stopPropagation();K=g(K);j.data("cfs_isCarousel",!1);j.trigger(p("finish",n));d&&j.trigger(p("jumpToStart",n));f.usePadding&&P(j.children(),f);j.css(j.data("cfs_origCss"));j._cfs_unbind_events();j._cfs_unbind_buttons();Y.replaceWith(j);return!0})};j._cfs_unbind_events=function(){j.unbind(p("",n,!1))};j._cfs_bind_buttons=function(){j._cfs_unbind_buttons(); I(f,q.total,n);S(f,q.first,n);if(f.auto.pauseOnHover){var b=t(f.auto.pauseOnHover);Y.bind(p("mouseenter",n,!1),function(){j.trigger(p("pause",n),[b[0],b[1]])}).bind(p("mouseleave",n,!1),function(){j.trigger(p("resume",n))})}f.prev.button&&(f.prev.button.bind(p(f.prev.event,n,!1),function(b){b.preventDefault();j.trigger(p("prev",n))}),f.prev.pauseOnHover&&(b=t(f.prev.pauseOnHover),f.prev.button.bind(p("mouseenter",n,!1),function(){j.trigger(p("pause",n),[b[0],b[1]])}).bind(p("mouseleave",n,!1),function(){j.trigger(p("resume", n))})));f.next.button&&(f.next.button.bind(p(f.next.event,n,!1),function(b){b.preventDefault();j.trigger(p("next",n))}),f.next.pauseOnHover&&(b=t(f.next.pauseOnHover),f.next.button.bind(p("mouseenter",n,!1),function(){j.trigger(p("pause",n),[b[0],b[1]])}).bind(p("mouseleave",n,!1),function(){j.trigger(p("resume",n))})));if(e.fn.mousewheel){if(f.prev.mousewheel&&!m.mousewheelPrev)m.mousewheelPrev=!0,Y.mousewheel(function(b,d){if(0<d){b.preventDefault();var e="number"==typeof f.prev.mousewheel?f.prev.mousewheel: null;j.trigger(p("prev",n),e)}});if(f.next.mousewheel&&!m.mousewheelNext)m.mousewheelNext=!0,Y.mousewheel(function(b,d){if(0>d){b.preventDefault();var e="number"==typeof f.next.mousewheel?f.next.mousewheel:null;j.trigger(p("next",n),e)}})}if(e.fn.touchwipe){var d=f.prev.wipe?function(){j.trigger(p("prev",n))}:null,g=f.next.wipe?function(){j.trigger(p("next",n))}:null;if((g||g)&&!m.touchwipe){m.touchwipe=!0;var h={min_move_x:30,min_move_y:30,preventDefaultEvents:!0};switch(f.direction){case "up":case "down":h.wipeUp= g;h.wipeDown=d;break;default:h.wipeLeft=g,h.wipeRight=d}Y.touchwipe(h)}}f.pagination.container&&f.pagination.pauseOnHover&&(b=t(f.pagination.pauseOnHover),f.pagination.container.bind(p("mouseenter",n,!1),function(){j.trigger(p("pause",n),[b[0],b[1]])}).bind(p("mouseleave",n,!1),function(){j.trigger(p("resume",n))}));(f.prev.key||f.next.key)&&e(document).bind(p("keyup",n,!1),function(b){var d=b.keyCode;d==f.next.key&&(b.preventDefault(),j.trigger(p("next",n)));d==f.prev.key&&(b.preventDefault(),j.trigger(p("prev", n)))});f.pagination.keys&&e(document).bind(p("keyup",n,!1),function(b){var d=b.keyCode;49<=d&&58>d&&(d=(d-49)*f.items.visible,d<=q.total&&(b.preventDefault(),j.trigger(p("slideTo",n),[d,0,!0,f.pagination])))});f.auto.play&&j.trigger(p("play",n),f.auto.delay)};j._cfs_unbind_buttons=function(){e(document).unbind(p("",n,!1));Y.unbind(p("",n,!1));f.prev.button&&f.prev.button.unbind(p("",n,!1));f.next.button&&f.next.button.unbind(p("",n,!1));f.pagination.container&&f.pagination.container.unbind(p("",n, !1));I(f,"hide",n);S(f,"removeClass",n);f.pagination.container&&f.pagination.container.children().remove()};var m={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheelNext:!1,mousewheelPrev:!1,touchwipe:!1},q={total:j.children().length,first:0},K={timer:null,auto:null,queue:null,startTime:E(),timePassed:0},r={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},B={onBefore:[],onAfter:[]},L=[],n=e.extend(!0,{},e.fn.carouFredSel.configs,u),f={},G=v,Y=j.wrap("<"+n.wrapper.element+' class="'+ n.wrapper.classname+'" />').parent();n.selector=j.selector;j._cfs_init(G,!0,C);j._cfs_build();j._cfs_bind_events();j._cfs_bind_buttons();D(f.items.start)?C=f.items.start:(C=[],0!=f.items.start&&C.push(f.items.start));f.cookie&&C.unshift(pa(f.cookie));if(0<C.length)for(var Z=0,va=C.length;Z<va;Z++){var O=C[Z];if(0!=O){if(!0===O){if(O=window.location.hash,1>O.length)continue}else"random"===O&&(O=Math.floor(Math.random()*q.total));if(j.triggerHandler(p("slideTo",n),[O,0,!0,{fx:"none"}]))break}}C=ea(j, f,!1);Z=ja(j.children(),f);f.onCreate&&f.onCreate.call(x,Z,C);j.trigger(p("updatePageStatus",n),[!0,C]);j.trigger(p("linkAnchors",n));return j},e.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,direction:"left",items:{start:0},scroll:{easing:"swing",duration:500,pauseOnHover:!1,mousewheel:!1,wipe:!1,event:"click",queue:!1}},e.fn.carouFredSel.configs={debug:!1,events:{prefix:"",namespace:"cfs"},wrapper:{element:"div",classname:"caroufredsel_wrapper"},classnames:{selected:"selected", hidden:"hidden",disabled:"disabled"}},e.fn.carouFredSel.pageAnchorBuilder=function(b){return'<a href="#"><span>'+b+"</span></a>"},e.fn.caroufredsel=function(b){return this.carouFredSel(b)}})(jQuery);var LiveValidation=function(e,d){this.initialize(e,d)};LiveValidation.VERSION="1.3 standalone";LiveValidation.TEXTAREA=1;LiveValidation.TEXT=2;LiveValidation.PASSWORD=3;LiveValidation.CHECKBOX=4;LiveValidation.SELECT=5;LiveValidation.FILE=6; LiveValidation.massValidate=function(e){for(var d=!0,b=0,h=e.length;b<h;++b){var g=e[b].validate();d&&(d=g)}return d}; LiveValidation.prototype={validClass:"LV_valid",invalidClass:"LV_invalid",messageClass:"LV_validation_message",validFieldClass:"LV_valid_field",invalidFieldClass:"LV_invalid_field",initialize:function(e,d){var b=this;if(!e)throw Error("LiveValidation::initialize - No element reference or element id has been provided!");this.element=e.nodeName?e:document.getElementById(e);if(!this.element)throw Error("LiveValidation::initialize - No element with reference or id of '"+e+"' exists!");this.validations= [];this.elementType=this.getElementType();this.form=this.element.form;var h=d||{};this.validMessage=h.validMessage||"Thankyou!";var g=h.insertAfterWhatNode||this.element;this.insertAfterWhatNode=g.nodeType?g:document.getElementById(g);this.onValid=h.onValid||function(){this.insertMessage(this.createMessageSpan());this.addFieldClass()};this.onInvalid=h.onInvalid||function(){this.insertMessage(this.createMessageSpan());this.addFieldClass()};this.onlyOnBlur=h.onlyOnBlur||!1;this.wait=h.wait||0;this.onlyOnSubmit= h.onlyOnSubmit||!1;if(this.form)this.formObj=LiveValidationForm.getInstance(this.form),this.formObj.addField(this);this.oldOnFocus=this.element.onfocus||function(){};this.oldOnBlur=this.element.onblur||function(){};this.oldOnClick=this.element.onclick||function(){};this.oldOnChange=this.element.onchange||function(){};this.oldOnKeyup=this.element.onkeyup||function(){};this.element.onfocus=function(d){b.doOnFocus(d);return b.oldOnFocus.call(this,d)};if(!this.onlyOnSubmit)switch(this.elementType){case LiveValidation.CHECKBOX:this.element.onclick= function(d){b.validate();return b.oldOnClick.call(this,d)};case LiveValidation.SELECT:case LiveValidation.FILE:this.element.onchange=function(d){b.validate();return b.oldOnChange.call(this,d)};break;default:if(!this.onlyOnBlur)this.element.onkeyup=function(d){b.deferValidation();return b.oldOnKeyup.call(this,d)};this.element.onblur=function(d){b.doOnBlur(d);return b.oldOnBlur.call(this,d)}}},destroy:function(){this.formObj&&(this.formObj.removeField(this),this.formObj.destroy());this.element.onfocus= this.oldOnFocus;if(!this.onlyOnSubmit)switch(this.elementType){case LiveValidation.CHECKBOX:this.element.onclick=this.oldOnClick;case LiveValidation.SELECT:case LiveValidation.FILE:this.element.onchange=this.oldOnChange;break;default:if(!this.onlyOnBlur)this.element.onkeyup=this.oldOnKeyup;this.element.onblur=this.oldOnBlur}this.validations=[];this.removeMessageAndFieldClass()},add:function(e,d){this.validations.push({type:e,params:d||{}});return this},remove:function(e,d){for(var b=!1,h=0,g=this.validations.length;h< g;h++)if(this.validations[h].type==e&&this.validations[h].params==d){b=!0;break}b&&this.validations.splice(h,1);return this},deferValidation:function(){300<=this.wait&&this.removeMessageAndFieldClass();var e=this;this.timeout&&clearTimeout(e.timeout);this.timeout=setTimeout(function(){e.validate()},e.wait)},doOnBlur:function(e){this.focused=!1;this.validate(e)},doOnFocus:function(){this.focused=!0;this.removeMessageAndFieldClass()},getElementType:function(){switch(!0){case "TEXTAREA"==this.element.nodeName.toUpperCase():return LiveValidation.TEXTAREA; case "INPUT"==this.element.nodeName.toUpperCase()&&"TEXT"==this.element.type.toUpperCase():return LiveValidation.TEXT;case "INPUT"==this.element.nodeName.toUpperCase()&&"PASSWORD"==this.element.type.toUpperCase():return LiveValidation.PASSWORD;case "INPUT"==this.element.nodeName.toUpperCase()&&"CHECKBOX"==this.element.type.toUpperCase():return LiveValidation.CHECKBOX;case "INPUT"==this.element.nodeName.toUpperCase()&&"FILE"==this.element.type.toUpperCase():return LiveValidation.FILE;case "SELECT"== this.element.nodeName.toUpperCase():return LiveValidation.SELECT;case "INPUT"==this.element.nodeName.toUpperCase():throw Error("LiveValidation::getElementType - Cannot use LiveValidation on an "+this.element.type+" input!");default:throw Error("LiveValidation::getElementType - Element must be an input, select, or textarea!");}},doValidations:function(){this.validationFailed=!1;for(var e=0,d=this.validations.length;e<d;++e){var b=this.validations[e];switch(b.type){case Validate.Presence:case Validate.Confirmation:case Validate.Acceptance:this.displayMessageWhenEmpty= !0;this.validationFailed=!this.validateElement(b.type,b.params);break;default:this.validationFailed=!this.validateElement(b.type,b.params)}if(this.validationFailed)return!1}this.message=this.validMessage;return!0},validateElement:function(e,d){var b=this.elementType==LiveValidation.SELECT?this.element.options[this.element.selectedIndex].value:this.element.value;if(e==Validate.Acceptance){if(this.elementType!=LiveValidation.CHECKBOX)throw Error("LiveValidation::validateElement - Element to validate acceptance must be a checkbox!"); b=this.element.checked}var h=!0;try{e(b,d)}catch(g){if(g instanceof Validate.Error){if(""!==b||""===b&&this.displayMessageWhenEmpty)this.validationFailed=!0,this.message=g.message,h=!1}else throw g;}finally{return h}},validate:function(){if(this.element.disabled)return!0;if(this.doValidations())return this.onValid(),!0;this.onInvalid();return!1},enable:function(){this.element.disabled=!1;return this},disable:function(){this.element.disabled=!0;this.removeMessageAndFieldClass();return this},createMessageSpan:function(){var e= document.createElement("span"),d=document.createTextNode(this.message);e.appendChild(d);return e},insertMessage:function(e){this.removeMessage();if(this.displayMessageWhenEmpty&&(this.elementType==LiveValidation.CHECKBOX||""==this.element.value)||""!=this.element.value)e.className+=" "+this.messageClass+" "+(this.validationFailed?this.invalidClass:this.validClass),this.insertAfterWhatNode.nextSibling?this.insertAfterWhatNode.parentNode.insertBefore(e,this.insertAfterWhatNode.nextSibling):this.insertAfterWhatNode.parentNode.appendChild(e)}, addFieldClass:function(){this.removeFieldClass();if(this.validationFailed)-1==this.element.className.indexOf(this.invalidFieldClass)&&(this.element.className+=" "+this.invalidFieldClass);else if((this.displayMessageWhenEmpty||""!=this.element.value)&&-1==this.element.className.indexOf(this.validFieldClass))this.element.className+=" "+this.validFieldClass},removeMessage:function(){for(var e,d=this.insertAfterWhatNode;d.nextSibling;){if(1===d.nextSibling.nodeType){e=d.nextSibling;break}d=d.nextSibling}e&& -1!=e.className.indexOf(this.messageClass)&&this.insertAfterWhatNode.parentNode.removeChild(e)},removeFieldClass:function(){if(-1!=this.element.className.indexOf(this.invalidFieldClass))this.element.className=this.element.className.split(this.invalidFieldClass).join("");if(-1!=this.element.className.indexOf(this.validFieldClass))this.element.className=this.element.className.split(this.validFieldClass).join(" ")},removeMessageAndFieldClass:function(){this.removeMessage();this.removeFieldClass()}}; var LiveValidationForm=function(e){this.initialize(e)};LiveValidationForm.instances={};LiveValidationForm.getInstance=function(e){var d=Math.random()*Math.random();if(!e.id)e.id="formId_"+d.toString().replace(/\./,"")+(new Date).valueOf();LiveValidationForm.instances[e.id]||(LiveValidationForm.instances[e.id]=new LiveValidationForm(e));return LiveValidationForm.instances[e.id]}; LiveValidationForm.prototype={initialize:function(e){this.name=e.id;this.element=e;this.fields=[];this.oldOnSubmit=this.element.onsubmit||function(){};var d=this;this.element.onsubmit=function(b){return LiveValidation.massValidate(d.fields)?!1!==d.oldOnSubmit.call(this,b||window.event):!1}},addField:function(e){this.fields.push(e)},removeField:function(e){for(var d=[],b=0,h=this.fields.length;b<h;b++)this.fields[b]!==e&&d.push(this.fields[b]);this.fields=d},destroy:function(e){if(0!=this.fields.length&& !e)return!1;this.element.onsubmit=this.oldOnSubmit;LiveValidationForm.instances[this.name]=null;return!0}}; var Validate={Presence:function(e,d){var d=d||{},b=d.failureMessage||"Can't be empty!";(""===e||null===e||void 0===e)&&Validate.fail(b);return!0},Numericality:function(e,d){var b=e,e=Number(e),d=d||{},h=d.minimum||0==d.minimum?d.minimum:null,g=d.maximum||0==d.maximum?d.maximum:null,o=d.is||0==d.is?d.is:null,s=d.notANumberMessage||"Must be a number!",A=d.notAnIntegerMessage||"Must be an integer!",I=d.wrongNumberMessage||"Must be "+o+"!",S=d.tooLowMessage||"Must not be less than "+h+"!",M=d.tooHighMessage|| "Must not be more than "+g+"!";isFinite(e)||Validate.fail(s);d.onlyInteger&&(/\.0+$|\.$/.test(""+b)||e!=parseInt(e))&&Validate.fail(A);switch(!0){case null!==o:e!=Number(o)&&Validate.fail(I);break;case null!==h&&null!==g:Validate.Numericality(e,{tooLowMessage:S,minimum:h});Validate.Numericality(e,{tooHighMessage:M,maximum:g});break;case null!==h:e<Number(h)&&Validate.fail(S);break;case null!==g:e>Number(g)&&Validate.fail(M)}return!0},Format:function(e,d){var e=""+e,d=d||{},b=d.failureMessage||"Not valid!", h=d.pattern||/./,g=d.negate||!1;!g&&!h.test(e)&&Validate.fail(b);g&&h.test(e)&&Validate.fail(b);return!0},Email:function(e,d){d=d||{};Validate.Format(e,{failureMessage:d.failureMessage||"Must be a valid email address!",pattern:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i});return!0},Length:function(e,d){var e=""+e,d=d||{},b=d.minimum||0==d.minimum?d.minimum:null,h=d.maximum||0==d.maximum?d.maximum:null,g=d.is||0==d.is?d.is:null,o=d.wrongLengthMessage||"Must be "+g+" characters long!",s=d.tooShortMessage|| "Must not be less than "+b+" characters long!",A=d.tooLongMessage||"Must not be more than "+h+" characters long!";switch(!0){case null!==g:e.length!=Number(g)&&Validate.fail(o);break;case null!==b&&null!==h:Validate.Length(e,{tooShortMessage:s,minimum:b});Validate.Length(e,{tooLongMessage:A,maximum:h});break;case null!==b:e.length<Number(b)&&Validate.fail(s);break;case null!==h:e.length>Number(h)&&Validate.fail(A);break;default:throw Error("Validate::Length - Length(s) to validate against must be provided!"); }return!0},Inclusion:function(e,d){var d=d||{},b=d.failureMessage||"Must be included in the list!",h=!1===d.caseSensitive?!1:!0;if(d.allowNull&&null==e)return!0;!d.allowNull&&null==e&&Validate.fail(b);var g=d.within||[];if(!h){for(var o=[],s=0,h=g.length;s<h;++s){var A=g[s];"string"==typeof A&&(A=A.toLowerCase());o.push(A)}g=o;"string"==typeof e&&(e=e.toLowerCase())}o=!1;s=0;for(h=g.length;s<h;++s)g[s]==e&&(o=!0),d.partialMatch&&-1!=e.indexOf(g[s])&&(o=!0);(!d.negate&&!o||d.negate&&o)&&Validate.fail(b); return!0},Exclusion:function(e,d){d=d||{};d.failureMessage=d.failureMessage||"Must not be included in the list!";d.negate=!0;Validate.Inclusion(e,d);return!0},Confirmation:function(e,d){if(!d.match)throw Error("Validate::Confirmation - Error validating confirmation: Id of element to match must be provided!");var d=d||{},b=d.failureMessage||"Does not match!",h=d.match.nodeName?d.match:document.getElementById(d.match);if(!h)throw Error("Validate::Confirmation - There is no reference with name of, or element with id of '"+ d.match+"'!");e!=h.value&&Validate.fail(b);return!0},Acceptance:function(e,d){var d=d||{},b=d.failureMessage||"Must be accepted!";e||Validate.fail(b);return!0},Custom:function(e,d){var d=d||{},b=d.failureMessage||"Not valid!";(d.against||function(){return!0})(e,d.args||{})||Validate.fail(b);return!0},now:function(e,d,b){if(!e)throw Error("Validate::now - Validation function must be provided!");var h=!0;try{e(d,b||{})}catch(g){if(g instanceof Validate.Error)h=!1;else throw g;}finally{return h}},fail:function(e){throw new Validate.Error(e); },Error:function(e){this.message=e;this.name="ValidationError"}}; (function(e,d){function b(b,d){b=b?' id="'+H+b+'"':"";return e("<div"+b+(d?' style="'+d+'"':"")+"/>")}function h(b,d){d="x"===d?Q.width():Q.height();return"string"===typeof b?Math.round(/%/.test(b)?d/100*parseInt(b,10):parseInt(b,10)):b}function g(b){return m.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(b)}function o(b){for(var d in b)e.isFunction(b[d])&&"on"!==d.substring(0,2)&&(b[d]=b[d].call(x));b.rel=b.rel||x.rel||"nofollow";b.href=b.href||e(x).attr("href");b.title=b.title|| x.title;return b}function s(b,d){d&&d.call(x);e.event.trigger(b)}function A(){var b,d=H+"Slideshow_",e="click."+H,g,h;m.slideshow&&R[1]&&(g=function(){pa.text(m.slideshowStop).unbind(e).bind(aa,function(){if(C<R.length-1||m.loop)b=setTimeout(B.next,m.slideshowSpeed)}).bind(ma,function(){clearTimeout(b)}).one(e+" "+ra,h);F.removeClass(d+"off").addClass(d+"on");b=setTimeout(B.next,m.slideshowSpeed)},h=function(){clearTimeout(b);pa.text(m.slideshowStart).unbind([aa,ma,ra,e].join(" ")).one(e,g);F.removeClass(d+ "on").addClass(d+"off")},m.slideshowAuto?g():h())}function I(b){if(!r){x=b;m=o(e.extend({},e.data(x,M)));R=e(x);C=0;"nofollow"!==m.rel&&(R=e("."+L).filter(function(){return(e.data(this,M).rel||this.rel)===m.rel}),C=R.index(x),-1===C&&(R=R.add(x),C=R.length-1));if(!q){q=K=!0;F.show();if(m.returnFocus)try{x.blur(),e(x).one(ja,function(){try{this.focus()}catch(b){}})}catch(d){}da.css({opacity:+m.opacity,cursor:m.overlayClose?"pointer":"auto"}).show();m.w=h(m.initialWidth,"x");m.h=h(m.initialHeight,"y"); B.position(0);ea&&Q.bind("resize."+X+" scroll."+X,function(){da.css({width:Q.width(),height:Q.height(),top:Q.scrollTop(),left:Q.scrollLeft()})}).trigger("scroll."+X);s(ha,m.onOpen);qa.add(D).add(t).add(pa).add(oa).hide();E.html(m.close).show()}B.load(!0)}}var S={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9, preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0},M="colorbox",H="cbox",ha=H+"_open",ma=H+"_load",aa=H+"_complete",ra=H+"_cleanup",ja=H+"_closed",ia=H+"_purge",sa=H+"_loaded",P=e.browser.msie&&!e.support.opacity, ea=P&&7>e.browser.version,X=H+"_IE6",da,F,ba,U,ca,p,na,fa,R,Q,V,ga,ka,oa,qa,pa,t,D,E,y,v,u,j,x,C,m,q,K,r=!1,B,L=H+"Element";B=e.fn[M]=e[M]=function(b,d){var g=this,h;if(!g[0]&&g.selector)return g;b=b||{};if(d)b.onComplete=d;if(!g[0]||void 0===g.selector)g=e("<a/>"),b.open=!0;g.each(function(){e.data(this,M,e.extend({},e.data(this,M)||S,b));e(this).addClass(L)});h=b.open;e.isFunction(h)&&(h=h.call(g));h&&I(g[0]);return g};B.init=function(){Q=e(d);F=b().attr({id:M,"class":P?H+"IE":""});da=b("Overlay", ea?"position:absolute":"").hide();ba=b("Wrapper");U=b("Content").append(V=b("LoadedContent","width:0; height:0; overflow:hidden"),ka=b("LoadingOverlay").add(b("LoadingGraphic")),oa=b("Title"),qa=b("Current"),t=b("Next"),D=b("Previous"),pa=b("Slideshow").bind(ha,A),E=b("Close"));ba.append(b().append(b("TopLeft"),ca=b("TopCenter"),b("TopRight")),b(!1,"clear:left").append(p=b("MiddleLeft"),U,na=b("MiddleRight")),b(!1,"clear:left").append(b("BottomLeft"),fa=b("BottomCenter"),b("BottomRight"))).children().children().css({"float":"left"}); ga=b(!1,"position:absolute; width:9999px; visibility:hidden; display:none");e("body").prepend(da,F.append(ba,ga));U.children().hover(function(){e(this).addClass("hover")},function(){e(this).removeClass("hover")}).addClass("hover");y=ca.height()+fa.height()+U.outerHeight(!0)-U.height();v=p.width()+na.width()+U.outerWidth(!0)-U.width();u=V.outerHeight(!0);j=V.outerWidth(!0);F.css({"padding-bottom":y,"padding-right":v}).hide();t.click(B.next);D.click(B.prev);E.click(B.close);U.children().removeClass("hover"); e("."+L).live("click",function(b){0!==b.button&&"undefined"!==typeof b.button||b.ctrlKey||b.shiftKey||b.altKey||(b.preventDefault(),I(this))});da.click(function(){m.overlayClose&&B.close()});e(document).bind("keydown",function(b){q&&m.escKey&&27===b.keyCode&&(b.preventDefault(),B.close());if(q&&m.arrowKey&&!K&&R[1])if(37===b.keyCode&&(C||m.loop))b.preventDefault(),D.click();else if(39===b.keyCode&&(C<R.length-1||m.loop))b.preventDefault(),t.click()})};B.remove=function(){F.add(da).remove();e("."+ L).die("click").removeData(M).removeClass(L)};B.position=function(b,d){function e(b){ca[0].style.width=fa[0].style.width=U[0].style.width=b.style.width;ka[0].style.height=ka[1].style.height=U[0].style.height=p[0].style.height=na[0].style.height=b.style.height}var g,h=Math.max(document.documentElement.clientHeight-m.h-u-y,0)/2+Q.scrollTop(),o=Math.max(Q.width()-m.w-j-v,0)/2+Q.scrollLeft();g=F.width()===m.w+j&&F.height()===m.h+u?0:b;ba[0].style.width=ba[0].style.height="9999px";F.dequeue().animate({width:m.w+ j,height:m.h+u,top:h,left:o},{duration:g,complete:function(){e(this);K=!1;ba[0].style.width=m.w+j+v+"px";ba[0].style.height=m.h+u+y+"px";d&&d()},step:function(){e(this)}})};B.resize=function(b){if(q){b=b||{};if(b.width)m.w=h(b.width,"x")-j-v;if(b.innerWidth)m.w=h(b.innerWidth,"x");V.css({width:m.w});if(b.height)m.h=h(b.height,"y")-u-y;if(b.innerHeight)m.h=h(b.innerHeight,"y");if(!b.innerHeight&&!b.height)b=V.wrapInner("<div style='overflow:auto'></div>").children(),m.h=b.height(),b.replaceWith(b.children()); V.css({height:m.h});B.position("none"===m.transition?0:m.speed)}};B.prep=function(d){function f(b){var d,f,n,o,p=R.length,r=m.loop;B.position(b,function(){function b(){P&&F[0].style.removeAttribute("filter")}if(q){P&&h&&V.fadeIn(100);V.show();s(sa);oa.show().html(m.title);if(1<p&&("string"===typeof m.current&&qa.html(m.current.replace(/\{current\}/,C+1).replace(/\{total\}/,p)).show(),t[r||C<p-1?"show":"hide"]().html(m.next),D[r||C?"show":"hide"]().html(m.previous),d=C?R[C-1]:R[p-1],n=C<p-1?R[C+1]: R[0],m.slideshow&&pa.show(),m.preloading)){o=e.data(n,M).href||n.href;f=e.data(d,M).href||d.href;o=e.isFunction(o)?o.call(n):o;f=e.isFunction(f)?f.call(d):f;if(g(o))e("<img/>")[0].src=o;if(g(f))e("<img/>")[0].src=f}ka.hide();"fade"===m.transition?F.fadeTo(j,1,function(){b()}):b();Q.bind("resize."+H,function(){B.position(0)});s(aa,m.onComplete)}})}if(q){var h,j="none"===m.transition?0:m.speed;Q.unbind("resize."+H);V.remove();V=b("LoadedContent").html(d);V.hide().appendTo(ga.show()).css({width:function(){m.w= m.w||V.width();m.w=m.mw&&m.mw<m.w?m.mw:m.w;return m.w}(),overflow:m.scrolling?"auto":"hidden"}).css({height:function(){m.h=m.h||V.height();m.h=m.mh&&m.mh<m.h?m.mh:m.h;return m.h}()}).prependTo(U);ga.hide();e("#"+H+"Photo").css({cssFloat:"none",marginLeft:"auto",marginRight:"auto"});if(ea)e("select").not(F.find("select")).filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one(ra,function(){this.style.visibility="inherit"});"fade"===m.transition?F.fadeTo(j,0,function(){f(0)}): f(j)}};B.load=function(d){var f,p,q,r=B.prep;K=!0;x=R[C];d||(m=o(e.extend({},e.data(x,M))));s(ia);s(ma,m.onLoad);m.h=m.height?h(m.height,"y")-u-y:m.innerHeight&&h(m.innerHeight,"y");m.w=m.width?h(m.width,"x")-j-v:m.innerWidth&&h(m.innerWidth,"x");m.mw=m.w;m.mh=m.h;if(m.maxWidth)m.mw=h(m.maxWidth,"x")-j-v,m.mw=m.w&&m.w<m.mw?m.w:m.mw;if(m.maxHeight)m.mh=h(m.maxHeight,"y")-u-y,m.mh=m.h&&m.h<m.mh?m.h:m.mh;f=m.href;ka.show();m.inline?(b().hide().insertBefore(e(f)[0]).one(ia,function(){e(this).replaceWith(V.children())}), r(e(f))):m.iframe?(F.one(sa,function(){var b=e("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];b.name=H+ +new Date;b.src=m.href;if(!m.scrolling)b.scrolling="no";if(P)b.allowtransparency="true";e(b).appendTo(V).one(ia,function(){b.src="//about:blank"})}),r(" ")):m.html?r(m.html):g(f)?(p=new Image,p.onload=function(){var b;p.onload=null;p.id=H+"Photo";e(p).css({border:"none",display:"block",cssFloat:"left"});m.scalePhotos&&(q=function(){p.height-=p.height*b; p.width-=p.width*b},m.mw&&p.width>m.mw&&(b=(p.width-m.mw)/p.width,q()),m.mh&&p.height>m.mh&&(b=(p.height-m.mh)/p.height,q()));if(m.h)p.style.marginTop=Math.max(m.h-p.height,0)/2+"px";R[1]&&(C<R.length-1||m.loop)&&e(p).css({cursor:"pointer"}).click(B.next);if(P)p.style.msInterpolationMode="bicubic";setTimeout(function(){r(p)},1)},setTimeout(function(){p.src=f},1)):f&&ga.load(f,function(b,d,f){r("error"===d?"Request unsuccessful: "+f.statusText:e(this).children())})};B.next=function(){K||(C=C<R.length- 1?C+1:0,B.load())};B.prev=function(){K||(C=C?C-1:R.length-1,B.load())};B.close=function(){q&&!r&&(r=!0,q=!1,s(ra,m.onCleanup),Q.unbind("."+H+" ."+X),da.fadeTo("fast",0),F.stop().fadeTo("fast",0,function(){s(ia);V.remove();F.add(da).css({opacity:1,cursor:"auto"}).hide();setTimeout(function(){r=!1;s(ja,m.onClosed)},1)}))};B.element=function(){return e(x)};B.settings=S;e(B.init)})(jQuery,this); function dropdown(e){$(e).find(">li").hover(function(){$(this).find("ul").stop(!0,!0).slideDown("fast").show();$(this).addClass("subhover")},function(){$(this).find("ul").stop(!0,!0).slideUp("slow");$(this).removeClass("subhover")})}var DOMINIOURL="http://"+window.location.hostname+"/"; $(function(){$("a[rel=external]").click(function(b){window.open($(this).attr("href"));b.preventDefault()});dropdown("#menu-primo-livello ul");$("a.blog").click(function(b){$("#blog").toggle();var d=$(".blog_hide"),e=$(this).text();d.hasClass("txt_close")?($(this).html(d.text()),d.html(e),d.removeClass("txt_close")):($(this).html('<span style="font-size:11px;text-transform:none;">'+d.text()+"</span>"),d.html(e).addClass("txt_close"));b.preventDefault()});var e=$("#menu-collezionemoda"),d=$("#menu-collezionebasic"), b=$("#menu-collezionemoda-interna"),h=$("#menu-collezionebasic-interna");$("#collezione-moda").hoverIntent(function(){e.stop(!0,!0).slideToggle(150)},function(){e.stop(!0,!0).slideToggle(150)});$("#collezione-moda-interna").hoverIntent(function(){b.stop(!0,!0).animate({width:"toggle"},150)},function(){b.stop(!0,!0).animate({width:"toggle"},150)});$("#collezione-basic").hoverIntent(function(){d.stop(!0,!0).slideToggle(150)},function(){d.stop(!0,!0).slideToggle(150)});$("#collezione-basic-interna").hoverIntent(function(){h.stop(!0, !0).animate({width:"toggle"},150)},function(){h.stop(!0,!0).animate({width:"toggle"},150)});$("a.novita").click(function(b){var d=$(".novita_hide"),e=$(this).text(),g=$("#ticker");"0px"==g.css("right")?(g.animate({right:"-249px"}),$(this).removeClass("novita_2").html(d.text())):(g.animate({right:"0px"}),$(this).addClass("novita_2").html(d.text()));d.html(e);b.preventDefault()});$("a.areariservata").click(function(b){$(".accesso").slideToggle();var d=$(".areariservata_hide"),e=$(this).text();d.hasClass("txt_close")? ($(this).html(d.text()),d.html(e),d.removeClass("txt_close")):($(this).html(d.text()),d.html(e).addClass("txt_close"));b.preventDefault()});var g=$("#ticker");g.length&&g.find("ul").carouFredSel({next:"#foo2_next",prev:"#foo2_prev",direction:"up",auto:5E3,speed:500,items:3,scroll:1});g=$("#photogallery");g.length&&g.find("ul").carouFredSel({next:"#foo3_next",prev:"#foo3_prev",direction:"up",auto:5E3,speed:500,items:3,scroll:1});$("a[rel='colorbox']").colorbox({maxWidth:"95%",maxHeight:"95%",scrolling:!1}); $(".video_colorbox").colorbox({iframe:!0,innerWidth:480,innerHeight:360});$("a[title='newsletter']").colorbox({href:DOMINIOURL+"modules/newsletter.php?lang="+CODE_LANG,title:" ",width:800,height:600});0<$("#map").length&&showmaps();if(!$("#wrapper-home").length&&!$("#wrapper-collezioni").length){var g=[],o=1,s=0;$("#wrapper").length||$("#wrapper-index").length?(g=[{image:DOMINIOURL+"img/welcome.jpg"}],o=0,s=1):$("#wrapper-azienda").length?g=[{image:DOMINIOURL+"img/azienda.jpg"}]:$("#wrapper-franchising").length? g=[{image:DOMINIOURL+"img/franchising.jpg"}]:$("#wrapper-base").length?g=[{image:DOMINIOURL+"img/sfo_404.jpg"}]:$("#wrapper-novita").length?g=[{image:DOMINIOURL+"img/novita.jpg"}]:$("#wrapper-store").length?g=[{image:DOMINIOURL+"img/store.jpg"}]:$("#wrapper-news").length?g=[{image:DOMINIOURL+"img/news.jpg"}]:$("#wrapper-contatti").length?g=[{image:DOMINIOURL+"img/contatti.jpg"}]:$("#wrapper-video").length?g=[{image:DOMINIOURL+"img/video.jpg"}]:$("#wrapper-lookbook").length&&(g=[{image:DOMINIOURL+ "img/lookbook.jpg"}]);$.supersized({slideshow:1,autoplay:1,start_slide:1,stop_loop:0,random:0,slide_interval:9500,transition:1,transition_speed:1E3,new_window:1,pause_hover:0,keyboard_nav:0,performance:$.browser.msie&&8>=parseInt($.browser.version)?3:1,image_protect:1,min_width:0,min_height:0,vertical_center:0,horizontal_center:1,fit_always:0,fit_portrait:o,fit_landscape:s,slide_links:!1,thumb_links:0,thumbnail_navigation:1,progress_bar:0,mouse_scrub:0,slides:g});$('<div id="superslide-next" />').click(function(){api.nextSlide(); return!1}).appendTo(document.body)}$(".ui-tabs").tabs({fxFade:!0,fxSpeed:"fast"});(function(){$content=$(".content");if($content.length){var b=$("#contenuti"),d=$("#mcs3_container"),e=$("#mcs3_container_video");$content.jScrollPane();$(window).resize(function(){d.css("height",$(window).height()-parseInt(b.css("padding-top"),10)-parseInt(b.css("padding-bottom"),10)-parseInt(d.css("padding-top"),10)-parseInt(d.css("padding-bottom"),10));e.css("height",$(window).height()-parseInt(b.css("padding-top"), 10)-parseInt(b.css("padding-bottom"),10)-parseInt(e.css("padding-top"),10)-parseInt(e.css("padding-bottom"),10));$content.data("jsp").reinitialise()}).resize();d.css("overflow","hidden");e.css("overflow","hidden")}})();(function(b,d,e){var g=b.getElementsByTagName(d)[0];if(!b.getElementById(e))b=b.createElement(d),b.id=e,b.src="//connect.facebook.net/"+lg_pagefacebook+"/all.js#xfbml=1",g.parentNode.insertBefore(b,g)})(document,"script","facebook-jssdk");$.getScript("//browser-update.org/update.js")}); jQuery.fn.extend({slideRight:function(){return this.each(function(){jQuery(this).animate({width:"show"})})},slideLeft:function(){return this.each(function(){jQuery(this).animate({width:"hide"})})},slideToggleWidth:function(){return this.each(function(){var e=jQuery(this);"none"==e.css("display")?e.slideRight():e.slideLeft()})}});
