jQuery(document).ready(function() {
	if(jQuery('body').attr('id') == "pid11") {
		jQuery('#pid11 .box.border .content *').css("display", "none");
		jQuery('#pid11 .box.border .content div, #pid11 .box.border .content #slider div *').css("display", "block");
		jQuery('#pid11 .box.border .content .csc-header').css("display", "none");
		jQuery('#pid11 .box.border .content div').height("170px").css("text-align", "center");
		jQuery('#pid11 .box.border #slider-wrapper').css("overflow", "hidden");
		jQuery('#pid11 .box.border #slider-wrapper').css("position", "relative");
		jQuery('#pid11 #slider').css("position", "absolute");

		slideIt();
	}
});

function slideIt() {

	sliderHeight = 0;
	jQuery('#slider div').each(function() {
		sliderHeight = sliderHeight + parseInt(jQuery(this).height());
	});
	// jQuery('#slider').animate({
	// 		top: sliderHeight + "px"
	// 	}, 60000, "linear", function() {
	// 		jQuery(this).css("top", "170px");
	// 		slideIt();
	// 	});
	
	// Slider alt mit Stop-Funktion
  curPos = parseInt(jQuery('#slider').css("top"));
  newPos = curPos - 170;
  
  if((newPos * -1) <= sliderHeight) {
  	jQuery('#slider').animate({
  		top: curPos - 170 + "px"
  	}, 700);
  } else {
  	jQuery('#slider').css("top", "170px")
  }
  
	window.setTimeout("slideIt()", 3500);
}