$(function() {    
 
    $('#slideshow').cycle({
        fx:     'slideY', 
    	speed:  1, 
    	next:   '#slideshow', 
    	timeout: 0
    });
 
    function onBefore() {
        $('#title').html(this.alt);
    }
    
    $('#slideshow2').cycle({
        prev:   '#prev2',
        next:   '#next2',
        timeout: 0,
        speed: 1,
        before: onBefore
    });
 
    function onBefore() {
        $('#title2').html(this.alt);
    }

	$('#slideshow3').cycle({
        prev:   '#prev3',
        next:   '#next3',
        timeout: 0,
        speed: 1,
        before: onBefore
    });
 
    function onBefore() {
        $('#title3').html(this.alt);
    }
    
    $('#slideshow4').cycle({
        prev:   '#prev4',
        next:   '#next4',
        timeout: 0,
        speed: 1,
        before: onBefore
    });
 
    function onBefore() {
        $('#title4').html(this.alt);
    }
    
    $('#slideshow5').cycle({
    fx:     'slideY', 
    speed:  1, 
    next:   '#slideshow5', 
    timeout: 0
    });
 
    function onBefore() {
        $('#title5').html(this.alt);
    }
    
    $('#slideshow6').cycle({
    fx:     'slideY', 
    speed:  1, 
    next:   '#slideshow6', 
    timeout: 0
    });
 
    function onBefore() {
        $('#title6').html(this.alt);
    }
    
   $('#slideshow7').cycle({ 
    fx:     'slideY', 
    speed:  1, 
    next:   '#slideshow7', 
    timeout: 0
    });
 
    function onBefore() {
        $('#title7').html(this.alt);
    }
  
    $('#slideshow8').cycle({ 
    fx:     'slideY', 
    speed:  1, 
    next:   '#slideshow8', 
    timeout: 0
	});
	
    function onBefore() {
        $('#title8').html(this.alt);
    }
    
    $('#slideshow9').cycle({ 
    fx:     'slideY', 
    speed:  1, 
    next:   '#slideshow9', 
    timeout: 0
    });
    function onBefore() {
        $('#title9').html(this.alt);
    }
    
    $('#slideshow91').cycle({ 
    fx:     'slideY', 
    speed:  1, 
    next:   '#slideshow91', 
    timeout: 0
    });    
    function onBefore() {
        $('#title91').html(this.alt);
    }
    
    $('#slideshow92').cycle({ 
    fx:     'slideY', 
    speed:  1, 
    next:   '#slideshow92', 
    timeout: 0
    });
    function onBefore() {
        $('#title92').html(this.alt);
    }
    
    $('#slideshow93').cycle({ 
    fx:     'slideY', 
    speed:  1, 
    next:   '#slideshow93', 
    timeout: 0
    });
    function onBefore() {
        $('#title93').html(this.alt);
    }
});
