jQuery(function($) {
                                           });
                                           jQuery(window).load(function($) {
                                               jQuery('#carousel').flexslider({
                                                   animation: "slide",
                                                   controlNav: false,
                                                   animationLoop: false,
                                                   slideshow: false,
                                                   itemWidth: 65,
                                                   itemMargin: 5,
                                                   asNavFor: '#slider'
                                               });

                                               jQuery('#slider').flexslider({
                                                   animation: "fade",
                                                   controlNav: false,
                                                   animationLoop: false,
                                                   slideshow: false,
                                                   sync: "#carousel",
                                                   start: function(slider) {
                                                       jQuery('body').removeClass('loading');
                                                   }
                                               });
                                           });