// JavaScript Document

$(document).ready(function() {
						   
$('#FUAnimPanel1').cycle({ 
			fx:    'none',
				speed:  1000,
				pause:  7,
				pager:  '#FUAnimPanelNav1', 
				pauseOnPagerHover: 1,
				fastOnEvent:   500,
				pagerEvent: 'mouseover',
				cleartype:  1,
				pagerAnchorBuilder: function(idx, slide) { 
				// return selector string for existing anchor 
				return '#FUAnimPanelNav1 li:eq(' + idx + ') a'; 
			}
				
		});	
		
		$('#FUAnimPanel2').cycle({ 
			fx:    'none',
				speed:  1000,
				pause:  7,
				pager:  '#FUAnimPanelNav2', 
				pauseOnPagerHover: 1,
				fastOnEvent:   500,
				pagerEvent: 'mouseover',
				cleartype:  1,
				pagerAnchorBuilder: function(idx, slide) { 
				// return selector string for existing anchor 
				return '#FUAnimPanelNav2 li:eq(' + idx + ') a'; 
			}
				
		});	
		
		$('#FUAnimPanel3').cycle({ 
			fx:    'none',
				speed:  1000,
				pause:  7,
				pager:  '#FUAnimPanelNav3', 
				pauseOnPagerHover: 1,
				fastOnEvent:   500,
				pagerEvent: 'mouseover',
				cleartype:  1,
				pagerAnchorBuilder: function(idx, slide) { 
				// return selector string for existing anchor 
				return '#FUAnimPanelNav3 li:eq(' + idx + ') a'; 
			}
				
		});	
	});	
$(document).ready(function() {
						   
$('#SCCarousel01') 
.cycle({ 
    fx:     'scrollHorz',
    speed:  450, 
    timeout: 0, 
		after:   onAfter,
		prev:    '#prev_Panel01',
    next:    '#next_Panel01',
    pager:  '#SCPagerPanel01',
		pagerAnchorBuilder: function(idx, slide) {
            return '<a href="#"></a>';
        }	
});	 
function onAfter(curr, next, opts) {
    var index = opts.currSlide;
    $('#prev_Panel01')[index == 0 ? 'hide' : 'show']();
    $('#next_Panel01')[index == opts.slideCount - 1 ? 'hide' : 'show']();
}	 
});
$(document).ready(function() {
$('#SCCarousel02') 
.cycle({ 
    fx:     'scrollHorz',
    speed:  450, 
    timeout: 0, 
		after:   onAfter,
		prev:    '#prev_Panel02',
    next:    '#next_Panel02',
    pager:  '#SCPagerPanel02',
		pagerAnchorBuilder: function(idx, slide) {
            return '<a href="#"></a>';
        }
	
		
});

	 
function onAfter(curr, next, opts) {
    var index = opts.currSlide;
    $('#prev_Panel02')[index == 0 ? 'hide' : 'show']();
    $('#next_Panel02')[index == opts.slideCount - 1 ? 'hide' : 'show']();
}
	 
});
/*!  * SC Carousel Panel 03  */
$(document).ready(function() {
$('#SCCarousel03') 
.cycle({ 
    fx:     'scrollHorz',
    speed:  450, 
    timeout: 0, 
		after:   onAfter,
		prev:    '#prev_Panel03',
    next:    '#next_Panel03',
    pager:  '#SCPagerPanel03',
		pagerAnchorBuilder: function(idx, slide) {
            return '<a href="#"></a>';
        }		
});

	 
function onAfter(curr, next, opts) {
    var index = opts.currSlide;
    $('#prev_Panel03')[index == 0 ? 'hide' : 'show']();
    $('#next_Panel03')[index == opts.slideCount - 1 ? 'hide' : 'show']();
}	 
});

