﻿jQuery().ready(function () {
    if ($.browser.msie) {
        $('.news-item-image').css('border-width', '2px 5px 2px 5px');
    }
    else {
        $('.news-item-image').css('border-width', '2px 5px');
    }
    $('.NewsListing dl dd:nth-child(3n+4)').css("clear", "left");
    $('.news-item-image-holder').each(function () {
        var html = $(this).html();

        if ($(this).html().trim() == '') {

            $(this).next('.news-item-holder').css('margin-top', '140px');
        }
    });
    $('.news-item-image-holder').hover(function () {
        $(this).children('.news-item-image').attr('style', 'border-width:5px 5px;');
        $(this).children('.news-item-top').hide();
        $(this).children('.news-item-bot').hide();
    }, function () {
        $(this).children('.news-item-image').attr('style', 'border-width:2px 5px;');
        $(this).children('.news-item-top').show();
        $(this).children('.news-item-bot').show();
    });
});
