$(document).ready(function(){
						   
	$(".sidebar img").fadeTo("slow", 1.0); $(".sidebar img").hover(function(){ $(this).fadeTo("fast", 0.5); },function(){	$(this).fadeTo("fast", 1.0); });
	
	$(".footer .box1 img").fadeTo("slow", 1.0); $(".footer .box1 img").hover(function(){ $(this).fadeTo("fast", 0.5); },function(){	$(this).fadeTo("fast", 1.0); });
	
	$(".ngg-gallery-thumbnail").fadeTo("slow", 1.0); $(".ngg-gallery-thumbnail").hover(function(){ $(this).fadeTo("fast", 0.5); },function(){	$(this).fadeTo("fast", 1.0); });
	
	$(".gallery img").fadeTo("slow", 0.5); $(".gallery img").hover(function(){ $(this).fadeTo("fast", 1.0); },function(){	$(this).fadeTo("fast", 0.5); });
	
				$('.banner').orbit({
     				animation: 'fade',                  // fade, horizontal-slide, vertical-slide, horizontal-push
     				animationSpeed: 600,                // how fast animtions are
     				timer: true, 			 // true or false to have the timer
    				advanceSpeed: 5000, 		 // if timer is enabled, time between transitions 
     				directionalNav: true, 		 // manual advancing directional navs
     				afterSlideChange: function(){} 	 // empty function 
				});
	$(".imageboxbox img").hover(function() { //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find(".imageboxboxhover").fadeIn('fast').show(); //Drop down the subnav on click

		$(this).parent().hover(function() {
		}, function(){
			$(this).parent().find(".imageboxboxhover").fadeOut('fast'); //When the mouse hovers out of the subnav, move it back up
		});

		//Following events are applied to the trigger (Hover events for the trigger)
	});
	$('#back-top a').click(function () {
			$('body,html').animate({
				scrollTop: 0
			}, 800);
			return false;
	});
});
$(document).ready(function(){
      var counter=1;
        $('.footer .box1 img').each(function(){
           if(counter % 4==0){ // Die '6' durch Ihre Zahl ersetzen
             $(this).css('margin-right','0'); // Margin nach rechts wird entfernt
           }
            counter++;
        });
	});
