$(document).ready( function() {
			$('#fader').billy({
				transition: 'fade',
				scrollSpeed: 1000,
				nextLink: $('#fader li'),
				indicators: $('#fade_indicators'),
				autoAnimate: false,
			});
			});

// Title hover

$(function() {
		// image hover
		$("#WorkGrid li a").hover(function(){
			$(this).fadeTo(300, .4); 
		},function(){
			$(this).fadeTo(300, 1.0);
		});

});

// Vertical scroller

$(function(){
    $('#Nav li a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, {duration: 1500, easing: 'easeInOutQuint'});
                return false;
            }
        }
    });
});



