var MenuHover = new Class({
	initialize: function(hoverTrigger) {	
		hoverTrigger.each(function(li) {		
			imgLink = li.getChildren('a');
			image = imgLink.getChildren('img');
			image = image[0];
			imageSource = image.get('src').toString();
			if (image != '' && (imageSource.search(/_hover\./) == -1)) {
				li.addEvent('mouseenter', function() {	
					imgLink = li.getChildren('a');
					image = imgLink.getChildren('img');
					image = image[0];
					imageSource = image.get('src').toString();
					imageSource = imageSource.replace('.', '_hover.');
					image.set('src', imageSource);
				});    
				li.addEvent('mouseleave', function() {
					imgLink = li.getChildren('a');
					image = imgLink.getChildren('img');
					image = image[0];
					imageSource = image.get('src').toString();
					imageSource = imageSource.replace('_hover', '');
					image.set('src', imageSource);
				});	 
			}
		});
	}
});
