    $(document).ready( function() {

    	// Slideshow
    	$('#slideshow').cycle({ 
    	    fx:    'fade', 
    	    sync: false,
    	    speed:  700,
    	    timeout: 4000
    	    
    	 });
    	
    	// fancybox for video
    	$(document).ready(function() {
    		$('.vimeo').fancybox({
    		'padding': 20, 
    		'width': 640, 
    		'height': 360,
    		'type': 'iframe',
    		'overlayOpacity': 0.8,
    		'overlayColor': '#000'
    		});
    	}); //ready 
    	
    	
    	/*var autoPlay = true;
        var currentSlide = 1;
        var numSlides = 2;
        
        var slideHeight = $("#home-fader-bg").height();
        
        function goToSlide(theSlide) {
            
            $("#home-fader-bg").fadeTo('slow', 0, function() {
            
                distance = (theSlide-1) * slideHeight + 2;
               
                $(this).css({backgroundPosition: "0 -" + distance + "px"});
                $(this).fadeTo('slow', 1);
                    
            });
            
        }
        
        function moveSlide() {
            if (autoPlay) {
                currentSlide = currentSlide + 1;
                if (currentSlide > numSlides) { currentSlide = 1; }
                goToSlide(currentSlide);
            }
        }
        
        setInterval(moveSlide, 5000);
        */
    });

