// JavaScript Document

$(document).ready(function() {
	
	/* Easing */
	jQuery.easing.def = 'easeInOutQuad'; 
		 
	/* Preload images*/
	navImagePrev = new Image(); 
	navImagePrev.src = "../images/navPrevOver.png"
	navImageNext = new Image(); 
	navImageNext.src = "../images/navNextOver.png"
	navImageTop = new Image(); 
	navImageTop.src = "../images/navTopOver.png"
	
	/* Slideshow controls*/
    $('#s1').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next1', 
    prev:   '#prev1' 
	});
	
	$('#s2').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next2', 
    prev:   '#prev2'
	});
	
	$('#s3').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next3', 
    prev:   '#prev3'
	});
	
	$('#s4').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next4', 
    prev:   '#prev4'
	});
	
	$('#s5').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next5', 
    prev:   '#prev5'
	});
	
	$('#s6').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next6', 
    prev:   '#prev6'
	});
	
	$('#s7').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next7', 
    prev:   '#prev7'
	});
	
	$('#s8').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next8', 
    prev:   '#prev8'
	});
	
	$('#s9').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next9', 
    prev:   '#prev9'
	});
	
	$('#s10').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    next:   '#next10', 
    prev:   '#prev10'
	});

	});
	
	/* Page scroll */
	function resetFunction()
	{
	$.scrollTo( 0, 2000);
	}