function resizeRefont(n){var r,u,f,e=n.parent().parent().parent(),t=$("h4.blockHeader span",e),i;t.removeAttr("style");i=t.innerHeight();$("#wrap").hasClass("largeFont")?(f=69,u=47,i>=u&&i<f?t.css("lineHeight","36px"):i<u&&t.css("lineHeight",f+"px")):(r=36,i<r&&t.css("lineHeight",r+"px"))}function vertAlign(n){var i,t=$(n).parent().height(),r=$(n).find("img").height();r+10>t?($("img",n).css("height",t-20),$(n).css("marginTop",10)):(i=(t-r)/2,$(n).css("marginTop",i))}function setVertAlign(n,t){$(n,t).each(function(){resizeRefont($(this));vertAlign($(this))})}function serNewHeight(n){var t;n&&($(n).css("height","auto"),$(n).each(function(){t=$(this).height();t>heightTextBlock&&(heightTextBlock=t)}),$(n).css({"min-height":heightTextBlock,height:heightTextBlock}))}function startPage(){$(".image-shadow img",".widget-content .image-wrap").load(function(){resizeRefont($(this).parent().parent());vertAlign($(this).parent().parent())});var n=$(".blockText",".home-widget-list"),t=$(".widget-content",".borard-content-top .block-2c-i");serNewHeight(n);serNewHeight(t)}function changeFontSize(){var n=cookies.getCookie("fontSet")||"default";n==="large"?$("#wrap").addClass("largeFont"):n==="default"&&$("#wrap").removeClass("largeFont")}function RegisterNamespace(n){for(var i=n.split("."),r=window,t=0;t<i.length;t++)typeof r[i[t]]=="undefined"&&(r[i[t]]={}),r=r[i[t]]}(function(n){if(typeof define=="function"&&define.amd)define(n);else if(typeof exports=="object")module.exports=n();else{var i=window.Cookies,t=window.Cookies=n();t.noConflict=function(){return window.Cookies=i,t}}})(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,s;if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(s=new Date,s.setMilliseconds(s.getMilliseconds()+f.expires*864e5),f.expires=s);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],a=/(%[0-9A-Z]{2})+/g,c=0;c<l.length;c++){var v=l[c].split("="),h=v[0].replace(a,decodeURIComponent),e=v.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(e=i.read?i.read(e,h):i(e,h)||e.replace(a,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(y){}if(t===h){o=e;break}t||(o[h]=e)}catch(y){}}return o}return r.get=r.set=r,r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})}),function(n,t,i){function e(i,r,u){var f=t.createElement(i);return r&&(f.id=o+r),u&&(f.style.cssText=u),n(f)}function ni(){return i.innerHeight?i.innerHeight:n(i).height()}function vt(t,i){i!==Object(i)&&(i={});this.cache={};this.el=t;this.value=function(t){var r;return this.cache[t]===undefined&&(r=n(this.el).attr("data-cbox-"+t),r!==undefined?this.cache[t]=r:i[t]!==undefined?this.cache[t]=i[t]:ti[t]!==undefined&&(this.cache[t]=ti[t])),this.cache[t]};this.get=function(t){var i=this.value(t);return n.isFunction(i)?i.call(this.el,this):i}}function yt(n){var i=c.length,t=(v+n)%i;return t<0?i+t:t}function a(n,t){return Math.round((/%/.test(n)?(t==="x"?g.width():ni())/100:1)*parseInt(n,10))}function vi(n,t){return n.get("photo")||n.get("photoRegex").test(t)}function yi(n,t){return n.get("retinaUrl")&&i.devicePixelRatio>1?t.replace(n.get("photoRegex"),n.get("retinaSuffix")):t}function pi(n){"contains"in u[0]&&!u[0].contains(n.target)&&n.target!==d[0]&&(n.stopPropagation(),u.focus())}function ot(n){ot.str!==n&&(u.add(d).removeClass(ot.str).addClass(n),ot.str=n)}function di(t){v=0;t&&t!==!1&&t!=="nofollow"?(c=n("."+ft).filter(function(){var i=n.data(this,y),r=new vt(this,i);return r.get("rel")===t}),v=c.index(r.el),v===-1&&(c=c.add(r.el),v=c.length-1)):c=n(r.el)}function rt(i){n(t).trigger(i);w.triggerHandler(i)}function pt(i){var f;if(!at){if(f=n(i).data(y),r=new vt(i,f),di(r.get("rel")),!it){it=lt=!0;ot(r.get("className"));u.css({visibility:"hidden",display:"block",opacity:""});l=e(h,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden");p.css({width:"",height:""}).append(l);b=ui.height()+oi.height()+p.outerHeight(!0)-p.height();k=fi.width()+ei.width()+p.outerWidth(!0)-p.width();nt=l.outerHeight(!0);tt=l.outerWidth(!0);var o=a(r.get("initialWidth"),"x"),c=a(r.get("initialHeight"),"y"),v=r.get("maxWidth"),g=r.get("maxHeight");if(r.w=(v!==!1?Math.min(o,a(v,"x")):o)-tt-k,r.h=(g!==!1?Math.min(c,a(g,"y")):c)-nt-b,l.css({width:"",height:r.h}),s.position(),rt(tr),r.get("onOpen"),ci.add(si).hide(),u.focus(),r.get("trapFocus")&&t.addEventListener){t.addEventListener("focus",pi,!0);w.one(ri,function(){t.removeEventListener("focus",pi,!0)})}if(r.get("returnFocus"))w.one(ri,function(){n(r.el).focus()})}d.css({opacity:parseFloat(r.get("opacity"))||"",cursor:r.get("overlayClose")?"pointer":"",visibility:"visible"}).show();r.get("closeButton")?gt.html(r.get("close")).appendTo(p):gt.appendTo("<div/>");nr()}}function wi(){!u&&t.body&&(ai=!1,g=n(i),u=e(h).attr({id:y,"class":n.support.opacity===!1?o+"IE":"",role:"dialog",tabindex:"-1"}).hide(),d=e(h,"Overlay").hide(),dt=n([e(h,"LoadingOverlay")[0],e(h,"LoadingGraphic")[0]]),ut=e(h,"Wrapper"),p=e(h,"Content").append(si=e(h,"Title"),hi=e(h,"Current"),ct=n('<button type="button"/>').attr({id:o+"Previous"}),ht=n('<button type="button"/>').attr({id:o+"Next"}),et=e("button","Slideshow"),dt),gt=n('<button type="button"/>').attr({id:o+"Close"}),ut.append(e(h).append(e(h,"TopLeft"),ui=e(h,"TopCenter"),e(h,"TopRight")),e(h,!1,"clear:left").append(fi=e(h,"MiddleLeft"),p,ei=e(h,"MiddleRight")),e(h,!1,"clear:left").append(e(h,"BottomLeft"),oi=e(h,"BottomCenter"),e(h,"BottomRight"))).find("div div").css({float:"left"}),st=e(h,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),ci=ht.add(ct).add(hi).add(et),n(t.body).append(d,u.append(ut,st)))}function gi(){function i(n){n.which>1||n.shiftKey||n.altKey||n.metaKey||n.ctrlKey||(n.preventDefault(),pt(this))}if(u){if(!ai)if(ai=!0,ht.click(function(){s.next()}),ct.click(function(){s.prev()}),gt.click(function(){s.close()}),d.click(function(){r.get("overlayClose")&&s.close()}),n(t).bind("keydown."+o,function(n){var t=n.keyCode;it&&r.get("escKey")&&t===27&&(n.preventDefault(),s.close());it&&r.get("arrowKey")&&c[1]&&!n.altKey&&(t===37?(n.preventDefault(),ct.click()):t===39&&(n.preventDefault(),ht.click()))}),n.isFunction(n.fn.on))n(t).on("click."+o,"."+ft,i);else n("."+ft).live("click."+o,i);return!0}return!1}function nr(){var t,y,u=s.prep,p,d=++li,l;if(lt=!0,f=!1,rt(kt),rt(wt),r.get("onLoad"),r.h=r.get("height")?a(r.get("height"),"y")-nt-b:r.get("innerHeight")&&a(r.get("innerHeight"),"y"),r.w=r.get("width")?a(r.get("width"),"x")-tt-k:r.get("innerWidth")&&a(r.get("innerWidth"),"x"),r.mw=r.w,r.mh=r.h,r.get("maxWidth")&&(r.mw=a(r.get("maxWidth"),"x")-tt-k,r.mw=r.w&&r.w<r.mw?r.w:r.mw),r.get("maxHeight")&&(r.mh=a(r.get("maxHeight"),"y")-nt-b,r.mh=r.h&&r.h<r.mh?r.h:r.mh),t=r.get("href"),bi=setTimeout(function(){dt.show()},100),r.get("inline")){l=n(t);p=n("<div>").hide().insertBefore(l);w.one(kt,function(){p.replaceWith(l)});u(l)}else if(r.get("iframe"))u(" ");else if(r.get("html"))u(r.get("html"));else if(vi(r,t)){t=yi(r,t);f=new Image;n(f).addClass(o+"Photo").bind("error",function(){u(e(h,"Error").html(r.get("imgError")))}).one("load",function(){d===li&&setTimeout(function(){var t;n.each(["alt","longdesc","aria-describedby"],function(t,i){var u=n(r.el).attr(i)||n(r.el).attr("data-"+i);u&&f.setAttribute(i,u)});r.get("retinaImage")&&i.devicePixelRatio>1&&(f.height=f.height/i.devicePixelRatio,f.width=f.width/i.devicePixelRatio);r.get("scalePhotos")&&(y=function(){f.height-=f.height*t;f.width-=f.width*t},r.mw&&f.width>r.mw&&(t=(f.width-r.mw)/f.width,y()),r.mh&&f.height>r.mh&&(t=(f.height-r.mh)/f.height,y()));r.h&&(f.style.marginTop=Math.max(r.mh-f.height,0)/2+"px");c[1]&&(r.get("loop")||c[v+1])&&(f.style.cursor="pointer",f.onclick=function(){s.next()});f.style.width=f.width+"px";f.style.height=f.height+"px";u(f)},1)});f.src=t}else t&&st.load(t,r.get("data"),function(t,i){d===li&&u(i==="error"?e(h,"Error").html(r.get("xhrError")):n(this).contents())})}var ti={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return n(this).attr("href")},title:function(){return this.title}},y="colorbox",o="cbox",ft=o+"Element",tr=o+"_open",wt=o+"_load",bt=o+"_complete",ii=o+"_cleanup",ri=o+"_closed",kt=o+"_purge",d,u,ut,p,ui,fi,ei,oi,c,g,l,st,dt,si,hi,et,ht,ct,gt,ci,w=n("<a/>"),r,b,k,nt,tt,v,f,it,lt,at,bi,s,h="div",li=0,ki={},ai,ir=function(){function n(){clearTimeout(y)}function f(){(r.get("loop")||c[v+1])&&(n(),y=setTimeout(s.next,r.get("slideshowSpeed")))}function l(){et.html(r.get("slideshowStop")).unbind(i).one(i,a);w.bind(bt,f).bind(wt,n);u.removeClass(t+"off").addClass(t+"on")}function a(){n();w.unbind(bt,f).unbind(wt,n);et.html(r.get("slideshowStart")).unbind(i).one(i,function(){s.next();l()});u.removeClass(t+"on").addClass(t+"off")}function e(){h=!1;et.hide();n();w.unbind(bt,f).unbind(wt,n);u.removeClass(t+"off "+t+"on")}var h,t=o+"Slideshow_",i="click."+o,y;return function(){if(h)r.get("slideshow")||(w.unbind(ii,e),e());else if(r.get("slideshow")&&c[1]){h=!0;w.one(ii,e);r.get("slideshowAuto")?l():a();et.show()}}}();n[y]||(n(wi),s=n.fn[y]=n[y]=function(t,i){var u,r=this;if(t=t||{},n.isFunction(r))r=n("<a/>"),t.open=!0;else if(!r[0])return r;return r[0]?(wi(),gi()&&(i&&(t.onComplete=i),r.each(function(){var i=n.data(this,y)||{};n.data(this,y,n.extend(i,t))}).addClass(ft),u=new vt(r[0],t),u.get("open")&&pt(r[0])),r):r},s.position=function(t,i){function w(){ui[0].style.width=oi[0].style.width=p[0].style.width=parseInt(u[0].style.width,10)-k+"px";p[0].style.height=fi[0].style.height=ei[0].style.height=parseInt(u[0].style.height,10)-b+"px"}var f,h=0,c=0,e=u.offset(),l,v,y;g.unbind("resize."+o);u.css({top:-9e4,left:-9e4});l=g.scrollTop();v=g.scrollLeft();r.get("fixed")?(e.top-=l,e.left-=v,u.css({position:"fixed"})):(h=l,c=v,u.css({position:"absolute"}));c+=r.get("right")!==!1?Math.max(g.width()-r.w-tt-k-a(r.get("right"),"x"),0):r.get("left")!==!1?a(r.get("left"),"x"):Math.round(Math.max(g.width()-r.w-tt-k,0)/2);h+=r.get("bottom")!==!1?Math.max(ni()-r.h-nt-b-a(r.get("bottom"),"y"),0):r.get("top")!==!1?a(r.get("top"),"y"):Math.round(Math.max(ni()-r.h-nt-b,0)/2);u.css({top:e.top,left:e.left,visibility:"visible"});ut[0].style.width=ut[0].style.height="9999px";f={width:r.w+tt+k,height:r.h+nt+b,top:h,left:c};t&&(y=0,n.each(f,function(n){if(f[n]!==ki[n]){y=t;return}}),t=y);ki=f;t||u.css(f);u.dequeue().animate(f,{duration:t||0,complete:function(){w();lt=!1;ut[0].style.width=r.w+tt+k+"px";ut[0].style.height=r.h+nt+b+"px";r.get("reposition")&&setTimeout(function(){g.bind("resize."+o,s.position)},1);i&&i()},step:w})},s.resize=function(n){var t;it&&(n=n||{},n.width&&(r.w=a(n.width,"x")-tt-k),n.innerWidth&&(r.w=a(n.innerWidth,"x")),l.css({width:r.w}),n.height&&(r.h=a(n.height,"y")-nt-b),n.innerHeight&&(r.h=a(n.innerHeight,"y")),n.innerHeight||n.height||(t=l.scrollTop(),l.css({height:"auto"}),r.h=l.height()),l.css({height:r.h}),t&&l.scrollTop(t),s.position(r.get("transition")==="none"?0:r.get("speed")))},s.prep=function(i){function k(){return r.w=r.w||l.width(),r.w=r.mw&&r.mw<r.w?r.mw:r.w,r.w}function d(){return r.h=r.h||l.height(),r.h=r.mh&&r.mh<r.h?r.mh:r.h,r.h}if(it){var a,b=r.get("transition")==="none"?0:r.get("speed");l.remove();l=e(h,"LoadedContent").append(i);l.hide().appendTo(st.show()).css({width:k(),overflow:r.get("scrolling")?"auto":"hidden"}).css({height:d()}).prependTo(p);st.hide();n(f).css({float:"none"});ot(r.get("className"));a=function(){function s(){n.support.opacity===!1&&u[0].style.removeAttribute("filter")}var f=c.length,i,e;if(it){if(e=function(){clearTimeout(bi);dt.hide();rt(bt);r.get("onComplete")},si.html(r.get("title")).show(),l.show(),f>1?(typeof r.get("current")=="string"&&hi.html(r.get("current").replace("{current}",v+1).replace("{total}",f)).show(),ht[r.get("loop")||v<f-1?"show":"hide"]().html(r.get("next")),ct[r.get("loop")||v?"show":"hide"]().html(r.get("previous")),ir(),r.get("preloading")&&n.each([yt(-1),yt(1)],function(){var u,f=c[this],r=new vt(f,n.data(f,y)),i=r.get("href");i&&vi(r,i)&&(i=yi(r,i),u=t.createElement("img"),u.src=i)})):ci.hide(),r.get("iframe")){i=t.createElement("iframe");"frameBorder"in i&&(i.frameBorder=0);"allowTransparency"in i&&(i.allowTransparency="true");r.get("scrolling")||(i.scrolling="no");n(i).attr({src:r.get("href"),name:(new Date).getTime(),"class":o+"Iframe",allowFullScreen:!0}).one("load",e).appendTo(l);w.one(kt,function(){i.src="//about:blank"});r.get("fastIframe")&&n(i).trigger("load")}else e();r.get("transition")==="fade"?u.fadeTo(b,1,s):s()}};r.get("transition")==="fade"?u.fadeTo(b,0,function(){s.position(0,a)}):s.position(b,a)}},s.next=function(){!lt&&c[1]&&(r.get("loop")||c[v+1])&&(v=yt(1),pt(c[v]))},s.prev=function(){!lt&&c[1]&&(r.get("loop")||v)&&(v=yt(-1),pt(c[v]))},s.close=function(){it&&!at&&(at=!0,it=!1,rt(ii),r.get("onCleanup"),g.unbind("."+o),d.fadeTo(r.get("fadeOut")||0,0),u.stop().fadeTo(r.get("fadeOut")||0,0,function(){u.hide();d.hide();rt(kt);l.remove();setTimeout(function(){at=!1;rt(ri);r.get("onClosed")},1)}))},s.remove=function(){u&&(u.stop(),n[y].close(),u.stop(!1,!0).remove(),d.remove(),at=!1,u=null,n("."+ft).removeData(y).removeClass(ft),n(t).unbind("click."+o).unbind("keydown."+o))},s.element=function(){return n(r.el)},s.settings=ti)}(jQuery,document,window),function(n,t){"use strict";function r(t){n.fn.cycle.debug&&i(t)}function i(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function u(t,i,r){var u=n(t).data("cycle.opts"),f;u&&(f=!!t.cyclePause,f&&u.paused?u.paused(t,u,i,r):!f&&u.resumed&&u.resumed(t,u,i,r))}function c(r,e,o){function c(t,r,u){if(!t&&r===!0){var e=n(u).data("cycle.opts");if(!e)return i("options not found, can not resume"),!1;u.cycleTimeout&&(clearTimeout(u.cycleTimeout),u.cycleTimeout=0);f(e.elements,e,1,!e.backwards)}}var s,h;if(r.cycleStop===t&&(r.cycleStop=0),(e===t||e===null)&&(e={}),e.constructor==String){switch(e){case"destroy":case"stop":return(s=n(r).data("cycle.opts"),!s)?!1:(r.cycleStop++,r.cycleTimeout&&clearTimeout(r.cycleTimeout),r.cycleTimeout=0,s.elements&&n(s.elements).stop(),n(r).removeData("cycle.opts"),e=="destroy"&&l(r,s),!1);case"toggle":return r.cyclePause=r.cyclePause===1?0:1,c(r.cyclePause,o,r),u(r),!1;case"pause":return r.cyclePause=1,u(r),!1;case"resume":return r.cyclePause=0,c(!1,o,r),u(r),!1;case"prev":case"next":return(s=n(r).data("cycle.opts"),!s)?(i('options not found, "prev/next" ignored'),!1):(n.fn.cycle[e](s),!1);default:e={fx:e}}return e}return e.constructor==Number?(h=e,e=n(r).data("cycle.opts"),!e)?(i("options not found, can not advance slide"),!1):h<0||h>=e.elements.length?(i("invalid slide index: "+h),!1):(e.nextSlide=h,r.cycleTimeout&&(clearTimeout(r.cycleTimeout),r.cycleTimeout=0),typeof o=="string"&&(e.oneTimeFx=o),f(e.elements,e,1,h>=e.currSlide),!1):e}function o(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function l(t,i){i.next&&n(i.next).unbind(i.prevNextEvent);i.prev&&n(i.prev).unbind(i.prevNextEvent);(i.pager||i.pagerAnchorBuilder)&&n.each(i.pagerAnchors||[],function(){this.unbind().remove()});i.pagerAnchors=null;n(t).unbind("mouseenter.cycle mouseleave.cycle");i.destroy&&i.destroy(i)}function a(r,s,c,l,a){var at,b=n.extend({},n.fn.cycle.defaults,l||{},n.metadata?r.metadata():n.meta?r.data():{}),vt=n.isFunction(r.data)?r.data(b.metaAttr):null,rt,ut,tt,k,yt,nt,d,ft,ht,ct,pt,lt,g;if(vt&&(b=n.extend(b,vt)),b.autostop&&(b.countdown=b.autostopCount||c.length),rt=r[0],r.data("cycle.opts",b),b.$cont=r,b.stopCount=rt.cycleStop,b.elements=c,b.before=b.before?[b.before]:[],b.after=b.after?[b.after]:[],!n.support.opacity&&b.cleartype&&b.after.push(function(){o(this,b)}),b.continuous&&b.after.push(function(){f(c,b,0,!b.backwards)}),v(b),n.support.opacity||!b.cleartype||b.cleartypeNoBg||h(s),r.css("position")=="static"&&r.css("position","relative"),b.width&&r.width(b.width),b.height&&b.height!="auto"&&r.height(b.height),b.startingSlide!==t?(b.startingSlide=parseInt(b.startingSlide,10),b.startingSlide>=c.length||b.startSlide<0?b.startingSlide=0:at=!0):b.startingSlide=b.backwards?c.length-1:0,b.random){for(b.randomMap=[],ut=0;ut<c.length;ut++)b.randomMap.push(ut);if(b.randomMap.sort(function(){return Math.random()-.5}),at)for(tt=0;tt<c.length;tt++)b.startingSlide==b.randomMap[tt]&&(b.randomIndex=tt);else b.randomIndex=1,b.startingSlide=b.randomMap[1]}else b.startingSlide>=c.length&&(b.startingSlide=0);if(b.currSlide=b.startingSlide||0,k=b.startingSlide,s.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=b.backwards?k?t<=k?c.length+(t-k):k-t:c.length-t:k?t>=k?c.length-(t-k):k-t:c.length-t;n(this).css("z-index",i)}),n(c[k]).css("opacity",1).show(),o(c[k],b),b.fit&&(b.aspect?s.each(function(){var t=n(this),i=b.aspect===!0?t.width()/t.height():b.aspect;b.width&&t.width()!=b.width&&(t.width(b.width),t.height(b.width/i));b.height&&t.height()<b.height&&(t.height(b.height),t.width(b.height*i))}):(b.width&&s.width(b.width),b.height&&b.height!="auto"&&s.height(b.height))),b.center&&(!b.fit||b.aspect)&&s.each(function(){var t=n(this);t.css({"margin-left":b.width?(b.width-t.width())/2+"px":0,"margin-top":b.height?(b.height-t.height())/2+"px":0})}),!b.center||b.fit||b.slideResize||s.each(function(){var t=n(this);t.css({"margin-left":b.width?(b.width-t.width())/2+"px":0,"margin-top":b.height?(b.height-t.height())/2+"px":0})}),yt=(b.containerResize||b.containerResizeHeight)&&!r.innerHeight(),yt){for(nt=0,d=0,ft=0;ft<c.length;ft++){var it=n(c[ft]),et=it[0],ot=it.outerWidth(),st=it.outerHeight();ot||(ot=et.offsetWidth||et.width||it.attr("width"));st||(st=et.offsetHeight||et.height||it.attr("height"));nt=ot>nt?ot:nt;d=st>d?st:d}b.containerResize&&nt>0&&d>0&&r.css({width:nt+"px",height:d+"px"});b.containerResizeHeight&&d>0&&r.css({height:d+"px"})}if((ht=!1,b.pause&&r.bind("mouseenter.cycle",function(){ht=!0;this.cyclePause++;u(rt,!0)}).bind("mouseleave.cycle",function(){ht&&this.cyclePause--;u(rt,!0)}),y(b)===!1)||(ct=!1,l.requeueAttempts=l.requeueAttempts||0,s.each(function(){var t=n(this),r;if(this.cycleH=b.fit&&b.height?b.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=b.fit&&b.width?b.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")&&(r=this.cycleH===0&&this.cycleW===0&&!this.complete,r)){if(a.s&&b.requeueOnImageNotLoaded&&++l.requeueAttempts<100)return i(l.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(a.s,a.c).cycle(l)},b.requeueTimeout),ct=!0,!1;i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return!0}),ct))return!1;if(b.cssBefore=b.cssBefore||{},b.cssAfter=b.cssAfter||{},b.cssFirst=b.cssFirst||{},b.animIn=b.animIn||{},b.animOut=b.animOut||{},s.not(":eq("+k+")").css(b.cssBefore),n(s[k]).css(b.cssFirst),b.timeout)for(b.timeout=parseInt(b.timeout,10),b.speed.constructor==String&&(b.speed=n.fx.speeds[b.speed]||parseInt(b.speed,10)),b.sync||(b.speed=b.speed/2),pt=b.fx=="none"?0:b.fx=="shuffle"?500:250;b.timeout-b.speed<pt;)b.timeout+=b.speed;if(b.easing&&(b.easeIn=b.easeOut=b.easing),b.speedIn||(b.speedIn=b.speed),b.speedOut||(b.speedOut=b.speed),b.slideCount=c.length,b.currSlide=b.lastSlide=k,b.random?(++b.randomIndex==c.length&&(b.randomIndex=0),b.nextSlide=b.randomMap[b.randomIndex]):b.nextSlide=b.backwards?b.startingSlide===0?c.length-1:b.startingSlide-1:b.startingSlide>=c.length-1?0:b.startingSlide+1,!b.multiFx)if(lt=n.fn.cycle.transitions[b.fx],n.isFunction(lt))lt(r,s,b);else if(b.fx!="custom"&&!b.multiFx)return i("unknown transition: "+b.fx,"; slideshow terminating"),!1;return g=s[k],b.skipInitializationCallbacks||(b.before.length&&b.before[0].apply(g,[g,g,b,!0]),b.after.length&&b.after[0].apply(g,[g,g,b,!0])),b.next&&n(b.next).bind(b.prevNextEvent,function(){return e(b,1)}),b.prev&&n(b.prev).bind(b.prevNextEvent,function(){return e(b,0)}),(b.pager||b.pagerAnchorBuilder)&&w(c,b),p(b,c),b}function v(t){t.original={before:[],after:[]};t.original.cssBefore=n.extend({},t.cssBefore);t.original.cssAfter=n.extend({},t.cssAfter);t.original.animIn=n.extend({},t.animIn);t.original.animOut=n.extend({},t.animOut);n.each(t.before,function(){t.original.before.push(this)});n.each(t.after,function(){t.original.after.push(this)})}function y(t){var u,e,f=n.fn.cycle.transitions,s,o,h,c;if(t.fx.indexOf(",")>0){for(t.multiFx=!0,t.fxs=t.fx.replace(/\s*/g,"").split(","),u=0;u<t.fxs.length;u++)s=t.fxs[u],e=f[s],e&&f.hasOwnProperty(s)&&n.isFunction(e)||(i("discarding unknown transition: ",s),t.fxs.splice(u,1),u--);if(!t.fxs.length)return i("No valid transitions named; slideshow terminating."),!1}else if(t.fx=="all"){t.multiFx=!0;t.fxs=[];for(o in f)f.hasOwnProperty(o)&&(e=f[o],f.hasOwnProperty(o)&&n.isFunction(e)&&t.fxs.push(o))}if(t.multiFx&&t.randomizeEffects){for(h=Math.floor(Math.random()*20)+30,u=0;u<h;u++)c=Math.floor(Math.random()*t.fxs.length),t.fxs.push(t.fxs.splice(c,1)[0]);r("randomized fx sequence: ",t.fxs)}return!0}function p(t,i){t.addSlide=function(r,u){var f=n(r),e=f[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](e),t.els&&t.els[u?"unshift":"push"](e),t.slideCount=i.length,t.random&&(t.randomMap.push(t.slideCount-1),t.randomMap.sort(function(){return Math.random()-.5})),f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||h(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&f.height(t.height),e.cycleH=t.fit&&t.height?t.height:f.height(),e.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,e,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function f(i,u,e,o){function w(){var n=0,t=u.timeout;u.timeout&&!u.continuous?(n=s(i[u.currSlide],i[u.nextSlide],u,o),u.fx=="shuffle"&&(n-=u.speedOut)):u.continuous&&l.cyclePause&&(n=10);n>0&&(l.cycleTimeout=setTimeout(function(){f(i,u,0,!u.backwards)},n))}var l=u.$cont[0],c=i[u.currSlide],h=i[u.nextSlide],y,v,p,a;if(e&&u.busy&&u.manualTrump&&(r("manualTrump in go(), stopping active transition"),n(i).stop(!0,!0),u.busy=0,clearTimeout(l.cycleTimeout)),u.busy){r("transition active, ignoring new tx request");return}if(l.cycleStop==u.stopCount&&(l.cycleTimeout!==0||e)){if(!e&&!l.cyclePause&&!u.bounce&&(u.autostop&&--u.countdown<=0||u.nowrap&&!u.random&&u.nextSlide<u.currSlide)){u.end&&u.end(u);return}y=!1;(e||!l.cyclePause)&&u.nextSlide!=u.currSlide?(y=!0,v=u.fx,c.cycleH=c.cycleH||n(c).height(),c.cycleW=c.cycleW||n(c).width(),h.cycleH=h.cycleH||n(h).height(),h.cycleW=h.cycleW||n(h).width(),u.multiFx&&(o&&(u.lastFx===t||++u.lastFx>=u.fxs.length)?u.lastFx=0:!o&&(u.lastFx===t||--u.lastFx<0)&&(u.lastFx=u.fxs.length-1),v=u.fxs[u.lastFx]),u.oneTimeFx&&(v=u.oneTimeFx,u.oneTimeFx=null),n.fn.cycle.resetState(u,v),u.before.length&&n.each(u.before,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,o])}),p=function(){u.busy=0;n.each(u.after,function(n,t){l.cycleStop==u.stopCount&&t.apply(h,[c,h,u,o])});l.cycleStop||w()},r("tx firing("+v+"); currSlide: "+u.currSlide+"; nextSlide: "+u.nextSlide),u.busy=1,u.fxFn?u.fxFn(c,h,u,p,o,e&&u.fastOnEvent):n.isFunction(n.fn.cycle[u.fx])?n.fn.cycle[u.fx](c,h,u,p,o,e&&u.fastOnEvent):n.fn.cycle.custom(c,h,u,p,o,e&&u.fastOnEvent)):w();(y||u.nextSlide==u.currSlide)&&(u.lastSlide=u.currSlide,u.random?(u.currSlide=u.nextSlide,++u.randomIndex==i.length&&(u.randomIndex=0,u.randomMap.sort(function(){return Math.random()-.5})),u.nextSlide=u.randomMap[u.randomIndex],u.nextSlide==u.currSlide&&(u.nextSlide=u.currSlide==u.slideCount-1?0:u.currSlide+1)):u.backwards?(a=u.nextSlide-1<0,a&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=1,u.currSlide=0):(u.nextSlide=a?i.length-1:u.nextSlide-1,u.currSlide=a?0:u.nextSlide+1)):(a=u.nextSlide+1==i.length,a&&u.bounce?(u.backwards=!u.backwards,u.nextSlide=i.length-2,u.currSlide=i.length-1):(u.nextSlide=a?0:u.nextSlide+1,u.currSlide=a?i.length-1:u.nextSlide-1)));y&&u.pager&&u.updateActivePagerLink(u.pager,u.currSlide,u.activePagerClass)}}function s(n,t,i,u){if(i.timeoutFn){for(var f=i.timeoutFn.call(n,n,t,i,u);i.fx!="none"&&f-i.speed<250;)f+=i.speed;if(r("calculated timeout: "+f+"; speed: "+i.speed),f!==!1)return f}return i.timeout}function e(t,i){var u=i?1:-1,r=t.elements,o=t.$cont[0],s=o.cycleTimeout,e;if(s&&(clearTimeout(s),o.cycleTimeout=0),t.random&&u<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=r.length-2:t.randomIndex==-1&&(t.randomIndex=r.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+u,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=r.length-1}else if(t.nextSlide>=r.length){if(t.nowrap)return!1;t.nextSlide=0}return e=t.onPrevNextEvent||t.prevNextClick,n.isFunction(e)&&e(u>0,t.nextSlide,r[t.nextSlide]),f(r,t,1,i),!1}function w(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)});i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function h(t){function i(n){return n=parseInt(n,10).toString(16),n.length<2?"0"+n:n}function u(t){for(var r,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(r=n.css(t,"background-color"),r&&r.indexOf("rgb")>=0)return u=r.match(/\d+/g),"#"+i(u[0])+i(u[1])+i(u[2]);if(r&&r!="transparent")return r}return"#ffffff"}r("applying clearType background-color hack");t.each(function(){n(this).css("background-color",u(this))})}var b="2.9999.81";n.expr[":"].paused=function(n){return n.cyclePause};n.fn.cycle=function(t,u){var e={s:this.selector,c:this.context};return this.length===0&&t!="stop"?!n.isReady&&e.s?(i("DOM not ready, queuing slideshow"),n(function(){n(e.s,e.c).cycle(t,u)}),this):(i("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var h=c(this,t,u),o,l;if(h!==!1){h.updateActivePagerLink=h.updateActivePagerLink||n.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;this.cycleStop=0;var y=n(this),p=h.slideExpr?n(h.slideExpr,this):y.children(),v=p.get();if(v.length<2){i("terminating; too few slides: "+v.length);return}(o=a(y,p,v,h,e),o!==!1)&&(l=o.continuous?10:s(v[o.currSlide],v[o.nextSlide],o,!o.backwards),l&&(l+=o.delay||0,l<10&&(l=10),r("first timeout: "+l),this.cycleTimeout=setTimeout(function(){f(v,o,0,!h.backwards)},l)))}})};n.fn.cycle.resetState=function(t,i){i=i||t.fx;t.before=[];t.after=[];t.cssBefore=n.extend({},t.original.cssBefore);t.cssAfter=n.extend({},t.original.cssAfter);t.animIn=n.extend({},t.original.animIn);t.animOut=n.extend({},t.original.animOut);t.fxFn=null;n.each(t.original.before,function(){t.before.push(this)});n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)};n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).children().removeClass(r).eq(i).addClass(r)})};n.fn.cycle.next=function(n){e(n,1)};n.fn.cycle.prev=function(n){e(n,0)};n.fn.cycle.createPagerAnchor=function(t,i,e,o,s){var c,h,a,v,l,y;(n.isFunction(s.pagerAnchorBuilder)?(c=s.pagerAnchorBuilder(t,i),r("pagerAnchorBuilder("+t+", el) returned: "+c)):c='<a href="#">'+(t+1)+"<\/a>",c)&&(h=n(c),h.parents("body").length===0&&(a=[],e.length>1?(e.each(function(){var t=h.clone(!0);n(this).append(t);a.push(t[0])}),h=n(a)):h.appendTo(e)),s.pagerAnchors=s.pagerAnchors||[],s.pagerAnchors.push(h),v=function(i){var r,u,e;i.preventDefault();s.nextSlide=t;r=s.$cont[0];u=r.cycleTimeout;u&&(clearTimeout(u),r.cycleTimeout=0);e=s.onPagerEvent||s.pagerClick;n.isFunction(e)&&e(s.nextSlide,o[s.nextSlide]);f(o,s,1,s.currSlide<t)},/mouseenter|mouseover/i.test(s.pagerEvent)?h.hover(v,function(){}):h.bind(s.pagerEvent,v),/^click/.test(s.pagerEvent)||s.allowPagerClickBubble||h.bind("click.cycle",function(){return!1}),l=s.$cont[0],y=!1,s.pauseOnPagerHover&&h.hover(function(){y=!0;l.cyclePause++;u(l,!0,!0)},function(){y&&l.cyclePause--;u(l,!0,!0)}))};n.fn.cycle.hopsFromLast=function(n,t){var i=n.lastSlide,r=n.currSlide;return t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r};n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide();typeof r.cssBefore.opacity=="undefined"&&(r.cssBefore.opacity=1);r.cssBefore.display="block";r.slideResize&&u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW);r.slideResize&&f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH);r.cssAfter=r.cssAfter||{};r.cssAfter.display="none";n(t).css("zIndex",r.slideCount+(e===!0?1:0));n(i).css("zIndex",r.slideCount+(e===!0?0:1))};n.fn.cycle.custom=function(t,i,r,u,f,e){var s=n(t),h=n(i),c=r.speedIn,l=r.speedOut,a=r.easeIn,v=r.easeOut,o;h.css(r.cssBefore);e&&(c=l=typeof e=="number"?e:1,a=v=null);o=function(){h.animate(r.animIn,c,a,function(){u()})};s.animate(r.animOut,l,v,function(){s.css(r.cssAfter);r.sync||o()});r.sync&&o()};n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0);r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.cssBefore.opacity=0});r.animIn={opacity:1};r.animOut={opacity:0};r.cssBefore={top:0,left:0}}};n.fn.cycle.ver=function(){return b};n.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:t,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(n){"use strict";n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show();n(t).hide();u()}};n.fn.cycle.transitions.fadeout=function(t,i,r){i.not(":eq("+r.currSlide+")").css({display:"block",opacity:1});r.before.push(function(t,i,r,u,f,e){n(t).css("zIndex",r.slideCount+(e!==!0?1:0));n(i).css("zIndex",r.slideCount+(e!==!0?0:1))});r.animIn.opacity=1;r.animOut.opacity=0;r.cssBefore.opacity=1;r.cssBefore.display="block";r.cssAfter.zIndex=0};n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore.top=u;r.cssBefore.left=0;r.cssFirst.top=0;r.animIn.top=0;r.animOut.top=-u};n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst.top=0;r.cssBefore.top=-u;r.cssBefore.left=0;r.animIn.top=0;r.animOut.top=u};n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0;r.cssBefore.left=u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=0-u};n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden");r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0;r.cssBefore.left=-u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=u};n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width();r.before.push(function(t,i,r,u){r.rev&&(u=!u);n.fn.cycle.commonReset(t,i,r);r.cssBefore.left=u?i.cycleW-1:1-i.cycleW;r.animOut.left=u?-t.cycleW:t.cycleW});r.cssFirst.left=0;r.cssBefore.top=0;r.animIn.left=0;r.animOut.top=0};n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden");r.before.push(function(t,i,r,u){r.rev&&(u=!u);n.fn.cycle.commonReset(t,i,r);r.cssBefore.top=u?1-i.cycleH:i.cycleH-1;r.animOut.top=u?t.cycleH:-t.cycleH});r.cssFirst.top=0;r.cssBefore.left=0;r.animIn.top=0;r.animOut.left=0};n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW});r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.width=0;r.animIn.width="show";r.animOut.width=0};n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide();n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH});r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.height=0;r.animIn.height="show";r.animOut.height=0};n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e,o;r.rev&&(f=!f);e=f?n(t):n(i);n(i).css(r.cssBefore);o=r.slideCount;e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var l=n.fn.cycle.hopsFromLast(r,f),i,s,h,c=0;c<l;c++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,s=r.els.length;i<s;i++)n(r.els[i]).css("z-index",s-i+o);else h=n(t).css("z-index"),e.css("z-index",parseInt(h,10)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide();u&&u()})})};n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0})};n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=i.cycleH;r.animIn.height=i.cycleH;r.animOut.width=i.cycleW});r.cssFirst.top=0;r.cssBefore.left=0;r.cssBefore.height=0;r.animIn.top=0;r.animOut.height=0};n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssFirst.top=0;r.cssBefore.left=0;r.cssBefore.top=0;r.cssBefore.height=0;r.animOut.height=0};n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=i.cycleW;r.animIn.width=i.cycleW});r.cssBefore.top=0;r.cssBefore.width=0;r.animIn.left=0;r.animOut.width=0};n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});n.extend(r.cssBefore,{top:0,left:0,width:0});r.animIn.left=0;r.animOut.width=0};n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0);r.cssBefore.top=i.cycleH/2;r.cssBefore.left=i.cycleW/2;n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH});n.extend(r.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})});r.cssFirst.top=0;r.cssFirst.left=0;r.cssBefore.width=0;r.cssBefore.height=0};n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1);r.cssBefore.left=i.cycleW/2;r.cssBefore.top=i.cycleH/2;n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH})});r.cssBefore.width=0;r.cssBefore.height=0;r.animOut.opacity=0};n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.width=i.cycleW;r.animOut.left=t.cycleW});r.cssBefore.left=u;r.cssBefore.top=0;r.animIn.left=0;r.animOut.left=u};n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore.top=u;r.cssBefore.left=0;r.animIn.top=0;r.animOut.top=u};n.fn.cycle.transitions.blindZ=function(t,i,r){var u=t.css("overflow","hidden").height(),f=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.animIn.height=i.cycleH;r.animOut.top=t.cycleH});r.cssBefore.top=u;r.cssBefore.left=f;r.animIn.top=0;r.animIn.left=0;r.animOut.top=u;r.animOut.left=f};n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0);r.cssBefore.left=this.cycleW/2;r.animIn.left=0;r.animIn.width=this.cycleW;r.animOut.left=0});r.cssBefore.top=0;r.cssBefore.width=0};n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1);r.cssBefore.top=this.cycleH/2;r.animIn.top=0;r.animIn.height=this.cycleH;r.animOut.top=0});r.cssBefore.height=0;r.cssBefore.left=0};n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0);r.cssBefore.left=i.cycleW/2;r.animIn.left=0;r.animIn.width=this.cycleW;r.animOut.left=t.cycleW/2;r.animOut.width=0});r.cssBefore.top=0;r.cssBefore.width=0};n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0);r.cssBefore.top=i.cycleH/2;r.animIn.top=0;r.animIn.height=i.cycleH;r.animOut.top=t.cycleH/2;r.animOut.height=0});r.cssBefore.height=0;r.cssBefore.left=0};n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r);r.cssAfter.display="";u=="right"?r.cssBefore.left=-f:u=="up"?r.cssBefore.top=e:u=="down"?r.cssBefore.top=-e:r.cssBefore.left=f});r.animIn.left=0;r.animIn.top=0;r.cssBefore.top=0;r.cssBefore.left=0};n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",f=t.css("overflow","hidden").width(),e=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);u=="right"?r.animOut.left=f:u=="up"?r.animOut.top=-e:u=="down"?r.animOut.top=e:r.animOut.left=-f});r.animIn.left=0;r.animIn.top=0;r.cssBefore.top=0;r.cssBefore.left=0};n.fn.cycle.transitions.toss=function(t,i,r){var u=t.css("overflow","visible").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0);r.animOut.left||r.animOut.top?r.animOut.opacity=0:n.extend(r.animOut,{left:u*2,top:-f/2,opacity:0})});r.cssBefore.left=0;r.cssBefore.top=0;r.animIn.left=0};n.fn.cycle.transitions.wipe=function(t,i,r){var u=t.css("overflow","hidden").width(),f=t.height(),e,s,h;r.cssBefore=r.cssBefore||{};r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+f+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+u+"px "+f+"px "+u+"px)":/t2b/.test(r.clip)?e="rect(0px "+u+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+f+"px "+u+"px "+f+"px 0px)":/zoom/.test(r.clip)&&(s=parseInt(f/2,10),h=parseInt(u/2,10),e="rect("+s+"px "+h+"px "+s+"px "+h+"px)"));r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),c=parseInt(o[0],10),l=parseInt(o[1],10),a=parseInt(o[2],10),v=parseInt(o[3],10);r.before.push(function(t,i,r){var s,h,e,o;t!=i&&(s=n(t),h=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13,10)-1,function y(){var n=c?c-parseInt(e*(c/o),10):0,t=v?v-parseInt(e*(v/o),10):0,i=a<f?a+parseInt(e*((f-a)/o||1),10):f,r=l<u?l+parseInt(e*((u-l)/o||1),10):u;h.css({clip:"rect("+n+"px "+r+"px "+i+"px "+t+"px)"});e++<=o?setTimeout(y,13):s.css("display","none")}())});n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0});r.animIn={left:0};r.animOut={left:0}}}(jQuery),function(n){n.jCarouselLite={version:"1.1"};n.fn.jCarouselLite=function(t){return t=n.extend({},n.fn.jCarouselLite.options,t||{}),this.each(function(){function o(n){return l||(clearTimeout(d),i=n,t.beforeStart&&t.beforeStart.call(this,w()),t.circular?rt(n):ut(n),et({start:function(){l=!0},done:function(){t.afterEnd&&t.afterEnd.call(this,w());t.auto&&p();l=!1}}),t.circular||ft()),!1}function g(){if(l=!1,a=t.vertical?"top":"left",y=t.vertical?"height":"width",u=s.find(">ul"),v=u.find(">li"),h=v.size(),r=h<t.visible?h:t.visible,t.circular){var e=v.slice(h-r).clone(),o=v.slice(0,r).clone();u.prepend(e).append(o);t.start+=r}f=n("li",u);c=f.size();i=t.start}function nt(){s.css("visibility","visible");f.css({overflow:"hidden",float:t.vertical?"none":"left"});u.css({margin:"0",padding:"0",position:"relative","list-style":"none","z-index":"1"});s.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});!t.circular&&t.btnPrev&&t.start==0&&n(t.btnPrev).addClass("disabled")}function tt(){e=t.vertical?f.outerHeight(!0):f.outerWidth(!0);b=e*c;k=e*r;f.css({width:f.width(),height:f.height()});u.css(y,b+"px").css(a,-(i*e));s.css(y,k+"px")}function it(){t.btnPrev&&n(t.btnPrev).click(function(){return o(i-t.scroll)});t.btnNext&&n(t.btnNext).click(function(){return o(i+t.scroll)});t.btnGo&&n.each(t.btnGo,function(i,u){n(u).click(function(){return o(t.circular?r+i:i)})});t.mouseWheel&&s.mousewheel&&s.mousewheel(function(n,r){return r>0?o(i-t.scroll):o(i+t.scroll)});t.auto&&p()}function p(){d=setTimeout(function(){o(i+t.scroll)},t.auto)}function w(){return f.slice(i).slice(0,r)}function rt(n){var f;n<=t.start-r-1?(f=n+h+t.scroll,u.css(a,-(f*e)+"px"),i=f-t.scroll):n>=c-r+1&&(f=n-h-t.scroll,u.css(a,-(f*e)+"px"),i=f+t.scroll)}function ut(n){n<0?i=0:n>c-r&&(i=c-r)}function ft(){n(t.btnPrev+","+t.btnNext).removeClass("disabled");n(i-t.scroll<0&&t.btnPrev||i+t.scroll>c-r&&t.btnNext||[]).addClass("disabled")}function et(r){l=!0;u.animate(a=="left"?{left:-(i*e)}:{top:-(i*e)},n.extend({duration:t.speed,easing:t.easing},r))}var l,a,y,s=n(this),u,v,f,e,b,k,r,h,c,i,d;g();nt();tt();it()})};n.fn.jCarouselLite.options={btnPrev:null,btnNext:null,btnGo:null,mouseWheel:!1,auto:null,speed:200,easing:null,vertical:!1,circular:!0,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null}}(jQuery);var starBannerFade,heightTextBlock,cookies;1||(starBannerFade=0);heightTextBlock=1;cookies={setCookie:function(n,t){var i=new Date;i.setDate(i.getDate()+1825);document.cookie=n+"="+t+"; expires="+i.toUTCString()+"; path=/"},getCookie:function(n){var i=document.cookie,u=n+"=",t=i.indexOf("; "+u),r;if(t===-1){if(t=i.indexOf(u),t!==0)return null}else t+=2;return r=i.indexOf(";",t),r===-1&&(r=i.length),window.unescape(i.substring(t+u.length,r))}};$(document).ready(function(){$("a",".top-switcher").click(function(){var n=$(this).attr("rel");cookies.setCookie("fontSet",n);changeFontSize();startPage();setVertAlign(".image-shadow",".widget-content .image-wrap")});$(".faq-content",".faq-list").hide();$("h4",".faq-list").click(function(){$(this).toggleClass("title");$(this).parent("li").find(".faq-content").animate({height:"toggle"},200)});$(".modalExhibition").colorbox({iframe:!0,scrolling:!1,width:"860px",height:"765px"});$(".modal").colorbox({width:"640px"});$(".pp a").colorbox({width:"500px",inline:!0,href:".ppContent"});$(".poster-slide-items").jCarouselLite({btnNext:".next",btnPrev:".prev",visible:9,circular:!1});$("li",".poster-slide").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});$(".article img").each(function(){var n=$(this).css("float");n==="left"?$(this).css("marginRight","10px"):n==="right"&&$(this).css("marginLeft","10px")});$("h4.blockHeader span").each(function(){if($(this).height()>36){for(var t=45,r=$.trim($(this).text()),h=r.length,e="",c=0,f,u=1,o=-1,s=parseInt(t/2),n=0,i=0;n<t&&n<h;){if(e+=r.charAt(n),u===2&&s++,r.charAt(n)===" "){switch(u){case 1:f=parseInt(t/2)-n;break;case 2:f=t-s}for(i=n+1;i<t;i++)if(r.charAt(i)===" "){o=i-n;break}f<o&&u++;c=n}if(u>2)break;n++}$(this).text(e+"...")}});changeFontSize();startPage()});RegisterNamespace("DPWorld.Web");DPWorld.Web.CookieManager=function(n){function f(){var n=u(r);n===null&&t("1")}function e(){var t,i;n!==""&&(typeof _gaq=="undefined"&&(window._gaq=[]),window._gaq.push(["_setAccount",n]),window._gaq.push(["_trackPageview"]),typeof _gat!="undefined"&&(window._gat||window._gat._getTracker)||(t=document.createElement("script"),t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js",i=document.getElementsByTagName("script")[0],i.parentNode.insertBefore(t,i)))}function t(n){var t=new Date;t.setDate(t.getDate()+1825);document.cookie=r+"="+n+"; expires="+t.toUTCString()+"; path=/"}function u(n){var i=document.cookie,u=n+"=",t=i.indexOf("; "+u),r;if(t===-1){if(t=i.indexOf(u),t!==0)return null}else t+=2;return r=document.cookie.indexOf(";",t),r===-1&&(r=i.length),unescape(i.substring(t+u.length,r))}function o(){document.cookie="__utma=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain=.poheritage.com"}var i=this,r="CookiePolicy",n=n;i.Accept=function(){t("1");e()};i.Reject=function(){t("0");o()};i.HasAcceptedCookies=function(){return u(r)==="1"};f()}