$(document).ready(function(){
    
    // hover-Status im Menue
    $("#primNavBox a").mouseover(function(){
        jQuery(this).addClass('hover');
    });
    $("#primNavBox a").mouseout(function(){
        jQuery(this).removeClass('hover');
    });
	
	// TEASER jcarousel
	$("#mycarousel").jcarousel({
		scroll: 1
	});
    
	// Anpassen der Links im jcarousel
	$("#mycarousel .Aufschnitt a").attr('href', 'produkte/aufschnitt.html');
	$("#mycarousel .Frischfleisch a").attr('href', 'produkte/frischfleisch-steaks.html');
	$("#mycarousel .Convenience a").attr('href', 'produkte/convenience.html');
	$("#mycarousel .Industrieware a").attr('href', 'produkte/industrieware.html');
	
	// Pruefsiegel -> Text-Margin um die Border um Zertifikate ergaenzen
	//$('#bmo-page-24 .csc-textpic').children().css('margin-left','210px')
	$('#bmo-page-24 .csc-textpic .csc-textpic-imagewrap').next().css('margin-left','200px');
	
	scaleHeader();
	
	$(".news-latest-image").mouseover(function(){
		$(this).parent().children().css('color', '#ffdb18')
	}).mouseout(function(){
		$(this).parent().children('a .news-latest-text h3').css('color', '')
	});
	
	$('.teaser-container').css('visibility','visible');
	
});

function scaleHeader() {
	var rowCount = $('.csc-firstHeader span').children();

	if (rowCount.length > 0) {
		$('.csc-firstHeader').css('height', '60px');
	}
	else {
		$('.csc-firstHeader').css('height', '30px');
	}
}

















