﻿$('.currentImage').cycle({
    fx: 'scrollRight',
    speed: 400,
    next: '#nextClick',
    prev: '#prevClick',
    before: onBefore,
    after: onAfter,
    timeout: 0
});

function onBefore() {
    $('#captionName').html('&nbsp;');
    $('#captionDescription').html('&nbsp;');
}

function onAfter() {
    $('#captionName').append(this.title);
    $('#captionDescription').append(this.alt);
}

function Initialize() {
    $.blockUI({ css: {
        border: 'none',
        padding: '15px',
        backgroundColor: '#000',
        '-webkit-border-radius': '10px',
        '-moz-border-radius': '10px',
        opacity: .5,
        color: '#fff'
}
    });

    setTimeout($.unblockUI, 2000);
}


