$(function() {

    $('#featured-wrap').cycle({
        fx:      'fade',
		speed:  'slow',
        timeout:  10000,
		easing:	'backinout',
        pager:   '#menu-right',
        prev:    '#prev',
        next:    '#next',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#menu-right li:eq(' + (idx) + ') a';
        }
    });
});

$(function() {
    $('#campaign-feature-wrap').cycle({
	    fx:     'fade',
        speed:  'slow',
        timeout: 20000,
        pager:  '#ad-camp-thumb-wrapper',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#ad-camp-thumb-wrapper li:eq(' + (idx) + ') a';
        }
    });
});

$(function() {

    $('#news-wrapper').cycle({
        fx:     'scrollDown',
		speed:  'slow',
        timeout: 8000,
		easing:	'backinout',
    });
});

$(function() {
    $('#location-feature-wrap').cycle({
	    fx:     'fade',
        speed:  'slow',
        timeout: 0,
		easing:	'backinout',
        pager:  '#map-pointers',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#map-pointers li:eq(' + (idx) + ') a';
        }
    });
});
