jQuery(document).ready(function() {

    // circle arrow on h2 anchors
    jQuery('#tertiary h2 a, #primary h2 a, #secondary h2 a').append('<span class="circle-arrow">&nbsp;</span>');

    // feature carousel
    jQuery('#carousel').cycle({
        fx: 'fade',
        speed: 4000,
        speedIn: 1000,
        speedOut: 1000,
        timeout: 2000,
        pause: 1,
        pager: '#pager div',
        sync: 1,
        nowrap: 0,
        next: '#next a',
        prev: '#prev a',
        pagerAnchorBuilder: function(idx, slide) {
            //var value = idx + 1;
            //return '<a href="#">' + value + '</a>';
            return '<a href="#">&nbsp;</a>';
        }
    });

    // feature carousel bg images
    for (i = 1; i <= teaserBackgrounds.length; i++) {
        jQuery('li#slide' + i).css("background-image", "url('" + teaserBackgrounds[i] + "')");
    }

});

