var Gallery={nextImg:function(){var className=$('#painting > div:visible').next().attr('class');if(undefined!==className)
Gallery.imgShow(className);},descHide:function(id){$('.'+id).find('.desc').animate({'opacity':0},500);},imgShow:function(id){var $painting=$('#painting > div:visible');var item=$('.'+id);$painting.hide().animate({opacity:0},500);item.show().animate({opacity:1},500).find('.desc').css({width:item.find('img').attr('width')}).delay(500).animate({'opacity':0.7},1000);hideDescID=window.setTimeout("Gallery.descHide('"+id+"')",5000);timeoutID=window.setTimeout('Gallery.nextImg()',5000)}};$(document).ready(function(){$('a[rel*=lightbox]').lightBox();Gallery.imgShow($('.imgList .imgPlaceholder a img').parent().attr('id'));$('.imgList .imgPlaceholder a img').click(function(){clearTimeout(timeoutID);Gallery.imgShow($(this).parent().attr('id'));});var $desc=$('#painting div:visible .desc');$('#painting a img').hover(function(){clearTimeout(hideDescID)
clearTimeout(timeoutID);},function(){var id=$('#painting div:visible').attr('class');hideDescID=window.setTimeout("Gallery.descHide('"+id+"')",2000);timeoutID=window.setTimeout('Gallery.nextImg()',5000);});});
