$(document).ready(function() {
	// erster Navipunkt kein Border oben
	$('#nav li:first').css('border-top', 'none');
	
	$.each($('#colCenter .htmlBox'), function(i,n) {
		if($(n).html().indexOf('tx-clalphabeticalindex-pi1_b') == -1) {
			$(n).parent().removeAttr('class');
		}
	});
		
	// jedes contentelement in der mitte: wenn keine Headline: -> Box-Stil entf., und in das vorherige Element einf.
	$.each($('#colCenter .box'), function(i,n) {
		if($(n).children('h1.boxHead').length == 0 && $(n).prev().hasClass('box')) {
			$(n).appendTo($(n).prev()).removeAttr('class').addClass('foo');
		}
	});
	
	// jedes contentelem. in der mitte: wenn Headline vorh.: -> mit innerShadow wrappen
	$('#colCenter > .box:has(.boxHead)').wrap('<div class="shadowIn"></div>');
	
	// jedes contentelem. in den seiten: wenn keine Headline: -> Box-Stil entf., sonst innerShadow wrappen
	$.each($('#colRight .box, #colLeft .box'), function(i,n) {
		if($(n).children('.boxHead').length == 0)
			$(n).removeAttr('class');
		else
			$(n).wrap('<div class="shadowIn"></div>');
	});
	
	
	// Alle innerShadows mit richtigem Schatten wrappen
	$('.shadowIn').wrap('<div class="shadowOut"></div>');
});