/**
 * (c)2010 Dominik Franz
 * Don't copy - get inspired!
 */

$(function(){var newHash="",$main=$("#main"),$footer=$("#footer"),defaultDuration=425,baseHeight=$("#content").height();$("body").delegate("a.dynload","click",function(){window.location.hash=$(this).attr("href");return false});$(window).bind('hashchange',function(){newHash=window.location.hash.substring(1);if(newHash){$("#band").stop().animate({backgroundPosition:"(0 -76px)"},{duration:defaultDuration});$("#band p").animate({marginTop:"-76px"},defaultDuration);$("#content").fadeOut(400,function(){$main.load(newHash+" #main-view",function(){$("#band").hide().animate({backgroundPosition:"(0 -76px)"},{duration:0});$("#band p").hide().css({marginTop:"-76px"});$("#content").hide();$("#band").show().animate({backgroundPosition:"(0 0)"},{duration:defaultDuration});$("#band p").show().animate({marginTop:"0"},defaultDuration);$footer.animate({marginTop:$("#content").height()-baseHeight+75},250,function(){});$main.animate({height:$("#content").height()+90},250,function(){$("#content").fadeIn(300)})});$("#nav a").removeClass("current");$("#nav a[href="+newHash+"]").addClass("current")})}});$(window).trigger('hashchange')});
