     $(function() {

// MENU ROLLOVER 	
		$('.menuitem').each(function(){
    	var m=$(this).children();
    	var src1= m.attr('src'); // initial src
    	var newSrc = src1.substring(0, src1.lastIndexOf('.')); // let's get file name without extension
    	m.hover(function(){
        				   $(this).attr('src', newSrc+ '-a.' + /[^.]+$/.exec(src1)); //last part is for extension   
    					   }, function(){
        				   $(this).attr('src', newSrc + '.' + /[^.]+$/.exec(src1)); //removing '-over' from the name
    					   });
		});
		
// GALLERY ROLLOVER		
		$('.galleries').hover(function(){
						// hier passiert nix, das erledigt das einzelne rollover;				
						}, function(){
						   $('.gallery-img').animate({opacity: 1});        				  
    					});		
		$('.gallery-img').each(function(){
    	var t=$(this).children().eq(2);		
    	var src11= t.attr('src'); 
    	var newSrc1 = src11.substring(0, src11.lastIndexOf('.')); 
    	$(this).hover(function(){
		$('.gallery-img').css('opacity', '0.7');	
						   $(this).css('opacity', '1');
        				   t.attr('src', newSrc1+ '-a.' + /[^.]+$/.exec(src11)); 
    					   }, function(){
						   $(this).css('opacity', '0.7');	
        				   t.attr('src', newSrc1 + '.' + /[^.]+$/.exec(src11)); 
    					   });
		});

// SMALL GALLERY ROLLOVER	
		$('.galleries-small').hover(function(){
						// hier passiert nix, das erledigt das einzelne rollover;				
						}, function(){
						   $('.gallery-img-small').animate({opacity: 1});        				  
    					});	
		$('.gallery-img-small').each(function(){
    	var s=$(this).children();		
    	var src12= s.attr('src'); 
    	var newSrc2 = src12.substring(0, src12.lastIndexOf('.')); 
    	$(this).hover(function(){
		$('.gallery-img-small').css('opacity', '0.7');	
						   $(this).css('opacity', '1');
        				   s.attr('src', newSrc2+ '-a.' + /[^.]+$/.exec(src12)); 
    					   }, function(){
						   $(this).css('opacity', '0.7');	
        				   s.attr('src', newSrc2 + '.' + /[^.]+$/.exec(src12)); 
    					   });
		});
		


});



