$sd(document).ready(function(){$sd("#animated li .box").each(function(){var a=$sd(this);var b=$sd(a).siblings("a").attr("href");$sd(a).wrapInner('<a href="'+b+'"></a>');$sd(a).prepend('<div class="cover"></div>');});$sd("#animated li").hover(function(){var a=$sd(this);$sd(".cover",a).stop(true,false).animate({top:'0px'},350);$sd(".box img",a).stop(false,false).animate({top:10},150).animate({opacity:1,top:0},350);},function(){var a=$sd(this);$sd(".cover",a).stop(true,false).animate({top:'-201px'},350);$sd(".box img",a).stop(true,false).animate({opacity:0,top:10},350);});var c=$sd(".image_window").width();var d=$sd(".image_reel .image_item").size();var e=c*d;for(i=0;i<d;i++){$sd(".image_paging").append('<a href="#" rel="'+(i+1)+'" class="image_paging_'+(i+1)+'"></a>');}$sd(".image_paging").show();$sd(".image_paging a:first").addClass("active");$sd(".image_reel").css({'width':e});l=function(){var f=k.attr("rel")-1;var g=f*c;$sd(".image_paging a").removeClass('active');k.addClass('active');$sd(".image_reel").animate({left:-g},500);};h=function(){j=setInterval(function(){k=$sd('.image_paging a.active').next();if(k.length===0){k=$sd('.image_paging a:first');}l();},7500);};h();$sd(".image_reel a").hover(function(){clearInterval(j);},function(){h();});$sd(".image_paging a").click(function(){k=$sd(this);clearInterval(j);l();h();return false;});});