        function baCarousel_initCallback(carousel) {
            jQuery('#homeCarousel ul li:lt(' + (carousel.options.size) + ')').each(function(idx) {
				var oImg = jQuery('img', jQuery(this));
				var sTitle = oImg.attr('title');
				if (sTitle == '') {
					sTitle = oImg.attr('alt');
				}
                var sSrc = oImg.attr('src');
				var sPos = 'center center';
				var sImgPos = oImg.attr('rel');
				if (!sImgPos == '') {
					sPos = sImgPos;
				}
                var sNavIcon = '<li class="icon' + idx + '" style="background:url(' + sSrc + ') no-repeat ' + sPos + ';" title="' + sTitle + '">&nbsp;</li>';
                jQuery('#homeCarouselIconNav ul').append(sNavIcon);
                jQuery('#homeCarouselIconNav ul li.icon' + idx).click(function() {
                    carousel.scroll(idx + 1);
                }).fadeTo('fast', 0.3);
            });

            jQuery('#homeCarouselIconNav ul li').hover(function() {
                jQuery(this).fadeTo('fast', 1.0);
            }, function() {
                jQuery(this).fadeTo('fast', 0.3);
            });

			jQuery('#homeCarouselIconBg').fadeTo('fast', 0.1);
			jQuery('#homeCarouselIconBg').hide();
			//jQuery('#homeCarouselIconNav').hide(); //terry commented this line out so thumbs will stay in place and not be hidden 
            
            jQuery('#baCarousel').hover(function() {
				jQuery('#homeCarouselIconBg').show('slow');
				//jQuery('#homeCarouselIconNav').show('slow'); //terry commented this line out so thumbs will stay in place and not be hidden 
            }, function() {
              // jQuery('#homeCarouselIconNav').fadeOut('slow'); //terry commented this line out so thumbs will stay in place and not be hidden 
				jQuery('#homeCarouselIconBg').fadeOut('slow');
            });

			jQuery('#homeCarouselPrevButton').click(function() {
				carousel.prev();
			});

			jQuery('#homeCarouselNextButton').click(function() {
				carousel.next();
			});
        }

        jQuery(document).ready(function() {
			jQuery('#homeCarousel, #homeCarouselIconBg, #homeCarouselIconNav, #homeCarouselPrevButton, #homeCarouselNextButton').css('visibility', 'visible');

            var oCarousel = jQuery('#homeCarousel').jcarousel({
                scroll: 1,
                initCallback: baCarousel_initCallback,
				wrap: 'both',
				buttonNextHTML: null,
				buttonPrevHTML: null,
                size: 3,
				auto:10
            });

			jQuery('#homeCarouselPrevButton, #homeCarouselNextButton').text('');
        });