function showItem(a,c){var b=$("Item_"+a);$("Images").getChildren("img").each(function(f){f.morph({opacity:0})});b.morph({opacity:1});var d=608-(c.getCoordinates().left+(c.getCoordinates().width/2)-b.getCoordinates().left);if(Browser.Platform.ipod){d=d-8;window.scrollTo(0,1)}$("Pointer").morph({"background-position":"-"+d+"px 0"})}window.addEvent("domready",function(){var b=$("Images");var c=0;b.setStyle("opacity",0);$("Images").getChildren("img").each(function(f){f.set("morph",{duration:400})});$("Pointer").set("morph",{duration:400,transition:Fx.Transitions.Back.easeOut});$("Items").getChildren("a").each(function(g){var f=g.href.match(/\#(.*)/)[1];g.addEvent("click",function(){showItem(f,g)}.bind(this))});var a=(($("Items").getChildren("a").length)*(10+16));$("Items").setStyle("width",a);var d=(window.location.hash)?window.location.hash.match(/\#(.*)/)[1]:false;if(d){showItem(d,$("Link_"+d))}else{$("Items").getChildren("a")[0].fireEvent("click")}b.getElements("img").each(function(f){f.addEvent("load",function(){c++;if(c==b.getElements("img").length){b.morph({opacity:1});$("Progress").morph({opacity:0})}}.bind(this))}.bind(this))});
