var Client={windowHeight:function(){var b=0,a=0;if(typeof(window.innerWidth)=="number"){b=window.innerWidth;a=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth;a=document.body.clientHeight}}}return a}};window.addEvent("domready",function(){ready=true;var c=$(document.body);var e=$("timeline");var b=$("details");var g=$("details_link");var f=new Fx.Tween("main",{duration:700,transition:"quint:out"});$$(".nav.hide").show();if(Cookie.read("asimov_details_open")=="yes"){show_details=true}else{show_details=false}if(show_details==true){g.innerHTML="less"}else{b.setOpacity(0);b.hide();f.set("top",Client.windowHeight()*0.4)}function a(){g.innerHTML="more";b.fade("out").get("tween").chain(function(){b.hide();f.start("top",Client.windowHeight()*0.4).chain(function(){Cookie.write("asimov_details_open","no",{path:"/",duration:365})})})}function d(){g.innerHTML="less";f.start("top",40).chain(function(){b.show();b.fade("in");Cookie.write("asimov_details_open","yes",{path:"/",duration:365})})}g.addEvent("click",function(h){h=new Event(h).stop();if(Cookie.read("asimov_details_open")=="yes"){a()}else{d()}})});