//This replaces the long month name with it's abbreviation for display purposes. It will be applied to all Upcoming Events blocks on that page.

$(document).ready(function () {
if ($('div.ews_ue_event_monthday span.ews_month').length) {
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/January/gi, 'Jan'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/February/gi, 'Feb'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/March/gi, 'Mar'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/April/gi, 'Apr'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/May/gi, 'May'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/June/gi, 'Jun'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/July/gi, 'Jul'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/August/gi, 'Aug'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/September/gi, 'Sept'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/October/gi, 'Oct'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/November/gi, 'Nov'));
    $('div.ews_ue_event_monthday span.ews_month').html($('div.ews_ue_event_monthday span.ews_month').html().replace(/December/gi, 'Dec'));
    }
});
