﻿$(document).ready(function () {
    $('div.jcycle').cycle({
        fx: 'none',
        timeout: 9000,
        cleartypeNoBg: true,
        before: function (currSlideElement, nextSlideElement, options, forwardFlag) {
            var i = $(nextSlideElement).index();
            $('body').attr("class", "style" + i);
        },
        after: function (currSlideElement, nextSlideElement, options, forwardFlag) {
        },
        pager: 'ul.thumbnails',
        pagerAnchorBuilder: function (idx, slide) {
            // return sel string for existing anchor
            return 'ul.thumbnails li:eq(' + (idx) + ') a';
        }
    });
});
