jQuery(document).ready(function()
{});if(document.getElementById("gallery_right_slide_show"))
{imagesSlideShowHandlesContainer=".slider_bottom";imagesSlideShowLeftHandle=".slider_bottom_left";imagesSlideShowRightHandle=".slider_bottom_right";imagesSlideShowImagesContainer=".gallery_slideshow";}else{imagesSlideShowHandlesContainer=".slider_bottom";imagesSlideShowLeftHandle=".slider_bottom_left";imagesSlideShowRightHandle=".slider_bottom_right";imagesSlideShowImagesContainer=".news_slideshow";}
jQuery(document).ready(function(){currentSlideImagesCount=0;var $slidingImages=jQuery(imagesSlideShowImagesContainer+" img");if($slidingImages.length>1){$slidingImages.css({"display":"none"});$slidingImagesFirstImage=$slidingImages[currentSlideImagesCount];jQuery(imagesSlideShowLeftHandle).css({"display":"none"});jQuery($slidingImagesFirstImage).css({"display":"block"});jQuery(imagesSlideShowRightHandle).click(function(){jQuery($slidingImages[currentSlideImagesCount]).fadeOut("normal",function(){currentSlideImagesCount++;jQuery($slidingImages[currentSlideImagesCount]).fadeIn("normal",function(){if($slidingImages.length-1==currentSlideImagesCount){jQuery(imagesSlideShowRightHandle).css({"display":"none"},"normal");}
else{jQuery(imagesSlideShowRightHandle).css({"display":"block"});}
jQuery(imagesSlideShowLeftHandle).css({"display":"block"});});});});jQuery(imagesSlideShowLeftHandle).click(function(){jQuery($slidingImages[currentSlideImagesCount]).fadeOut("normal",function(){currentSlideImagesCount--;jQuery($slidingImages[currentSlideImagesCount]).fadeIn("normal",function(){if(currentSlideImagesCount==0){jQuery(imagesSlideShowLeftHandle).css({"display":"none"},"normal");}
else{jQuery(imagesSlideShowLeftHandle).css({"display":"block"});}
jQuery(imagesSlideShowRightHandle).css({"display":"block"});});});});}
else{jQuery(imagesSlideShowHandlesContainer).css({"display":"none"});}});
