$(document).ready(function(){$gallery_leftcolumn=$("#gallery_leftcolumn");$("#clickthis").click(function(){if($(this).hasClass("ON")){$(this).attr("src","/static/images/slider_right.gif").removeClass("ON").addClass("OFF");$("#inside").width($("#inside").width()+(97*(getCurrentPanel(go.currentImageIndex)*2+2)));$gallery_leftcolumn.animate({width:"0px"},"normal");$("#photo_gallery").animate({width:"723px"},"normal",function(){var a="-"+($("#photo_gallery").outerWidth()*getCurrentPanel(go.currentImageIndex));$("#inside").css("margin-left",a+"px")});$("#rightpanel-"+getCurrentPanel(go.currentImageIndex)).animate({marginLeft:"139px",marginRight:"139px"},"normal",function(){$(".panel_photo_gallery").css({marginLeft:"139px",marginRight:"139px"})})}else{$(this).attr("src","/static/images/slider_left.gif").removeClass("OFF").addClass("ON");$("#photo_gallery").animate({width:"529px"},"fast",function(){var a="-"+($("#photo_gallery").outerWidth()*getCurrentPanel(go.currentImageIndex));$("#inside").css("margin-left",a+"px")});$gallery_leftcolumn.animate({width:"194px"},"normal",function(){$("#inside").width($("#inside").width()-(97*(getCurrentPanel(go.currentImageIndex)*2+2)))});$("#rightpanel-"+getCurrentPanel(go.currentImageIndex)).animate({marginLeft:"42px",marginRight:"42px"},"normal",function(){$(".panel_photo_gallery").css({marginLeft:"42px",marginRight:"42px"})})}})});