');$(".picture img").animate({marginRight:"0"},400)});var b=new Number(-1*$(this).getItemPos())+200;if(b0){b=0}$(".slideshow-thumbs").stop().animate({marginLeft:b+"px"});updateCount()}});$(function(){$(".ie .slideshow-thumbs").width(0);var a=new Number($(".slideshow-thumbs a").css("padding-left").replace("px",""))+Number($(".slideshow-thumbs a").css("padding-right").replace("px",""));$(".ie .slideshow-thumbs img").each(function(c){$(".slideshow-thumbs").width($(this).parent().width()+$(".slideshow-thumbs").width()+a+10)});updateCount();$(".gallery button").bind({mouseenter:function(){moveSlow($(this).attr("class"))},mouseleave:function(){$(".slideshow-thumbs").stop()},click:function(){moveFast($(this).attr("class"))}});$(".slideshow-thumbs a").click(function(){$(this).selectItem();pause();return false});$(".gallery .large img.play").click(function(){if($(".gallery").hasClass("pause")){$(".gallery").addClass("play").removeClass("pause")}if(!$(".gallery").hasClass("pause")&&!$(".gallery").hasClass("play")){$(".gallery").addClass("play");setInterval("play();",5000)}});$(".gallery .large img.pause").click(function(){$(".gallery").removeClass("play").addClass("pause")});$(".gallery a.prev").click(function(){movePrev();pause();return false});$(".gallery a.next").click(function(){moveNext();pause();return false});var b=$(".gallery").position();$(".gallery a.next").css("left",b.left+$(".gallery").width()-100);$(".gallery button.forward").css("margin-left",$(".gallery").width()-22)});