$(function() {
    // news links
    jQuery('div.news-latest-item h2 a').bigTarget({
        hoverClass: 'news-hover', // CSS class applied to the click zone onHover
        clickZone: 'div:eq(0)' // jQuery parent selector
    });
    jQuery('div.news-list-item h2 a').bigTarget({
        hoverClass: 'news-hover', // CSS class applied to the click zone onHover
        clickZone: 'div:eq(0)' // jQuery parent selector
    });
    
    
    // news details
    jQuery('#news-single-img ul').carouFredSel({
        direction: 'up',
        circular: false,
        infinite: false,
        items: {
            visible: 1,
            height: 'variable'
        },
        scroll: {
            items: 1,
            duration: 1500,
            easing: 'easeInOutExpo'
        },
        auto: {
            pauseOnHover: true,
            duration: 3500
        },
        prev: {
            button: '#news-single-prev',
            key: 'left',
            items: 1
        },
        next: {
            button: '#news-single-next',
            key: 'right',
            items: 1
        }
    }).find('.carouFredSel').hover(
        function() {
            jQuery('.news-single-imgcaption').slideDown();
        }, function() {
            jQuery('.news-single-imgcaption').slideUp();
        }
        );


    // colorbox (popup)
    jQuery('#news-single-img a[target=colorbox]').colorbox({
        transition: 'elastic'
    });
});
