/* af.timeline.js */
(function($){var f='#timeline';var g='.content';var h='.slider';var i='.nav li';var j='.nav li a';var k=500;var l=510;var m='easeOutCubic';var n=function(){this.root=$(f);this.root.bind('click',this.goToItem.bind(this));this.root.bind('mouseleave',this.hide.bind(this));this.content=$(g,f);this.slider=$(h,f);this.item=$(i,f);this.nav=$(j,f);this.nav.bind('mouseenter',this.navigate.bind(this));this.nav.bind('mouseleave',this.clear.bind(this))};n.prototype={scroll:function(a,b){var c=(a)?this.root.find(a).position().top:0;var d={top:-c};var e=this.slider;e.stop();if(b){e.css(d)}else{e.animate(d,k*2,m)}},goToItem:function(e){e.preventDefault();var a=$(e.target).closest('[goto]').attr('goto');if(a){window.location=a}},navigate:function(e){var a=$(e.target).closest('a');var b=a.closest('li');var c=a.attr('href');this.item.removeClass('active');b.addClass('active');this.clear();switch(this.state){case'hot':this.timeout=setTimeout(function(){this.scroll(c)}.bind(this),k);break;case'cold':this.scroll(c,true);break}this.show()},clear:function(){if(this.timeout){clearTimeout(this.timeout)}},show:function(){this.setState('hot');this.content.stop().animate({width:l},k,m)},hide:function(){this.content.stop().animate({width:0},k,m);this.item.removeClass('active');this.setState('cold')},setState:function(a){this.state=a}};$(function(){var a=new n()})})(jQuery);

/* af.shutters.js */
(function($){var d='active',SLIDER='.shutter_slider',SHUTTER='.shutter',CONTENT='.content',ROOT='#shutters',NAV='.nav',ITEM='.nav li a',SPEED=500,EASING='easeOutCubic';var f=function(){this.shutter=$(SHUTTER,ROOT);this.shutter.bind('click',this.goToItem.bind(this));this.shutter.bind('mouseenter',this.open.bind(this));this.shutter.bind('mouseleave',this.close.bind(this));this.item=$(ITEM,ROOT);this.item.bind('mouseenter',this.navigate.bind(this));this.item.bind('mouseleave',this.clear.bind(this));this.root=$(ROOT);this.root.bind('mouseenter',this.stopCarousel.bind(this));this.root.bind('mouseleave',this.startCarousel.bind(this))};f.prototype={scroll:function(a,b){var c=(b)?$(b).position().top:0;a.find(SLIDER).stop().animate({top:-c},SPEED,EASING)},goToItem:function(e){e.preventDefault();var a=$(e.target).closest('[goto]').attr('goto');if(a){window.location=a}},navigate:function(e){var a=$(e.target);var b=a.attr('href');var c=a.closest(SHUTTER).find(CONTENT);this.item.removeClass(d);a.addClass(d);this.clear();this.delay=setTimeout(function(){this.scroll(c,b)}.bind(this),SPEED)},clear:function(){if(this.delay){clearTimeout(this.delay)}},open:function(e){var a=$(e.target).closest(SHUTTER);var b=a.find(CONTENT,ROOT);b.stop().animate({width:280},SPEED);var c=$(CONTENT,ROOT).not(b);c.stop().animate({width:200},SPEED)},close:function(e){var a=$(e.target).closest(SHUTTER);var b=$(CONTENT,ROOT);b.stop().animate({width:240},SPEED);this.item.removeClass(d);var c=a.find(CONTENT,ROOT);this.scroll(c)},stopCarousel:function(){var c=LBi.Carousel.instances;for(var i=c.length-1;i>=0;i--){c[i].stop()}},startCarousel:function(){var c=LBi.Carousel.instances;for(var i=c.length-1;i>=0;i--){c[i].start()}}};jQuery(function(){var a=new f()})})(jQuery);

/* af.collection.js */
(function(e){var d="#collection",a="a",f=10;function c(){this.root=e(d);this.photos=e(a,d);this.themeList();new b(this.photos.find("img"),{template:new LBi.Template('<div class="definition"><strong>$title</strong><p>$description</p><div class="dfn_arrow"></div></div>')})}c.prototype={themeList:function(){var g=e("div.theme_list").height();var h=e("div.theme_list input").height();if(e("div.theme_list ul").height()>30){e("div.theme_list input.button-submit").css({position:"absolute",right:10,top:g-(h/2)-15})}}};var b=LBi.Class.extend(LBi.Tooltip,function(){},{render:function(k){var g=e(k.target);var j={};j.title=g.attr("alt");j.description=g.attr("description");var h=this.settings.template.parse(j);e("#canvas").append(h);var i=e(this.settings.tooltipSelector);i.css({top:g.offset().top-i.height()-32,left:g.offset().left+(g.width()/2)}).hide().fadeIn()}});jQuery(function(){new c()})})(jQuery);

/* af.comments.js */
(function($){var c=function(a,b){this.node=a;this.settings=$.extend({},c.Defaults,b);this.details=$(a).find(this.settings.details);if(a){this.details.hide();$(a).click(this.open.bind(this))}};c.prototype={open:function(e){this.toggle(true)},close:function(e){var a=e.target;while(a){if(a===this.node){return}a=a.parentNode}this.toggle(false)},toggle:function(a){if(a){if(!this.closeHandler){this.closeHandler=this.close.bind(this);$(document).bind('click',this.closeHandler)}this.details.slideDown()}else{if(this.closeHandler){$(document).unbind('click',this.closeHandler);delete this.closeHandler}this.details.slideUp()}}};c.Defaults={details:'comment-details'};$.registerPlugin('userComments',c)})(jQuery);

