var hoverImage = new Class(
  {
    initialize: function(image)
    {
      var img_highlight = new Image();
      img_highlight.src = image.src.replace(/-n./, '-h.');
        
      image.addEvents(
        {
          'mouseover': function(e)
          {
            image.old = image.src;
            image.src = image.src.replace(/-n./, '-h.');
          }.bind(image),
          'mouseout': function(e)
          {
            image.src = image.old;
          }.bind(image)
        }
      );
    }
  }
);

window.addEvent(
  'load',
  function()
  {
    // Hauptnavigation MouseOvers
    $('navigation').getChildren().each(
      function(item)
      {
        var img = item.getFirst();
        new hoverImage(img);
      }
    );
  }
);
