
//nav animation

$(document).ready(function() {
	$(".menu").hover(
      function () {
        $(this).animate({backgroundPosition:"(0 -53px)"}, 200);
      },
      function () {
        $(this).animate({backgroundPosition:"(0 0)"}, 200);

      }
    );

});


//resize window





//smooth scrolling between anchors
$(function() {
                $('ul.nav a, #logo').bind('click',function(event){
                    var $anchor = $(this);
                    
                    //if you want to use one of the easing effects:
                    $('html, body').stop().animate({
                        scrollLeft: $($anchor.attr('href')).offset().left
                    }, 1000,'easeInOutExpo');
                    
                    //$('html, body').stop().animate({
                    //    scrollLeft: $($anchor.attr('href')).offset().left
                    //}, 1000);
                    event.preventDefault();
                });
            });

//jScrollPane - custom internal scrollbars
$(function()
		{
			$('.scroll').jScrollPane();
		});

//Bio section slideshow		
$(function() {     
		slideShow(4000); 
		});	

//Color fading links on Nav
		$(function() {  
			$('ul.nav a, ul#footerNav a, a').dwFadingLinks({
				color: 'white',
				duration: 500,
				queue: false
			});	
		 });

