"); } });
There are no upcoming events to display.").appendTo($(this).find(".ui-articles")); } }); //TABBED EVENTS IN REGIONS B & C $("[data-region='b'] .upcomingevents, [data-region='c'] .upcomingevents").each(function(){ //CREATE TABLIST AND TAB PANELS var tabList = "
There are no upcoming events to display."; } else { var eventDate = $(this).find(".adam-hug").html(); var eventMonth = $(this).find(".joel-month").text(); var eventNumberDay = $(this).find(".jeremy-date").text(); var eventDay = $(this).find(".joel-day").html(); var eventDetails = $(this).find(".upcoming-column.right").html(); var ariaMonth = ""; var ariaDate = ""; switch(eventMonth){ case "jan": ariaMonth = "January"; break; case "feb": ariaMonth = "February"; break; case "mar": ariaMonth = "March"; break; case "apr": ariaMonth = "April"; break; case "may": ariaMonth = "May"; break; case "jun": ariaMonth = "June"; break; case "jul": ariaMonth = "July"; break; case "aug": ariaMonth = "August"; break; case "sep": ariaMonth = "September"; break; case "oct": ariaMonth = "October"; break; case "nov": ariaMonth = "November"; break; case "dec": ariaMonth = "December"; break; default: ariaMonth = eventMonth; } switch(eventNumberDay){ case "1": ariaDate = "First"; break; case "2": ariaDate = "Second"; break; case "3": ariaDate = "Third"; break; case "4": ariaDate = "Fourth"; break; case "5": ariaDate = "Fifth"; break; case "6": ariaDate = "Sixth"; break; case "7": ariaDate = "Seventh"; break; case "8": ariaDate = "Eighth"; break; case "9": ariaDate = "Ninth"; break; case "10": ariaDate = "Tenth"; break; case "11": ariaDate = "Eleventh"; break; case "12": ariaDate = "Twelveth"; break; case "13": ariaDate = "Thirteenth"; break; case "14": ariaDate = "Fourteenth"; break; case "15": ariaDate = "Fifteenth"; break; case "16": ariaDate = "Sixteenth"; break; case "17": ariaDate = "Seventeenth"; break; case "18": ariaDate = "Eighteenth"; break; case "19": ariaDate = "Nineteenth"; break; case "20": ariaDate = "Twentieth"; break; case "21": ariaDate = "Twenty-first"; break; case "22": ariaDate = "Twenty-second"; break; case "23": ariaDate = "Twenty-third"; break; case "24": ariaDate = "Twenty-fourth"; break; case "25": ariaDate = "Twenty-fifth"; break; case "26": ariaDate = "Twenty-sixth"; break; case "27": ariaDate = "Twenty-seventh"; break; case "28": ariaDate = "Twenty-eighth"; break; case "29": ariaDate = "Twenty-ninth"; break; case "30": ariaDate = "Thirtieth"; break; case "31": ariaDate = "Thirty-first"; break; default: ariaDate = eventNumberDay; } if(dateCounter == 0){//FIRST DATE tabList += "
"+eventDay+""+eventDetails+""; } else {//OTHER DATES tabList += "