/*
ANTLER THEME
MOHAMMAD TAHERI
MO ATSIGN MOTAHERI.COM
ALL RIGHTS RESERVED.
*/

var touchDevice=Modernizr.touch;
$(function(){function c(c){var a=[].slice.call(arguments,1),b=0,c=$.event.fix(c||window.event);c.type="mousewheel";c.wheelDelta&&(b=c.wheelDelta/120);c.detail&&(b=-c.detail/3);a.unshift(c,b);return $.event.handle.apply(this,a)}var b=["DOMMouseScroll","mousewheel"];$.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var g=b.length;g;)this.addEventListener(b[--g],c,!1);else this.onmousewheel=c},teardown:function(){if(this.removeEventListener)for(var g=b.length;g;)this.removeEventListener(b[--g],
c,!1);else this.onmousewheel=null}};$.fn.extend({mousewheel:function(c){return c?this.bind("mousewheel",c):this.trigger("mousewheel")},unmousewheel:function(c){return this.unbind("mousewheel",c)}})});function dump(c){var b="",g;for(g in c)b+=g+": "+c[g]+"\n";c=document.createElement("pre");c.innerHTML=b;document.body.appendChild(c)}jQuery.fn.noRightClick=function(){$(this).bind("contextmenu",function(){return!1}).bind("selectstart",function(){return!1})};
function makeImagehtml(c,b,g){var a="",h="",f="";g&&(h='<div class="photo">',f="</div>");for(var d=0;d<b.length;d++)a+=h+'<img src="'+b[d]+'" alt=""/>'+f;g&&(a='<div class="strip">'+a+"</div>");c.append(a);g&&c.find("img").noRightClick()}
function makeFlickrSlideshow(c,b){function g(){c.cycle({timeout:0,before:function(d,b,f){if(f.addSlide)for(;a.length;)f.addSlide(a.pop()),c.children("img").noRightClick()},next:c});c.show()}var a=[],h,f=!1,d=c.children("img").length;$.cacheImage(b,{load:function(){a.push(this);d==0&&a.length==2&&!f?(h=[a[0].src,a[1].src],makeImagehtml(c,h,!1),f=!0,g()):d>0&&a.length==1&&!f&&(d==1&&(h=Array(a[0].src),makeImagehtml(c,h,!1)),f=!0,g())}})}
function makeFlickrUrls(c,b){var g="";zImage="_z.jpg?zz=1";var g=c.photoset.photo,a=[];$.each(g,function(c,b){a[c]="http://farm"+b.farm+".static.flickr.com/"+b.server+"/"+b.id+"_"+b.secret+zImage});b.hasClass("slideshow")?makeFlickrSlideshow(b,a):b.hasClass("flickrset")&&makeImagehtml(b,a,!0)}
jQuery.fn.getFlickrSet=function(c){target=$(this);$.getJSON("http://api.flickr.com/services/rest/?format=json&jsoncallback=?&api_key=62e83694bfcd01d5146217b599350c7e&method=flickr.photosets.getPhotos&photoset_id="+c+"&page=1&per_page=999",function(c){c.stat=="ok"?makeFlickrUrls(c,target):(target.html("flickr set not found, sorry."),target.show())})};jQuery.fn.embedFlickrSet=function(c){$(this).getFlickrSet(c,makeFlickrUrls)};
function initAct(){$("#css-panes .active-pane .flickrset:not(.done),#css-panes .active-pane .slideshow:not(.done)").each(function(){var c=$(this).attr("flickrset");c?($(this).embedFlickrSet(c),$(this).addClass("done")):$(this).find("img").length>1?(c=$(this).find(".strip"),c.length||(c=$(this)),c.cycle({timeout:0,next:c}).show(),c.addClass("done")):$(this).html("not enough images for slideshow, sorry.").addClass("done").show()});$("img").noRightClick();$(".strip .photo img").click(function(){return!1})}
function constAct(){}
(function(c){function b(a,b,d){var n=this,l=a.add(this),m=a.find(d.tabs),o=b.jquery?b:a.children(b),r;m.length||(m=a.children());o.length||(o=a.parent().find(b));o.length||(o=c(b));c.extend(this,{click:function(a,b){var f=m.eq(a);typeof a=="string"&&a.replace("#","")&&(f=m.filter("[href*="+a.replace("#","")+"]"),a=Math.max(m.index(f),0));if(d.rotate){var h=m.length-1;if(a<0)return n.click(h,b);if(a>h)return n.click(0,b)}if(!f.length){if(r>=0)return n;a=d.initialIndex;f=m.eq(a)}if(a===r)return n;b=
b||c.Event();b.type="onBeforeClick";l.trigger(b,[a]);if(!b.isDefaultPrevented())return g[d.effect].call(n,a,function(){r=a;b.type="onClick";l.trigger(b,[a])}),m.removeClass(d.current),f.addClass(d.current),n},getConf:function(){return d},getTabs:function(){return m},getPanes:function(){return o},getCurrentPane:function(){return o.eq(r)},getCurrentTab:function(){return m.eq(r)},getIndex:function(){return r},next:function(){return n.click(r+1)},prev:function(){return n.click(r-1)},destroy:function(){m.unbind(d.event).removeClass(d.current);
o.find("a[href^=#]").unbind("click.T");return n}});c.each("onBeforeClick,onClick".split(","),function(a,b){c.isFunction(d[b])&&c(n).bind(b,d[b]);n[b]=function(a){a&&c(n).bind(b,a);return n}});if(d.history&&c.fn.history)c.tools.history.init(m),d.event="history";m.each(function(a){c(this).bind(d.event,function(c){n.click(a,c);return c.preventDefault()})});o.find("a[href^=#]").bind("click.T",function(a){n.click(c(this).attr("href"),a)});location.hash&&d.tabs=="a"&&a.find("[href="+location.hash+"]").length?
n.click(location.hash):(d.initialIndex===0||d.initialIndex>0)&&!(window.location.hash&&d.event=="history")&&n.click(d.initialIndex)}c.tools=c.tools||{version:"@VERSION"};c.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,slideUpSpeed:400,slideDownSpeed:400,history:!1},addEffect:function(c,a){g[c]=a}};var g={"default":function(c,a){this.getPanes().hide().eq(c).show();a.call()},fade:function(c,a){var b=this.getConf(),
n=b.fadeOutSpeed,l=this.getPanes();n?l.fadeOut(n):l.hide();l.eq(c).fadeIn(b.fadeInSpeed,a)},slide:function(c,a){var b=this.getConf();this.getPanes().slideUp(b.slideUpSpeed);this.getPanes().eq(c).slideDown(b.slideDownSpeed,a)},ajax:function(a){if(typeof String.prototype.trim!=="function")String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var b=this.getPanes().selector.replace(".parent()","").trim(),d=this.getTabs(),n=d.length-c(b).size();if(n){var l="";for(j=1;j<=
n;j++)l+='<div class="pane" style="display:inline"></div>';c(b).parent().append(l)}n=c(b).eq(a);l="";d.eq(a).attr("href")&&(l=d.eq(a).attr("href").trim());var d=!1,g=window.location.hostname;l.indexOf(":")!=-1&&l.indexOf(g)==-1&&(d=!0);n.text().trim()==""&&l!=""&&l!="#"&&l!="http://"&&!d?n.load(l,function(){initAct(a);constAct(a)}):d?(constAct(a),document.location.hash="#",window.location=l):constAct(a);c(b).removeClass("active-pane").addClass("nonactive-pane").hide();n.removeClass("nonactive-pane").addClass("active-pane").show();
return!1}},a;c.tools.tabs.addEffect("horizontal",function(b,f){var d=this.getPanes().eq(b),n=this.getCurrentPane();a||(a=this.getPanes().eq(0).width());d.show();n.animate({width:0},{step:function(c){d.css("width",a-c)},complete:function(){c(this).hide();f.call()}});n.length||f.call()});c.fn.tabs=function(a,f){var d=this.data("tabs");d&&(d.destroy(),this.removeData("tabs"));c.isFunction(f)&&(f={onBeforeClick:f});f=c.extend({},c.tools.tabs.conf,f);this.each(function(){d=new b(c(this),a,f);c(this).data("tabs",
d)});return f.api?d:this}})(jQuery);
(function(c){function b(c){if(c){var b=a.contentWindow.document;b.open().close();b.location.hash=c}}var g,a,h,f;c.tools=c.tools||{version:"v1.2.5"};c.tools.history={init:function(d){f||(c.browser.msie&&c.browser.version<"8"?a||(a=c("<iframe/>").attr("src","javascript:false;").hide().get(0),c("body").prepend(a),setInterval(function(){var b=a.contentWindow.document.location.hash;g!==b&&c(window).trigger("hash",b)},100),b(location.hash||"#")):setInterval(function(){var a=location.hash;a!==g&&c(window).trigger("hash",
a)},100),h=!h?d:h.add(d),d.click(function(d){var f=c(this).attr("href");a&&b(f);if(f.slice(0,1)!="#")return location.href="#"+f,d.preventDefault()}),f=!0)}};c(window).bind("hash",function(a,b){b?h.filter(function(){var a=c(this).attr("href");return a==b||a==b.replace("#","")}).trigger("history",[b]):h.eq(0).trigger("history",[b]);g=b});c.fn.history=function(a){c.tools.history.init(this);return this.bind("history",a)}})(jQuery);
(function(c,b,g){var a=b.event,h;a.special.smartresize={setup:function(){b(this).bind("resize",a.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",a.special.smartresize.handler)},handler:function(c,a){var b=this,d=arguments;c.type="smartresize";h&&clearTimeout(h);h=setTimeout(function(){jQuery.event.handle.apply(b,d)},a==="execAsap"?0:100)}};b.fn.smartresize=function(c){return c?this.bind("smartresize",c):this.trigger("smartresize",["execAsap"])};b.Mason=function(c,a){this.element=
b(a);this._create(c);this._init()};var f=["position","height"];b.Mason.settings={isResizable:!0,isAnimated:!1,animationOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1};b.Mason.prototype={_filterFindBricks:function(c){var a=this.options.itemSelector;return a?c.filter(a).add(c.find(a)):c},_getBricks:function(c){return this._filterFindBricks(c).css({position:"absolute"}).addClass("masonry-brick")},_create:function(a){this.options=b.extend(!0,{},b.Mason.settings,a);this.styleQueue=
[];this.reloadItems();a=this.element[0].style;this.originalStyle={};for(var d=0,g=f.length;d<g;d++){var h=f[d];this.originalStyle[h]=a[h]||""}this.element.css({position:"relative"});this.horizontalDirection=this.options.isRTL?"right":"left";this.offset={};a=b(document.createElement("div"));this.element.prepend(a);this.offset.y=Math.round(a.position().top);this.options.isRTL?(a.css({"float":"right",display:"inline-block"}),this.offset.x=Math.round(this.element.outerWidth()-a.position().left)):this.offset.x=
Math.round(a.position().left);a.remove();var r=this;setTimeout(function(){r.element.addClass("masonry")},0);this.options.isResizable&&b(c).bind("smartresize.masonry",function(){r.resize()})},_init:function(c){this._getColumns("masonry");this._reLayout(c)},option:function(c){b.isPlainObject(c)&&(this.options=b.extend(!0,this.options,c))},layout:function(c,a){for(var d,f,g,h,w,y,t=0,u=c.length;t<u;t++)if(d=b(c[t]),f=Math.ceil(d.outerWidth(!0)/this.columnWidth),f=Math.min(f,this.cols),f===1)this._placeBrick(d,
this.colYs);else{g=this.cols+1-f;h=[];for(y=0;y<g;y++)w=this.colYs.slice(y,y+f),h[y]=Math.max.apply(Math,w);this._placeBrick(d,h)}t={};t.height=Math.max.apply(Math,this.colYs)-this.offset.y;this.options.isFitWidth&&(t.width=this.cols*this.columnWidth-this.options.gutterWidth);this.styleQueue.push({$el:this.element,style:t});d=this.isLaidOut?this.options.isAnimated?"animate":"css":"css";f=this.options.animationOptions;var q;for(t=0,u=this.styleQueue.length;t<u;t++)q=this.styleQueue[t],q.$el[d](q.style,
f);this.styleQueue=[];a&&a.call(c);this.isLaidOut=!0},_getColumns:function(){var c=(this.options.isFitWidth?this.element.parent():this.element).width();this.columnWidth=this.options.columnWidth||this.$bricks.outerWidth(!0)||c;this.columnWidth+=this.options.gutterWidth;this.cols=Math.floor((c+this.options.gutterWidth)/this.columnWidth);this.cols=Math.max(this.cols,1)},_placeBrick:function(c,a){for(var b=Math.min.apply(Math,a),d=0,f=0,g=a.length;f<g;f++)if(a[f]===b){d=f;break}f={top:b};f[this.horizontalDirection]=
this.columnWidth*d+this.offset.x;this.styleQueue.push({$el:c,style:f});b+=c.outerHeight(!0);g=this.cols+1-g;for(f=0;f<g;f++)this.colYs[d+f]=b},resize:function(){var c=this.cols;this._getColumns("masonry");this.cols!==c&&this._reLayout()},_reLayout:function(c){var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(this.offset.y);this.layout(this.$bricks,c)},reloadItems:function(){this.$bricks=this._getBricks(this.element.children())},reload:function(c){this.reloadItems();this._init(c)},appended:function(c,
a,b){if(a){this._filterFindBricks(c).css({top:this.element.height()});var d=this;setTimeout(function(){d._appended(c,b)},1)}else this._appended(c,b)},_appended:function(c,a){var b=this._getBricks(c);this.$bricks=this.$bricks.add(b);this.layout(b,a)},remove:function(c){this.$bricks=this.$bricks.not(c);c.remove()},destroy:function(){this.$bricks.removeClass("masonry-brick").each(function(){this.style.position="";this.style.top="";this.style.left=""});for(var a=this.element[0].style,d=0,g=f.length;d<
g;d++){var h=f[d];a[h]=this.originalStyle[h]}this.element.unbind(".masonry").removeClass("masonry").removeData("masonry");b(c).unbind(".masonry")}};b.fn.imagesLoaded=function(c){function a(){--h<=0&&this.src!==w&&(setTimeout(b),f.unbind("load error",a))}function b(){c.call(d,f)}var d=this,f=d.find("img").add(d.filter("img")),h=f.length,w="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";h||b();f.bind("load error",a).each(function(){if(this.complete||this.complete===g){var c=
this.src;this.src=w;this.src=c}});return d};var d=function(c){this.console&&console.error(c)};b.fn.masonry=function(c){if(typeof c=="string"){var a=Array.prototype.slice.call(arguments,1);this.each(function(){var f=b.data(this,"masonry");f?!b.isFunction(f[c])||c.charAt(0)==="_"?d("no such method '"+c+"' for masonry instance"):f[c].apply(f,a):d("cannot call methods on masonry prior to initialization; attempted to call method '"+c+"'")})}else this.each(function(){var a=b.data(this,"masonry");a?(a.option(c||
{}),a._init()):b.data(this,"masonry",new b.Mason(c,this))});return this}})(window,jQuery);
(function(c){function b(a){c.fn.cycle.debug&&g(a)}function g(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function a(a,b,d){var f=c(a).data("cycle.opts"),g=!!a.cyclePause;g&&f.paused?f.paused(a,f,b,d):!g&&f.resumed&&f.resumed(a,f,b,d)}function h(b,q,f){function h(a,b,u){if(!a&&b===!0){a=c(u).data("cycle.opts");if(!a)return g("options not found, can not resume"),!1;if(u.cycleTimeout)clearTimeout(u.cycleTimeout),u.cycleTimeout=0;r(a.elements,a,1,!a.backwards)}}
if(b.cycleStop==void 0)b.cycleStop=0;if(q===void 0||q===null)q={};if(q.constructor==String)switch(q){case "destroy":case "stop":f=c(b).data("cycle.opts");if(!f)return!1;b.cycleStop++;b.cycleTimeout&&clearTimeout(b.cycleTimeout);b.cycleTimeout=0;f.elements&&c(f.elements).stop();c(b).removeData("cycle.opts");q=="destroy"&&d(f);return!1;case "toggle":return b.cyclePause=b.cyclePause===1?0:1,h(b.cyclePause,f,b),a(b),!1;case "pause":return b.cyclePause=1,a(b),!1;case "resume":return b.cyclePause=0,h(!1,
f,b),a(b),!1;case "prev":case "next":f=c(b).data("cycle.opts");if(!f)return g('options not found, "prev/next" ignored'),!1;c.fn.cycle[q](f);return!1;default:q={fx:q}}else if(q.constructor==Number){var l=q,q=c(b).data("cycle.opts");if(!q)return g("options not found, can not advance slide"),!1;if(l<0||l>=q.elements.length)return g("invalid slide index: "+l),!1;q.nextSlide=l;if(b.cycleTimeout)clearTimeout(b.cycleTimeout),b.cycleTimeout=0;if(typeof f=="string")q.oneTimeFx=f;r(q.elements,q,1,l>=q.currSlide);
return!1}return q}function f(a,b){if(!c.support.opacity&&b.cleartype&&a.style.filter)try{a.style.removeAttribute("filter")}catch(d){}}function d(a){a.next&&c(a.next).unbind(a.prevNextEvent);a.prev&&c(a.prev).unbind(a.prevNextEvent);if(a.pager||a.pagerAnchorBuilder)c.each(a.pagerAnchors||[],function(){this.unbind().remove()});a.pagerAnchors=null;a.destroy&&a.destroy(a)}function n(b,d,h,n,z){var e=c.extend({},c.fn.cycle.defaults,n||{},c.metadata?b.metadata():c.meta?b.data():{}),s=c.isFunction(b.data)?
b.data(e.metaAttr):null;s&&(e=c.extend(e,s));if(e.autostop)e.countdown=e.autostopCount||h.length;var G=b[0];b.data("cycle.opts",e);e.$cont=b;e.stopCount=G.cycleStop;e.elements=h;e.before=e.before?[e.before]:[];e.after=e.after?[e.after]:[];!c.support.opacity&&e.cleartype&&e.after.push(function(){f(this,e)});e.continuous&&e.after.push(function(){r(h,e,0,!e.backwards)});l(e);!c.support.opacity&&e.cleartype&&!e.cleartypeNoBg&&t(d);b.css("position")=="static"&&b.css("position","relative");e.width&&b.width(e.width);
e.height&&e.height!="auto"&&b.height(e.height);if(e.startingSlide)e.startingSlide=parseInt(e.startingSlide,10);else if(e.backwards)e.startingSlide=h.length-1;if(e.random){e.randomMap=[];for(s=0;s<h.length;s++)e.randomMap.push(s);e.randomMap.sort(function(){return Math.random()-0.5});e.randomIndex=1;e.startingSlide=e.randomMap[1]}else if(e.startingSlide>=h.length)e.startingSlide=0;e.currSlide=e.startingSlide||0;var x=e.startingSlide;d.css({position:"absolute",top:0,left:0}).hide().each(function(a){a=
e.backwards?x?a<=x?h.length+(a-x):x-a:h.length-a:x?a>=x?h.length-(a-x):x-a:h.length-a;c(this).css("z-index",a)});c(h[x]).css("opacity",1).show();f(h[x],e);e.fit&&(e.aspect?d.each(function(){var a=c(this),b=e.aspect===!0?a.width()/a.height():e.aspect;e.width&&a.width()!=e.width&&(a.width(e.width),a.height(e.width/b));e.height&&a.height()<e.height&&(a.height(e.height),a.width(e.height*b))}):(e.width&&d.width(e.width),e.height&&e.height!="auto"&&d.height(e.height)));e.center&&(!e.fit||e.aspect)&&d.each(function(){var a=
c(this);a.css({"margin-left":e.width?(e.width-a.width())/2+"px":0,"margin-top":e.height?(e.height-a.height())/2+"px":0})});e.center&&!e.fit&&!e.slideResize&&d.each(function(){var a=c(this);a.css({"margin-left":e.width?(e.width-a.width())/2+"px":0,"margin-top":e.height?(e.height-a.height())/2+"px":0})});if(e.containerResize&&!b.innerHeight()){for(var A=s=0,v=0;v<h.length;v++){var B=c(h[v]),D=B[0],E=B.outerWidth(),F=B.outerHeight();E||(E=D.offsetWidth||D.width||B.attr("width"));F||(F=D.offsetHeight||
D.height||B.attr("height"));s=E>s?E:s;A=F>A?F:A}s>0&&A>0&&b.css({width:s+"px",height:A+"px"})}var I=!1;e.pause&&b.hover(function(){I=!0;this.cyclePause++;a(G,!0)},function(){I&&this.cyclePause--;a(G,!0)});if(m(e)===!1)return!1;var J=!1;n.requeueAttempts=n.requeueAttempts||0;d.each(function(){var a=c(this);this.cycleH=e.fit&&e.height?e.height:a.height()||this.offsetHeight||this.height||a.attr("height")||0;this.cycleW=e.fit&&e.width?e.width:a.width()||this.offsetWidth||this.width||a.attr("width")||
0;if(a.is("img")){var a=c.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,b=c.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,d=this.cycleH==0&&this.cycleW==0&&!this.complete;if(c.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete||a||b||d)if(z.s&&e.requeueOnImageNotLoaded&&++n.requeueAttempts<100)return g(n.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){c(z.s,
z.c).cycle(n)},e.requeueTimeout),J=!0,!1;else g("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return!0});if(J)return!1;e.cssBefore=e.cssBefore||{};e.cssAfter=e.cssAfter||{};e.cssFirst=e.cssFirst||{};e.animIn=e.animIn||{};e.animOut=e.animOut||{};d.not(":eq("+x+")").css(e.cssBefore);c(d[x]).css(e.cssFirst);if(e.timeout){e.timeout=parseInt(e.timeout,10);if(e.speed.constructor==String)e.speed=c.fx.speeds[e.speed]||parseInt(e.speed,10);e.sync||(e.speed/=2);for(s=e.fx=="none"?
0:e.fx=="shuffle"?500:250;e.timeout-e.speed<s;)e.timeout+=e.speed}if(e.easing)e.easeIn=e.easeOut=e.easing;if(!e.speedIn)e.speedIn=e.speed;if(!e.speedOut)e.speedOut=e.speed;e.slideCount=h.length;e.currSlide=e.lastSlide=x;if(e.random){if(++e.randomIndex==h.length)e.randomIndex=0;e.nextSlide=e.randomMap[e.randomIndex]}else e.nextSlide=e.backwards?e.startingSlide==0?h.length-1:e.startingSlide-1:e.startingSlide>=h.length-1?0:e.startingSlide+1;if(!e.multiFx)if(s=c.fn.cycle.transitions[e.fx],c.isFunction(s))s(b,
d,e);else if(e.fx!="custom"&&!e.multiFx)return g("unknown transition: "+e.fx,"; slideshow terminating"),!1;b=d[x];e.skipInitializationCallbacks||(e.before.length&&e.before[0].apply(b,[b,b,e,!0]),e.after.length&&e.after[0].apply(b,[b,b,e,!0]));e.next&&c(e.next).bind(e.prevNextEvent,function(){return w(e,1)});e.prev&&c(e.prev).bind(e.prevNextEvent,function(){return w(e,0)});(e.pager||e.pagerAnchorBuilder)&&y(h,e);o(e,h);return e}function l(a){a.original={before:[],after:[]};a.original.cssBefore=c.extend({},
a.cssBefore);a.original.cssAfter=c.extend({},a.cssAfter);a.original.animIn=c.extend({},a.animIn);a.original.animOut=c.extend({},a.animOut);c.each(a.before,function(){a.original.before.push(this)});c.each(a.after,function(){a.original.after.push(this)})}function m(a){var d,f,h=c.fn.cycle.transitions;if(a.fx.indexOf(",")>0){a.multiFx=!0;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(d=0;d<a.fxs.length;d++){var l=a.fxs[d];f=h[l];if(!f||!h.hasOwnProperty(l)||!c.isFunction(f))g("discarding unknown transition: ",
l),a.fxs.splice(d,1),d--}if(!a.fxs.length)return g("No valid transitions named; slideshow terminating."),!1}else if(a.fx=="all")for(p in a.multiFx=!0,a.fxs=[],h)f=h[p],h.hasOwnProperty(p)&&c.isFunction(f)&&a.fxs.push(p);if(a.multiFx&&a.randomizeEffects){f=Math.floor(Math.random()*20)+30;for(d=0;d<f;d++)h=Math.floor(Math.random()*a.fxs.length),a.fxs.push(a.fxs.splice(h,1)[0]);b("randomized fx sequence: ",a.fxs)}return!0}function o(a,b){a.addSlide=function(d,f){var h=c(d),e=h[0];a.autostopCount||a.countdown++;
b[f?"unshift":"push"](e);if(a.els)a.els[f?"unshift":"push"](e);a.slideCount=b.length;h.css("position","absolute");h[f?"prependTo":"appendTo"](a.$cont);f&&(a.currSlide++,a.nextSlide++);!c.support.opacity&&a.cleartype&&!a.cleartypeNoBg&&t(h);a.fit&&a.width&&h.width(a.width);a.fit&&a.height&&a.height!="auto"&&h.height(a.height);e.cycleH=a.fit&&a.height?a.height:h.height();e.cycleW=a.fit&&a.width?a.width:h.width();h.css(a.cssBefore);(a.pager||a.pagerAnchorBuilder)&&c.fn.cycle.createPagerAnchor(b.length-
1,e,c(a.pager),b,a);if(c.isFunction(a.onAddSlide))a.onAddSlide(h);else h.hide()}}function r(a,d,f,h){if(f&&d.busy&&d.manualTrump)b("manualTrump in go(), stopping active transition"),c(a).stop(!0,!0),d.busy=0;if(d.busy)b("transition active, ignoring new tx request");else{var g=d.$cont[0],e=a[d.currSlide],l=a[d.nextSlide];if(!(g.cycleStop!=d.stopCount||g.cycleTimeout===0&&!f))if(!f&&!g.cyclePause&&!d.bounce&&(d.autostop&&--d.countdown<=0||d.nowrap&&!d.random&&d.nextSlide<d.currSlide))d.end&&d.end(d);
else{var n=!1;if((f||!g.cyclePause)&&d.nextSlide!=d.currSlide){var n=!0,m=d.fx;e.cycleH=e.cycleH||c(e).height();e.cycleW=e.cycleW||c(e).width();l.cycleH=l.cycleH||c(l).height();l.cycleW=l.cycleW||c(l).width();if(d.multiFx){if(h&&(d.lastFx==void 0||++d.lastFx>=d.fxs.length))d.lastFx=0;else if(!h&&(d.lastFx==void 0||--d.lastFx<0))d.lastFx=d.fxs.length-1;m=d.fxs[d.lastFx]}if(d.oneTimeFx)m=d.oneTimeFx,d.oneTimeFx=null;c.fn.cycle.resetState(d,m);d.before.length&&c.each(d.before,function(a,c){g.cycleStop==
d.stopCount&&c.apply(l,[e,l,d,h])});var o=function(){d.busy=0;c.each(d.after,function(a,c){g.cycleStop==d.stopCount&&c.apply(l,[e,l,d,h])})};b("tx firing("+m+"); currSlide: "+d.currSlide+"; nextSlide: "+d.nextSlide);d.busy=1;if(d.fxFn)d.fxFn(e,l,d,o,h,f&&d.fastOnEvent);else if(c.isFunction(c.fn.cycle[d.fx]))c.fn.cycle[d.fx](e,l,d,o,h,f&&d.fastOnEvent);else c.fn.cycle.custom(e,l,d,o,h,f&&d.fastOnEvent)}if(n||d.nextSlide==d.currSlide)if(d.lastSlide=d.currSlide,d.random){d.currSlide=d.nextSlide;if(++d.randomIndex==
a.length)d.randomIndex=0;d.nextSlide=d.randomMap[d.randomIndex];if(d.nextSlide==d.currSlide)d.nextSlide=d.currSlide==d.slideCount-1?0:d.currSlide+1}else d.backwards?(f=d.nextSlide-1<0)&&d.bounce?(d.backwards=!d.backwards,d.nextSlide=1,d.currSlide=0):(d.nextSlide=f?a.length-1:d.nextSlide-1,d.currSlide=f?0:d.nextSlide+1):(f=d.nextSlide+1==a.length)&&d.bounce?(d.backwards=!d.backwards,d.nextSlide=a.length-2,d.currSlide=a.length-1):(d.nextSlide=f?0:d.nextSlide+1,d.currSlide=f?a.length-1:d.nextSlide-1);
n&&d.pager&&d.updateActivePagerLink(d.pager,d.currSlide,d.activePagerClass);n=0;d.timeout&&!d.continuous?n=v(a[d.currSlide],a[d.nextSlide],d,h):d.continuous&&g.cyclePause&&(n=10);if(n>0)g.cycleTimeout=setTimeout(function(){r(a,d,0,!d.backwards)},n)}}}function v(a,c,d,f){if(d.timeoutFn){for(a=d.timeoutFn.call(a,a,c,d,f);d.fx!="none"&&a-d.speed<250;)a+=d.speed;b("calculated timeout: "+a+"; speed: "+d.speed);if(a!==!1)return a}return d.timeout}function w(a,d){var b=d?1:-1,f=a.elements,h=a.$cont[0],e=
h.cycleTimeout;if(e)clearTimeout(e),h.cycleTimeout=0;if(a.random&&b<0){a.randomIndex--;if(--a.randomIndex==-2)a.randomIndex=f.length-2;else if(a.randomIndex==-1)a.randomIndex=f.length-1;a.nextSlide=a.randomMap[a.randomIndex]}else if(a.random)a.nextSlide=a.randomMap[a.randomIndex];else if(a.nextSlide=a.currSlide+b,a.nextSlide<0){if(a.nowrap)return!1;a.nextSlide=f.length-1}else if(a.nextSlide>=f.length){if(a.nowrap)return!1;a.nextSlide=0}h=a.onPrevNextEvent||a.prevNextClick;c.isFunction(h)&&h(b>0,a.nextSlide,
f[a.nextSlide]);r(f,a,1,d);return!1}function y(a,d){var b=c(d.pager);c.each(a,function(f,h){c.fn.cycle.createPagerAnchor(f,h,b,a,d)});d.updateActivePagerLink(d.pager,d.startingSlide,d.activePagerClass)}function t(a){function d(a){a=parseInt(a,10).toString(16);return a.length<2?"0"+a:a}function f(a){for(;a&&a.nodeName.toLowerCase()!="html";a=a.parentNode){var b=c.css(a,"background-color");if(b&&b.indexOf("rgb")>=0)return a=b.match(/\d+/g),"#"+d(a[0])+d(a[1])+d(a[2]);if(b&&b!="transparent")return b}return"#ffffff"}
b("applying clearType background-color hack");a.each(function(){c(this).css("background-color",f(this))})}if(c.support==void 0)c.support={opacity:!c.browser.msie};c.expr[":"].paused=function(a){return a.cyclePause};c.fn.cycle=function(a,d){var f={s:this.selector,c:this.context};if(this.length===0&&a!="stop"){if(!c.isReady&&f.s)return g("DOM not ready, queuing slideshow"),c(function(){c(f.s,f.c).cycle(a,d)}),this;g("terminating; zero elements found by selector"+(c.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var l=
h(this,a,d);if(l!==!1){l.updateActivePagerLink=l.updateActivePagerLink||c.fn.cycle.updateActivePagerLink;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var m=c(this),e=l.slideExpr?c(l.slideExpr,this):m.children(),s=e.get(),o=n(m,e,s,l,f);if(o!==!1)if(s.length<2)g("terminating; too few slides: "+s.length);else if(m=o.continuous?10:v(s[o.currSlide],s[o.nextSlide],o,!o.backwards))m+=o.delay||0,m<10&&(m=10),b("first timeout: "+m),this.cycleTimeout=setTimeout(function(){r(s,
o,0,!l.backwards)},m)}})};c.fn.cycle.resetState=function(a,d){d=d||a.fx;a.before=[];a.after=[];a.cssBefore=c.extend({},a.original.cssBefore);a.cssAfter=c.extend({},a.original.cssAfter);a.animIn=c.extend({},a.original.animIn);a.animOut=c.extend({},a.original.animOut);a.fxFn=null;c.each(a.original.before,function(){a.before.push(this)});c.each(a.original.after,function(){a.after.push(this)});var b=c.fn.cycle.transitions[d];c.isFunction(b)&&b(a.$cont,c(a.elements),a)};c.fn.cycle.updateActivePagerLink=
function(a,d,b){c(a).each(function(){c(this).children().removeClass(b).eq(d).addClass(b)})};c.fn.cycle.next=function(a){w(a,1)};c.fn.cycle.prev=function(a){w(a,0)};c.fn.cycle.createPagerAnchor=function(d,f,h,g,l){c.isFunction(l.pagerAnchorBuilder)?(f=l.pagerAnchorBuilder(d,f),b("pagerAnchorBuilder("+d+", el) returned: "+f)):f='<a href="#">'+(d+1)+"</a>";if(f){var e=c(f);if(e.parents("body").length===0){var n=[];h.length>1?(h.each(function(){var a=e.clone(!0);c(this).append(a);n.push(a[0])}),e=c(n)):
e.appendTo(h)}l.pagerAnchors=l.pagerAnchors||[];l.pagerAnchors.push(e);h=function(a){a.preventDefault();l.nextSlide=d;var a=l.$cont[0],b=a.cycleTimeout;if(b)clearTimeout(b),a.cycleTimeout=0;a=l.onPagerEvent||l.pagerClick;c.isFunction(a)&&a(l.nextSlide,g[l.nextSlide]);r(g,l,1,l.currSlide<d)};/mouseenter|mouseover/i.test(l.pagerEvent)?e.hover(h,function(){}):e.bind(l.pagerEvent,h);!/^click/.test(l.pagerEvent)&&!l.allowPagerClickBubble&&e.bind("click.cycle",function(){return!1});var m=l.$cont[0],o=!1;
l.pauseOnPagerHover&&e.hover(function(){o=!0;m.cyclePause++;a(m,!0,!0)},function(){o&&m.cyclePause--;a(m,!0,!0)})}};c.fn.cycle.hopsFromLast=function(a,c){var d=a.lastSlide,b=a.currSlide;return c?b>d?b-d:a.slideCount-d:b<d?d-b:d+a.slideCount-b};c.fn.cycle.commonReset=function(a,d,b,f,h,e){c(b.elements).not(a).hide();if(typeof b.cssBefore.opacity=="undefined")b.cssBefore.opacity=1;b.cssBefore.display="block";if(b.slideResize&&f!==!1&&d.cycleW>0)b.cssBefore.width=d.cycleW;if(b.slideResize&&h!==!1&&d.cycleH>
0)b.cssBefore.height=d.cycleH;b.cssAfter=b.cssAfter||{};b.cssAfter.display="none";c(a).css("zIndex",b.slideCount+(e===!0?1:0));c(d).css("zIndex",b.slideCount+(e===!0?0:1))};c.fn.cycle.custom=function(a,d,b,f,h,e){var l=c(a),g=c(d),n=b.speedIn,a=b.speedOut,m=b.easeIn,d=b.easeOut;g.css(b.cssBefore);e&&(n=typeof e=="number"?a=e:a=1,m=d=null);var o=function(){g.animate(b.animIn,n,m,function(){f()})};l.animate(b.animOut,a,d,function(){l.css(b.cssAfter);b.sync||o()});b.sync&&o()};c.fn.cycle.transitions=
{fade:function(a,d,b){d.not(":eq("+b.currSlide+")").css("opacity",0);b.before.push(function(a,d,b){c.fn.cycle.commonReset(a,d,b);b.cssBefore.opacity=0});b.animIn={opacity:1};b.animOut={opacity:0};b.cssBefore={top:0,left:0}}};c.fn.cycle.ver=function(){return"2.9995"};c.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:!c.support.opacity,cleartypeNoBg:!1,containerResize:1,
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:0,sync:1,timeout:4E3,timeoutFn:null,updateActivePagerLink:null,width:null}})(jQuery);
(function(c){c.fn.cycle.transitions.none=function(b,g,a){a.fxFn=function(a,b,d,g){c(b).show();c(a).hide();g()}};c.fn.cycle.transitions.fadeout=function(b,g,a){g.not(":eq("+a.currSlide+")").css({display:"block",opacity:1});a.before.push(function(a,b,d,g,l,m){c(a).css("zIndex",d.slideCount+(!m===!0?1:0));c(b).css("zIndex",d.slideCount+(!m===!0?0:1))});a.animIn.opacity=1;a.animOut.opacity=0;a.cssBefore.opacity=1;a.cssBefore.display="block";a.cssAfter.zIndex=0};c.fn.cycle.transitions.scrollUp=function(b,
g,a){b.css("overflow","hidden");a.before.push(c.fn.cycle.commonReset);b=b.height();a.cssBefore.top=b;a.cssBefore.left=0;a.cssFirst.top=0;a.animIn.top=0;a.animOut.top=-b};c.fn.cycle.transitions.scrollDown=function(b,g,a){b.css("overflow","hidden");a.before.push(c.fn.cycle.commonReset);b=b.height();a.cssFirst.top=0;a.cssBefore.top=-b;a.cssBefore.left=0;a.animIn.top=0;a.animOut.top=b};c.fn.cycle.transitions.scrollLeft=function(b,g,a){b.css("overflow","hidden");a.before.push(c.fn.cycle.commonReset);b=
b.width();a.cssFirst.left=0;a.cssBefore.left=b;a.cssBefore.top=0;a.animIn.left=0;a.animOut.left=0-b};c.fn.cycle.transitions.scrollRight=function(b,g,a){b.css("overflow","hidden");a.before.push(c.fn.cycle.commonReset);b=b.width();a.cssFirst.left=0;a.cssBefore.left=-b;a.cssBefore.top=0;a.animIn.left=0;a.animOut.left=b};c.fn.cycle.transitions.scrollHorz=function(b,g,a){b.css("overflow","hidden").width();a.before.push(function(a,b,d,g){d.rev&&(g=!g);c.fn.cycle.commonReset(a,b,d);d.cssBefore.left=g?b.cycleW-
1:1-b.cycleW;d.animOut.left=g?-a.cycleW:a.cycleW});a.cssFirst.left=0;a.cssBefore.top=0;a.animIn.left=0;a.animOut.top=0};c.fn.cycle.transitions.scrollVert=function(b,g,a){b.css("overflow","hidden");a.before.push(function(a,b,d,g){d.rev&&(g=!g);c.fn.cycle.commonReset(a,b,d);d.cssBefore.top=g?1-b.cycleH:b.cycleH-1;d.animOut.top=g?a.cycleH:-a.cycleH});a.cssFirst.top=0;a.cssBefore.left=0;a.animIn.top=0;a.animOut.left=0};c.fn.cycle.transitions.slideX=function(b,g,a){a.before.push(function(a,b,d){c(d.elements).not(a).hide();
c.fn.cycle.commonReset(a,b,d,!1,!0);d.animIn.width=b.cycleW});a.cssBefore.left=0;a.cssBefore.top=0;a.cssBefore.width=0;a.animIn.width="show";a.animOut.width=0};c.fn.cycle.transitions.slideY=function(b,g,a){a.before.push(function(a,b,d){c(d.elements).not(a).hide();c.fn.cycle.commonReset(a,b,d,!0,!1);d.animIn.height=b.cycleH});a.cssBefore.left=0;a.cssBefore.top=0;a.cssBefore.height=0;a.animIn.height="show";a.animOut.height=0};c.fn.cycle.transitions.shuffle=function(b,g,a){b=b.css("overflow","visible").width();
g.css({left:0,top:0});a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!0,!0,!0)});if(!a.speedAdjusted)a.speed/=2,a.speedAdjusted=!0;a.random=0;a.shuffle=a.shuffle||{left:-b,top:15};a.els=[];for(b=0;b<g.length;b++)a.els.push(g[b]);for(b=0;b<a.currSlide;b++)a.els.push(a.els.shift());a.fxFn=function(a,b,d,g,l){d.rev&&(l=!l);var m=l?c(a):c(b);c(b).css(d.cssBefore);var o=d.slideCount;m.animate(d.shuffle,d.speedIn,d.easeIn,function(){for(var b=c.fn.cycle.hopsFromLast(d,l),f=0;f<b;f++)l?d.els.push(d.els.shift()):
d.els.unshift(d.els.pop());if(l){b=0;for(f=d.els.length;b<f;b++)c(d.els[b]).css("z-index",f-b+o)}else b=c(a).css("z-index"),m.css("z-index",parseInt(b,10)+1+o);m.animate({left:0,top:0},d.speedOut,d.easeOut,function(){c(l?this:a).hide();g&&g()})})};c.extend(a.cssBefore,{display:"block",opacity:1,top:0,left:0})};c.fn.cycle.transitions.turnUp=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!0,!1);d.cssBefore.top=b.cycleH;d.animIn.height=b.cycleH;d.animOut.width=b.cycleW});
a.cssFirst.top=0;a.cssBefore.left=0;a.cssBefore.height=0;a.animIn.top=0;a.animOut.height=0};c.fn.cycle.transitions.turnDown=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!0,!1);d.animIn.height=b.cycleH;d.animOut.top=a.cycleH});a.cssFirst.top=0;a.cssBefore.left=0;a.cssBefore.top=0;a.cssBefore.height=0;a.animOut.height=0};c.fn.cycle.transitions.turnLeft=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!1,!0);d.cssBefore.left=b.cycleW;d.animIn.width=
b.cycleW});a.cssBefore.top=0;a.cssBefore.width=0;a.animIn.left=0;a.animOut.width=0};c.fn.cycle.transitions.turnRight=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!1,!0);d.animIn.width=b.cycleW;d.animOut.left=a.cycleW});c.extend(a.cssBefore,{top:0,left:0,width:0});a.animIn.left=0;a.animOut.width=0};c.fn.cycle.transitions.zoom=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!1,!1,!0);d.cssBefore.top=b.cycleH/2;d.cssBefore.left=b.cycleW/2;c.extend(d.animIn,
{top:0,left:0,width:b.cycleW,height:b.cycleH});c.extend(d.animOut,{width:0,height:0,top:a.cycleH/2,left:a.cycleW/2})});a.cssFirst.top=0;a.cssFirst.left=0;a.cssBefore.width=0;a.cssBefore.height=0};c.fn.cycle.transitions.fadeZoom=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!1,!1);d.cssBefore.left=b.cycleW/2;d.cssBefore.top=b.cycleH/2;c.extend(d.animIn,{top:0,left:0,width:b.cycleW,height:b.cycleH})});a.cssBefore.width=0;a.cssBefore.height=0;a.animOut.opacity=0};c.fn.cycle.transitions.blindX=
function(b,g,a){b=b.css("overflow","hidden").width();a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d);d.animIn.width=b.cycleW;d.animOut.left=a.cycleW});a.cssBefore.left=b;a.cssBefore.top=0;a.animIn.left=0;a.animOut.left=b};c.fn.cycle.transitions.blindY=function(b,g,a){b=b.css("overflow","hidden").height();a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d);d.animIn.height=b.cycleH;d.animOut.top=a.cycleH});a.cssBefore.top=b;a.cssBefore.left=0;a.animIn.top=0;a.animOut.top=b};c.fn.cycle.transitions.blindZ=
function(b,g,a){g=b.css("overflow","hidden").height();b=b.width();a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d);d.animIn.height=b.cycleH;d.animOut.top=a.cycleH});a.cssBefore.top=g;a.cssBefore.left=b;a.animIn.top=0;a.animIn.left=0;a.animOut.top=g;a.animOut.left=b};c.fn.cycle.transitions.growX=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!1,!0);d.cssBefore.left=this.cycleW/2;d.animIn.left=0;d.animIn.width=this.cycleW;d.animOut.left=0});a.cssBefore.top=0;a.cssBefore.width=
0};c.fn.cycle.transitions.growY=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!0,!1);d.cssBefore.top=this.cycleH/2;d.animIn.top=0;d.animIn.height=this.cycleH;d.animOut.top=0});a.cssBefore.height=0;a.cssBefore.left=0};c.fn.cycle.transitions.curtainX=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!1,!0,!0);d.cssBefore.left=b.cycleW/2;d.animIn.left=0;d.animIn.width=this.cycleW;d.animOut.left=a.cycleW/2;d.animOut.width=0});a.cssBefore.top=0;a.cssBefore.width=
0};c.fn.cycle.transitions.curtainY=function(b,g,a){a.before.push(function(a,b,d){c.fn.cycle.commonReset(a,b,d,!0,!1,!0);d.cssBefore.top=b.cycleH/2;d.animIn.top=0;d.animIn.height=b.cycleH;d.animOut.top=a.cycleH/2;d.animOut.height=0});a.cssBefore.height=0;a.cssBefore.left=0};c.fn.cycle.transitions.cover=function(b,g,a){var h=a.direction||"left",f=b.css("overflow","hidden").width(),d=b.height();a.before.push(function(a,b,g){c.fn.cycle.commonReset(a,b,g);h=="right"?g.cssBefore.left=-f:h=="up"?g.cssBefore.top=
d:h=="down"?g.cssBefore.top=-d:g.cssBefore.left=f});a.animIn.left=0;a.animIn.top=0;a.cssBefore.top=0;a.cssBefore.left=0};c.fn.cycle.transitions.uncover=function(b,g,a){var h=a.direction||"left",f=b.css("overflow","hidden").width(),d=b.height();a.before.push(function(a,b,g){c.fn.cycle.commonReset(a,b,g,!0,!0,!0);h=="right"?g.animOut.left=f:h=="up"?g.animOut.top=-d:h=="down"?g.animOut.top=d:g.animOut.left=-f});a.animIn.left=0;a.animIn.top=0;a.cssBefore.top=0;a.cssBefore.left=0};c.fn.cycle.transitions.toss=
function(b,g,a){var h=b.css("overflow","visible").width(),f=b.height();a.before.push(function(a,b,g){c.fn.cycle.commonReset(a,b,g,!0,!0,!0);!g.animOut.left&&!g.animOut.top?c.extend(g.animOut,{left:h*2,top:-f/2,opacity:0}):g.animOut.opacity=0});a.cssBefore.left=0;a.cssBefore.top=0;a.animIn.left=0};c.fn.cycle.transitions.wipe=function(b,g,a){var h=b.css("overflow","hidden").width(),f=b.height();a.cssBefore=a.cssBefore||{};var d;a.clip&&(/l2r/.test(a.clip)?d="rect(0px 0px "+f+"px 0px)":/r2l/.test(a.clip)?
d="rect(0px "+h+"px "+f+"px "+h+"px)":/t2b/.test(a.clip)?d="rect(0px "+h+"px 0px 0px)":/b2t/.test(a.clip)?d="rect("+f+"px "+h+"px "+f+"px 0px)":/zoom/.test(a.clip)&&(b=parseInt(f/2,10),g=parseInt(h/2,10),d="rect("+b+"px "+g+"px "+b+"px "+g+"px)"));a.cssBefore.clip=a.cssBefore.clip||d||"rect(0px 0px 0px 0px)";var b=a.cssBefore.clip.match(/(\d+)/g),n=parseInt(b[0],10),l=parseInt(b[1],10),m=parseInt(b[2],10),o=parseInt(b[3],10);a.before.push(function(a,b,d){if(a!=b){var g=c(a),t=c(b);c.fn.cycle.commonReset(a,
b,d,!0,!0,!1);d.cssAfter.display="block";var u=1,q=parseInt(d.speedIn/13,10)-1;(function C(){var a=n?n-parseInt(u*(n/q),10):0,b=o?o-parseInt(u*(o/q),10):0,c=m<f?m+parseInt(u*((f-m)/q||1),10):f,d=l<h?l+parseInt(u*((h-l)/q||1),10):h;t.css({clip:"rect("+a+"px "+d+"px "+c+"px "+b+"px)"});u++<=q?setTimeout(C,13):g.css("display","none")})()}});c.extend(a.cssBefore,{display:"block",opacity:1,top:0,left:0});a.animIn={left:0};a.animOut={left:0}}})(jQuery);
(function(c){c.extend(c,{cacheImage:function(b,g){if(typeof b==="object")c.each(b,function(){c.cacheImage(String(this),g)});else{var a=new Image,g=g||{};c.each(["load","error","abort"],function(){var b=String(this);typeof g[b]==="function"&&c(a).bind(b,g[b]);typeof g.complete==="function"&&c(a).bind(b,g.complete)});a.src=b;return a}}});c.extend(c.fn,{cacheImage:function(b){return this.each(function(){c.cacheImage(this.src,b)})}})})(jQuery);
(function(c){var b={decelerate:!0,y:!0,x:!0,slowdown:0.9,maxvelocity:40,throttleFPS:60,movingClass:{up:"kinetic-moving-up",down:"kinetic-moving-down",left:"kinetic-moving-left",right:"kinetic-moving-right"},deceleratingClass:{up:"kinetic-decelerating-up",down:"kinetic-decelerating-down",left:"kinetic-decelerating-left",right:"kinetic-decelerating-right"}};if(!window.requestAnimationFrame)window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||
window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1E3/60)}}();c.extend(c.support,{touch:"ontouchend"in document});var g=function(a,b){var c=a;a>0?a>b&&(c=b):a<0-b&&(c=0-b);return c},a=function(a,b){this.removeClass(a.movingClass.up).removeClass(a.movingClass.down).removeClass(a.movingClass.left).removeClass(a.movingClass.right).removeClass(a.deceleratingClass.up).removeClass(a.deceleratingClass.down).removeClass(a.deceleratingClass.left).removeClass(a.deceleratingClass.right);
a.velocity>0&&this.addClass(b.right);a.velocity<0&&this.addClass(b.left);a.velocityY>0&&this.addClass(b.down);a.velocityY<0&&this.addClass(b.up)},h=function(b,c){if(c.x&&(b[0].scrollLeft=c.scrollLeft=b[0].scrollLeft+c.velocity,Math.abs(c.velocity)>0))c.velocity=c.decelerate?Math.floor(Math.abs(c.velocity))===0?0:c.velocity*c.slowdown:c.velocity;if(c.y&&(b[0].scrollTop=c.scrollTop=b[0].scrollTop+c.velocityY,Math.abs(c.velocityY)>0))c.velocityY=c.decelerate?Math.floor(Math.abs(c.velocityY))===0?0:c.velocityY*
c.slowdown:c.velocityY;a.call(b,c,c.deceleratingClass);typeof c.moved==="function"&&c.moved.call(b,c);Math.abs(c.velocity)>0||Math.abs(c.velocityY)>0?window.requestAnimationFrame(function(){h(b,c)}):typeof c.stopped==="function"&&c.stopped.call(b,c)},f=function(a,b){a&&a==="start"&&this.each(function(){var a=c(this),d=c.extend(a.data("kinetic-settings"),b);if(d)d.decelerate=!1,h(a,d)});a&&a==="end"&&this.each(function(){var a=c(this).data("kinetic-settings");if(a)a.decelerate=!0})},d=function(d){this.addClass("kinetic-active").each(function(){var f=
c.extend({},b,d),m=c(this),o,r=!1,v,w=!1,y=!1,t=1E3/f.throttleFPS,u;f.velocity=0;f.velocityY=0;var q=function(){y=v=o=!1};c(document).mouseup(q).click(q);var H=function(){f.velocity=g(r-o,f.maxvelocity);f.velocityY=g(w-v,f.maxvelocity)},C=function(a,b){y=!0;f.velocity=r=0;f.velocityY=w=0;o=a;v=b},z=function(){if(o&&r&&f.decelerate===!1)f.decelerate=!0,H(),o=r=y=!1,h(m,f)},e=function(b,c){if(y&&(o||v))f.decelerate=!1,f.velocity=f.velocityY=0,m[0].scrollLeft=f.scrollLeft=f.x?m[0].scrollLeft-(b-o):m[0].scrollLeft,
m[0].scrollTop=f.scrollTop=f.y?m[0].scrollTop-(c-v):m[0].scrollTop,r=o,w=v,o=b,v=c,H(),a.call(m,f,f.movingClass),typeof f.moved==="function"&&f.moved.call(m,f)};c.support.touch?(this.addEventListener("touchstart",function(a){C(a.touches[0].clientX,a.touches[0].clientY)},!1),this.addEventListener("touchend",function(a){a.preventDefault&&a.preventDefault();z()},!1),this.addEventListener("touchmove",function(a){a.preventDefault&&a.preventDefault();e(a.touches[0].clientX,a.touches[0].clientY)},!1)):m.mousedown(function(a){C(a.clientX,
a.clientY);String(a.target.nodeName)=="IMG"&&a.preventDefault()}).mouseup(function(){z()}).mousemove(function(a){if(!u||new Date>new Date(u.getTime()+t))u=new Date,e(a.clientX,a.clientY)});m.click(function(a){if(Math.abs(f.velocity)>0)return String(a.target.nodeName)=="IMG"&&a.preventDefault(),!1});m.data("kinetic-settings",f)})};c.fn.kinetic=function(a){typeof a==="string"?f.apply(this,arguments):d.call(this,a)}})(window.jQuery);
function setCookie(c,b,g){var a="";g&&(a=new Date,a.setTime(a.getTime()+g*864E5),a="; expires="+a.toGMTString());document.cookie=c+"="+b+a+"; path=/"}function getCookie(c){c+="=";for(var b=document.cookie.split(";"),g=0;g<b.length;g++){for(var a=b[g];a.charAt(0)==" ";)a=a.substring(1,a.length);if(a.indexOf(c)==0)return a.substring(c.length,a.length)}return null}function deleteCookie(c){setCookie(c,"",-1)}
$(function(){$.b64={ct:"A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9,+,/".split(","),enc:function(c){var b="";this.utf8&&(c=c.replace(/./g,function(a){a=a.charCodeAt(0);return String.fromCharCode(a>>8)+String.fromCharCode(a&255)}));for(var g=0;g<c.length;g+=3)b+=this.ct[c.charCodeAt(g)>>2],b+=this.ct[(c.charCodeAt(g)&3)<<4|(!c[g+1]?0:c.charCodeAt(g+1)>>4)],b+=!c[g+1]?"=":this.ct[(c.charCodeAt(g+1)&15)<<2|(!c[g+2]?0:c.charCodeAt(g+
2)>>6)],b+=!c[g+2]?"=":this.ct[c.charCodeAt(g+2)&63];return b},dec:function(c){if(!this.dt){this.dt={};for(var b=0;b<64;b++)this.dt[this.ct[b]]=b}for(var b="",g=0;g<c.length;g+=4)b+=String.fromCharCode(this.dt[c[g]]<<2|this.dt[c[g+1]]>>4),b+=!c[g+2]||c[g+2]=="="?"":String.fromCharCode(this.dt[c[g+1]]<<4&255|(this.dt[c[g+2]]||0)>>2),b+=!c[g+3]||c[g+3]=="="?"":String.fromCharCode((this.dt[c[g+2]]||0)<<6&255|(this.dt[c[g+3]]||0));this.utf8&&(b=b.replace(/../g,function(a){return String.fromCharCode(a.charCodeAt(0)<<
8|a.charCodeAt(1))}));return b}}});function decodeMe(c){c=$.b64.dec($("meta[name="+c+"]").attr("content").substr(1)).split("|``|");for(k=0;k<c.length;k++)c[k]=c[k].split("").reverse().join("");return c.join(".")}function discourage(){var c=$.b64.dec("T2ggbm8sIHNvbWV0aGluZyB3ZW50IHdyb25nICA6ICg=");$("body").html(c)}function iniciate(){var c=[decodeMe("function"),"localhost"],b=document.domain.toLowerCase();$.inArray(b,c)>=0||discourage()}
var antler_hide_option_size=antler_settings[0],antler_hide_option_background=antler_settings[1],antler_photo_display_mode=antler_settings[2],antler_background_shade=antler_settings[3],antler_menu_alignment=antler_settings[4],previousPage="",savedSettings=getCookie("savedSettings");
if(savedSettings!=null)for(var savedSettings=savedSettings.split("|`|"),i=0;i<3;i++){var thisSetting=savedSettings[i];if(thisSetting!=""&&thisSetting!=null)switch(i){case 0:antler_hide_option_background!="1"&&(antler_background_shade=thisSetting);break;case 1:antler_hide_option_size!="1"&&(antler_photo_display_mode=thisSetting);break;case 2:previousPage=thisSetting}}
function getInternetExplorerVersion(){var c=-1;navigator.appName=="Microsoft Internet Explorer"&&/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)!=null&&(c=parseFloat(RegExp.$1));return c}function checkIEVersion(){return getInternetExplorerVersion()}
$(function(){touchDevice&&$("#menu").addClass("menu-hover");var c=checkIEVersion(),b=$("#wrapper #main #content #css-panes");jQuery.fn.togglePhotoSizes=function(){var a=b.hasClass("small-strip");if(a||antler_photo_display_mode=="true")b.removeClass("small-strip"),$(this).text("smaller photos");else if(!a||antler_photo_display_mode=="false")b.addClass("small-strip"),$(this).text("full screen photos");antler_photo_display_mode=""};var g=$("html");jQuery.fn.togglePhotoBackground=function(){var a=g.hasClass("dark");
if(a||antler_background_shade=="true")g.removeClass("dark"),$(this).text("darker background");else if(!a||antler_background_shade=="false")g.addClass("dark"),$(this).text("lighter background");antler_background_shade=""};$("#toggle-options #image-size a").click(function(){$(this).togglePhotoSizes();return!1}).togglePhotoSizes();$("#toggle-options #image-background a").click(function(){$(this).togglePhotoBackground();return!1}).togglePhotoBackground();antler_menu_alignment=="true"&&$("#css-tabs").masonry({itemSelector:".inline-menu"});
$("#css-tabs,#toggle-options").removeClass("visibility-hidden");$(window).unload(function(){antler_background_shade=$("html").hasClass("dark")?"false":"true";antler_photo_display_mode=b.hasClass("small-strip")?"false":"true";previousPage=window.location.hash;savedSettings=antler_background_shade+"|`|"+antler_photo_display_mode+"|`|"+previousPage;setCookie("savedSettings",savedSettings,365)});iniciate();$(".menu > .menu-item:has(ul) > a").each(function(){$(this).addClass("category");var a="";$(this).attr("href")!==
void 0&&(a=$(this).attr("href").trim());(a=="#"||a==""||a=="http://"||a=="http:///")&&$(this).css({"text-decoration":"none"})}).click(function(){var a="";$(this).attr("href")!==void 0&&(a=$(this).attr("href").trim());if((a=="#"||a==""||a=="http://"||a=="http:///")&&!touchDevice)return a=="#"&&!touchDevice&&$(this).siblings("ul").toggle(),!1;else if(touchDevice)return!1});$("div#css-tabs").tabs("div#css-panes > .pane",{effect:"ajax",history:!0});!touchDevice&&(c==-1||c>8)&&$("html,body").kinetic({slowdown:0.95,
y:!1});$("html").bind("mousewheel",function(a,b){var c=$(document).width()>$(window).width(),g=$(document).height()>$(window).height()+100;if(c&&!touchDevice&&!g)return window.parent.scrollBy(-240*b,0),!1});var a=!0;$(document).scroll(function(){var b=$("#menu").is(":visible"),c=$("#insignia").is(":visible");a=b&&c?!0:!1;b=$(document).width()>$(window).width();a&&b&&!touchDevice&&setTimeout(function(){$("#menu").fadeOut("fast",function(){$("#insignia").fadeOut(function(){a=!1})})},10)});setInterval(function(){if(!a){var b=
$(document).scrollLeft();setTimeout(function(){b==$(document).scrollLeft()&&$("#insignia").fadeIn("fast",function(){$("#menu").fadeIn(function(){a=!0})})},1E3)}},50);$("html,body").bind("mousedown mouseup mouseover mousemove",function(a){if(String(a.target.nodeName)=="IMG")document.onselectstart=function(){return!1}});var h=!1;$("html,body").bind("mousedown mouseup mouseover mousemove",function(a){var b=String(a.target.nodeName);if(b=="IMG"||b=="DIV"&&!touchDevice)$("img").onselectstart=function(){return!1},
a.type==="mouseover"&&($(this).hasClass("closed")&&$(this).removeClass("closed"),$(this).addClass("open")),a.type==="mousedown"&&(h=!0),a.type==="mousemove"&&h==!0&&($(this).hasClass("open")&&$(this).removeClass("open"),$(this).addClass("closed")),a.type==="mouseup"&&(h=!1,$(this).hasClass("closed")&&$(this).removeClass("closed"),$(this).addClass("open"))})});

