$(document).ready(function(){
    var counter=1;
    $('.footerimagebox img').each(function(){
       if(counter % 8==0){ 
          $(this).css('margin-right','0');
       }
       counter++;
    });
});
$(document).ready(function(){
    var counter=1;
    $('.frontinfo .news .box').each(function(){
       if(counter % 3==0){ 
          $(this).css('border-bottom','none');
       }
       counter++;
    });
});
$(document).ready(function(){
    var counter=1;
    $('.content.contact .mitarbeiterbox').each(function(){
       if(counter % 3==0){ 
          $(this).css('margin-right','0');
       }
       counter++;
    });
});
jQuery(document).ready(function($){
	// Slider für die Kommentare + replace text
	$(".morenews.one").click(function(){
         $(".latestnewsbox2").slideToggle("fast");
         $(this).toggleClass("active");
		 $(this).text($(this).text() == 'Weitere News einblenden' ? 'Weitere News ausblenden' : 'Weitere News einblenden');
		 return false;
    });
	$(".morenews.two").click(function(){
         $(".latestnewsbox4").slideToggle("fast");
         $(this).toggleClass("active");
		 $(this).text($(this).text() == 'Weitere News einblenden' ? 'Weitere News ausblenden' : 'Weitere News einblenden');
		 return false;
    });
	// image Fader für die icons
	$(".defaultcontent .imagebox img").hover(function(){ $(this).fadeTo("fast", 0.5); },function(){	$(this).fadeTo("fast", 1.0); });
});
$('a.goToSlide').click(function(event){

		// ignore the <a> tag's default behavior

		event.preventDefault();

		// the regular expression below matches anything up to '#slide-', leaving just the number.

		myDeck.goTo(this.href.replace(/.+#/,''));

	});
