var $j = jQuery.noConflict();

$j(document).ready(function() { 

function moveUp() {
	var scrollSpeed = 4000;
	var waitTime = 10000;
	var scrollPixels = 100;
  if($j('.glidecontentinner ').css('marginTop') < -$j('.glidecontentinner ').css('height')+250) {
  	$j('.glidecontentinner ').css('marginTop', scrollPixels);
  }
  var mt =  parseInt($j('.glidecontentinner ').css('marginTop'));
  var h =  parseInt($j('.glidecontentinner ').height());
  if(mt < -h+(scrollPixels + 50)) {
  	mt = 0;
  }
  $j('.glidecontentinner ').css('marginTop', mt);
  $j('.glidecontentinner ').animate({marginTop: mt - 100}, scrollSpeed, function(){
  	$j('.glidecontentinner ').delay(waitTime);
  	moveUp();
  })
};


 	moveUp();
 		
	$j("span.open").click(function(){
	 	$j(".img_c").hide();
	 	$j(".img_o").show();
	 	$j(this).find(".img_c").show();
	 	$j(this).find(".img_o").hide();
	 	$j("#menu_left ul ul").hide();
	 	$j(this).parent().find("ul").slideDown('1500');
	});
	

	
	$j("#footerSuche input[type*='text']").focus(function(){
		if($j(this).attr("value") == "Suchbegriff eingeben") {
			$j(this).attr("value", "");
			$j(this).addClass("active");
		}
	});
	
	$j(".slider").easySlider({
		auto: true, 
		continuous: true
	});
	
});

