// Hersteller-Animation


	function gettotalLogowidth() {
		$("#hersteller").fadeIn();
		totalWidth = 0;	
		count = 0;
		$(".hersteller-inner a").each(
			function(i) {
				totalWidth = totalWidth+$(this).width();
			}
		);
		$(".hersteller-wrap").width(totalWidth*2);
		$(".hersteller-inner").width(totalWidth);
		
		if(totalWidth >= 950)
			animateLogos(totalWidth, totalWidth*50);

		$("#hersteller").prepend('<img src="/img/hersteller-left-gradient.png" class="leftgradient" />');
		$("#hersteller").prepend('<img src="/img/hersteller-right-gradient.png" class="rightgradient" />');
	};

	function animateLogos(destination, speed) {

		$(".hersteller-inner").clone(true).insertAfter(".hersteller-inner").removeClass("actual");
		$(".actual").animate({marginLeft: "-"+destination}, speed, "linear",
			function() {
				$(this).removeClass("actual");
					$(this).next().addClass("actual");
				$(this).remove();								
				animateLogos(destination, speed);
			}
		);
	}
