// NAVIGATION BAR
$(document).ready(function() {
   
       // hides the navBar as soon as the DOM is ready
   
       // (a little sooner than page load)
   
        $('li.navItem').hide();
          
       // shows the navBar on hover of the noted link  
   
        $('#navBar').hover(function() {
   
          $('li.navItem').fadeIn('slow');
   
             
        },
  
       // hides the navBar on hover of the noted link  
  
        function() {
  
          $('li.navItem').fadeOut('slow');
  
          return false;
  
        });
        });
        


// NAV PLUS COLOR CHANGES      
$(document).ready(function navPlusColors() {

// changes the color of #navPlus
       $('#navPlus').animate( { color: '#ffffff' }, 500)
       	.animate( { color: '#ff5743' }, 500, navPlusColors)
       	.animate( { color: '#a4a16e' }, 500, navPlusColors)
       	.animate( { color: '#609f84' }, 500, navPlusColors)
       	.animate( { color: '#126b67' }, 500, navPlusColors)
       	.animate( { color: '#151d28' }, 500, navPlusColors)
       	.animate( { color: '#0d0d0d' }, 500, navPlusColors);


});



// MAIN CONTENT
$(document).ready(function() {
   
       // hides the navBar as soon as the DOM is ready
   
       // (a little sooner than page load)
   
        $('#mainContent').hide()
        $('#contentQuote').fadeIn('slow');
        $('.mainContentWork').hide()
        $('#contentContact').hide()
        $('#contentNews').hide();
        $('#contentTumblr').hide();
        $('#contentInk').hide();
        $('#contentPixels').hide();
                  
       // shows the contentContact on click of the noted link  
   
        $('#contact').click(function contentContact() {
   
          $('#mainContent').fadeIn('slow')
          $('.mainContentWork').hide()
          $('#contentNews').hide()
          $('#contentTumblr').hide();
          $('#contentInk').hide()
          $('#contentPixels').hide()
          $('#contentContact').fadeIn('slow');
          
   			return false;
             
        });
        
        // shows the contentNews on click of the noted link  
   
        $('#news').click(function contentNews() {
   
          $('#mainContent').fadeIn('slow')
          $('.mainContentWork').hide()
          $('#contentContact').hide()
          $('#contentInk').hide()
          $('#contentPixels').hide()
          $('#contentTumblr').fadeIn('slow');
          $('#contentNews').fadeIn('slow');
          
   			return false;
             
        });
               
        // shows the contentInk on click of the noted link  
   
        $('#ink').click(function contentInk() {
   
          $('#mainContent').hide()
          $('#mainContentWorkInk').fadeIn('slow')
          $('#mainContentWorkPixels').hide()
          $('#contentContact').hide()
          $('#contentNews').hide();
          $('#contentTumblr').hide();
          $('#contentPixels').hide()
          $('#contentInk').fadeIn('slow');
          
   			return false;
             
        });
        
        // shows the contentInk on click of the noted link  
   
        $('#pixels').click(function contentPixels() {
   
          $('#mainContent').hide()
          $('#mainContentWorkInk').hide()
          $('#mainContentWorkPixels').fadeIn('slow')
          $('#contentContact').hide()
          $('#contentNews').hide();
          $('#contentTumblr').hide();
          $('#contentInk').hide()
          $('#contentPixels').fadeIn('slow');
          
   			return false;
             
        });
  
       // hides the div on click of the noted link  
  
        $('.close').click(function() {
  
          $('#mainContent').fadeOut('slow');
  
          return false;
  
        });
        
        // hides the div on click of the noted link  
  
        $('.closeWork').click(function() {
  
          $('.mainContentWork').fadeOut('slow');
  
          return false;
  
        });
        });