﻿$(function () {
    $('.clickable').each(function () {
        var links = $('a', this);
        if (links != null && links.length > 0) {
            var link = links.slice(0).attr('href');
            if (link != null && link != '' && link != 'undefined') {
                $(this).click(function () {
                    document.location = link;
                });
            }
        }
    });
    resizeLeftList();
    $(window).resize(function () {
        resizeLeftList();
    });
});
function resizeLeftList() {
    $('#l .leftList').each(function () {
        $(this).height($(document).height() - $(this).offset().top);
    });
}
function initCarousel() {
    $(".newsticker-jcarousellite").jCarouselLite({
        vertical: true,
        visible: 3,
        auto: 5000,
        speed: 800
    });
}

