jQuery(document).ready(function($) { $('#thumb-slider').flexslider({ animation: "slide", controlNav: false, animationLoop: false, slideshow: true, directionNav: false, controlNav: false, itemWidth: 180, itemMargin: 0, asNavFor: '#slider' }); $('#slider').flexslider({ animation: "slide", controlNav: false, directionNav: false, animationLoop: true, slideshow: true, sync: "#thumb-slider" }); $('a[data-rel]').each(function() { $(this).attr('rel', $(this).data('rel')); }); $("a[rel^='prettyPhoto[gallery1]']").prettyPhoto({ animation_speed: 'fast', slideshow: 5000, autoplay_slideshow: false, opacity: 0.80, show_title: false, theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ overlay_gallery: false, social_tools: false, changepicturecallback: function(){ var $pp = $('.pp_default'); if( parseInt( $pp.css('left') ) < 0 ){ $pp.css('left', 0 ); } } }); $('#carousel').elastislide({ imageW : 300, margin : 20, border : 0, easing : 'easeInBack', onClick:function( el, position, evt){ evt.stopPropagation(); } }); $(".inline").colorbox({inline:true,close:""}); var carouselapp = $("#carouselapp").waterwheelCarousel({ flankingItems: 3 }); });