function makeSlideShow(){var b=$("#st_loading");var a=$("#st_nav");var f=$("#pylvm").children("img:first");$("<img>").load(function(){b.hide();f.fadeIn(3000);setTimeout(function(){a.animate({left:"0px"},500)},1000)}).attr("src",f.attr("src"));e();function e(){a.children("li.album").each(function(){var h=$(this);var j=h.find(".st_thumbs_wrapper");var i=j.children(":first");var k=i.find("img").length*183;i.css("width",k+"px");c(j,i)})}g("#man","#man_album");g("#woman","#woman_album");g("#about","#about_message");$(".open").live("click",function(){var h=$(this);h.addClass("closed").removeClass("open");d()});a.find(".st_thumbs img").bind("click",function(){var h=$(this);b.show();$('<img class="pylvp"/>').load(function(){var i=$(this);var j=$("#pylvm").children("img:first");i.hide();i.insertBefore(j);j.remove();b.hide();i.fadeIn(2000);if($.browser.webkit){$("body").stop().scrollTop(1028).animate({scrollTop:0},5000)}if($.browser.mozilla){$("html").stop().scrollTop(1028).animate({scrollTop:0},5000)}}).attr("src",h.attr("alt"))}).bind("mouseenter",function(){$(this).stop().animate({opacity:"1"})}).bind("mouseleave",function(){$(this).stop().animate({opacity:"0.7"})});function d(){$("li.current").animate({height:"0px"},400,function(){$(this).removeClass("current")}).find(".st_thumbs_wrapper").hide(200).andSelf();$("div.current").animate({height:"0px"},400,function(){$(this).removeClass("current")}).first().hide(200).andSelf();$(".open").addClass("closed").removeClass("open")}function c(j,l){var h=800;var i=j.width();j.css({overflow:"hidden"});var k=l.find("img:last");j.scrollLeft(0);j.unbind("mousemove").bind("mousemove",function(o){var m=k[0].offsetLeft+k.outerWidth()+2*h;var n=(o.pageX-j.offset().left)*(m-i)/i-h;j.scrollLeft(n)})}function g(i,h){$(i).live("click",function(){var k=$(this);d();k.addClass("open").removeClass("closed");var j=$(h);j.addClass("current").animate({height:"180px"},200);if(j.children(".st_wrapper").length>0){j.children(".st_wrapper").show(200)}})}};
