$(document).ready(function() {
	$("#filterbox .slider").hide();
	$("#filterbox .additional").show();

	$(".praemie_item .container_gr .content, .praemie_item .container_kl .bg").css("opacity", "0.83");

	//GROSSE ANISCHT
	$(".praemie_item .container_gr .overlay").hover(function() {
		var y = $(this).parent(".container_gr").height() - $(this).height();
		$(this).stop();
		$(this).prev().stop();
		$(this).animate({top: y+"px"}, 300);
		$(this).prev().animate({top: y+"px"}, 300);
	}, function() {
		var y = $(this).parent(".container_gr").height() - 48;
		$(this).stop();
		$(this).prev().stop();
		$(this).animate({top: y+"px"}, 300);
		$(this).prev().animate({top: y+"px"}, 300);
	});

	//KLEINE ANSICHT
	$(".praemie_item .container_kl a, .praemie_item .container_kl .overlay").hover(function() {
		var overlay = $(this).hasClass("overlay") ? $(this) : $(this).next(".overlay");
		var y = overlay.parent(".container_kl").height() - 14 - overlay.children(".content").height();
		overlay.stop();
		overlay.animate({top: y+"px"}, 300);
	}, function() {
		var overlay = $(this).hasClass("overlay") ? $(this) : $(this).next(".overlay");
		var y = overlay.parent(".container_kl").height();
		overlay.stop();
		overlay.animate({top: y+"px"}, 300);
	});
});

function slider(element){
	if ($(element).parent().prev(".slider").css("display") == "none"){
		$(element).parent().prev(".slider").slideDown("fast");
		$(element).removeClass("additional_down").addClass("additional_up");
		$(element).find(".more").hide().end().find(".less").show();
	} else {
		$(element).parent().prev(".slider").slideUp("fast");
		$(element).removeClass("additional_up").addClass("additional_down");
		$(element).find(".less").hide().end().find(".more").show();
	}
}

