$(document).ready(function() {
	if (jQuery) {
		

	$(window).bind('load', function() {
		
		//Runde Ecken für das TopTeaser Bild
			$(".artikelimg a").append("<div class='c'></div>");
			$(".c").height(($(".artikelimg a img").height() - 17) + "px");
			$(".c").width(($(".artikelimg a img").width()) + "px");
			$(".c").css("background-repeat","no-repeat");
			$(".c").css("background-image","url(" + $(".artikelimg a img").attr("src") + ")");
			$(".artikelimg a img").hide();
			$(".c").corner({
		  		tr: { radius: 8 },
		  		tl: false,
		  		bl: false,
		  		br: { radius: 8 }
			});
		
		//Runde Ecken für kleine Bilder in Liste Aktuelles
			$(".roundCorner img").each(function(i, n){
				$(this).parent(".roundCorner").append("<div class='c" + i + "'></div>");			

					$(".c" + i).height(($(this).height() - 9) + "px");
					$(".c" + i).width(($(this).width()) + "px");
					$(".c" + i).css("background-repeat","no-repeat");
					$(".c" + i).css("background-image","url(" + $(this).attr("src") + ")");
					$(this).hide();
					$(".c" + i).corner({
		  				tr: { radius: 4 },
		  				tl: false,
		  				bl: false,
		  				br: { radius: 4 }
				 	});
				});
				
			//Runde Ecken für FAQ
			$(".boxImg img").each(function(i, n){
				$(this).parent(".articleImg").append("<div class='c" + i + "'></div>");			

					$(".c" + i).height(($(this).height() - 9) + "px");
					$(".c" + i).width(($(this).width()) + "px");
					$(".c" + i).css("background-repeat","no-repeat");
					$(".c" + i).css("background-image","url(" + $(this).attr("src") + ")");
					$(this).hide();
					$(".c" + i).corner({
		  				tr: { radius: 4 },
		  				tl: { radius: 4 },
		  				bl: { radius: 4 },
		  				br: { radius: 4 }
				 	});
				});						
		});
	};
});