jQuery(function(){var d="#page_uuid_98707a0e-1bc8-45a1-8c91-d837bf0dcbfc";if(jQuery(d).length){if(jQuery(".set_list li").length){insert_image_loading_progress();jQuery(".set_list li:first").css("margin-left",0);jQuery(".set_list li:last").css("margin-right",0);var c=0;jQuery(".set_list li").each(function(){c+=$(this).outerWidth(true)});jQuery(".set_list").css("width",c)}if(jQuery(".image_list li").length){insert_image_loading_progress();jQuery(".image_list li:first").css("margin-left",0);jQuery(".image_list li:last").css("margin-right",0);if(jQuery.browser.msie&&jQuery.browser.version=="7.0"){var a=0;jQuery(".image_list li").each(function(){a+=$(this).outerWidth(true)});jQuery(".image_list").css("width",a)}else{get_scale_factor();resize_image_list_ul_while_loading();resize_images()}insert_javascript_image_navigation();jQuery(window).scroll(function(){if(jQuery(window).scrollLeft()>260){jQuery("#header, #navigation, .contact_details li a, .contact_details .email, #images div.set.information h2.title").fadeOut(1700)}else{jQuery("#header, #navigation, .contact_details li a, .contact_details .email, #images div.set.information h2.title").fadeIn(1700)}})}var b=0;jQuery("img").load(function(){b=b+1;jQuery("#images_loaded").text(b);if(b==jQuery("img").length){jQuery("#image_loading_progress").remove();resize_image_list_ul_when_loaded()}});jQuery(window).resize(function(){if(jQuery(d).length>0){location.reload()}})}});function get_scale_factor(){image_scale_factor=jQuery("#container").height()/parseInt(jQuery(".image_list img:first")[0].attributes.height.nodeValue,10)}function resize_image_list_ul_while_loading(){jQuery(".image_list ul").css("height",jQuery(window).height());var b=10;var c=10;var d=b+c;var a=0;jQuery(".image_list img").each(function(){a+=parseInt(jQuery(this)[0].attributes.width.nodeValue,10)});image_list_width=Math.round(a*image_scale_factor);image_list_margins=(jQuery(".image_list img").length*d);image_list_width+=image_list_margins;jQuery(".image_list ul").css("width",image_list_width)}function resize_image_list_ul_when_loaded(){var a=0;jQuery(".image_list li").each(function(){a+=jQuery(this).outerWidth(true)});jQuery(".image_list ul").css("width",a)}function resize_images(){jQuery(".image_list img").each(function(){jQuery(this).width(Math.round(parseInt(jQuery(this)[0].attributes.width.nodeValue,10)*image_scale_factor));jQuery(this).height(Math.round(parseInt(jQuery(this)[0].attributes.height.nodeValue,10)*image_scale_factor))})}function insert_image_loading_progress(){jQuery('<div id="image_loading_progress">Loaded <span id="images_loaded">0</span> of '+jQuery("img").length+"<div />").appendTo(jQuery("#container"))}function insert_javascript_image_navigation(){jQuery('<div id="javascript_image_navigation"><ul><li class="back"><a href="#">Back</a></li><li class="up"><a href="#">Up</a></li><li class="previous"><a href="#">Previous</a></li><li class="next"><a href="#">Next</a></li><li class="stop"><a href="#">Stop</a></li><li class="play"><a href="#">Play</a></li></ul></div>').appendTo(jQuery("#container"));var a=jQuery(".image_list li");var b=0;var c=false;jQuery(".back").click(function(){jQuery(window).scrollTo(0,700)});jQuery(".next").click(function(){b+=1;jQuery(window).scrollTo(jQuery(a[b]).offset().left,400)});jQuery(".previous").click(function(){b-=1;jQuery(window).scrollTo(jQuery(a[b]).offset().left,400)});jQuery(".stop").click(function(){c=false});jQuery(".play").click(function(){c=true})};
