$jQ=jQuery.noConflict();$jQ(document).ready(function(){slideShow(6000);});function slideShow(speed){$jQ('ul.slideshow').append('<li id="slideshow-caption" class="caption"><div class="slideshow-caption-container"><h3></h3><p></p></div></li>');$jQ('ul.slideshow li').css({opacity:0.0});$jQ('ul.slideshow li:first').css({opacity:1.0});$jQ('#slideshow-caption h3').html($jQ('ul.slideshow a:first').find('img').attr('title'));$jQ('#slideshow-caption p').html($jQ('ul.slideshow a:first').find('img').attr('alt'));$jQ('#slideshow-caption').css({opacity:0.7,bottom:0});var timer=setInterval('gallery()',speed);$jQ('ul.slideshow').hover(function(){clearInterval(timer);},function(){timer=setInterval('gallery()',speed);});}
function gallery(){var current=($jQ('ul.slideshow li.show')?$jQ('ul.slideshow li.show'):$jQ('#ul.slideshow li:first'));var next=((current.next().length)?((current.next().attr('id')=='slideshow-caption')?$jQ('ul.slideshow li:first'):current.next()):$jQ('ul.slideshow li:first'));var title=next.find('img').attr('title');var desc=next.find('img').attr('alt');next.css({opacity:0.0}).addClass('show').animate({opacity:1.0},1000);$jQ('#slideshow-caption').slideToggle(300,function(){$jQ('#slideshow-caption h3').html(title);$jQ('#slideshow-caption p').html(desc);$jQ('#slideshow-caption').slideToggle(500);});current.animate({opacity:0.0},1000).removeClass('show');}
