/**************************************************************
   AUTHOR:  Pat Heard (fullahead.org)
   DATE:    2009.08.15
   PURPOSE: Utility functions and event definitions
 **************************************************************/

window.addEvent('domready', function(){

  var menu = $$('#header a');
  for(var i = 0; i < menu.length; i++){
  
    // Only define mouseover events for non 'here' link
    if(!menu[i].getParent().hasClass('here')){
    
      menu[i].set('morph', {duration: 200});
      menu[i].setStyle('color', '#aaa');
      
      menu[i].addEvent('mouseover', function(){
        this.morph({'color': '#555'});
      });
      menu[i].addEvent('mouseout', function(){
        this.morph({'color': '#aaa'});  
      }); 
    }
  }

});