// JavaScript Document
//SlideShow Control
$(function(){
			$('#slides').slides({
				preload: false,
				preloadImage: '../images/slideshow/slideshow_bg.gif',
				play: 5000,
				pause: 2500,
				effect: 'fade',
				fadeSpeed: 1000,
				generatePagination: false,
				crossfade: true,
				hoverPause: true,
				animationStart: function(current){
					$('.caption').animate({
						bottom:-47
					},100);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationStart on slide: ', current);
					};
				},
				animationComplete: function(current){
					$('.caption').animate({
						bottom:0
					},200);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationComplete on slide: ', current);
					};
				},
				slidesLoaded: function() {
					$('.caption').animate({
						bottom:0
					},200);
				}
			});
		});
		//Scroller Control
		$(document).ready(function() {
				$('.horizontal_scroller').SetScroller({ velocity:70,
	            direction:   'horizontal',
	            startfrom:   'right',
	            loop:        '1',
	            movetype:    'linear',
	            onmouseover: 'pause',
	            onmouseout:  'play',
	            onstartup:   'play',
	            cursor:      'pointer'
	            });
			});
