// "$" durch "jQuery" ersetzten, um Konflikte mit anderen JS-Frameworks zu vermeiden
jQuery.noConflict();

jQuery(document).ready(function(){

	jQuery("#foo").carouFredSel({
		auto 		: true,
		scroll 		: {
			items 		: 1,
			duration	: 4000,
			easing		: "linear"
		},
		
		next : { 
			onAfter : function() {
				if (scroll_next) setTimeout(function() { jQuery("#foo").trigger("next"); }, 10);
			}
		}
	});
	
	jQuery(function() { 
			scroll_next = true;
			jQuery("#foo").trigger("next"); 
	});

	// Höhe des Carouselwrappers anpassen
//	jQuery('div.caroufredsel_wrapper').css({'height': '50px','width': '730px'});
	jQuery('div.caroufredsel_wrapper').css({'height': '80px','width': '730px'});
});

