$(document).ready(function() {

/* Easing */
jQuery.easing.def = 'easeInOutQuad'; 
	 
/* 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'
});
$('#s11').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next11', 
prev:   '#prev11'
});
$('#s12').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next12', 
prev:   '#prev12'
});
$('#s13').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next13', 
prev:   '#prev13'
});
$('#s14').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next14', 
prev:   '#prev14'
});
$('#s15').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next15', 
prev:   '#prev15'
});
$('#s16').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next16', 
prev:   '#prev16'
});

$('#s17').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next17', 
prev:   '#prev17'
});

$('#s18').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next18', 
prev:   '#prev18'
});

$('#s19').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next19', 
prev:   '#prev19'
});

$('#s20').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next20', 
prev:   '#prev20'
});

$('#s21').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next21', 
prev:   '#prev21'
});

$('#s22').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next22', 
prev:   '#prev22'
});
$('#s23').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next23', 
prev:   '#prev23'
});
$('#s24').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next24', 
prev:   '#prev24'
});
$('#s25').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next25', 
prev:   '#prev25'
});
$('#s26').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next26', 
prev:   '#prev26'
});
$('#s27').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next27', 
prev:   '#prev27'
});
$('#s28').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next28', 
prev:   '#prev28'
});
$('#s29').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next29', 
prev:   '#prev29'
});
$('#s30').cycle({ 
fx:     'fade', 
speed:  'slow', 
timeout: 0, 
next:   '#next30', 
prev:   '#prev30'
});
$('#s31').cycle({ 
fx:     'scrollHorz', 
speed:  'slow', 
timeout: 0, 
next:   '#next31',
prev:   '#prev31',
});
});

/* Page scroll */
function resetFunction15()
{
$.scrollTo( 0, 2000);
}
function resetFunction14()
{
$.scrollTo( 360, 2000);
}
function resetFunction13()
{
$.scrollTo( 720, 2000);
}
function resetFunction12()
{
$.scrollTo( 1080, 2000);
}
function resetFunction11()
{
$.scrollTo( 1435, 2000);
}
function resetFunction10()
{
$.scrollTo( 1794, 2000);
}
function resetFunction9()
{
$.scrollTo( 2150, 2000);
}
function resetFunction8()
{
$.scrollTo( 2508, 2000);
}
function resetFunction7()
{
$.scrollTo( 2870, 2000);
}
function resetFunction6()
{
$.scrollTo( 3225, 2000);
}
function resetFunction5()
{
$.scrollTo( 3585, 2000);
}
function resetFunction4()
{
$.scrollTo( 3940, 2000);
}
function resetFunction3()
{
$.scrollTo( 4300, 2000);
}
function resetFunction2()
{
$.scrollTo( 4655, 2000);
}
function resetFunction1()
{
$.scrollTo( 5015, 2000);
}
function resetFunction0()
{
$.scrollTo( 5300, 2000);
}
