$(window).load(function(){$("#load").animate({opacity:0},200,function(){$("#load").toggle()});$(".thumbImage").animate({opacity:1},500);$(".desc").toggle();$(".grayscale").mouseover(function(){$(this).stop().animate({opacity:0},300)});$(".grayscale").mouseout(function(){$(this).stop().animate({opacity:1},500)})});
$(document).ready(function(){var b=$("#container");$("#filters").find("a").click(function(){$(".large").toggleClass("thumb");$(".large .thumbImage").toggle();$(".large").toggleClass("large");$(".currentLarge").removeClass("currentLarge");$(".thumb").height(145);b.isotope("updateSortData",$(".thumb")).isotope();b.isotope({sortBy:"width"});var a="."+$(this).attr("href").slice(1);b.isotope({filter:a===".show-all"?"*":a});$("html, body").animate({scrollTop:0},"slow");return!1});$("#aboutLink a").click(function(){$("#about").toggle();
$(this).hasClass("selected")?($(this).removeClass("selected"),$(this).html("About")):($(this).addClass("selected"),$(this).html("About (&times;)"));return!1});$("#options").find(".option-set a").click(function(){var a=$(this);a.hasClass("selected")||(a.parents(".option-set").find(".selected").removeClass("selected"),a.addClass("selected"))});$(function(){b.isotope({itemSelector:".element",layoutMode:"fitRows",animationEngine:$.browser.opera?"jquery":"best-available",getSortData:{width:function(a){return-a.width()+
a.index()}},sortBy:"width"})});b.find(".thumb").live("click",function(){$(".fade").unbind(".innerfade");$(".large .thumbImage").toggle();$(".large").toggleClass("thumb");$(".large").toggleClass("large");$(this).toggleClass("large");$(".large .thumbImage").toggle();$(this).toggleClass("thumb");var a="#"+$(this).attr("id")+" .largeContent";$(a).addClass("currentLarge");b.isotope("updateSortData",$(".large")).isotope();b.isotope("updateSortData",$(".thumb")).isotope();$(".large").height(760);$(".thumb").height(145);
b.isotope({sortBy:"width"});$("html, body").animate({scrollTop:0},200);var c=a+" .fade",d=a+" ul";!$(c).hasClass("fading")&&$(d).hasClass("fade")&&(a=$(a).find("img:first").height()+35,d="#"+$(this).attr("id")+" .desc",$(d).css("margin-top",a),$(c).innerfade({speed:"normal",timeout:3E3,type:"sequence"}),$(c).addClass("fading"))})});
