$(document).ready(function () {
	
 	//----------------------------------------------------
 	// PNG-Fix
 	$(document).pngFix();
 	
 	//----------------------------------------------------
 	// PNG-Fix
	$('*').each(function() {
		if ($(this).css('float') !== 'none') {
		$(this).css('display', 'inline');
		}
	});
 	
 	//----------------------------------------------------
 	//navigation correction
 	var naviLast = $("a[@class^='navi_'][class$='a']:last ~ a.navi_1:first").css('margin-top','12px');

 	//----------------------------------------------------
	//div height correction
	var leftC = $('#navigation').height()+$('#kursNews').height()+$('#metanav').height();
	var middleC = $('#mainContent').height()+$('#mainContentEnd').height();
	var rightC = $('#rightColum').height();
	var maxHeight = Math.max(leftC,Math.max(middleC,rightC));
	$('#content').height(maxHeight+30);
	
 	//----------------------------------------------------
	//metanav margin-top correction
	var metanav_top = maxHeight-$('#navigation').height()-$('#kursNews').height()-7;
	$('#metanav').css("margin-top",metanav_top+"px");
	
 	//----------------------------------------------------
	//inner fade
	$('li.innerFade > img').show();
 	$('#innerFade').innerfade({ animationtype: 'fade', speed: 1000, timeout: 6000, type: 'random' });
  	
});