$(function(){$(".scroll-pane").jScrollPane({hijackInternalLinks:true,animateScroll:true,autoReinitialise:true})});$(function(){var d=$(".scroll-pane2");var c;var f;d.jScrollPane({autoReinitialise:true,animateScroll:true});var e=d.data("jsp");var a;$("#forward").hover(function(){$(this).addClass("right").removeClass("fwd");a=setInterval(function(){c=e.getPercentScrolledX();f=e.getContentPositionX();if(c>=0.989){}else{e.scrollToX(f+250,true)}},100)},function(){$(this).addClass("fwd").removeClass("right");clearInterval(a)});$("#back").hover(function(){$(this).addClass("left").removeClass("bck");a=setInterval(function(){c=e.getPercentScrolledX();f=e.getContentPositionX();if(c<=0.0204){}else{e.scrollToX(f-250,true)}},100)},function(){$(this).addClass("bck").removeClass("left");clearInterval(a)});var b=0;$("#help").click(function(g){if(b==0){var h=($(window).height())-314;$("#wrap").append('<div id="helpBlock" style="top:'+h+'px;"><img src="images/helpImage.png"/></div>');g.stopPropagation()}b=1});$(document).click(function(g){if(b==1){$("#helpBlock").remove();b=0}});$("#imagesContainer2 li a").click(function(){if(b==1){$("#helpBlock").remove();b=0}})});$(document).ready(function(){$("#imagesContainer li").hover(function(h){if(($(this).children().next().length)==0){var c="";var b=$(this).children().attr("alt").split("|");if(b[0]==null||b[0]==""){b[0]="Untitled"}if(b[1]==null){b[1]=""}if(b[2]==null){b[2]=""}if(b[3]==null){b[3]=""}var g=$(this).attr("class");var f=($(this).width())-10;var d=' style="width:'+f+'px;"';if(b[0]=="Yashica mat 124-G"){var c='yashica.png"  style="width:77px; height:110px;"'}if(b[0]=="Canon 40D"){var c='canon.png"  style="width:123px; height:95px; margin-top:5px;"'}if(b[0]=="Olympus om10"){var c='olympus.png"  style="width:134px; height:84px; margin-top:14px;"'}if(b[0]=="Ultronic Panoramic"){var c='ultronic.png"  style="width:111px; height:69px; margin-top:20px;"'}if(b[0]=="Lomo Colorsplash"){var c='lomo.png"  style="width:134px; height:69px; margin-top:19px;"'}if(b[0]=="Diana Mini"){var c='diana.png"  style="width:110px; height:76px; margin-top:13px;"'}if(b[0]=="iPhone"){var c='iphone.png"  style="width:55px; height:104px; margin-top:3px;"'}if(b[0]=="Other"){var c='other.png"  style="width:111px; height:68px; margin-top:20px;"'}if($(window).height()<600){}else{$(this).append('<div id="box"'+d+'><div class="boxcopy"><h1>'+b[0]+"</h1><h2>"+b[1]+'<br/><span class="date">'+b[2]+"</span></h2><h3>"+b[3]+'</h3></div><div class="boximage"><img src="images/icons/'+c+"/></div></div>");if(b[4]=="published"){$(this).append('<a href="print.php" id="publish"><div id="publishBox"></div></a>')}}}$(this).children("#box").stop().animate({bottom:"0px"},{queue:false,duration:350})},function(){if($(this).parent().children("#publish")){$(this).children("#publish").remove()}$(this).children("#box").stop().animate({bottom:"-120px"},{queue:false,duration:300,complete:function(){$(this).remove()}})});function a(){var d=$(window).height();$("#log").html(d);if(d<839){var b=d-250;var e=d-163;var c=d-3;var f=d-314}else{var b=589;var e=676;var c=836;var f=525}$(".any").css("height",b);$("#imagesContainer").css("height",b);$("#imagesContainer li").css("height",b);$(".horizontal-only").css("height",e);$("#wrap").css("height",c);$("#helpBlock").css("top",f+"px")}a();$(window).bind("resize",function(){a()})});
