(function(b){b.idleTimer=function(e,d){var f=3E4,d=d||document,g=function(a){typeof a==="number"&&(a=void 0);a=b.data(a||d,"idleTimerObj");a.idle=!a.idle;var c=+new Date-a.olddate;a.olddate=+new Date;a.idle&&c<f?(a.idle=!1,clearTimeout(b.idleTimer.tId),b.idleTimer.tId=setTimeout(g,f)):(a=jQuery.Event(b.data(d,"idleTimer",a.idle?"idle":"active")+".idleTimer"),b(d).trigger(a))},h=function(a){var c=b.data(a,"idleTimerObj");c.enabled=!1;clearTimeout(c.tId);b(a).off(".idleTimer")},c=b.data(d,"idleTimerObj")||
{};c.olddate=c.olddate||+new Date;if(typeof e==="number")f=e;else if(e==="destroy")return h(d),this;else if(e==="getElapsedTime")return+new Date-c.olddate;b(d).on(b.trim("mousemove touchmove ".split(" ").join(".idleTimer ")),function(){var a=b.data(this,"idleTimerObj");clearTimeout(a.tId);if(a.enabled)a.idle&&g(this),a.tId=setTimeout(g,a.timeout)});c.idle=!1;c.enabled=!0;c.timeout=f;c.tId=setTimeout(g,c.timeout);b.data(d,"idleTimer","active");b.data(d,"idleTimerObj",c)};b.fn.idleTimer=function(e){this[0]&&
b.idleTimer(e,this[0]);return this}})(jQuery);
(function(a){a.plusAnchor=function(c,d){var b=this;b.el=c;b.$el=a(c);b.$el.data("plusAnchor",b);b.init=function(){b.options=a.extend({},a.plusAnchor.defaults,d);a('a[href^="#"]').click(function(){href=a(this).attr("href");name=a('a[name="'+a(this).attr("href").substring(1)+'"]');if(a(href).length)return a("html, body").animate({scrollTop:a(href).offset().top},b.options.speed,b.options.easing),!1;else if(name.length)return a("html, body").animate({scrollTop:name.offset().top},b.options.speed,b.options.easing),
!1})};b.init()};a.plusAnchor.defaults={easing:"swing",speed:1E3};a.fn.plusAnchor=function(c){return this.each(function(){new a.plusAnchor(this,c)})}})(jQuery);
window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a)}};
(function(a){function c(){}for(var d="assert,clear,count,debug,dir,dirxml,error,exception,firebug,group,groupCollapsed,groupEnd,info,log,memoryProfile,memoryProfileEnd,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn".split(","),b;b=d.pop();)a[b]=a[b]||c})(function(){try{return console.log(),window.console}catch(a){return window.console={}}}());
$(function(){function f(){$("a.about").animate({opacity:0.2},1500,"linear").animate({opacity:1},1500,"linear",f)}var b=$("article#start"),a=$(window).height(),c=$(window).width(),g=function(){a=$(window).height();c=$(window).width();$("article").each(function(){$(this).height()<a&&$(this).height(a)});$("article#start img.vignette").css({height:b.height()+"px",width:b.width()+"px"});if(a<662)$("img.theBook").css("top","62px");else{var d=(a+62)/2-300;d>150&&(d=150);$("img.theBook").css("top",d+"px")}$("#start div.content a").css("top",
$("img.theBook").position().top+460+"px");c<780&&($("img.theBook").css("top",""),$("#start div.content a").css("top",""))};b.append('<img class="vignette" src="img/vignette-1.png" alt="" />');g();$(window).resize(function(){g()});f();$("#twitter").click(function(){var d=($(window).width()-600)/2,a=($(window).height()-255)/2,b=$("#twitter a").attr("href");window.open(b,"Twitter","status=1,width=600,height=255,top="+a+",left="+d);return!1});$("#facebook").click(function(){var a=($(window).width()-575)/
2,b=($(window).height()-400)/2,c=$("#facebook a").attr("href");window.open(c,"Facebook","status=1,width=575,height=400,top="+b+",left="+a);return!1});$(document).plusAnchor();c>480&&($(document).bind("idle.idleTimer",function(){$("nav.mainNavigation").fadeOut()}),$(document).bind("active.idleTimer",function(){$("nav.mainNavigation").fadeIn()}),$.idleTimer(1E3));if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)){var e=document.querySelector('meta[name="viewport"]');if(e)e.content=
"width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0",document.body.addEventListener("gesturestart",function(){e.content="width=device-width, minimum-scale=0.25, maximum-scale=2.6"},!1)}});

