window.addEvent("domready",function(){var f=$$("#js-key_navigation .buttonv2_paging_next a");var b=$$("#js-key_navigation .buttonv2_paging_prev a");document.addEvent("keyup",function(h){if(!h.target.getParent("form")){if(h.key=="right"&&f.length){location.href=f[0].get("href")}if(h.key=="left"&&b.length){location.href=b[0].get("href")}}});var g=$("ig-folderListButton-previous");if(g){var d=new Fx.Slide("js-folderListPrevious",{duration:400,transition:Fx.Transitions.linear.easeOut,onComplete:function(){$("ig-folderListButton-previous").addClass("hide")}}).hide();g.addEvent("click",function(h){h.stop();d.slideIn();g.tween("height",[g.getSize().y,0])})}var a=$("ig-folderListButton-remaining");if(a){var c=$("js-folderListRemaining-list").getSize().y;var e=new Fx.Tween("js-folderListRemaining",{duration:"400",link:"cancel",property:"height",onComplete:function(){a.addClass("hide")}});a.addEvent("click",function(h){h.stop();a.tween("height",[a.getSize().y,0]);e.start(0,c)})}});
