(function(c){var g=!1,i=!1,f=5E3,h=2E3,j=function(){var c=document.getElementsByTagName("script"),c=c[c.length-1].src.split("?")[0];return 0<c.split("/").length?c.split("/").slice(0,-1).join("/")+"/":""}(),k=function(k,d){var b=this;this.version="2.6.5";this.name="nicescroll";this.me=d;this.opt={doc:c("body"),win:!1,zindex:9E3,cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#000",cursorwidth:"5px",cursorborder:"1px solid #000",cursorborderradius:"0px",scrollspeed:60,mousescrollstep:10,touchbehavior:!1,
hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:20,preservenativescrolling:!0,railoffset:!1,bouncescroll:!1};if(k)for(var o in b.opt)"undefined"!=typeof k[o]&&(b.opt[o]=k[o]);this.id=b.opt.doc?b.opt.doc.eq(0).id||"":"";this.doc=b.opt.doc;this.ispage=/BODY|HTML/.test(b.doc[0].nodeName);this.haswrapper=!1!==b.opt.win;this.win=b.opt.win||(this.ispage?c(window):this.doc);this.docscroll=
this.ispage?c(window):this.win;this.iframe=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.page=this.view=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.scrollmom=!1;do this.id="ascrail"+h++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=
this.zoomactive=this.zoom=this.cursorfreezed=this.cursor=this.rail=!1;this.visibility=!0;this.locked=!1;b.nativescrollingarea=!1;this.events=[];this.saved={};var m=document.createElement("DIV");this.isopera="opera"in window;this.isieold=(this.isie="all"in document&&"attachEvent"in m&&!this.isopera)&&!("msInterpolationMode"in m.style);this.isie7=this.isie&&!this.isieold&&(!("documentMode"in document)||7==document.documentMode);this.isie8=this.isie&&"documentMode"in document&&8==document.documentMode;
this.isie9=this.isie&&"performance"in window&&9<=document.documentMode;this.ismozilla="MozAppearance"in m.style;this.ischrome="chrome"in window;this.isios4=(this.isios=(this.cantouch="ontouchstart"in document.documentElement)&&/iphone|ipad|ipod/i.test(navigator.platform))&&!("seal"in Object);if(b.opt.hwacceleration){if((this.trstyle=window.opera?"OTransform":document.all?"msTransform":void 0!==m.style.webkitTransform?"webkitTransform":void 0!==m.style.MozTransform?"MozTransform":!1)&&"undefined"==
typeof m.style[this.trstyle])this.trstyle=!1;if(this.hastransform=!1!=this.trstyle)m.style[this.trstyle]="translate3d(1px,2px,3px)",this.hastranslate3d=/translate3d/.test(m.style[this.trstyle]);this.transitionstyle=!1;this.prefixstyle="";this.transitionend=!1;var e="transition,webkitTransition,MozTransition,OTransition,msTransition,KhtmlTransition".split(","),l=",-webkit-,-moz-,-o-,-ms-,-khtml-".split(","),B="transitionEnd,webkitTransitionEnd,transitionend,oTransitionEnd,msTransitionEnd,KhtmlTransitionEnd".split(",");
for(o=0;o<e.length;o++)if(e[o]in m.style){this.transitionstyle=e[o];this.prefixstyle=l[o];this.transitionend=B[o];break}this.hastransition=this.transitionstyle}else this.transitionend=this.hastransition=this.transitionstyle=this.hastranslate3d=this.hastransform=this.trstyle=!1;this.cursorgrabvalue="";if(b.opt.grabcursorenabled&&b.opt.touchbehavior)this.cursorgrabvalue=function(){if(!b.ischrome&&(!b.isie||b.isie9))for(var c=["grab","-moz-grab","-webkit-grab"],d=0;d<c.length;d++){var e=c[d];m.style.cursor=
e;if(m.style.cursor==e)return e}return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}();m=null;this.ishwscroll=b.hastransform&&b.opt.hwacceleration&&b.haswrapper;this.css=function(c,d){for(var e in d)b.saved.css.push([c,e,c.css(e)]),c.css(e,d[e])};this.scrollTop=function(c){return"undefined"==typeof c?b.getScrollTop():b.setScrollTop(c)};this.ishwscroll?(b.doc.translate={x:0,y:0},this.getScrollTop=function(){return b.doc.translate.y},this.notifyScrollEvent=document.createEvent?
function(b){var c=document.createEvent("UIEvents");c.initUIEvent("scroll",!1,!0,window,1);b.dispatchEvent(c)}:document.fireEvent?function(b){var c=document.createEventObject();b.fireEvent("onscroll");c.cancelBubble=!0}:function(){},this.setScrollTop=this.hastranslate3d?function(c,d){b.doc.css(b.trstyle,"translate3d(0px,"+-1*c+"px,0px)");b.doc.translate.y=c;d||b.notifyScrollEvent(b.win[0])}:function(c,d){b.doc.css(b.trstyle,"translate(0px,"+-1*c+"px)");b.doc.translate.y=c;d||b.notifyScrollEvent(b.win[0])}):
(this.getScrollTop=function(){return b.docscroll.scrollTop()},this.setScrollTop=function(c){return b.docscroll.scrollTop(c)});this.getTarget=function(b){return!b?!1:b.target?b.target:b.srcElement?b.srcElement:!1};this.hasParent=function(b,c){if(!b)return!1;for(var d=b.target||b.srcElement||b||!1;d&&d.id!=c;)d=d.parentNode||!1;return!1!==d};this.updateScrollBar=function(c){if(b.ishwscroll)b.rail.css({height:b.win.innerHeight()});else{var d=b.win.offset();d.top+=2;var e=(b.win.outerWidth()-b.win.innerWidth())/
2;d.left+=b.win.innerWidth()+e-b.rail.width-1;if(e=b.opt.railoffset)e.top&&(d.top+=e.top),e.left&&(d.left+=e.left);b.rail.css({top:d.top,left:d.left,height:c?c.h:b.win.innerHeight()});b.zoom&&b.zoom.css({top:d.top+1,left:d.left-20})}};var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||!1,v=window.cancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||
window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||!1;b.hasanimationframe=n;b.hascancelanimationframe=v;b.hasanimationframe?b.hascancelanimationframe||(v=function(){b.cancelAnimationFrame=!0}):(n=function(b){return setTimeout(b,1E3/60)},v=clearInterval);this.init=function(){b.saved.css=[];if(!b.ispage||!b.cantouch&&!b.isieold){b.ispage?b.css(b.doc,{"overflow-y":"hidden"}):b.css(b.docscroll,{"overflow-y":"hidden"});b.ispage&&b.isie7&&"BODY"==b.win[0].nodeName&&b.css(c("html"),
{"overflow-y":"hidden"});var d=c(document.createElement("div"));d.css({position:"relative",top:0,"float":"right",width:b.opt.cursorwidth,height:"0px","background-color":b.opt.cursorcolor,border:b.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":b.opt.cursorborderradius,"-moz-border-radius":b.opt.cursorborderradius,"border-radius":b.opt.cursorborderradius});d.hborder=parseFloat(d.outerHeight()-d.innerHeight());b.cursor=d;var e=c(document.createElement("div"));e.attr("id",b.id);
e.width=1+Math.max(parseFloat(b.opt.cursorwidth),d.outerWidth());e.css({"padding-left":"0px","padding-right":"1px",width:e.width+"px",zIndex:b.ispage?b.opt.zindex:b.opt.zindex+2,background:b.opt.background});e.append(d);b.rail=e;d=!1;if(b.opt.boxzoom&&!b.ispage&&!b.isieold&&(d=document.createElement("div"),b.bind(d,"click",b.doZoom),b.zoom=c(d),b.zoom.css({cursor:"pointer","z-index":b.opt.zindex,backgroundImage:"url("+j+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),b.opt.dblclickzoom&&
b.bind(b.win,"dblclick",b.doZoom),b.cantouch&&b.opt.gesturezoom))b.ongesturezoom=function(c){1.5<c.scale&&b.doZoomIn(c);0.8>c.scale&&b.doZoomOut(c);return b.cancelEvent(c)},b.bind(b.win,"gestureend",b.ongesturezoom);b.ispage?(e.css({position:"fixed",top:"0px",right:"0px",height:"100%"}),c("body").append(e)):b.ishwscroll?("static"==b.win.css("position")&&b.css(b.win,{position:"relative"}),b.zoom&&(b.zoom.css({position:"absolute",top:1,right:0,"margin-right":e.width+4}),b.win.append(b.zoom)),e.css({position:"absolute",
top:0,right:0}),b.win.append(e)):(e.css({position:"absolute"}),b.zoom&&b.zoom.css({position:"absolute"}),b.updateScrollBar(),c("body").append(e),b.zoom&&c("body").append(b.zoom));if(!1===b.opt.autohidemode)b.autohidedom=!1;else if(!0===b.opt.autohidemode)b.autohidedom=b.rail;else if("cursor"==b.opt.autohidemode)b.autohidedom=b.cursor;b.bind(window,"resize",b.onResize);b.bind(window,"orientationchange",b.onResize);!b.ispage&&!b.haswrapper&&b.bind(b.win,b.isie&&!b.isie9?"propertychange":"DOMAttrModified",
b.onAttributeChange);!b.ispage&&b.opt.boxzoom&&b.bind(window,"resize",b.resizeZoom);b.istextarea&&b.bind(b.win,"mouseup",b.onResize);b.onResize();b.cantouch||b.opt.touchbehavior?(b.scrollmom={y:new q(b)},b.onmousedown=function(c){if(!b.locked&&(b.cancelScroll(),b.rail.drag={x:c.screenX,y:c.screenY,sx:b.scroll.x,sy:b.scroll.y,st:b.getScrollTop()},b.hasmoving=!1,b.scrollmom.y.reset(c.screenY),!b.cantouch))return b.cancelEvent(c)},b.onmouseup=function(c){if(b.rail.drag&&(b.scrollmom.y.doMomentum(),b.rail.drag=
!1,b.hasmoving))return b.hasmoving=!1,b.cancelEvent(c)},b.onmousemove=function(c){if(b.rail.drag){b.hasmoving=!0;var d=c.screenY,e=b.rail.drag.st-(c.screenY-b.rail.drag.y);if(b.ishwscroll)0>e?(e=Math.round(e/2),d=0):e>b.page.maxh&&(e=b.page.maxh+Math.round((e-b.page.maxh)/2),d=0);else if(0>e&&(e=0),e>b.page.maxh)e=b.page.maxh;b.showCursor(e);b.prepareTransition&&b.prepareTransition(0);b.setScrollTop(e);b.scrollmom.y.update(d);return b.cancelEvent(c)}},b.cursorgrabvalue&&(b.css(b.win,{cursor:b.cursorgrabvalue}),
b.css(b.rail,{cursor:b.cursorgrabvalue}))):(b.onmousedown=function(c){if(b.locked)return b.cancelEvent(c);b.cancelScroll();b.rail.drag={x:c.screenX,y:c.screenY,sx:b.scroll.x,sy:b.scroll.y};return b.cancelEvent(c)},b.onmouseup=function(c){if(b.rail.drag)return b.rail.drag=!1,b.cancelEvent(c)},b.onmousemove=function(c){if(b.rail.drag){b.scroll.y=b.rail.drag.sy+(c.screenY-b.rail.drag.y);if(0>b.scroll.y)b.scroll.y=0;var d=b.scrollvaluemax;if(b.scroll.y>d)b.scroll.y=d;b.showCursor();b.cursorfreezed=!0;
b.doScroll(Math.round(b.scroll.y*b.scrollratio.y));return b.cancelEvent(c)}b.checkarea=!0});(b.cantouch||b.opt.touchbehavior)&&b.bind(b.win,"mousedown",b.onmousedown);b.bind(b.win,"mouseup",b.onmouseup);b.bind(b.cursor,"mousedown",b.onmousedown);b.bind(b.cursor,"mouseup",function(c){b.rail.drag=!1;b.hasmoving=!1;b.hideCursor();return b.cancelEvent(c)});b.bind(document,"mouseup",b.onmouseup);b.bind(document,"mousemove",b.onmousemove);b.cantouch||(b.rail.mouseenter(function(){b.showCursor();b.rail.active=
!0}),b.rail.mouseleave(function(){b.rail.active=!1;b.rail.drag||b.hideCursor()}),b.isiframe||b.bind(b.isie&&b.ispage?document:b.docscroll,"mousewheel",b.onmousewheel),b.bind(b.rail,"mousewheel",b.onmousewheel));b.zoom&&(b.zoom.mouseenter(function(){b.showCursor();b.rail.active=!0}),b.zoom.mouseleave(function(){b.rail.active=!1;b.rail.drag||b.hideCursor()}));!b.ispage&&!b.cantouch&&(b.win.attr("tabindex")||b.win.attr({tabindex:f++}),b.win.focus(function(c){g=b.getTarget(c).id||!0;b.hasfocus=!0;b.noticeCursor()}),
b.win.blur(function(){g=!1;b.hasfocus=!1}),b.win.mouseenter(function(c){i=b.getTarget(c).id||!0;b.hasmousefocus=!0;b.noticeCursor()}),b.win.mouseleave(function(){i=!1;b.hasmousefocus=!1}));b.onkeypress=function(c){var c=c?c:window.e,d=b.getTarget(c);if(d&&/INPUT|TEXTAREA|SELECT/.test(d.nodeName)&&(!d.getAttribute("type")&&!d.type||!/submit|button|cancel/i.tp))return!0;if(b.hasfocus||b.hasmousefocus&&!g||b.ispage&&!g&&!i){d=c.keyCode;if(b.locked&&27!=d)return b.cancelEvent(c);var e=!1;switch(d){case 38:case 63233:b.doScrollBy(72);
e=!0;break;case 40:case 63235:b.doScrollBy(-72);e=!0;break;case 33:case 63276:b.doScrollBy(b.view.h);e=!0;break;case 34:case 63277:b.doScrollBy(-b.view.h);e=!0;break;case 36:case 63273:b.doScrollTo(0);e=!0;break;case 35:case 63275:b.doScrollTo(b.page.maxh);e=!0;break;case 27:b.zoomactive&&(b.doZoom(),e=!0)}if(e)return b.cancelEvent(c)}};b.bind(document,b.isopera?"keypress":"keydown",b.onkeypress)}if("IFRAME"==this.doc[0].nodeName){var h=function(){b.iframexd=!1;try{var d="contentDocument"in this?
this.contentDocument:this.contentWindow.document}catch(e){b.iframexd=!0,d=!1}if(b.iframexd)return!0;if(b.isiframe)b.docscroll=c(d),b.iframe={html:b.doc.contents().find("html")[0],body:b.doc.contents().find("body")[0]};if(b.opt.iframeautoresize&&!b.isiframe){b.win.scrollTop(0);b.doc.height("");var G=Math.max(d.getElementsByTagName("html")[0].scrollHeight,d.body.scrollHeight);b.doc.height(G)}b.onResize();b.isie7&&b.css(c(d).find("html"),{"overflow-y":"hidden"});b.css(c(d.body),{"overflow-y":"hidden"});
"contentWindow"in this?b.bind(this.contentWindow,"scroll",b.onscroll):b.bind(d,"scroll",b.onscroll);b.bind(d,"mouseup",b.onmouseup);b.bind(d,"mousewheel",b.onmousewheel);b.bind(d,b.isopera?"keypress":"keydown",b.onkeypress);if(b.cantouch||b.opt.touchbehavior)b.bind(d,"mousedown",b.onmousedown),b.cursorgrabvalue&&b.css(c(d),{cursor:b.cursorgrabvalue});b.bind(d,"mousemove",b.onmousemove);b.zoom&&(b.opt.dblclickzoom&&b.bind(d,"dblclick",b.doZoom),b.ongesturezoom&&b.bind(d,"gestureend",b.ongesturezoom))};
this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){h.call(b.doc[0],!1)},500);b.bind(this.doc,"load",h)}};this.showCursor=function(c){if(b.cursortimeout)clearTimeout(b.cursortimeout),b.cursortimeout=0;if(b.rail){b.autohidedom&&b.autohidedom.stop().css({opacity:b.opt.cursoropacitymax});if("undefined"!=typeof c)b.scroll.y=Math.round(1*c/b.scrollratio.y);b.cursor.css({height:b.cursorheight,top:b.scroll.y});b.zoom&&b.zoom.stop().css({opacity:b.opt.cursoropacitymax})}};this.hideCursor=
function(c){if(!b.cursortimeout&&b.rail&&b.autohidedom)b.cursortimeout=setTimeout(function(){b.rail.active||(b.autohidedom.stop().animate({opacity:b.opt.cursoropacitymin}),b.zoom&&b.zoom.stop().animate({opacity:b.opt.cursoropacitymin}));b.cursortimeout=0},c||400)};this.noticeCursor=function(c){b.showCursor();b.hideCursor(c)};this.getContentSize=function(){return b.ispage?{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}:
b.haswrapper?{w:b.doc.outerWidth()+parseInt(b.win.css("paddingLeft"))+parseInt(b.win.css("paddingRight")),h:b.doc.outerHeight()+parseInt(b.win.css("paddingTop"))+parseInt(b.win.css("paddingBottom"))}:b.iframe?{w:Math.max(b.iframe.html.scrollWidth,b.iframe.body.scrollWidth),h:Math.max(b.iframe.html.scrollHeight,b.iframe.body.scrollHeight)}:{w:b.docscroll[0].scrollWidth,h:b.docscroll[0].scrollHeight}};this.onAttributeChange=function(c){if(c&&c.target){if(c.target!==b.win[0]&&c.target!==b.doc[0])return!0;
if((c="attrChange"in c?c.attrName:"propertyName"in c?c.propertyName:!1)&&/width|height|style|block/i.test(c)){if(b.lastattributechange)b.lastattributechange=clearTimeout(b.lastattributechange);b.lastattributechange=setTimeout(function(){b.lastattributechange=0;b.onResize()},60)}}};this.resize=this.onResize=function(){if(!b.haswrapper&&!b.ispage){var c="none"!=b.win.css("display");c&&!b.visibility&&b.show();!c&&b.visibility&&b.hide();if(!b.visibility)return!1}b.view={w:b.ispage?b.win.width():b.win.innerWidth(),
h:b.ispage?b.win.height():b.win.innerHeight()};b.page=b.getContentSize();b.page.maxh=Math.max(0,b.page.h-b.view.h);if(0==b.page.maxh)return b.hide(),b.scrollvaluemax=0,b.scroll.y=0,b.scrollratio={x:0,y:0},b.cursorheight=0,b.locked=!0,b.setScrollTop(0),!1;b.visibility||b.show();b.locked=!1;b.istextarea&&b.win.css("resize")&&"none"!=b.win.css("resize")&&(b.view.h-=20);b.ispage||b.updateScrollBar(b.view);b.cursorheight=Math.min(b.view.h,Math.round(b.view.h*(b.view.h/b.page.h)));b.cursorheight=Math.max(b.opt.cursorminheight,
b.cursorheight);b.scrollvaluemax=b.view.h-b.cursorheight-b.cursor.hborder;b.scrollratio={x:0,y:b.page.maxh/b.scrollvaluemax};b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.noticeCursor();return b};this._bind=function(c,d,e,f){b.events.push({e:c,n:d,f:e});c.addEventListener?c.addEventListener(d,e,f||!1):c.attachEvent?c.attachEvent("on"+d,e):c["on"+d]=e};this.bind=function(c,d,e,f){var g="jquery"in c?c[0]:c;g.addEventListener?(b.cantouch&&/mouseup|mousedown|mousemove/.test(d)&&b._bind(g,
"mousedown"==d?"touchstart":"mouseup"==d?"touchend":"touchmove",function(b){if(2>b.touches.length){var c=0<b.touches.length?b.touches[0]:b;c.original=b;e.call(this,c)}},f||!1),b._bind(g,d,e,f||!1),"mousewheel"==d&&b._bind(g,"DOMMouseScroll",e,f||!1),b.cantouch&&"mouseup"==d&&b._bind(g,"touchcancel",e,f||!1)):b._bind(g,d,function(c){if(c=c||window.event||!1){if(c.srcElement)c.target=c.srcElement;if("screenY"in c)c.pageX=c.screenX,c.pageY=c.screenY}return!1===e.call(g,c)||!1===f?b.cancelEvent(c):!0})};
this._unbind=function(b,c,d){b.removeEventListener?b.removeEventListener(c,d,!1):b.detachEvent?b.detachEvent("on"+c,d):b["on"+c]=!1};this.unbindAll=function(){for(var c=0;c<b.events.length;c++){var d=b.events[c];b._unbind(d.e,d.n,d.f)}};this.cancelEvent=function(c){c=b.cantouch?c.original?c.original:c||!1:c?c:window.event||!1;if(!c)return!1;c.stopPropagation&&c.stopPropagation();c.preventDefault&&c.preventDefault();c.cancelBubble=!0;c.cancel=!0;return c.returnValue=!1};this.show=function(){b.visibility=
!0;b.rail.css("display","block");return b};this.hide=function(){b.visibility=!1;b.rail.css("display","none");return b};this.remove=function(){b.doZoomOut();b.unbindAll();b.events=[];b.rail.remove();b.zoom&&b.zoom.remove();b.cursor=!1;b.rail=!1;b.zoom=!1;for(var c=0;c<b.saved.css.length;c++){var d=b.saved.css[c];d[0].css(d[1],"undefined"==typeof d[2]?"":d[2])}b.saved=!1;b.me.data("__nicescroll","");return b};this.isScrollable=function(b){for(b=b.target?b.target:b;b&&b.nodeName&&!/BODY|HTML/.test(b.nodeName);){var d=
c(b);if(/scroll|auto/.test(d.css("overflowY")||d.css("overflow")||""))return b.clientHeight!=b.scrollHeight;b=b.parentNode?b.parentNode:!1}return!1};this.onmousewheel=function(c){if(b.opt.preservenativescrolling&&b.checkarea)b.checkarea=!1,b.nativescrollingarea=b.isScrollable(c);if(b.nativescrollingarea)return!0;if(b.locked)return b.cancelEvent(c);if(b.rail.drag)return b.cancelEvent(c);var d=0;if(d=c.detail?-1*c.detail:c.wheelDelta/40)b.scrollmom&&b.scrollmom.y.stop(),b.doScrollBy(d*b.opt.mousescrollstep);
return b.cancelEvent(c)};this.stop=function(){b.cancelScroll();b.scrollmon&&b.scrollmon.stop();b.cursorfreezed=!1;b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.noticeCursor();return b};b.ishwscroll&&b.hastransition&&b.opt.usetransition?(this.prepareTransition=function(c){var d=Math.round(10*b.opt.scrollspeed),c=Math.min(d,Math.round(c/20*b.opt.scrollspeed)),c=20<c?b.prefixstyle+"transform "+c+"ms ease-out 0s":"";if(!b.lasttransitionstyle||b.lasttransitionstyle!=c)b.lasttransitionstyle=
c,b.doc.css(b.transitionstyle,c)},this.doScroll=function(c){var d=b.getScrollTop();if(0>c&&0>=d)return b.noticeCursor();if(c>b.page.maxh&&d>=b.page.maxh)return b.noticeCursor();b.newscrolly=c;if(b.timer)return!1;if(!b.scrollendtrapped)b.scrollendtrapped=!0,b.bind(b.doc,b.transitionend,b.onScrollEnd,!1);b.timer=setTimeout(function(){var c=b.getScrollTop(),c=Math.abs(c-b.newscrolly);b.prepareTransition(c);b.timer=setTimeout(function(){if(0>b.newscrolly&&!b.opt.bouncescroll)b.newscrolly=0;else if(b.newscrolly>
b.page.maxh&&!b.opt.bouncescroll)b.newscrolly=b.page.maxh;b.newscrolly==b.getScrollTop()?(b.timer=0,b.onScrollEnd()):(b.setScrollTop(b.newscrolly),b.timer=0)},15)},b.opt.scrollspeed);b.noticeCursor()},this.cancelScroll=function(){b.scrollendtrapped=!1;b._unbind(b.doc,b.transitionend,b.onScrollEnd);var c=b.getScrollTop();b.prepareTransition(0);b.setScrollTop(c);b.noticeCursor();return b},this.onScrollEnd=function(){b.scrollendtrapped=!1;b._unbind(b.doc,b.transitionend,b.onScrollEnd);var c=b.getScrollTop();
0>c?b.doScroll(0):c>b.page.maxh&&b.doScroll(b.page.maxh)}):(this.doScroll=function(c){function d(){if(b.cancelAnimationFrame)return!0;g=(new Date).getTime();if(g<h)return b.timer=n(d)||1;h=Math.floor(g+i);g=0;var c=b.getScrollTop(),e=0;if(b.newspeedy)if(c+=b.newspeedy.v,e=b.newspeedy.v,0<b.newspeedy.v){if(c>=b.newspeedy.x)b.newspeedy=!1}else{if(c<=b.newspeedy.x)b.newspeedy=!1}else e=b.newscrolly-b.getScrollTop(),c=(e=0<e?Math.ceil(e*f):Math.floor(e*f))?b.getScrollTop()+e:b.newscrolly;if(0>e&&c<b.newscrolly||
0<e&&c>b.newscrolly)c=b.newscrolly;b.setScrollTop(c);c==b.newscrolly?(b.timer=0,b.cursorfreezed=!1,0>c?b.doScroll(0):c>b.page.maxh&&b.doScroll(b.page.maxh)):b.timer=n(d)||1}var e=b.getScrollTop();b.newscrolly=c;e=c-e;b.newspeedy={x:c-Math.round(e/4),v:Math.round(e/12)};if(5>Math.abs(b.newspeedy.v))b.newspeedy={x:c-Math.round(e/4),v:Math.round(3*(e/4))};if(0==b.newspeedy.v)b.newspeedy=!1;if(!b.bouncescroll)if(0>b.newscrolly){if(b.newspeedy)b.newspeedy.x=0;b.newscrolly=0}else if(b.newscrolly>b.page.maxh){if(b.newspeedy)b.newspeedy.x=
b.page.maxh;b.newscrolly=b.page.maxh}if(!b.timer){var f=0.25,g=0,h=0,i=b.opt.scrollspeed/2;b.cancelAnimationFrame=!1;b.timer=n(d)||1;b.noticeCursor()}},this.cancelScroll=function(){b.timer&&v(b.timer);b.timer=0;return b});this.doScrollBy=function(c,d){var e=0,e=d?Math.floor((b.scroll.y-c)*b.scrollratio.y):(b.timer?b.newscrolly:b.getScrollTop())-c;if(b.bouncescroll){var f=Math.round(b.view.h/2);e<-f?e=-f:e>b.page.maxh+f&&(e=b.page.maxh+f)}b.cursorfreezed=!1;b.doScroll(e)};this.doScrollTo=function(c,
d){d&&Math.round(c*b.scrollratio.y);b.cursorfreezed=!1;b.doScroll(c)};b.onscroll=function(){var c=(new Date).getTime();if(!b.lastcontentcheck||b.lastcontentcheck<c)if(b.lastcontentcheck=c+500,b.getContentSize().h!=b.page.h)b.onResize();if(!b.rail.drag){if(!b.cursorfreezed)b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.noticeCursor()}};b.bind(b.docscroll,"scroll",b.onscroll);this.doZoomIn=function(d){if(!b.zoomactive){b.zoomactive=!0;b.zoomrestore={style:{}};var e="position,top,left,zIndex,backgroundColor,marginTop,marginBottom,marginLeft,marginRight".split(","),
f=b.win[0].style,g;for(g in e){var h=e[g];b.zoomrestore.style[h]="undefined"!=typeof f[h]?f[h]:""}b.zoomrestore.style.width=b.win.css("width");b.zoomrestore.style.height=b.win.css("height");b.zoomrestore.padding={w:b.win.outerWidth()-b.win.width(),h:b.win.outerHeight()-b.win.height()};if(b.isios4)b.zoomrestore.scrollTop=c(window).scrollTop(),c(window).scrollTop(0);b.win.css({position:b.isios4?"absolute":"fixed",top:0,left:0,"z-index":b.opt.zindex+100,margin:"0px"});e=b.win.css("backgroundColor");
(""==e||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(e))&&b.win.css("backgroundColor","#fff");b.rail.css({"z-index":b.opt.zindex+110});b.zoom.css({"z-index":b.opt.zindex+112});b.zoom.css("backgroundPosition","0px -18px");b.resizeZoom();return b.cancelEvent(d)}};this.doZoomOut=function(d){if(b.zoomactive)return b.zoomactive=!1,b.win.css("margin",""),b.win.css(b.zoomrestore.style),b.isios4&&c(window).scrollTop(b.zoomrestore.scrollTop),b.rail.css({"z-index":b.ispage?b.opt.zindex:b.opt.zindex+
2}),b.zoom.css({"z-index":b.opt.zindex}),b.zoomrestore=!1,b.zoom.css("backgroundPosition","0px 0px"),b.onResize(),b.cancelEvent(d)};this.doZoom=function(c){return b.zoomactive?b.doZoomOut(c):b.doZoomIn(c)};this.resizeZoom=function(){if(b.zoomactive){var d=b.getScrollTop();b.win.css({width:c(window).width()-b.zoomrestore.padding.w+"px",height:c(window).height()-b.zoomrestore.padding.h+"px"});b.onResize();b.setScrollTop(Math.min(b.page.maxh,d))}};this.init()},q=function(c){var d=this;this.nc=c;this.lasttime=
this.speedy=this.lasty=0;this.snapy=!1;this.timer=this.demuly=0;this.time=function(){return(new Date).getTime()};this.reset=function(b){d.stop();d.lasttime=d.time();d.speedy=0;d.lasty=b};this.update=function(b){d.lasttime=d.time();var f=b-d.lasty,g=c.getScrollTop()+f;d.snapy=0>g||g>d.nc.page.maxh;d.speedy=f;d.lasty=b};this.stop=function(){if(d.timer)clearTimeout(d.timer),d.timer=0};this.doSnapy=function(b){0>b?d.nc.doScrollTo(0,!0):b>d.nc.page.maxh&&d.nc.doScrollTo(d.nc.page.maxh,!0)};this.doMomentum=
function(){var b=d.lasttime,c=d.time();d.speedy=Math.min(60,d.speedy);if(d.speedy&&b&&50>=c-b&&d.speedy){var f=c-b,e=d.nc.page.maxh;d.demuly=0;var g=function(){var b=Math.floor(d.nc.getScrollTop()-d.speedy*(1-d.demuly));d.demuly=0>b||b>e?d.demuly+0.08:d.demuly+0.01;d.nc.setScrollTop(b);d.nc.showCursor(b);1>d.demuly?d.timer=setTimeout(g,f):(d.timer=0,d.nc.hideCursor(),d.doSnapy(b))};g()}else d.snapy&&d.doSnapy(d.nc.getScrollTop())}},l=jQuery.fn.scrollTop;c.cssHooks.scrollTop={get:function(f){var d=
c.data(f,"__nicescroll")||!1;return d&&d.ishwscroll?d.getScrollTop():l.call(f)},set:function(f,d){var b=c.data(f,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollTop(parseInt(d)):l.call(f,d);return this}};c.fx.step.scrollTop=function(f){if(""==f.start)f.start=c.cssHooks.scrollTop.get(f.elem);c.cssHooks.scrollTop.set(f.elem,f.now+f.unit)};jQuery.fn.scrollTop=function(f){if("undefined"==typeof f){var d=c.data(this[0],"__nicescroll")||!1;return d&&d.ishwscroll?d.getScrollTop():l.call(this)}return this.each(function(){var b=
c.data(this,"__nicescroll")||!1;b&&b.ishwscroll?b.setScrollTop(parseInt(f)):l.call(c(this),f)})};var n=function(f){var d=this;this.length=0;this.name="nicescrollarray";this.each=function(b){for(var c=0;c<d.length;c++)b.call(d[c]);return d};this.push=function(b){d[d.length]=b;d.length++};this.eq=function(b){return d[b]};if(f)for(a=0;a<f.length;a++){var b=c.data(f[a],"__nicescroll")||!1;b&&(this[this.length]=b,this.length++)}return this};(function(c,d,b){for(var f=0;f<d.length;f++)b(c,d[f])})(n.prototype,
"show,hide,onResize,resize,remove,stop".split(","),function(c,d){c[d]=function(){return this.each(function(){this[d].call()})}});jQuery.fn.getNiceScroll=function(f){return"undefined"==typeof f?new n(this):c.data(this[f],"__nicescroll")||!1};jQuery.extend(jQuery.expr[":"],{nicescroll:function(f){return c.data(f,"__nicescroll")?!0:!1}});c.fn.niceScroll=function(f,d){"undefined"==typeof d&&"object"==typeof f&&!("jquery"in f)&&(d=f,f=!1);var b=new n;"undefined"==typeof d&&(d={});if(f)d.doc=c(f),d.win=
c(this);var g=!("doc"in d);if(!g&&!("win"in d))d.win=c(this);this.each(function(){var f=c(this).data("__nicescroll")||!1;if(!f)d.doc=g?c(this):d.doc,f=new k(d,c(this)),c(this).data("__nicescroll",f);b.push(f)});return 1==b.length?b[0]:b}})(jQuery);$(document).ready(function(){$("html").niceScroll();$("textarea").niceScroll()});
(function(c){var g=[];c.loadImages=function(i,f){i instanceof Array||(i=[i]);for(var h=i.length,j=0,k=h;k--;){var q=document.createElement("img");q.onload=function(){j++;j>=h&&c.isFunction(f)&&f()};q.src=i[k];g.push(q)}}})(jQuery);
eval(function(c,g,i,f,h,j){h=function(c){return(62>c?"":h(parseInt(c/62)))+(35<(c%=62)?String.fromCharCode(c+29):c.toString(36))};if(0=="0".replace(0,h)){for(;i--;)j[h(i)]=f[i];f=[function(c){return j[c]||c}];h=function(){return"([237-9n-zA-Z]|1\\w)"};i=1}for(;i--;)f[i]&&(c=c.replace(RegExp("\\b"+h(i)+"\\b","g"),f[i]));return c}("(s(m){3.fn.pngFix=s(c){c=3.extend({P:'blank.gif'},c);8 e=(o.Q==\"t R S\"&&T(o.u)==4&&o.u.A(\"U 5.5\")!=-1);8 f=(o.Q==\"t R S\"&&T(o.u)==4&&o.u.A(\"U 6.0\")!=-1);p(3.browser.msie&&(e||f)){3(2).B(\"img[n$=.C]\").D(s(){3(2).7('q',3(2).q());3(2).7('r',3(2).r());8 a='';8 b='';8 g=(3(2).7('E'))?'E=\"'+3(2).7('E')+'\" ':'';8 h=(3(2).7('F'))?'F=\"'+3(2).7('F')+'\" ':'';8 i=(3(2).7('G'))?'G=\"'+3(2).7('G')+'\" ':'';8 j=(3(2).7('H'))?'H=\"'+3(2).7('H')+'\" ':'';8 k=(3(2).7('V'))?'float:'+3(2).7('V')+';':'';8 d=(3(2).parent().7('href'))?'cursor:hand;':'';p(2.9.v){a+='v:'+2.9.v+';';2.9.v=''}p(2.9.w){a+='w:'+2.9.w+';';2.9.w=''}p(2.9.x){a+='x:'+2.9.x+';';2.9.x=''}8 l=(2.9.cssText);b+='<y '+g+h+i+j;b+='9=\"W:X;white-space:pre-line;Y:Z-10;I:transparent;'+k+d;b+='q:'+3(2).q()+'z;r:'+3(2).r()+'z;';b+='J:K:L.t.M(n=\\''+3(2).7('n')+'\\', N=\\'O\\');';b+=l+'\"></y>';p(a!=''){b='<y 9=\"W:X;Y:Z-10;'+a+d+'q:'+3(2).q()+'z;r:'+3(2).r()+'z;\">'+b+'</y>'}3(2).hide();3(2).after(b)});3(2).B(\"*\").D(s(){8 a=3(2).11('I-12');p(a.A(\".C\")!=-1){8 b=a.13('url(\"')[1].13('\")')[0];3(2).11('I-12','none');3(2).14(0).15.J=\"K:L.t.M(n='\"+b+\"',N='O')\"}});3(2).B(\"input[n$=.C]\").D(s(){8 a=3(2).7('n');3(2).14(0).15.J='K:L.t.M(n=\\''+a+'\\', N=\\'O\\');';3(2).7('n',c.P)})}return 3}})(3);",
[],68,"||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle".split("|"),0,{}));
var dsh={onReady:function(){dsh.doModernizing();dsh.mainMenu();dsh.bindEvents();$("body").hasClass("home")?dsh.initHome():$("body").hasClass("single-post")?dsh.initSinglePost():$("body").hasClass("page-template-calendar-page-php")?dsh.initCalendar():($("body").hasClass("blog")||$("body").hasClass("search")||$("body").hasClass("category")||$("body").hasClass("page-template-page-exhibitions-php")||$("body").hasClass("page-template-page-upcoming-exhibitions-php"))&&dsh.initArchive()},bindEvents:function(){$("#searchsubmit").click(function(){$("#searchform").submit()})},
doModernizing:function(){if($("html").hasClass("ie7")&&$("body").hasClass("home")){var c=$("#right-overlay").html();$("#right-overlay").remove();$("#main").append('<div id="right-overlay" class="pos-abs white">'+c+"</div>");$("#right-overlay").css({right:"-40px"});$("#cal-container").fadeOut(200,function(){$("#cal-container").load(window.location+" #cal-container",function(){$(this).fadeIn()})})}Modernizr.input.placeholder||$("input[type=text]").each(function(){$(this).attr("value",$(this).attr("placeholder"));
$(this).focus(function(){var c=$(this).attr("value");$(this).attr("value","");$(this).blur(function(){1>$(this).attr("value").length&&$(this).attr("value",c)})})});Modernizr.csstransitions||$(".archive-post").hover(function(){$("body").hasClass("blog")?$(this).find(".archive-post-overlay").stop(!0,!0).animate({bottom:55},200,"swing"):$(this).find(".archive-post-overlay").stop(!0,!0).animate({bottom:45},200,"swing")},function(){$("body").hasClass("blog")?$(this).find(".archive-post-overlay").stop(!0,
!0).animate({bottom:50},200,"swing"):$(this).find(".archive-post-overlay").stop(!0,!0).animate({bottom:40},200,"swing")})},mainMenu:function(){$(".current-menu-parent").addClass("expanded");$(".menu-item").click(function(c){if(!1===$(c.target).parent().parent().hasClass("sub-menu")){if(2>$(this).children().length)return!0;$(this).hasClass("expanded")?$(this).removeClass("expanded").find(".sub-menu").slideUp(500,"swing"):($(this).addClass("expanded").find(".sub-menu").slideDown(500,"swing"),$(this).siblings().removeClass("expanded").find(".sub-menu").slideUp(500,
"swing"));return!1}})},initHome:function(){log("Init Home");topSlider.onReady("#top-slider-container","#top-slider-counter",!0);$(".img-mask").each(function(){var c=$(this).width()/2-$(this).find("img").width()/2;$(this).height();$(this).find("img").height();$(this).find("img").css({"margin-left":c})});aSlider.onReady("#event-slider-container",".event-slider-next",null,4,null,!1)},initSinglePost:function(){log("Init Single post");0<$("#single-top-module").length&&$("#single-top-module").css("margin-bottom",
40+$(".post-title").height()/2)},initArchive:function(){log("Init Archive");$(window).load(function(){$(".archive-post-overlay").find("h2").find("a").each(function(c){"Microsoft Internet Explorer"!==navigator.appName&&$(this).text($.trim($(this).text()));$(this).wraplines();$(this).animate({opacity:1},200*c,"swing")})})}};$(document).ready(dsh.onReady);window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;this.console&&console.log(Array.prototype.slice.call(arguments))};
(function(c){function g(){}for(var i="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),f;f=i.pop();)c[f]=c[f]||g})(window.console=window.console||{});
jQuery.fn.wraplines=function(c){c=jQuery.extend({lineWrap:"span",lineClassPrefix:"wrap_line_",wordClassPrefix:"w_line_",index:0,offsetTop:0,offsetLeft:0},c);return this.each(function(){c.index=0;c.offset=0;var g=$(this),i=$(g).text();$(g).html(function(){var f="<"+c.lineWrap+">"+i.replace(/\s/g,"</"+c.lineWrap+"> <"+c.lineWrap+">");return f=f+"</"+c.lineWrap+">"});$(c.lineWrap,g).each(function(){var f=$(this).offset();if(f.top>c.offsetTop)c.offsetTop=f.top,c.index++;$(this).addClass(c.wordClassPrefix+
c.index)});if($.browser.msie&&(7==$.browser.version||8==$.browser.version))for(var f=1;f<=c.index;f++){var h=$("."+c.wordClassPrefix+f);h.eq(h.length-1).removeClass(c.wordClassPrefix+f).addClass(c.wordClassPrefix+(f+1))}for(f=1;f<=c.index;f++){$("."+c.wordClassPrefix+f,g).wrapAll("<"+c.lineWrap+' class="'+c.lineClassPrefix+f+'" />').append(" ");var j=$("."+c.lineClassPrefix+f,g).text();$("."+c.lineClassPrefix+f,g).html(function(){return j})}})};
var topSlider={onReady:function(c,g,i){log("Init topSlider");topSlider.slider=$(c);topSlider.counterdiv=$(g);topSlider.auto=i;topSlider.delay=document.delay?document.delay:8E3;0<topSlider.slider.length&&topSlider.setup()},setup:function(){topSlider.slider.parent().animate({opacity:1},1E3);var c=topSlider.slider.width()*topSlider.slider.find("ul > li").size()+topSlider.slider.find("ul li").width()+5,g=topSlider.slider.height();topSlider.slider.css("position","relative");topSlider.slider.find("ul").css({width:c,
height:g,position:"absolute"});c=topSlider.slider.width();topSlider.slider.find("ul li").css("width",c);topSlider.counter=topSlider.slider.find("ul > li").size();topSlider.decount=1;c=topSlider.autocount=1;for(topSlider.counterdiv.find("li:first-child").html(c).addClass("activenum").attr("id","id1");c!=topSlider.counter;)topSlider.counterdiv.find("li:last-child").after("<li>  </li>"),c++,topSlider.counterdiv.find("li:last-child").html(c),topSlider.counterdiv.find("li:last-child").attr("id","id"+c);
topSlider.counterdiv.find("li:last-child").addClass("last");c=(topSlider.counterdiv.find("li:first-child").width()+5)*topSlider.counterdiv.find("li").size()-5;topSlider.counterdiv.css("width",c);topSlider.bindEvents();if(1<topSlider.counter)topSlider.autoPlay=topSlider.auto,setTimeout(topSlider.play,5E3);if(""!=window.location.hash)c=window.location.hash.substr(1)*-topSlider.slider.width()+topSlider.slider.width(),topSlider.slider.find("ul").stop(!0,!0).animate({left:c},0,function(){}),topSlider.decount=
window.location.hash.substr(1),$(".activenum").removeClass("activenum"),c=window.location.hash.substr(1),$("#id"+c).addClass("activenum"),topSlider.updateTitleField(topSlider.decount),topSlider.updateDateField(topSlider.decount),topSlider.updateExcerptField(topSlider.decount)},bindEvents:function(){topSlider.counterdiv.find("li").click(topSlider.onBulletClick);$("#top-slider-next").click(topSlider.goNext);$("#toggle-excerpt").click(topSlider.toggleDrawer)},onBulletClick:function(){topSlider.autoPlay=
!1;var c=$(this).html(),g=$(this).html()*-topSlider.slider.width()+topSlider.slider.width();topSlider.slider.find("ul").stop(!0,!0).animate({left:g},400,"swing",topSlider.onSlideStart(c));$(".activenum").removeClass("activenum");$(this).addClass("activenum");topSlider.decount=c;window.location.hash=topSlider.decount},onSlideStart:function(c){setTimeout(function(){topSlider.updateTitleField(c);topSlider.updateDateField(c);topSlider.updateExcerptField(c)},250)},goNext:function(){if(topSlider.decount!=
topSlider.counter)topSlider.decount++,topSlider.slider.find("ul").animate({left:"-="+topSlider.slider.width()},400,"swing",topSlider.onSlideStart(topSlider.decount)),$(".activenum").removeClass("activenum").next().addClass("activenum");else{topSlider.decount=1;var c='<li class="clone" style="width: 695px;">'+topSlider.slider.find("ul li:first-child").html()+"</li>";topSlider.slider.find("ul").append(c);topSlider.onSlideStart(topSlider.decount);topSlider.slider.find("ul").animate({left:"-="+topSlider.slider.width()},
400,"swing",function(){topSlider.slider.find("ul").animate({left:0},0);$(".clone").remove()});$(".activenum").removeClass("activenum");topSlider.counterdiv.find("li:first-child").addClass("activenum")}window.location.hash=topSlider.decount},play:function(){(function g(){!0===topSlider.autoPlay&&($("#top-slider-next").trigger("click"),setTimeout(g,topSlider.delay))})()},updateTitleField:function(c){var g=$("#main-slider-item-"+c).find(".msi-title").html();$("#top-slider-a-p-title-btn").stop(!0,!0).animate({height:0},
200,"swing",function(){$("#top-slider-a-p-title").html(g);$(this).animate({height:60},200)})},updateDateField:function(c){$("#top-slider-a-p-date").height();var g=$("#main-slider-item-"+c).find(".msi-dates").html();$("#top-slider-a-p-date").stop(!0,!0).animate({bottom:32},200,"swing",function(){$(this).html(g).animate({bottom:-116},200)})},updateExcerptField:function(c){var g=$("#main-slider-item-"+c).find(".msi-excerpt").html();$("#top-slider-excerpt p").stop(!0,!0).fadeOut(200,function(){$(this).html(g).fadeIn(200)})},
toggleDrawer:function(){$(this).hasClass("sprite-top_slider_big_plus")?($(this).removeClass("sprite-top_slider_big_plus").addClass("sprite-top_slider_big_minus"),$("#home-bottom-module").stop(!0,!0).animate({paddingTop:"60px"},200,"swing",function(){}),$("#top-slider-drawer").stop(!0,!0).animate({bottom:0},200,"swing",function(){topSlider.autoPlay=!1})):($(this).removeClass("sprite-top_slider_big_minus").addClass("sprite-top_slider_big_plus"),$("#home-bottom-module").stop(!0,!0).animate({paddingTop:"0"},
200,"swing",function(){}),$("#top-slider-drawer").stop(!0,!0).animate({bottom:84},200,"swing",function(){topSlider.autoPlay=!0;setTimeout(topSlider.play,5E3)}));return!1}},aSlider={onReady:function(c,g,i,f,h,j){log("Init Bottom Slider");slider=$(c);counterdiv=$(h);aSlider.slider=slider;aSlider.counterdiv=counterdiv;aSlider.nextBtn=$(g);aSlider.prevBtn=$(i);aSlider.steps=f;slider.parent().animate({opacity:1},1E3);c=slider.width()*slider.find("ul > li").size()+slider.find("ul li").width();g=slider.height();
slider.css("position","relative");slider.find("ul").css({width:c,height:g,position:"absolute"});aSlider.counter=Math.ceil(slider.find("ul > li").size()/aSlider.steps);aSlider.decount=1;aSlider.autocount=1;aSlider.bindEvents();aSlider.autoPlay=j;!0===aSlider.autoPlay&&setTimeout(aSlider.play,5E3)},bindEvents:function(){aSlider.nextBtn.click(aSlider.goNext)},onBulletClick:function(){aSlider.autoPlay=!1;var c=$(this).html(),g=$(this).html()*-aSlider.slider.width()+aSlider.slider.width();aSlider.slider.find("ul").stop(!0,
!0).animate({left:g},400,"swing",aSlider.onSlideStart(c));aSlider.decount=c;log(aSlider.decount)},onSlideStart:function(c){aSlider.updateTitleField(c);aSlider.updateDateField(c)},goNext:function(){log(aSlider.counter,aSlider.decount);aSlider.decount<aSlider.counter?(aSlider.decount++,aSlider.slider.find("ul").stop(!0,!0).animate({left:"-="+(aSlider.slider.width()+19)},400,"swing")):(log("reboot"),aSlider.decount=1,aSlider.slider.find("ul").stop(!0,!0).animate({left:0},400,"swing"));return!1}};
(function(c){function g(c){return"object"==typeof c?c:{top:c,left:c}}var i=c.scrollTo=function(f,g,i){c(window).scrollTo(f,g,i)};i.defaults={axis:"xy",duration:1.3<=parseFloat(c.fn.jquery)?0:1};i.window=function(){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){if(this.nodeName&&-1==c.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"]))return this;var f=(this.contentWindow||this).document||this.ownerDocument||this;return c.browser.safari||
"BackCompat"==f.compatMode?f.body:f.documentElement})};c.fn.scrollTo=function(f,h,j){"object"==typeof h&&(j=h,h=0);"function"==typeof j&&(j={onAfter:j});"max"==f&&(f=9E9);j=c.extend({},i.defaults,j);h=h||j.speed||j.duration;j.queue=j.queue&&1<j.axis.length;j.queue&&(h/=2);j.offset=g(j.offset);j.over=g(j.over);return this._scrollable().each(function(){function k(b){l.animate(d,h,j.easing,b&&function(){b.call(this,f,j)})}var q=this,l=c(q),n=f,z,d={},b=l.is("html,body");switch(typeof n){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(n)){n=
g(n);break}n=c(n,this);case "object":if(n.is||n.style)z=(n=c(n)).offset()}c.each(j.axis.split(""),function(c,f){var e="x"==f?"Left":"Top",g=e.toLowerCase(),h="scroll"+e,t=q[h],v=i.max(q,f);z?(d[h]=z[g]+(b?0:t-l.offset()[g]),j.margin&&(d[h]-=parseInt(n.css("margin"+e))||0,d[h]-=parseInt(n.css("border"+e+"Width"))||0),d[h]+=j.offset[g]||0,j.over[g]&&(d[h]+=n["x"==f?"width":"height"]()*j.over[g])):(e=n[g],d[h]=e.slice&&"%"==e.slice(-1)?parseFloat(e)/100*v:e);/^\d+$/.test(d[h])&&(d[h]=0>=d[h]?0:Math.min(d[h],
v));!c&&j.queue&&(t!=d[h]&&k(j.onAfterFirst),delete d[h])});k(j.onAfter)}).end()};i.max=function(f,g){var i="x"==g?"Width":"Height",k="scroll"+i;if(!c(f).is("html,body"))return f[k]-c(f)[i.toLowerCase()]();var i="client"+i,q=f.ownerDocument.documentElement,l=f.ownerDocument.body;return Math.max(q[k],l[k])-Math.min(q[i],l[i])}})(jQuery);
$(document).bind("keydown",function(c){if("40"==c.keyCode)return $(window)._scrollable().stop(),$.scrollTo("+=400",500,"easeOutExpo"),!1;if("38"==c.keyCode)return $(window)._scrollable().stop(),$.scrollTo("-=400",500,"easeOutExpo"),!1});
$(document).keydown(function(c){if(39==c.keyCode||39==c.charCode){var g=$("a#next_link").attr("href");if(g)window.location=g}if(37==c.keyCode||37==c.charCode)if(g=$("a#prev_link").attr("href"))window.location=g;if(38==c.keyCode||38==c.charCode)if(c=$("#top_link").attr("href"))window.location=c});$(document).ready(function(){$("#single-top-module").hide();$("#single-top-module").fadeIn(1E3)});
$(document).ready(function(){$(".toggle_container").hide();$(".trigger").click(function(){var c=$(this);c.hasClass("trigger_active")?(c.next(".toggle_container").slideToggle("slow"),c.removeClass("trigger_active")):($(".trigger_active").next(".toggle_container").slideToggle("slow"),$(".trigger_active").removeClass("trigger_active"),c.next(".toggle_container").slideToggle("slow"),c.addClass("trigger_active"));return!1})});var tt=new Tooltip(function(){return document.getElementsByTagName("*")});
function Tooltip(c){var g=this;this.tooltip=null;this.ttactive=!1;this.collectDOMfunction=c;this.updateTT=function(c){if(g.ttactive)x=document.all?c.clientX+(document.documentElement.scrollLeft|document.body.scrollLeft):c.pageX,y=document.all?c.clientY+(document.documentElement.scrollTop|document.body.scrollTop):c.pageY,g.tooltip.style.left=x+10+"px",g.tooltip.style.top=y+10+"px",g.tooltip.style.display="block"};this.showTT=function(c){if(c.tooltip)title=c.tooltip,g.tooltip.innerHTML="<p>"+title+
"</p>",g.ttactive=!0};this.hideTT=function(){g.tooltip.style.display="none";g.ttactive=!1};this.init=function(){g.tooltip=document.createElement("div");g.tooltip.setAttribute("id","tooltip");g.tooltip.style.position="absolute";g.tooltip.style.display="none";document.getElementsByTagName("html")[0].appendChild(g.tooltip);for(var c=g.collectDOMfunction(),f=0;f<c.length;f++)if(c[f].title)c[f].tooltip=c[f].title,c[f].title="",g.addListener(c[f],"mouseover",function(c){g.showTT(c.srcElement||this)}),g.addListener(c[f],
"mouseout",function(c){g.hideTT(c.srcElement||this)});g.addListener(document,"mousemove",g.updateTT)};this.unload=function(){try{if(navigator.vendor&&navigator.vendor.match(/Apple/))for(var c=g.collectDOMfunction(),f=0;f<c.length;f++)if(c[f].tooltip)c[f].title=c[f].tooltip}catch(h){}};this.addListener=function(c,f,g,j){c.addEventListener?("undefined"==typeof j&&(j=!1),c.addEventListener(f,g,j)):document.attachEvent&&c.attachEvent("on"+f,g)};this.addListener(window,"load",this.init);this.addListener(window,
"unload",this.unload)}
(function(c){var g,i,f,h,j,k,q,l,n,z,d=0,b={},o=[],m=0,e={},s=[],B=null,t=new Image,v=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,G=/[^\.]\.(swf)\s*$/i,H,I=1,A=0,w="",u,r,p=!1,C=c.extend(c("<div/>")[0],{prop:0}),J=c.browser.msie&&7>c.browser.version&&!window.XMLHttpRequest,K=function(){i.hide();t.onerror=t.onload=null;B&&B.abort();g.empty()},L=function(){!1===b.onError(o,d,b)?(i.hide(),p=!1):(b.titleShow=!1,b.width="auto",b.height="auto",g.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),D())},
F=function(){var e=o[d],f,h,j,l,n,m;K();b=c.extend({},c.fn.fancybox.defaults,"undefined"==typeof c(e).data("fancybox")?b:c(e).data("fancybox"));m=b.onStart(o,d,b);if(!1===m)p=!1;else{"object"==typeof m&&(b=c.extend(b,m));j=b.title||(e.nodeName?c(e).attr("title"):e.title)||"";if(e.nodeName&&!b.orig)b.orig=c(e).children("img:first").length?c(e).children("img:first"):c(e);""===j&&b.orig&&b.titleFromAlt&&(j=b.orig.attr("alt"));f=b.href||(e.nodeName?c(e).attr("href"):e.href)||null;if(/^(?:javascript)/i.test(f)||
"#"==f)f=null;if(b.type){if(h=b.type,!f)f=b.content}else b.content?h="html":f&&(h=f.match(v)?"image":f.match(G)?"swf":c(e).hasClass("iframe")?"iframe":0===f.indexOf("#")?"inline":"ajax");if(h){"inline"==h&&(e=f.substr(f.indexOf("#")),h=0<c(e).length?"inline":"ajax");b.type=h;b.href=f;b.title=j;if(b.autoDimensions)"html"==b.type||"inline"==b.type||"ajax"==b.type?(b.width="auto",b.height="auto"):b.autoDimensions=!1;if(b.modal)b.overlayShow=!0,b.hideOnOverlayClick=!1,b.hideOnContentClick=!1,b.enableEscapeButton=
!1,b.showCloseButton=!1;b.padding=parseInt(b.padding,10);b.margin=parseInt(b.margin,10);g.css("padding",b.padding+b.margin);c(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){c(this).replaceWith(k.children())});switch(h){case "html":g.html(b.content);D();break;case "inline":if(!0===c(e).parent().is("#fancybox-content")){p=!1;break}c('<div class="fancybox-inline-tmp" />').hide().insertBefore(c(e)).bind("fancybox-cleanup",function(){c(this).replaceWith(k.children())}).bind("fancybox-cancel",
function(){c(this).replaceWith(g.children())});c(e).appendTo(g);D();break;case "image":p=!1;c.fancybox.showActivity();t=new Image;t.onerror=function(){L()};t.onload=function(){p=!0;t.onerror=t.onload=null;b.width=t.width;b.height=t.height;c("<img />").attr({id:"fancybox-img",src:t.src,alt:b.title}).appendTo(g);M()};t.src=f;break;case "swf":b.scrolling="no";l='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+b.width+'" height="'+b.height+'"><param name="movie" value="'+f+'"></param>';
n="";c.each(b.swf,function(b,c){l+='<param name="'+b+'" value="'+c+'"></param>';n+=" "+b+'="'+c+'"'});l+='<embed src="'+f+'" type="application/x-shockwave-flash" width="'+b.width+'" height="'+b.height+'"'+n+"></embed></object>";g.html(l);D();break;case "ajax":p=!1;c.fancybox.showActivity();b.ajax.win=b.ajax.success;B=c.ajax(c.extend({},b.ajax,{url:f,data:b.ajax.data||{},error:function(b){0<b.status&&L()},success:function(c,d,e){if(200==("object"==typeof e?e:B).status){if("function"==typeof b.ajax.win){m=
b.ajax.win(f,c,d,e);if(!1===m){i.hide();return}if("string"==typeof m||"object"==typeof m)c=m}g.html(c);D()}}}));break;case "iframe":M()}}else L()}},D=function(){var d=b.width,e=b.height,d=-1<d.toString().indexOf("%")?parseInt((c(window).width()-2*b.margin)*parseFloat(d)/100,10)+"px":"auto"==d?"auto":d+"px",e=-1<e.toString().indexOf("%")?parseInt((c(window).height()-2*b.margin)*parseFloat(e)/100,10)+"px":"auto"==e?"auto":e+"px";g.wrapInner('<div style="width:'+d+";height:"+e+";overflow: "+("auto"==
b.scrolling?"auto":"yes"==b.scrolling?"scroll":"hidden")+';position:relative;"></div>');b.width=g.width();b.height=g.height();M()},M=function(){var V;var E,Q;i.hide();if(h.is(":visible")&&!1===e.onCleanup(s,m,e))c.event.trigger("fancybox-cancel"),p=!1;else{p=!0;c(k.add(f)).unbind();c(window).unbind("resize.fb scroll.fb");c(document).unbind("keydown.fb");h.is(":visible")&&"outside"!==e.titlePosition&&h.css("height",h.height());s=o;m=d;e=b;e.overlayShow?(f.css({"background-color":e.overlayColor,opacity:e.overlayOpacity,
cursor:e.hideOnOverlayClick?"pointer":"auto",height:c(document).height()}),f.is(":visible")||(J&&c("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),f.show())):f.hide();r=S();w=e.title||"";A=0;l.empty().removeAttr("style").removeClass();if(!1!==e.titleShow&&(V=E=c.isFunction(e.titleFormat)?e.titleFormat(w,s,m,e):w&&w.length?"float"==e.titlePosition?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+
w+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+e.titlePosition+'">'+w+"</div>":!1,w=V)&&""!==w)switch(l.addClass("fancybox-title-"+e.titlePosition).html(w).appendTo("body").show(),e.titlePosition){case "inside":l.css({width:r.width-2*e.padding,marginLeft:e.padding,marginRight:e.padding});A=l.outerHeight(!0);l.appendTo(j);r.height+=A;break;case "over":l.css({marginLeft:e.padding,width:r.width-2*e.padding,bottom:e.padding}).appendTo(j);break;case "float":l.css("left",
-1*parseInt((l.width()-r.width-40)/2,10)).appendTo(h);break;default:l.css({width:r.width-2*e.padding,paddingLeft:e.padding,paddingRight:e.padding}).appendTo(h)}l.hide();if(h.is(":visible"))c(q.add(n).add(z)).hide(),E=h.position(),u={top:E.top,left:E.left,width:h.width(),height:h.height()},Q=u.width==r.width&&u.height==r.height,k.fadeTo(e.changeFade,0.3,function(){var d=function(){k.html(g.contents()).fadeTo(e.changeFade,1,N)};c.event.trigger("fancybox-change");k.empty().removeAttr("filter").css({"border-width":e.padding,
width:r.width-2*e.padding,height:b.autoDimensions?"auto":r.height-A-2*e.padding});Q?d():(C.prop=0,c(C).animate({prop:1},{duration:e.changeSpeed,easing:e.easingChange,step:O,complete:d}))});else if(h.removeAttr("style"),k.css("border-width",e.padding),"elastic"==e.transitionIn){u=R();k.html(g.contents());h.show();if(e.opacity)r.opacity=0;C.prop=0;c(C).animate({prop:1},{duration:e.speedIn,easing:e.easingIn,step:O,complete:N})}else"inside"==e.titlePosition&&0<A&&l.show(),k.css({width:r.width-2*e.padding,
height:b.autoDimensions?"auto":r.height-A-2*e.padding}).html(g.contents()),h.css(r).fadeIn("none"==e.transitionIn?0:e.speedIn,N)}},T=function(){(e.enableEscapeButton||e.enableKeyboardNav)&&c(document).bind("keydown.fb",function(b){if(27==b.keyCode&&e.enableEscapeButton)b.preventDefault(),c.fancybox.close();else if((37==b.keyCode||39==b.keyCode)&&e.enableKeyboardNav&&"INPUT"!==b.target.tagName&&"TEXTAREA"!==b.target.tagName&&"SELECT"!==b.target.tagName)b.preventDefault(),c.fancybox[37==b.keyCode?"prev":
"next"]()});e.showNavArrows?((e.cyclic&&1<s.length||0!==m)&&n.show(),(e.cyclic&&1<s.length||m!=s.length-1)&&z.show()):(n.hide(),z.hide())},N=function(){c.support.opacity||(k.get(0).style.removeAttribute("filter"),h.get(0).style.removeAttribute("filter"));b.autoDimensions&&k.css("height","auto");h.css("height","auto");w&&w.length&&l.show();e.showCloseButton&&q.show();T();e.hideOnContentClick&&k.bind("click",c.fancybox.close);e.hideOnOverlayClick&&f.bind("click",c.fancybox.close);c(window).bind("resize.fb",
c.fancybox.resize);e.centerOnScroll&&c(window).bind("scroll.fb",c.fancybox.center);"iframe"==e.type&&c('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(c.browser.msie?'allowtransparency="true""':"")+' scrolling="'+b.scrolling+'" src="'+e.href+'"></iframe>').appendTo(k);h.show();p=!1;c.fancybox.center();e.onComplete(s,m,e);var d,g;if(s.length-1>m&&(d=s[m+1].href,"undefined"!==typeof d&&d.match(v)))g=new Image,g.src=d;if(0<m&&(d=s[m-1].href,"undefined"!==
typeof d&&d.match(v)))g=new Image,g.src=d},O=function(b){var c={width:parseInt(u.width+(r.width-u.width)*b,10),height:parseInt(u.height+(r.height-u.height)*b,10),top:parseInt(u.top+(r.top-u.top)*b,10),left:parseInt(u.left+(r.left-u.left)*b,10)};if("undefined"!==typeof r.opacity)c.opacity=0.5>b?0.5:b;h.css(c);k.css({width:c.width-2*e.padding,height:c.height-A*b-2*e.padding})},P=function(){return[c(window).width()-2*e.margin,c(window).height()-2*e.margin,c(document).scrollLeft()+e.margin,c(document).scrollTop()+
e.margin]},S=function(){var c=P(),d={},f=e.autoScale,g=2*e.padding;d.width=-1<e.width.toString().indexOf("%")?parseInt(c[0]*parseFloat(e.width)/100,10):e.width+g;d.height=-1<e.height.toString().indexOf("%")?parseInt(c[1]*parseFloat(e.height)/100,10):e.height+g;if(f&&(d.width>c[0]||d.height>c[1]))if("image"==b.type||"swf"==b.type){f=e.width/e.height;if(d.width>c[0])d.width=c[0],d.height=parseInt((d.width-g)/f+g,10);if(d.height>c[1])d.height=c[1],d.width=parseInt((d.height-g)*f+g,10)}else d.width=Math.min(d.width,
c[0]),d.height=Math.min(d.height,c[1]);d.top=parseInt(Math.max(c[3]-20,c[3]+0.5*(c[1]-d.height-40)),10);d.left=parseInt(Math.max(c[2]-20,c[2]+0.5*(c[0]-d.width-40)),10);return d},R=function(){var d=b.orig?c(b.orig):!1,f={};d&&d.length?(f=d.offset(),f.top+=parseInt(d.css("paddingTop"),10)||0,f.left+=parseInt(d.css("paddingLeft"),10)||0,f.top+=parseInt(d.css("border-top-width"),10)||0,f.left+=parseInt(d.css("border-left-width"),10)||0,f.width=d.width(),f.height=d.height(),f={width:f.width+2*e.padding,
height:f.height+2*e.padding,top:f.top-e.padding-20,left:f.left-e.padding-20}):(d=P(),f={width:2*e.padding,height:2*e.padding,top:parseInt(d[3]+0.5*d[1],10),left:parseInt(d[2]+0.5*d[0],10)});return f},U=function(){i.is(":visible")?(c("div",i).css("top",-40*I+"px"),I=(I+1)%12):clearInterval(H)};c.fn.fancybox=function(b){if(!c(this).length)return this;c(this).data("fancybox",c.extend({},b,c.metadata?c(this).metadata():{})).unbind("click.fb").bind("click.fb",function(b){b.preventDefault();p||(p=!0,c(this).blur(),
o=[],d=0,b=c(this).attr("id")||"",!b||""==b||"nofollow"===b?o.push(this):(o=c("a[id="+b+"], area[rel="+b+"]"),d=o.index(this)),F())});return this};c.fancybox=function(b,e){var f;if(!p){p=!0;f="undefined"!==typeof e?e:{};o=[];d=parseInt(f.index,10)||0;if(c.isArray(b)){for(var g=0,h=b.length;g<h;g++)"object"==typeof b[g]?c(b[g]).data("fancybox",c.extend({},f,b[g])):b[g]=c({}).data("fancybox",c.extend({content:b[g]},f));o=jQuery.merge(o,b)}else"object"==typeof b?c(b).data("fancybox",c.extend({},f,b)):
b=c({}).data("fancybox",c.extend({content:b},f)),o.push(b);if(d>o.length||0>d)d=0;F()}};c.fancybox.showActivity=function(){clearInterval(H);i.show();H=setInterval(U,66)};c.fancybox.hideActivity=function(){i.hide()};c.fancybox.next=function(){return c.fancybox.pos(m+1)};c.fancybox.prev=function(){return c.fancybox.pos(m-1)};c.fancybox.pos=function(b){p||(b=parseInt(b),o=s,-1<b&&b<s.length?(d=b,F()):e.cyclic&&1<s.length&&(d=b>=s.length?0:s.length-1,F()))};c.fancybox.cancel=function(){p||(p=!0,c.event.trigger("fancybox-cancel"),
K(),b.onCancel(o,d,b),p=!1)};c.fancybox.close=function(){function g(){f.fadeOut("fast");l.empty().hide();h.hide();c.event.trigger("fancybox-cleanup");k.empty();e.onClosed(s,m,e);s=b=[];m=d=0;e=b={};p=!1}if(!p&&!h.is(":hidden"))if(p=!0,e&&!1===e.onCleanup(s,m,e))p=!1;else if(K(),c(q.add(n).add(z)).hide(),c(k.add(f)).unbind(),c(window).unbind("resize.fb scroll.fb"),c(document).unbind("keydown.fb"),k.find("iframe").attr("src",J&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),
"inside"!==e.titlePosition&&l.empty(),h.stop(),"elastic"==e.transitionOut){u=R();var i=h.position();r={top:i.top,left:i.left,width:h.width(),height:h.height()};if(e.opacity)r.opacity=1;l.empty().hide();C.prop=1;c(C).animate({prop:0},{duration:e.speedOut,easing:e.easingOut,step:O,complete:g})}else h.fadeOut("none"==e.transitionOut?0:e.speedOut,g)};c.fancybox.resize=function(){f.is(":visible")&&f.css("height",c(document).height());c.fancybox.center(!0)};c.fancybox.center=function(b){var c,d;p||(d=!0===
b?1:0,c=P(),!d&&(h.width()>c[0]||h.height()>c[1])||h.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+0.5*(c[1]-k.height()-40)-e.padding)),left:parseInt(Math.max(c[2]-20,c[2]+0.5*(c[0]-k.width()-40)-e.padding))},"number"==typeof b?b:200))};c.fancybox.init=function(){c("#fancybox-wrap").length||(c("body").append(g=c('<div id="fancybox-tmp"></div>'),i=c('<div id="fancybox-loading"><div></div></div>'),f=c('<div id="fancybox-overlay"></div>'),h=c('<div id="fancybox-wrap"></div>')),j=c('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(h),
j.append(k=c('<div id="fancybox-content"></div>'),q=c('<a id="fancybox-close"></a>'),l=c('<div id="fancybox-title"></div>'),n=c('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),z=c('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),q.click(c.fancybox.close),i.click(c.fancybox.cancel),n.click(function(b){b.preventDefault();c.fancybox.prev()}),z.click(function(b){b.preventDefault();c.fancybox.next()}),
c.fn.mousewheel&&h.bind("mousewheel.fb",function(b,d){if(p)b.preventDefault();else if(0==c(b.target).get(0).clientHeight||c(b.target).get(0).scrollHeight===c(b.target).get(0).clientHeight)b.preventDefault(),c.fancybox[0<d?"prev":"next"]()}),c.support.opacity||h.addClass("fancybox-ie"),J&&(i.addClass("fancybox-ie6"),h.addClass("fancybox-ie6"),c('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(j)))};
c.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:0.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,
showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};c(document).ready(function(){c.fancybox.init()})})(jQuery);
(function(c){function g(f){var g=f||window.event,i=[].slice.call(arguments,1),k=0,q=0,l=0,f=c.event.fix(g);f.type="mousewheel";f.wheelDelta&&(k=f.wheelDelta/120);f.detail&&(k=-f.detail/3);l=k;void 0!==g.axis&&g.axis===g.HORIZONTAL_AXIS&&(l=0,q=-1*k);void 0!==g.wheelDeltaY&&(l=g.wheelDeltaY/120);void 0!==g.wheelDeltaX&&(q=-1*g.wheelDeltaX/120);i.unshift(f,k,q,l);return c.event.handle.apply(this,i)}var i=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var c=
i.length;c;)this.addEventListener(i[--c],g,!1);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var c=i.length;c;)this.removeEventListener(i[--c],g,!1);else this.onmousewheel=null}};c.fn.extend({mousewheel:function(c){return c?this.bind("mousewheel",c):this.trigger("mousewheel")},unmousewheel:function(c){return this.unbind("mousewheel",c)}})})(jQuery);
$(document).ready(function(){$("a#example1").fancybox();$("a#example2").fancybox({overlayShow:!0,transitionIn:"elastic",transitionOut:"elastic"});$("a#example3").fancybox({transitionIn:"none",transitionOut:"none"});$("a#example4").fancybox({opacity:!0,overlay:!0,transitionIn:"elastic",transitionOut:"elastic"});$("a#example5").fancybox();$("a#example6").fancybox({titlePosition:"outside",overlayColor:"#000",overlayOpacity:0.9});$("a#example7").fancybox({titlePosition:"inside"});$("a#example8").fancybox({titlePosition:"over"});
$("a#example_group").fancybox({transitionIn:"elastic",transitionOut:"elastic",titlePosition:"over",titleFormat:function(c,g,i){return'<span id="fancybox-title-over">Image '+(i+1)+" / "+g.length+(c.length?" \u00a0 "+c:"")+"</span>"}});$("#various1").fancybox({titlePosition:"inside",transitionIn:"none",transitionOut:"none"});$("#various2").fancybox();$("#various3").fancybox({width:"65%",height:"65%",autoScale:!1,transitionIn:"elastic",transitionOut:"elastic",type:"iframe"});$("#various7").fancybox({width:"65%",
height:"89%",autoScale:!1,transitionIn:"elastic",transitionOut:"elastic",type:"iframe"});$("#various4").fancybox({padding:0,autoScale:!1,transitionIn:"none",transitionOut:"none"})});
