jQuery(document).ready(function() {
    // carousel
    jQuery('#carousel').cycle({
        fx: 'fade',
        speed: 8000,
        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>';
            }
        }
    });
    // teaser heading inner span
    // jQuery('.teasers h2').wrapInner('<span/>');
    // teaser heading inner span circle arrow
    // jQuery('.teasers h2').append('<span>&nbsp;</span>');
    
    for (i=1; i <= teaserBackgrounds.length; i++)
    {
    	jQuery('li#slide'+i).css("background-image", "url('" + teaserBackgrounds[i] + "')");
    }
	

});

