$(document).ready(
	function (){
		boxen.init();
	}
);

boxen = new Object();

boxen.init = function (){

	jQuery(function() {
		jQuery.support.borderRadius = false;
		jQuery.each(['borderRadius','MozBorderRadius','WebkitBorderRadius','OBorderRadius','KhtmlBorderRadius'], function() {
			if(document.body.style[this] !== undefined) jQuery.support.borderRadius = true;
			return (!jQuery.support.borderRadius);
		});
	});
	
	if (! jQuery.support.borderRadius){
	
		if ($("#content .block:not(.block .block, .abgerundet)").length != 0 && ! global.thisBrowserIsAPieceOfS___()){
		
			//alert("Fallback");
	
			global.ladeCSS("/media/styles/boxen.fallback.css", "screen");
			
		
			$("#content .block:not(.block .block, .abgerundet)").each(function (index){
			
				$(this).wrapInner('<div class="inhalt"></div>');
		
				$(this).prepend('<div class="start"></div>');
				$(this).append('<div class="ende"></div>');
		
				$(this).addClass("abgerundet");
				
			});
		
		}
	
	}
	
}
