$(document).ready(function () {
    
/*	$('.jsSlide').each(function () {
        var item = $(this);
        item.slide({
            container : $('.wrapper',      item),
            slider    : $('.slider',       item),
            //slides    : $('.blockSlide',   item),
            effect    : 'fade',
            //effect    : 'slide',
            //containerStopHover: item,
            delay     : 5000,
            loop      : true,
            auto      : true
        });
    });
*/
    $('.jsSlide').cycle({
        'timeoutFn' : function (current, next, opt, isForward) {
            var duration = parseInt($(current).data('duration'), 10);
            if (!duration) {
                duration = 1500;
            }
            return duration;
        }
    });

	$('.jsSlide .jsVideo').click(function() {
		$('#hegydPopupVideo').css('display', 'block');
	});

	$('#hegydPopupVideo .overlay, #hegydPopupVideo a.btnClose').click(function() {
		$('#hegydPopupVideo').css('display', 'none');
	});

});


