
// Some Function
var NavAnimate = {};
NavAnimate.setup = function() { 

  var nav = jQuery('#global'),
      navLinks = jQuery('#global a'),
      originalColor = navLinks.css('background-color'),
      hoverColor = 'red';
    
  nav.delegate('a', 'mouseover mouseout', function(e){
    if(e.type == 'mouseover') {
      // fade the link to it's assigned hover color;
      jQuery(this).stop().animate({ 
        backgroundColor : hoverColor 
      }, 300);
    } else if(e.type == 'mouseout'){
      // if link doesn't have a class of 'current'...
      if ( !(jQuery(this).hasClass('current'))  )
        // ... fade the color back
        jQuery(this).stop().animate({ 
          backgroundColor : originalColor 
        }, 300);
    }
  });
  
};

   
 function closeIntro() {
     var intro = jQuery('.intro');

      intro.delegate('a.close', 'click', function(){
        intro.fadeOut();
      });


  }  
  


  

// Loads main functions
jQuery(document).ready(function() {
	closeIntro();				  
  //alert('word');


});
