*/             // FOR SCOPE             var _this = this;             var dropdownParent = params.dropdownParent;             var dropdownSelector = params.dropdownSelector;             var dropdown = params.dropdown;             var dropdownList = params.dropdownList;             $(dropdownParent + " " + dropdownList + " a").attr("tabindex", "-1");             // MYSTART DROPDOWN SELECTOR CLICK EVENT             $(dropdownParent).on("click", dropdownSelector, function(e) {                 e.preventDefault();                 if($(this).parent().hasClass("open")){                     $("+ " + dropdownList + " a").attr("tabindex", "-1");                     $(this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } else {                     $(this).attr("aria-expanded", "true").parent().addClass("open").find(dropdown).attr("aria-hidden","false").slideDown(300, "swing"); }             });             // MYSTART DROPDOWN SELECTOR KEYDOWN EVENTS             $(dropdownParent).on("keydown", dropdownSelector, function(e) {                 // CAPTURE KEY CODE                 switch(e.keyCode) {                     // CONSUME LEFT AND UP ARROWS                     case _this.KeyCodes.enter:                     case _this.KeyCodes.space:                         e.preventDefault();                         // IF THE DROPDOWN IS OPEN, CLOSE IT                         if($(dropdownParent).hasClass("open")){                             $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1");                             $(this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } else {                             $(this).attr("aria-expanded", "true").parent().addClass("open").find(dropdown).attr("aria-hidden", "false").slideDown(300, "swing", function(){                                 $(dropdownList + " li:first-child a", this).attr("tabindex", "0").focus(); }); }                     break;                     // CONSUME TAB KEY                     case _this.KeyCodes.tab:                         if($("+ " + dropdown + " " + dropdownList + " a").length) {                             $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1");                             $(this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); }                     break;                     // CONSUME LEFT AND UP ARROWS                     case _this.KeyCodes.down:                     case _this.KeyCodes.right:                         e.preventDefault();                         $("+ " + dropdown + " " + dropdownList + " a").attr("tabindex", "-1");                         $("+ " + dropdown + " " + dropdownList + " li:first-child > a", this).attr("tabindex", "0").focus();                     break; } });             // MYSTART DROPDOWN LINK KEYDOWN EVENTS             $(dropdownParent).on("keydown", dropdownList + " li a", function(e) {                 // CAPTURE KEY CODE                 switch(e.keyCode) {                     // CONSUME LEFT AND UP ARROWS                     case _this.KeyCodes.left:                     case _this.KeyCodes.up:                         e.preventDefault();                         // IS FIRST ITEM                         if($(this).parent().is(":first-child")) {                             // FOCUS DROPDOWN BUTTON                             $(this).closest(dropdownList).find("a").attr("tabindex", "-1");                             $(this).closest(dropdownParent).find(dropdownSelector).focus(); } else {                             // FOCUS PREVIOUS ITEM                             $(this).closest(dropdownList).find("a").attr("tabindex", "-1");                             $(this).parent().prev("li").find("> a").attr("tabindex", "0").focus(); }                     break;                     // CONSUME RIGHT AND DOWN ARROWS                     case _this.KeyCodes.right:                     case _this.KeyCodes.down:                         e.preventDefault();                         // IS LAST ITEM                         if($(this).parent().is(":last-child")) {                             // FOCUS FIRST ITEM                             $(this).closest(dropdownList).find("a").attr("tabindex", "-1");                             $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex", "0").focus(); } else {                             // FOCUS NEXT ITEM                             $(this).closest(dropdownList).find("a").attr("tabindex", "-1");                             $(this).parent().next("li").find("> a").attr("tabindex", "0").focus(); }                     break;                     // CONSUME TAB KEY                     case _this.KeyCodes.tab:                         if(e.shiftKey) {                             e.preventDefault();                             // FOCUS DROPDOWN BUTTON                             $(this).closest(dropdownList).find("a").attr("tabindex", "-1");                             $(this).closest(dropdownParent).find(dropdownSelector).focus(); }                     break;                     // CONSUME HOME KEY                     case _this.KeyCodes.home:                         e.preventDefault();                         // FOCUS FIRST ITEM                         $(this).closest(dropdownList).find("a").attr("tabindex", "-1");                         $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex", "0").focus();                     break;                     // CONSUME END KEY                     case _this.KeyCodes.end:                         e.preventDefault();                         // FOCUS LAST ITEM                         $(this).closest(dropdownList).find("a").attr("tabindex", "-1");                         $(this).closest(dropdownList).find("li:last-child > a").attr("tabindex", "0").focus();                     break;                     // CONSUME ESC KEY                     case _this.KeyCodes.esc:                         e.preventDefault();                         // FOCUS DROPDOWN BUTTON AND CLOSE DROPDOWN                         $(this).closest(dropdownParent).find(dropdownSelector).focus();                         $(this).closest(dropdownList).find("a").attr("tabindex", "-1");                         $(dropdownSelector).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing");                     break; } });             $(dropdownParent).mouseleave(function(e) {                 if(e.target.nodeName.toLowerCase() !== "select") {                     $(dropdownList + " a", this).attr("tabindex", "-1");                     $(dropdownSelector, this).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }).focusout(function() {                 var thisDropdown = this;                 setTimeout(function () {                     if(!$(thisDropdown).find(":focus").length) {                         $(dropdownSelector, thisDropdown).attr("aria-expanded", "false").parent().removeClass("open").find(dropdown).attr("aria-hidden", "true").slideUp(300, "swing"); } }, 500); }); },         "Header": function() {             // ADD SITENAME             var siteNameOne = $.trim("");             var siteNameTwo = $.trim("");             var siteNameBegin = '';             var siteNameEnd = '';             if((siteNameOne == "") && (siteNameTwo == "")) {                 var siteName = ("Madison Public Schools").split(" ");                 siteNameBegin = $.trim(siteName.splice(0, 1).toString().replace(/,/g, " "));                 siteNameEnd = $.trim(siteName.toString().replace(/,/g, " "));                 $("#gb-sitename").prepend("

" + siteNameBegin + "" + siteNameEnd + "

");                 $("

" + siteNameBegin + " " + siteNameEnd + "

").insertBefore($("#gb-footer-contact")); } else if((siteNameOne != "") && (siteNameTwo == "")) {                 $("#gb-sitename").prepend("

" + siteNameOne + "

");                 $("

" + siteNameOne + "

").insertBefore($("#gb-footer-contact")); } else if((siteNameOne == "") && (siteNameTwo != "")) {                 $("#gb-sitename").prepend("

" + siteNameTwo + "

");                 $("

" + siteNameTwo + "

").insertBefore($("#gb-footer-contact")); } else if((siteNameOne != "") && (siteNameTwo != "")) {                 $("#gb-sitename").prepend("

" + siteNameOne + "" + siteNameTwo + "

");                 $("

" + siteNameOne + " " + siteNameTwo + "

").insertBefore($("#gb-footer-contact")); } },         "ChannelBar": function() {             var _this = this;             $(".sw-channel-item").unbind("hover");             $(".sw-channel-item").hover(function(){                 $(".sw-channel-item ul").stop(true, true);                 var subList = $(this).children('ul');                 if ($.trim(subList.html()) !== "") {                     subList.slideDown(300, "swing"); }                 $(this).addClass("hover"); }, function(){                 $(".sw-channel-dropdown").slideUp(300, "swing");                 $(this).removeClass("hover"); });             // APPEND ALL HIDDEN CHANNELS BEFORE BEGINNING SO THAT THEY DON'T INTERFERE WITH INDEXES             $("#channel-navigation").append($("#channel-navigation .hidden-channel"));             var megaMenuChannels = [                 {                     "showImage": "true",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0002-cropped.jpg",                     "imageAlt": "Sign",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "true",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0041-cropped.jpg",                     "imageAlt": "Auditorium",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "true",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0049-cropped.jpg",                     "imageAlt": "Hallway",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "true",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0055-cropped.jpg",                     "imageAlt": "Sidewalk",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "true",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0097-cropped.jpg",                     "imageAlt": "School",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "true",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0046-cropped.jpg",                     "imageAlt": "Office",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "true",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0091-cropped.jpg",                     "imageAlt": "Coat Hooks",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "false",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg",                     "imageAlt": "Channel 8 Image Alt Text",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "false",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg",                     "imageAlt": "Channel 9 Image Alt Text",                     "showCaption": false,                     "caption": "" },                 {                     "showImage": "false",                     "imageSrc": "/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg",                     "imageAlt": "Channel 10 Image Alt Text",                     "showCaption": false,                     "caption": "" }             ];             var homeChannelExists = $("#gb-channel-list #navc-HP").length;             var channelIndex = (homeChannelExists) ? 2 : 1;             $.each(megaMenuChannels, function(index, channel) {                 // BREAK IF AND WHEN WE REACH THE CALENDAR CHANNEL                 if($("li.sw-channel-item:nth-child(" + channelIndex + ")").attr("id") == "navc-CA") {                     return false; }                 // CHECK TO MAKE SURE THE CHANNEL HAS A DROPDOWN                 var haveChannelDropdown = $("li.sw-channel-item:nth-child(" + channelIndex + ") .sw-channel-dropdown").length;                 var haveActiveSectionsInDropdown = $("li.sw-channel-item:nth-child(" + channelIndex + ") .sw-channel-dropdown > li").length;                 if(haveChannelDropdown && haveActiveSectionsInDropdown) {                     // BUILD SECTION LINKS INTO COLUMNS                     var columnNum = 3,                         endRange,                         sectionNum = $("li.sw-channel-item:nth-child(" + channelIndex + ") .sw-channel-dropdown > li:not(.gb-mega-menu)").length,                         sections = [];                     // LOOP TO BUILD COLUMNS                     for(var i = 0;  i < columnNum;  i++) {                         // KEEP FROM ADDING EMPTY UL'S TO THE DOM                         if(i < sectionNum) {                             // IF sectionNum / columnNum REMAINDER IS BETWEEN .0 AND .5 AND THIS IS THE FIRST LOOP ITERATION                             // WE'LL ADD 1 TO THE END RANGE SO THAT THE EXTRA LINK GOES INTO THE FIRST COLUMN                             if((sectionNum / columnNum) % 1 > 0.0 && (sectionNum / columnNum) % 1 < 0.5 && i == 0) {                                 endRange = Math.round(sectionNum / columnNum) + 1; } else if((sectionNum / columnNum) % 1 == 0.5 && i >= (columnNum / i)) {                                 endRange = Math.round(sectionNum / columnNum) - 1; } else {                                 endRange = Math.round(sectionNum / columnNum) }                             // COLLECT THE SECTIONS FOR THIS COLUMN AND SAVE THEM INTO THE ARRAY                             sections[i] = "";                             for(var s = 1;  s <= endRange;  s++) {                                 if($("li.sw-channel-item:nth-child(" + channelIndex + ") .sw-channel-dropdown > li:nth-child(" + s + ")").html() !== undefined) {                                     sections[i] += '
  • ' + $("li.sw-channel-item:nth-child(" + channelIndex + ") .sw-channel-dropdown > li:nth-child(" + s + ")").html() + '
  • ';                                 } }                             // REMOVE THIS RANGE OF SECTIONS NOW THAT WE'VE SAVED THEM                             $("li.sw-channel-item:nth-child(" + channelIndex + ") .sw-channel-dropdown > li:nth-child(n+1):nth-child(-n+" + endRange + ")").remove(); } }                     var sectionColumns = '';                     $.each(sections, function(index, columnSections) {                         sectionColumns += '' + columnSections + ''; });                     // APPLY MEGA MENU FOR THIS CHANNEL                     $("li.sw-channel-item:nth-child(" + channelIndex + ")").addClass("gb-mega-menu-item").attr("data-mega-menu-index", index);                     $("li.sw-channel-item:nth-child(" + channelIndex + ") .sw-channel-dropdown").append('' +                         '' +                             '' +                                 ((channel.showImage) ? '' : '') +                             '' +                             '' +                                 '' + sectionColumns + '' +                                 ((channel.showCaption) ? '' + channel.caption + '

    ' : '') +                             '' +                         '' +                     ''); }                 // BIND EVENTS                 var link = $("li.sw-channel-item:nth-child(" + channelIndex + ") ul.sw-channel-dropdown .gb-mega-menu-column > li a");                 var firstLinkIndex = $(link).index($(link).first());                 var firstLink = $(link).eq($(link).index($(link).first()));                 var lastLinkIndex = $(link).index($(link).last());                 var lastLink = $(link).eq($(link).index($(link).last()));                 $(link).keydown(function(e) {                     var increment;                     var thisIndex = link.index(this);                     var newIndex = -1;                     switch(e.keyCode) {                         case _this.KeyCodes.up:                         case _this.KeyCodes.left:                             e.preventDefault();                             if($(this).is(firstLink)) {                                 $(this).closest("li.sw-channel-item").find("> a").focus(); } else {                                 newIndex = thisIndex - 1; }                         break;                         case _this.KeyCodes.down:                         case _this.KeyCodes.right:                             e.preventDefault();                             if($(this).is(lastLink)) {                                 $(this).closest("li.sw-channel-item").find("> a").focus(); } else {                                 newIndex = thisIndex + 1; }                         break;                         case _this.KeyCodes.esc:                             $(this).closest("li.sw-channel-item").find("> a").focus();                         break; }                     if(newIndex != -1) {                         link.eq(newIndex).focus(); } });                 channelIndex++; }); },         "SetChannelDropdownPositions": function() {             $(".sw-channel-item").each(function() {                 var bottomOffset = $(this).position().top + $(this).height();                 $(".sw-channel-dropdown", this).css("top", bottomOffset); }); },         "StickyHeader": function() {             if(!this.IsMyViewPage) {                 switch(this.GetBreakPoint()) {                     case "desktop":                         var navOffset = $("#gb-sticky-header-outer").offset().top + $("#gb-sticky-header-outer").height() + 12;                         // REVEAL HEADER AND CHANNEL BAR AFTER USER SCROLLS PAST CHANNEL BAR                         if ($(window).scrollTop() > navOffset) {                             $("#gb-sticky-header-outer").css("height", $("#gb-sticky-header").outerHeight(true));                             if(!this.HeaderIsSticky) {                                 this.HeaderIsSticky = true;                                 $("#gb-sticky-header-outer").addClass("sticky");                                 $("#gb-sticky-header").css("top", "-" + $("#gb-sticky-header").height() + "px").stop().animate({                                     top: "0px" }, 400); }                             if($(".sp").length && $(".ui-widget.app.calendar").length) {                                 if($(".wcm-controls").hasClass("wcm-stuck")) {                                     $(".wcm-controls").css("margin-top", $("#gb-sticky-header").outerHeight(true)); } } } else {                             if(this.HeaderIsSticky) {                                 this.HeaderIsSticky = false;                                 $("#gb-sticky-header-outer").removeClass("sticky").removeAttr("style");                                 $("#gb-sticky-header").stop(true, true).removeAttr("style");                                 this.HeaderIsSticky = false; } }                         $("#sw-maincontent").css({                             "display": "block",                             "position": "relative",                             "top": "-" + $("#gb-sticky-header").outerHeight(true) + "px" });                     break;                     case "768": case "640": case "480": case "320":                         if(this.HeaderIsSticky) {                             this.HeaderIsSticky = false;                             $("#gb-sticky-header-outer").removeClass("sticky").removeAttr("style");                             $("#gb-sticky-header").removeAttr("style"); }                         if($(".sp").length && $(".ui-widget.app.calendar").length) {                             $(".wcm-controls").css("margin-top", "0px"); }                         $("#sw-maincontent").removeAttr("style");                     break; } } },         "Body": function() {             // AUTO FOCUS SIGN IN FIELD             $("#swsignin-txt-username").focus();             // ADJUST HEADLINES             $(".ui-widget.app.headlines .ui-articles > li").each(function() {                 $(".ui-article", this).children().not($(".ui-article-thumb", this)).wrapAll(''); });             $(".ui-widget.app.headlines").not($(".hp-content.one .ui-widget.app.headlines")).each(function() {                 $(".ui-articles", this).append('' + $(".ui-read-more", this).html() + '');                 $(".ui-read-more", this).remove(); });             // APPLY RESPONSIVE DIMENSIONS TO CONTENT IMAGES             $("div.ui-widget.app .ui-widget-detail img")                 .not($("div.ui-widget.app.multimedia-gallery .ui-widget-detail img"))                 .not($("div.ui-widget.app.gallery.json .ui-widget-detail img"))                 .each(function() {                     if ($(this).attr('width') !== undefined && $(this).attr('height') !== undefined) { // IMAGE HAS INLINE DIMENSIONS                         $(this).css({"display": "inline-block", "width": "100%", "max-width": $(this).attr("width") + "px", "height": "auto", "max-height": $(this).attr("height") + "px"}); } });             // ADJUST FIRST BREADCRUMB             $("li.ui-breadcrumb-first > a > span").text("Home");             // USE CHANNEL NAME FOR PAGELIST NAV HEADER IF ONE IS NOT PRESENT             if(!$("div.sp.column.one .ui-widget-header h1").length) {                 $("div.sp.column.one .ui-widget-header").append("

    "); } },         "GlobalIcons": function() {             $(".hp #gb-global-icons-inner, .sp #gb-global-icons").creativeIcons({                 "iconNum"       : "5",                 "icons"         : [                     {                         "image": "Site Utility/32.png",                         "showText": true,                         "text": "District Calendar",                         "url": "https://www.madisonpublicschools.org/Page/2",                         "target": "_self" },                     {                         "image": "Classroom/13.png",                         "showText": true,                         "text": "Parent Portal",                         "url": "https://parents.genesisedu.com/madison/parents?gohome=true",                         "target": "_self" },                     {                         "image": "Student Program/50.png",                         "showText": true,                         "text": "Lunch Menu",                         "url": "http://www.schoolnutritionandfitness.com/index.php?sid=1485197263741&page=menus",                         "target": "_blank" },                     {                         "image": "Student Program/61.png",                         "showText": true,                         "text": "PayForIt",                         "url": "https://www.payforit.net/login.aspx",                         "target": "_blank" },                     {                         "image": "Classroom/59.png",                         "showText": true,                         "text": "Staff Directory",                         "url": "https://www.madisonpublicschools.org/domain/821",                         "target": "_self" }                 ],                 "siteID"        : "1",                 "siteAlias"     : "madisonps",                 "calendarLink"  : "/Page/2",                 "contactEmail"  : "webmaster@madisonpublicschools.org",                 "allLoaded"     : function(){                     $(".cs-global-icon").each(function() {                         $(this).attr("aria-label", $(".text", this).text()); });                   } }); },         "ArticleSlider": function() {             $(".hp-content.one .ui-widget.app.upcomingevents").csArticleSlider({                 "viewerNum": [4, 2, 2, 2, 1], // NUMERICAL - [960 view, 768 view, 640 view, 480 view, 320 view]                 "transitionSpeed": .5 // SECONDS }); },         "TabbedSocialMedia": function() {             $("#sw-content-container3.ui-hp").tabBlocks();             $("#sw-content-container3.ui-hp .tabs-container .tab-button").each(function() {                 var tabText = $.trim($(this).text()).toLowerCase();                 var tabButtonClass = "";                 // FACEBOOK                 if(tabText.indexOf("facebook") > -1) {                     tabButtonClass = "social facebook" }                 // TWITTER                 else if(tabText.indexOf("twitter") > -1) {                     tabButtonClass = "social twitter"; }                 // INSTAGRAM                 else if(tabText.indexOf("instagram") > -1) {                     tabButtonClass = "social instagram"; }                 // YOUTUBE                 else if(tabText.indexOf("youtube") > -1) {                     tabButtonClass = "social youtube"; }                 // NOT A SOCIAL MEDIA EMBED                 else {                     var panel = $(this).attr("aria-controls");                     $(this).remove();                     $("#" + panel).remove(); }                 $(this).addClass(tabButtonClass); });             if(!$("#sw-content-container3.ui-hp .ui-widget.app").length) $("#sw-content-container3.ui-hp").addClass("empty"); },         "TabbedSocialMediaMobile": function() {             var _this = this;             if(false) {                 if(this.GetBreakPoint() != "desktop" && !this.TabbedSocialMediaSet) {                     // SET ROLES AND ATTRIBUTES                     $("#hp-social-media-header").attr({"role": "button", "aria-expanded": "false", "aria-controls": "sw-content-container3", "tabindex": "0"});                     $("#sw-content-container3.ui-hp").hide().attr("aria-hidden", "true");                     // ACCORDION HEADER CLICK                     $(do***ent).on("click keydown", "#hp-social-media-header", function(e) {                         if(_this.AllyClick(e)) {                             if($("#hp-social-media-header").attr("aria-expanded") == "false") {                                 $("#hp-social-media-header").attr("aria-expanded", "true");                                 $("#sw-content-container3.ui-hp").slideDown(300).attr("aria-hidden", "false"); } else {                                 $("#hp-social-media-header").attr("aria-expanded", "false");                                 $("#sw-content-container3.ui-hp").slideUp(300).attr("aria-hidden", "true"); }                         } });                     this.TabbedSocialMediaSet = true; } else if(this.GetBreakPoint() == "desktop" && this.TabbedSocialMediaSet) {                     $("#hp-social-media-header").removeAttr("role aria-expanded aria-controls tabindex");                     $(do***ent).off("click keydown", "#hp-social-media-header");                     $("#sw-content-container3.ui-hp").removeAttr("aria-hidden style");                     this.TabbedSocialMediaSet = false; } } },         "ModEvents": function() {             $(".ui-widget.app.upcomingevents").modEvents({                 columns     : "yes",                 monthLong   : "no",                 dayWeek     : "yes"             });             var months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];             var monthsLong = ["January","February","March","April","May","June","July","August","September","October","November","December"];             var loopDay = "";             $(".ui-widget.app.upcomingevents .ui-article").each(function() {                 if($.trim($(".ui-article-description", this).text()) != "There are no upcoming events to display.") {                     if($(".joel-day", this).length && $(".joel-day", this).text() != loopDay) {                         loopDay = $(".joel-day", this).text(); }                     if(!$(".sw-calendar-block-time", this).length) {                         $(".ui-article-description", this).prepend('' + loopDay + ' All Day'); } else {                         $(".sw-calendar-block-time", this).prepend('' + loopDay + ' '); }                     if(!$(".ui-article-title.sw-calendar-block-date", this).length) {                         var moveArticle = $(this).html();                         $(this).parent().prev("li").find(".upcoming-column.right").append(moveArticle);                         $(this).parent().remove(); } else {                         var ariaMonth = monthsLong[months.indexOf($(".joel-month", this).text())];                         var eventMonth = $(".joel-month", this).detach();                         var eventDay = $(".joel-day", this).detach();                         var eventDate = $.trim($(".ui-article-title", this).text());                         if(eventDate.length == 1) eventDate = "0" + eventDate;                         var ariaDate = eventDate;                         switch(eventDate) {                             case "01": ariaDate = "First";  break;                             case "02": ariaDate = "Second";  break;                             case "03": ariaDate = "Third";  break;                             case "04": ariaDate = "Fourth";  break;                             case "05": ariaDate = "Fifth";  break;                             case "06": ariaDate = "Sixth";  break;                             case "07": ariaDate = "Seventh";  break;                             case "08": ariaDate = "Eighth";  break;                             case "09": 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 "***": 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; }                         $(".ui-article-title", this).html(eventMonth).prepend('' + eventDate + '').append('' + $(eventDay).text() + '').attr("aria-label", $(eventDay).text() + ", " + ariaMonth + " " + ariaDate);                         $(".sw-calendar-block-date", this).prepend($(".joel-month", this).attr("aria-hidden", "true")); } } }); },         "Footer": function() {             var _this = this;             // SCROLL UP BUTTON             $(do***ent).on("click keydown", "#gb-scroll-up", function(e) {                 if(_this.AllyClick(e)) {                     e.preventDefault();                     $("html, body").animate({ scrollTop: 0 }, "slow"); }             });             // SOCIAL ICONS             var socialIcons = [                 {                     "show": false,                     "label": "Facebook",                     "class": "facebook",                     "url": "#",                     "target": "_self" },                 {                     "show": false,                     "label": "Twitter",                     "class": "twitter",                     "url": "#",                     "target": "_self" },                 {                     "show": false,                     "label": "YouTube",                     "class": "youtube",                     "url": "#",                     "target": "_self" },                 {                     "show": false,                     "label": "Instagram",                     "class": "instagram",                     "url": "#",                     "target": "_self" }             ];             var icons = '';             $.each(socialIcons, function(index, icon) {                 if(icon.show) {                     icons += '
  • '; } });             if(icons.length) {                 $("#gb-social-media-icons").html('
      ' + icons + '
    '); }             // FOOTER LINKS             var footerLinks = [                 {                     "show": true,                     "text": "Accessibility",                     "url": "#",                     "target": "_self" },                 {                     "show": true,                     "text": "Contact Us",                     "url": "#",                     "target": "_self" }             ];             var links = '';             $.each(footerLinks, function(index, link) {                 if(link.show) {                     links += '
  • |' + link.text + '
  • '; } });             if(links.length) {                 $("#gb-footer-links ul").append(links); }             // MOVE Bb FOOTER STUFF             $(".gb-schoolwires-footer.logo").html($("#sw-footer-logo").html());             var schoolwiresLinks = '';             schoolwiresLinks += '
  • ' + $.trim($("#sw-footer-links li:eq(0)").html().replace("|", "")) + '
  • ';             schoolwiresLinks += '
  • ' + $.trim($("#sw-footer-links li:eq(2)").html().replace("|", "")) + '
  • ';             schoolwiresLinks += '
  • ' + $.trim($("#sw-footer-links li:eq(1)").html().replace("|", "")) + '
  • ';             $(".gb-schoolwires-footer.links").append('
      ' + schoolwiresLinks + '
    ');             $(".gb-schoolwires-footer.copyright").append($("#sw-footer-copyright").html()); },         "Slideshow": function() {             var _this = this;             if($("#sw-content-container10.ui-hp .ui-widget.app.multimedia-gallery").length) {                 var mmg = eval("multimediaGallery" + $("#sw-content-container10.ui-hp .ui-widget.app.multimedia-gallery:first").attr("data-pmi"));                 mmg.props.defaultGallery = false;                 $("#sw-content-container10.ui-hp .ui-widget.app.multimedia-gallery:first").csMultimediaGallery({                     "efficientLoad" : true,                     "imageWidth" : 930,                     "imageHeight" : 465,                     "mobileDescriptionContainer": [960, 768, 640, 480, 320], // [960, 768, 640, 480, 320]                     "galleryOverlay" : false,                     "linkedElement" : [], // ["image", "title", "overlay"]                     "playPauseControl" : true,                     "backNextControls" : true,                     "bullets" : true,                     "thumbnails" : false,                     "thumbnailViewerNum": [4, 4, 3, 3, 2], // NUMERICAL - [960 view, 768 view, 640 view, 480 view, 320 view]                     "autoRotate" : true,                     "hoverPause" : true,                     "transitionType" : "slide", // fade, slide, custom                     "transitionSpeed" : 1.5,                     "transitionDelay" : 4,                     "fullScreenRotator" : false,                     "fullScreenBreakpoints" : [960], // NUMERICAL - [960, 768, 640, 480, 320]                     "onImageLoad" : function(props) {}, // props.element, props.recordIndex, props.mmgRecords                     "allImagesLoaded" : function(props) {}, // props.element, props.mmgRecords                     "onTransitionStart" : function(props) { // props.element, props.currentRecordIndex, props.currentGalleryIndex, props.nextRecordIndex, props.nextGalleryIndex, props.mmgRecords                         // ANIMATE DESCRIPTION CONTAINER                         animateMmgDescriptionHeight(props.element);                         // MOBILE ADJUSTMENTS                         mmgMobileAdjustments(props.element); },                     "onTransitionEnd" : function(props) {}, // props.element, props.currentRecordIndex, props.currentGalleryIndex, props.mmgRecords                     "allLoaded" : function(props) { // props.element, props.mmgRecords                         // MOVE BULLETS                         $(".mmg-viewer", props.element).append($(".mmg-bullets-outer", props.element));                         // WRAP DESCRIPTION CONTAINER                         $(".mmg-description-outer .mmg-description", props.element).wrap('');                         // MOVE CONTROLS                         $(".mmg-description-outer .mmg-description-wrapper", props.element).prepend('');                         $(".mmg-description-outer .mmg-description-controls", props.element).prepend($(".mmg-control.play-pause", props.element), $(".mmg-control.back", props.element), $(".mmg-control.next", props.element));                         // ANIMATE DESCRIPTION CONTAINER                         animateMmgDescriptionHeight(props.element);                         // MOBILE ADJUSTMENTS                         mmgMobileAdjustments(props.element); },                     "onWindowResize": function(props) { // props.element, props.mmgRecords                         // ANIMATE DESCRIPTION CONTAINER                         animateMmgDescriptionHeight(props.element);                         // MOBILE ADJUSTMENTS                         mmgMobileAdjustments(props.element); } }); }             function animateMmgDescriptionHeight(element) {                 var mmgDescriptionHeight = $(".mmg-description-outer .mmg-description-wrapper", element).outerHeight(true);                 $(".mmg-description-outer", element).css("height", mmgDescriptionHeight); }             function mmgMobileAdjustments(element) {                 if(_this.GetBreakPoint() != "desktop") {                     if(!$(".mmg-description-wrapper .mmg-description-links", element).length) {                         $(".mmg-description-wrapper .mmg-description", element).append(''); }                     $(".mmg-description-wrapper .mmg-description-links", element).prepend($(".mmg-description-controls", element).clone().html()); } } },         "CheckSlideshow": function() {             // FOR SCOPE             var _this = this;             if($(".hp").length) {                 var slideshowOffset = (this.GetBreakPoint() == "desktop") ? $("#hp-slideshow").offset().top + $("#hp-slideshow").height() - $("#gb-sticky-header").height() : $("#hp-slideshow").offset().top + $("#hp-slideshow").height();                 if ($(window).scrollTop() <= slideshowOffset) {                     if(this.SlideshowDescFixed) {                         $("#hp-slideshow").removeAttr("style");                         this.SlideshowDescFixed = false; } } else {                     if(!this.SlideshowDescFixed) {                         $("#hp-slideshow").css({                             "height": $("#hp-slideshow").height(),                             "overflow": "hidden" });                         this.SlideshowDescFixed = true; } } } },         "RsMenu": function() {             // GLOBAL ICONS             var globalIcons = [                 {                     "image": "Site Utility/32.png",                     "showText": true,                     "text": "District Calendar",                     "url": "https://www.madisonpublicschools.org/Page/2",                     "target": "_self" },                 {                     "image": "Classroom/13.png",                     "showText": true,                     "text": "Parent Portal",                     "url": "https://parents.genesisedu.com/madison/parents?gohome=true",                     "target": "_self" },                 {                     "image": "Student Program/50.png",                     "showText": true,                     "text": "Lunch Menu",                     "url": "http://www.schoolnutritionandfitness.com/index.php?sid=1485197263741&page=menus",                     "target": "_blank" },                 {                     "image": "Student Program/61.png",                     "showText": true,                     "text": "PayForIt",                     "url": "https://www.payforit.net/login.aspx",                     "target": "_blank" },                 {                     "image": "Classroom/59.png",                     "showText": true,                     "text": "Staff Directory",                     "url": "https://www.madisonpublicschools.org/domain/821",                     "target": "_self" }             ];             var iconNum = ("5" == "5; 4; 3; 2; 1; 0") ? 5 : parseInt("5");             var haveLinks = false;             var links = [];             for(var i = 0;  i < iconNum;  i++) {                 links.push({ "text": globalIcons[i].text, "url": globalIcons[i].url, "target": globalIcons[i].target });                 haveLinks = true; }             var additionalItems = {};             if(haveLinks) {                 additionalItems["Popular Links"] = links; }             $.csRsMenu({                 "breakPoint" : 768, // SYSTEM BREAK POINTS - 768, 640, 480, 320                 "slideDirection" : "left-to-right", // OPTIONS - left-to-right, right-to-left                 "menuButtonParent" : "#gb-channel-list",                 "menuBtnText" : "Menu",                 "colors": {                     "pageOverlay": "#000000", // DEFAULT #000000                     "menuBackground": "#FFFFFF", // DEFAULT #FFFFFF                     "menuText": "#333333", // DEFAULT #333333                     "menuTextAccent": "#333333", // DEFAULT #333333                     "dividerLines": "#E6E6E6", // DEFAULT #E6E6E6                     "buttonBackground": "#E6E6E6", // DEFAULT #E6E6E6                     "buttonText": "#333333" // DEFAULT #333333 },                 "showSchools" : true,                 "schoolMenuText": "Schools",                 "showTranslate" : false,                 "translateMenuText": "Translate",                 "translateVersion": 2, // 1 = FRAMESET, 2 = BRANDED                 "translateId" : "",                 "showAccount": true,                 "accountMenuText": "User Options",                 "usePageListNavigation": true,                 "extraMenuOptions": additionalItems,                  "siteID": "1",                 "allLoaded": function(){} }); },         "AppAccordion": function() {             $("#sw-content-container4.ui-hp, #sw-content-container5.ui-hp").csAppAccordion({                 "accordionBreakpoints" : [768, 640, 480, 320] });             $(".sp-column.one").csAppAccordion({                 "accordionBreakpoints" : [480, 320] }); },         "Search": function() {             var _this = this;             $(do***ent).on("click keydown", "#gb-search-toggle", function(e){                 if(_this.AllyClick(e)) {                     e.preventDefault();                     // SEARCH IS CURRENTLY CLOSED                     if($("#gb-search").attr("aria-hidden") == "true") {                         $("#gb-search-toggle").attr("aria-expanded", "true");                         $("#gb-search").attr("aria-hidden", "false");                         setTimeout(function() {                             $("#gb-search-input").focus(); }, 500); }                     // SEARCH IS CURRENTLY OPEN                     else {                         $("#gb-search-toggle").attr("aria-expanded", "false");                         $("#gb-search").attr("aria-hidden", "true"); } } });             $("#gb-search-input").blur(function() {                 $("#gb-search-toggle").attr("aria-expanded", "false");                 $("#gb-search").attr("aria-hidden", "true"); });             $("#gb-search-form").submit(function(e){                 e.preventDefault();                 if($.trim($("#gb-search-input").val()) != "" && $.trim($("#gb-search-input").val()) != "Search...") {                     window.location.href = "/site/Default.aspx?PageType=6&SiteID=1&SearchString=" + $("#gb-search-input").val(); } }); },         "AllyClick": function(event) {             if(event.type == "click") {                 return true; } else if(event.type == "keydown" && (event.keyCode == this.KeyCodes.space || event.keyCode == this.KeyCodes.enter)) {                 return true; } else {                 return false; } },         "GetBreakPoint": function() {             return window.getComputedStyle(do***ent.querySelector("body"), ":before").getPropertyValue("content").replace(/"|'/g, ""); /*"*/ } };                   /* HOMEPAGE EDIT THUMBNAIL STYLES */         div.region {             ; }             div.region span.homepage-thumb-region-number {                 font: bold 100px verdana;                 color: #fff; }         div.homepage-thumb-region {             background: #264867;  /*dark blue*/             border: 5px solid #fff;             text-align: center;             padding: 40px 0 40px 0;             display: block; }             div.homepage-thumb-region.region-1 {                 background: #264867;  /*dark blue*/ }             div.homepage-thumb-region.region-2 {                 background: #5C1700;  /*dark red*/ }             div.homepage-thumb-region.region-3 {                 background: #335905;  /*dark green*/ }             div.homepage-thumb-region.region-4 {                 background: #B45014;  /*dark orange*/ }             div.homepage-thumb-region.region-5 {                 background: #51445F;  /*dark purple*/ }             div.homepage-thumb-region.region-6 {                 background: #3B70A0;  /*lighter blue*/ }             div.homepage-thumb-region.region-7 {                 background: #862200;  /*lighter red*/ }             div.homepage-thumb-region.region-8 {                 background: #417206;  /*lighter green*/ }             div.homepage-thumb-region.region-9 {                 background: #D36929;  /*lighter orange*/ }             div.homepage-thumb-region.region-10 {                 background: #6E5C80;  /*lighter purple*/ }         /* END HOMEPAGE EDIT THUMBNAIL STYLES */                   .noprint {             display: none !important; }                   .ui-txt-validate {             display: none; }            (function (i, s, o, g, r, a, m) {         i['GoogleAnalyticsObject'] = r;  i[r] = i[r] || function () {             (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date();  a = s.createElement(o),         m = s.getElementsByTagName(o)[0];  a.async = 1;  a.src = g;  m.parentNode.insertBefore(a, m) })(window, do***ent, 'script', '//www.google-analytics.com/analytics.js', 'ga');     ga('create', 'UA-5173826-6', 'auto', 'BBTracker' );     ga('BBTracker.set', 'dimension1', 'AWS');     ga('BBTracker.set', 'dimension2', 'False');     ga('BBTracker.set', 'dimension3', 'NJ01000205');     ga('BBTracker.set', 'dimension4', '1');     ga('BBTracker.set', 'dimension5', '1');     ga('BBTracker.set', 'dimension6', '1');     ga('BBTracker.send', 'pageview');            

    Heading Infomation & KeyWord Sentiment

    Heading TAG Description
    H1 District Events
    H1 Today
    H1 Tomorrow
    H1 Monday
    H1 Wednesday
    H1 Thursday
    H1 November 29, 2019
    H1 December 3, 2019
    H1 December 4, 2019
    H1 December 5, 2019
    H1 December 6, 2019
    H1 Quick Links
    H1 Headlines
    H1 MHS District Goals Presentation
    H1 Upcoming Superintendent Coffees
    H1 Social Emotional Learning in the 21st Century
    H1 TJS Principal Profile Parent Meeting
    H1 Parent Workshop "Anxiety 101: Helping Your Child Successfully Recognize and Manage Symptoms" October 29 at 7:00 PM in the MJS Auditorium
    H1 District Testing Presentation 2019
    H1 Special BOE Meeting 10/1/19
    H1 Superintendent Coffee October 14, 2019
    H1 CAS Land Parcel Transfer
    H1 Revised Start Time October 15, 2019 BOE Meeting
    H1 Madison Public Schools Recognized by the National****ociation of Music Merchants
    H1 2019 Food Allergy Notice
    H1 Website Calendar Instructions
    H1 2019-2020 MPS Advertised Budget
    H1 MHS Photography Club
    H1 Madison Improves in the Rankings
    H1 2017-*** HIB Grades Report
    H1 Madison TV
    H1 Genesis Parent Portal
    H1 Borough of Madison Community****et Map
    H1 Signing up for E-Alerts
    H2 Stay Connected With Us

    JavaScript Information

    
    <script type="text/javascript"> 
    
     staticURL "https://www.madisonpublicschools.org/Static/";
     SessionTimeout "0";
     BBHelpURL "";
    
    </script>
    
    
    

    
     <script type="text/javascript" src="https://www.madisonpublicschools.org/Static/GlobalAssets/Scripts/min/sri-failover.min.js"></script>
    
    

    
     <script type="text/javascript" src="https://www.madisonpublicschools.org/Static/GlobalAssets/WCM-2340/WCM.js"></script>
    
    

    
     <script type="text/javascript" src="https://www.madisonpublicschools.org/Static/GlobalAssets/WCM-2340/API.js"></script>
    
    

    
     <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    
    


    madisonpublicschools.org is using jquery
    
     <script type="text/javascript" src="https://www.madisonpublicschools.org/Static/GlobalAssets/Scripts/min/jquery-migrate-1.2.1.js"></script>
    
    


    madisonpublicschools.org is using jquery
    
     <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
    
    

    
     <script type="text/javascript" src="/Scripts/tether.min.js"></script>
    
    

    
     <script type="text/javascript" src="/Scripts/shepherd/shepherd.min.js"></script>
    
    

    
    <script type="text/javascript"> 
    
            $(do***ent).ready(function () {
    	            SetCookie('SWScreenWidth'screen.width);
    	            SetCookie('SWClientWidth', do***ent.body.clientWidth);
    	            $("div.ui-article:last").addClass("last-article");
    	            $("div.region .app:last").addClass("last-app");
    	            // get on screen alerts
    	            var isAnyActiveOSA 'False';
    	            var onscreenAlertCookie GetCookie('Alerts');
    	            if (onscreenAlertCookie == '' || onscreenAlertCookie == undefined) {
    		                onscreenAlertCookie "";
    		}
    	            if (isAnyActiveOSA == 'True') {
    		                GetContent(homeURL "/cms/Tools/OnScreenAlerts/UserControls/OnScreenAlertDialogListWrapper.aspx?OnScreenAlertCookie=" onscreenAlertCookie "&SiteID=1""onscreenalert-holder"2"OnScreenAlertCheckListItem();
    		");
    		}
    	});
        // ADA SKIP NAV
        $(do***ent).ready(function () {
    	        $(do***ent).on('focus''#skipLink', function () {
    		            $("div.sw-skipnav-outerbar").animate({
    			                marginTop"0px"
    			}, 500);
    		});
    	        $(do***ent).on('blur''#skipLink', function () {
    		            $("div.sw-skipnav-outerbar").animate({
    			                marginTop"-30px"
    			}, 500);
    		});
    	});
        // ADA MYSTART
        $(do***ent).ready(function () {
    	        var top_level_nav = $('.sw-mystart-nav');
    	        // Set tabIndex to -1 so that top_level_links can't receive focus until menu is open
    	        // school dropdown
    	        $(top_level_nav).find('ul').find('a').attr('tabIndex', -1);
    	        // my account dropdown
    	        $(top_level_nav).next('ul').find('a').attr('tabIndex', -1);
    	        var openNavCallback = function(eelement) {
    		             // hide open menus
    		            hideMyStartBarMenu();
    		            // show school dropdown
    		            if ($(element).find('ul').length 0) {
    			                $(element).find('.sw-dropdown').css('display''block').attr('aria-hidden''false');
    			                $(element).find('.sw-dropdown').find('li:first-child a').focus()
    			}
    		            // show my account dropdown
    		            if ($(element).next('ul').length 0) {
    			                $(element).next('.sw-dropdown').css('display''block').attr('aria-hidden''false');
    			                $(element).next('.sw-dropdown').find('li:first-child a').focus();
    			                $('#sw-mystart-account').addClass("clicked-state");
    			}
    		}
    	        $(top_level_nav).click(function (e) {
    		            openNavCallback(ethis);
    		});
    	        $('.sw-dropdown-list li').click(function(e) {
    		            e.stopImmediatePropagation();
    		            $(this).focus();
    		});
    	        // Bind arrow keys for navigation
    	        $(top_level_nav).keydown(function (e) {
    		            if (e.keyCode == 37) {
    			//key left
    			                e.preventDefault();
    			                // This is the first item
    			                if ($(this).prev('.sw-mystart-nav').length == 0) {
    				                    $(this).parents('div').find('.sw-mystart-nav').last().focus();
    				} else {
    				                    $(this).prev('.sw-mystart-nav').focus();
    				}
    			} else if (e.keyCode == 38) {
    			//key up
    			                e.preventDefault();
    			                // show school dropdown
    			                if ($(this).find('ul').length 0) {
    				                    $(this).find('div.sw-dropdown').css('display''block').find('ul').attr('aria-hidden''false').find('a').attr('tabIndex'0).last().focus();
    				}
    			                // show my account dropdown
    			                if ($(this).find('ul').length 0) {
    				                    $(this).find('ul.sw-dropdown').css('display''block').attr('aria-hidden''false').find('a').attr('tabIndex'0).last().focus();
    				}
    			} else if (e.keyCode == 39) {
    			//key right
    			                e.preventDefault();
    			                // This is the last item
    			                if ($(this).next('.sw-mystart-nav').length == 0) {
    				                    $(this).parents('div').find('.sw-mystart-nav').first().focus();
    				} else {
    				                    $(this).next('.sw-mystart-nav').focus();
    				}
    			} else if (e.keyCode == 40) {
    			//key down
    			                e.preventDefault();
    			                // show school dropdown
    			                if ($(this).find('ul').length 0) {
    				                    $(this).find('div.sw-dropdown').css('display''block').find('ul').attr('aria-hidden''false').find('a').attr('tabIndex'0).first().focus();
    				}
    			                // show my account dropdown
    			                if ($(this).next('ul').length 0) {
    				                    $(this).next('ul.sw-dropdown').css('display''block').attr('aria-hidden''false').find('a').attr('tabIndex'0).first().focus();
    				}
    			} else if (e.keyCode == 13 || e.keyCode == 32) {
    			//enter key
    			                // If submenu is hidden, open it
    			                e.preventDefault();
    			                openNavCallback(ethis);
    			                $(this).parent('li').find('ul[aria-hidden=true]').attr('aria-hidden''false').find('a').attr('tabIndex'0).first().focus();
    			} else if (e.keyCode == 27) {
    			//escape key
    			                e.preventDefault();
    			                hideMyStartBarMenu();
    			} else {
    			                $(this).parent('.sw-mystart-nav').find('ul[aria-hidden=false] a').each(function () {
    				                    if (typeof keyCodeMap != "undefined" && $(this).text().substring(01).toLowerCase() == keyCodeMap[e.keyCode]) {
    					                        $(this).focus();
    					                        return false;
    					}
    				});
    			}
    		});
    	        // school dropdown
    	        var startbarlinks = $(top_level_nav).find('ul').find('a');
    	        bindMyStartBarLinks(startbarlinks);
    	        // my account dropdown
    	        var myaccountlinks = $(top_level_nav).next('ul').find('a');
    	        bindMyStartBarLinks(myaccountlinks);
    	        function bindMyStartBarLinks(links) {
    		            $(links).keydown(function (e) {
    			                e.stopPropagation();
    			                if (e.keyCode == 38) {
    				//key up
    				                    e.preventDefault();
    				                    // This is the first item
    				                    if ($(this).parent('li').prev('li').length == 0) {
    					                        if ($(this).parents('ul').parents('.sw-mystart-nav').length 0) {
    						                            $(this).parents('ul').parents('.sw-mystart-nav').focus();
    						} else {
    						                            $(this).parents('ul').prev('.sw-mystart-nav').focus();
    						}
    					} else {
    					                        $(this).parent('li').prev('li').find('a').first().focus();
    					}
    				} else if (e.keyCode == 40) {
    				//key down
    				                    e.preventDefault();
    				                    if ($(this).parent('li').next('li').length == 0) {
    					                        if ($(this).parents('ul').parents('.sw-mystart-nav').length 0) {
    						                            $(this).parents('ul').parents('.sw-mystart-nav').focus();
    						} else {
    						                            $(this).parents('ul').prev('.sw-mystart-nav').focus();
    						}
    					} else {
    					                        $(this).parent('li').next('li').find('a').first().attr('tabIndex'0);
    					                        $(this).parent('li').next('li').find('a').first().focus();
    					}
    				} else if (e.keyCode == 27 || e.keyCode == 37) {
    				// escape key or key left
    				                    e.preventDefault();
    				                    hideMyStartBarMenu();
    				} else if (e.keyCode == 32) {
    				//enter key
    				                    e.preventDefault();
    				                    window.location = $(this).attr('href');
    				} else {
    				                    var found false;
    				                    $(this).parent('div').nextAll('li').find('a').each(function () {
    					                        if (typeof keyCodeMap != "undefined" && $(this).text().substring(01).toLowerCase() == keyCodeMap[e.keyCode]) {
    						                            $(this).focus();
    						                            found true;
    						                            return false;
    						}
    					});
    				                    if (!found) {
    					                        $(this).parent('div').prevAll('li').find('a').each(function () {
    						                            if (typeof keyCodeMap != "undefined" && $(this).text().substring(01).toLowerCase() == keyCodeMap[e.keyCode]) {
    							                                $(this).focus();
    							                                return false;
    							}
    						});
    					}
    				}
    			});
    		}
    	        // Hide menu if click or focus occurs outside of navigation
    	        $('#sw-mystart-inner').find('.sw-mystart-nav').last().keydown(function (e) {
    		            if (e.keyCode == 9) {
    			                // If the user tabs out of the navigation hide all menus
    			                hideMyStartBarMenu();
    			}
    		});
    	        /*$(do***ent).click(function() {
    		            hideMyStartBarMenu();
    		});
    	*/
    	        // try to capture as many custom MyStart bars as possible
    	        $('.sw-mystart-button').find('a').focus(function () {
    		            hideMyStartBarMenu();
    		});
    	        $('#sw-mystart-inner').click(function (e) {
    		            e.stopPropagation();
    		});
    	        $('ul.sw-dropdown-list').blur(function () {
    		            hideMyStartBarMenu();
    		});
    	        $('#ui-btn-mypasskey').focus(function () {
    		            hideMyStartBarMenu();
    		});
    	        $('#ui-btn-sitemanager').focus(function () {
    		            hideMyStartBarMenu();
    		});
    	        $('#ui-btn-myview').focus(function () {
    		            hideMyStartBarMenu();
    		});
    	        $('#ui-btn-signin').focus(function () {
    		            hideMyStartBarMenu();
    		});
    	        $('#ui-btn-register').focus(function () {
    		            hideMyStartBarMenu();
    		});
    	        // button click events
    	        $('div.sw-mystart-button.home a').keydown(function (e) {
    		            e.stopImmediatePropagation();
    		            if (e.keyCode == 13) {
    			                $(this).click();
    			}
    		});
    	        $('div.sw-mystart-button.pw a').keydown(function (e) {
    		            e.stopImmediatePropagation();
    		            if (e.keyCode == 13) {
    			                $(this).click();
    			}
    		});
    	        $('div.sw-mystart-button.manage a').keydown(function (e) {
    		            e.stopImmediatePropagation();
    		            if (e.keyCode == 13) {
    			                $(this).click();
    			}
    		});
    	        $('#sw-mystart-account').keydown(function (e) {
    		            e.stopImmediatePropagation();
    		            if (e.keyCode == 13) {
    			                $(this).addClass('clicked-state');
    			                $('#sw-myaccount-list').show();
    			}
    		});
    	        $('#sw-mystart-mypasskey a').keydown(function (e) {
    		            e.stopImmediatePropagation();
    		            if (e.keyCode == 13) {
    			                $(this).click();
    			}
    		});
    	        $('div.sw-mystart-button.signin a').keydown(function (e) {
    		            e.stopImmediatePropagation();
    		            if (e.keyCode == 13) {
    			                $(this).click();
    			}
    		});
    	        $('div.sw-mystart-button.register a').keydown(function (e) {
    		            e.stopImmediatePropagation();
    		            if (e.keyCode == 13) {
    			                $(this).click();
    			}
    		});
    	});
        function hideMyStartBarMenu() {
    	        $('.sw-dropdown').attr('aria-hidden''true').css('display''none');
    	        $('#sw-mystart-account').removeClass("clicked-state");
    	}
        // ADA CHANNEL NAV
        $(do***ent).ready(function() {
    	        var channelCount;
    	        var channelIndex 1;
    	        var settings = {
    		            menuHoverClass'hover'
    		};
    	        // Add ARIA roles to menubar and menu items
    	        $('[id="channel-navigation"]').attr('role''menubar').find('li a').attr('role''menuitem').attr('tabindex''0');
    	        var top_level_links = $('[id="channel-navigation"]').find('> li > a');
    	        channelCount = $(top_level_links).length;
    	        $(top_level_links).each(function() {
    		            $(this).attr('aria-posinset'channelIndex).attr('aria-setsize'channelCount);
    		            $(this).next('ul').attr({ 'aria-hidden''true''role''menu'
    			});
    		            if ($(this).parent('li.sw-channel-item').children('ul').length 0) {
    			                $(this).attr('aria-haspopup''true');
    			}
    		            var sectionCount = $(this).next('ul').find('a').length;
    		            var sectionIndex 1;
    		            $(this).next('ul').find('a').each(function() {
    			                $(this).attr('tabIndex', -1).attr('aria-posinset'sectionIndex).attr('aria-setsize'sectionCount);
    			                sectionIndex++;
    			});
    		            channelIndex++;
    		});
    	        $(top_level_links).focus(function () {
    		            //hide open menus
    		            hideChannelMenu();
    		            if ($(this).parent('li').find('ul').length 0) {
    			                $(this).parent('li').addClass(settings.menuHoverClass).find('ul').attr('aria-hidden''false').css('display''block');
    			}
    		});
    	        // Bind arrow keys for navigation
    	        $(top_level_links).keydown(function (e) {
    		            if (e.keyCode == 37) {
    			//key left
    			                e.preventDefault();
    			                // This is the first item
    			                if ($(this).parent('li').prev('li').length == 0) {
    				                    $(this).parents('ul').find('> li').last().find('a').first().focus();
    				} else {
    				                    $(this).parent('li').prev('li').find('a').first().focus();
    				}
    			} else if (e.keyCode == 38) {
    			//key up
    			                e.preventDefault();
    			                if ($(this).parent('li').find('ul').length 0) {
    				                    $(this).parent('li').addClass(settings.menuHoverClass).find('ul').css('display''block').attr('aria-hidden''false').find('a').attr('tabIndex'0).last().focus();
    				}
    			} else if (e.keyCode == 39) {
    			//key right
    			                e.preventDefault();
    			                // This is the last item
    			                if ($(this).parent('li').next('li').length == 0) {
    				                    $(this).parents('ul').find('> li').first().find('a').first().focus();
    				} else {
    				                    $(this).parent('li').next('li').find('a').first().focus();
    				}
    			} else if (e.keyCode == 40) {
    			//key down
    			                e.preventDefault();
    			                if ($(this).parent('li').find('ul').length 0) {
    				                    $(this).parent('li')
    				                         .addClass(settings.menuHoverClass)
    				                         .find('ul.sw-channel-dropdown').css('display''block')
    				                         .attr('aria-hidden''false')
    				                         .find('a').attr('tabIndex'0)
    				                         .first().focus();
    				}
    			} else if (e.keyCode == 13 || e.keyCode == 32) {
    			//enter key
    			                // If submenu is hidden, open it
    			                e.preventDefault();
    			                $(this).parent('li').find('ul[aria-hidden=true]').attr('aria-hidden''false').addClass(settings.menuHoverClass).find('a').attr('tabIndex'0).first().focus();
    			} else if (e.keyCode == 27) {
    			//escape key
    			                e.preventDefault();
    			                hideChannelMenu();
    			} else {
    			                $(this).parent('li').find('ul[aria-hidden=false] a').each(function () {
    				                    if (typeof keyCodeMap != "undefined" && $(this).text().substring(01).toLowerCase() == keyCodeMap[e.keyCode]) {
    					                        $(this).focus();
    					                        return false;
    					}
    				});
    			}
    		});
    	        var links = $(top_level_links).parent('li').find('ul').find('a');
    	        $(links).keydown(function (e) {
    		            if (e.keyCode == 38) {
    			                e.preventDefault();
    			                // This is the first item
    			                if ($(this).parent('li').prev('li').length == 0) {
    				                    $(this).parents('ul').parents('li').find('a').first().focus();
    				} else {
    				                    $(this).parent('li').prev('li').find('a').first().focus();
    				}
    			} else if (e.keyCode == 40) {
    			                e.preventDefault();
    			                if ($(this).parent('li').next('li').length == 0) {
    				                    $(this).parents('ul').parents('li').find('a').first().focus();
    				} else {
    				                    $(this).parent('li').next('li').find('a').first().focus();
    				}
    			} else if (e.keyCode == 27 || e.keyCode == 37) {
    			                e.preventDefault();
    			                $(this).parents('ul').first().prev('a').focus().parents('ul').first().find('.' settings.menuHoverClass).removeClass(settings.menuHoverClass);
    			} else if (e.keyCode == 32) {
    			                e.preventDefault();
    			                window.location = $(this).attr('href');
    			} else {
    			                var found false;
    			                $(this).parent('li').nextAll('li').find('a').each(function () {
    				                    if (typeof keyCodeMap != "undefined" && $(this).text().substring(01).toLowerCase() == keyCodeMap[e.keyCode]) {
    					                        $(this).focus();
    					                        found true;
    					                        return false;
    					}
    				});
    			                if (!found) {
    				                    $(this).parent('li').prevAll('li').find('a').each(function () {
    					                        if (typeof keyCodeMap != "undefined" && $(this).text().substring(01).toLowerCase() == keyCodeMap[e.keyCode]) {
    						                            $(this).focus();
    						                            return false;
    						}
    					});
    				}
    			}
    		});
    	        function hideChannelMenu() {
    		            $('li.sw-channel-item.' settings.menuHoverClass).removeClass(settings.menuHoverClass).find('ul').attr('aria-hidden''true').css('display''none').find('a').attr('tabIndex', -1);
    		}
    	        // Hide menu if click or focus occurs outside of navigation
    	        $('[id="channel-navigation"]').find('a').last().keydown(function (e) {
    		            if (e.keyCode == 9) {
    			                // If the user tabs out of the navigation hide all menus
    			                hideChannelMenu();
    			}
    		});
    	        $('[id="channel-navigation"]').find('a').first().keydown(function (e) {
    		            if (e.keyCode == 9) {
    			                // hide open MyStart Bar menus
    			                hideMyStartBarMenu();
    			}
    		});
    	        /*$(do***ent).click(function() {
    		            hideChannelMenu();
    		});
    	*/
    	        $('[id="channel-navigation"]').click(function (e) {
    		            e.stopPropagation();
    		});
    	});
        $(do***ent).ready(function() {
    	        $('input.required').each(function() {
    		            if ($('label[for="' + $(this).attr('id') + '"]').length 0) {
    			                if ($('label[for="' + $(this).attr('id') + '"]').html().indexOf('recStar') < 0) {
    				                    $('label[for="' + $(this).attr('id') + '"]').prepend('<span class="recStar" aria-label="required item">* ');
    				}
    			}
    		});
    	        $(do***ent).ajaxComplete(function() {
    		            $('input.required').each(function() {
    			                if ($('label[for="' + $(this).attr('id') + '"]').length 0) {
    				                    if ($('label[for="' + $(this).attr('id') + '"]').html().indexOf('recStar') < 0) {
    					                        $('label[for="' + $(this).attr('id') + '"]').prepend('<span class="recStar" aria-label="required item">* ');
    					}
    				}
    			});
    		});
    	});
        
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
    $(do***ent).ready(function(){
    	$(".sw-mystart-dropdown").click(function() {
    		$(".sw-dropdown"this).show();
    		});
    	$(".sw-mystart-dropdown").hover(function() {}, function() {
    		$(".sw-dropdown"this).hide();
    		});
    	});
    
    </script>
    
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/tools/head.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/responsive/creative-responsive-menu-v3/creative.responsive.menu.v3.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/responsive/creative-app-accordion/creative.app.accordion.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/tools/creative-translate/creative.translate.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/joel/mod-events/joel.mod-events.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/polyfills/css-vars/cs.css.vars.polyfill.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/global/js/cs.global.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/subscription_library/tools/cs.contrast.bar.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/tools/creative-icons-v4/creativeIcons.v4.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/responsive/creative-article-slider/cs.article.slider.min.js"></script>
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/responsive/cs.rs.tabbed.blocks.min.js"></script>
    
    

    
    <script type="text/javascript"> 
    
        $.csHighContrastBar({
    	        "show"true,
    	        "alternateLogo": {
    		            "selector"".gb-logo img"// ID OR CLASS OF DEFAULT LOGO <img>
    		            "src""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg"// ALTERNATE LOGO SRC
    		            "alt""Madison Public Schools header logo"
    		},
    	        "alternateImages": [
    	            {
    		                "selector"".cs-global-icons > li:nth-child(1) .icon img"// ID OR CLASS OF DEFAULT <img>
    		                "src""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg"// ALTERNATE IMAGE SRC
    		                "alt""" // ALTERNATE IMAGE ALT TEXT
    		},
    	            {
    		                "selector"".cs-global-icons > li:nth-child(2) .icon img"// ID OR CLASS OF DEFAULT <img>
    		                "src""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg"// ALTERNATE IMAGE SRC
    		                "alt""" // ALTERNATE IMAGE ALT TEXT
    		},
    	            {
    		                "selector"".cs-global-icons > li:nth-child(3) .icon img"// ID OR CLASS OF DEFAULT <img>
    		                "src""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg"// ALTERNATE IMAGE SRC
    		                "alt""" // ALTERNATE IMAGE ALT TEXT
    		},
    	            {
    		                "selector"".cs-global-icons > li:nth-child(4) .icon img"// ID OR CLASS OF DEFAULT <img>
    		                "src""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg"// ALTERNATE IMAGE SRC
    		                "alt""" // ALTERNATE IMAGE ALT TEXT
    		},
    	            {
    		                "selector"".cs-global-icons > li:nth-child(5) .icon img"// ID OR CLASS OF DEFAULT <img>
    		                "src""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg"// ALTERNATE IMAGE SRC
    		                "alt""" // ALTERNATE IMAGE ALT TEXT
    		}
    	        ],
    	        "toggle": function(on{} // CUSTOM CALLBACK WHEN CONTRAST IS TOGGLED (ALSO FIRES ON DOC READY) - on PARAMETER IS EITHER true OR false (boolean)
    	});
        $(function() {
    	        CreativeTemplate.Init();
    	});
        var CreativeTemplate = {
    	        // PROPERTIES
    	        "KeyCodes": { "tab"9"enter"13"esc"27"space"32"end"35"home"36"left"37"up"38"right"39"down"40
    		},
    	        "IsMyViewPage"false,
    	        "SlideshowDescFixed"false,
    	        "HeaderIsSticky"false,
    	        "TabbedSocialMediaSet"false,
    	        // METHODS
    	        "Init": function() {
    		            // FOR SCOPE
    		            var _this this;
    		            this.SetTemplateProps();
    		            this.JsMediaQueries();
    		            this.MyStart();
    		            this.Header();
    		            this.RsMenu();
    		            this.ChannelBar();
    		            this.SetChannelDropdownPositions();
    		            this.StickyHeader();
    		            this.Body();
    		            this.GlobalIcons();
    		            this.ModEvents();
    		            this.ArticleSlider();
    		            this.TabbedSocialMedia();
    		            this.TabbedSocialMediaMobile();
    		            this.Footer();
    		            this.Slideshow();
    		            this.CheckSlideshow();
    		            this.AppAccordion();
    		            this.Search();
    		            this.CompileTcwMarkdown();
    		            $(window).load(function(){ _this.WindowLoad();
    			});
    		            $(window).resize(function(){ _this.WindowResize();
    			});
    		            $(window).scroll(function(){ _this.WindowScroll();
    			});
    		            // HANDLE LINKS THAT OPEN IN A NEW WINDOW
    		            csGlobalJs.OpenInNewWindowWarning();
    		},
    	        "SetTemplateProps": function() {
    		            // MYVIEW PAGE CHECK
    		            if($(".myview").lengththis.IsMyViewPage true;
    		},
    	        "WindowLoad": function() {
    		            // HANDLE LINKS THAT OPEN IN A NEW WINDOW
    		            csGlobalJs.OpenInNewWindowWarning();
    		},
    	        "WindowResize": function() {
    		            this.JsMediaQueries();
    		            this.CheckSlideshow();
    		            this.StickyHeader();
    		            this.TabbedSocialMediaMobile();
    		            this.SetChannelDropdownPositions();
    		},
    	        "WindowScroll": function() {
    		            this.CheckSlideshow();
    		            this.StickyHeader();
    		            this.SetChannelDropdownPositions();
    		},
    	        "JsMediaQueries": function() {
    		            switch(this.GetBreakPoint()) {
    			                case "desktop": 
    			                break;
    			                case "768":
    			                break;
    			                case "640":
    			                break;
    			                case "480":
    			                break;
    			                case "320":
    			                break;
    			}
    		},
    	        "CompileTcwMarkdown": function() {
    		            $(".cs-html-element").each(function(){
    			                var content = $(this).text().replace(/\[/g'<').replace(/\]/g'>');
    			                $(this).html(content);
    			}).show();
    		},
    	        "MyStart": function() {
    		            // ADD DISTRICT HOME
    		            if($(".sw-mystart-button.home").length) {
    			                $(".sw-mystart-button.home span").text("MPS Home");
    			                $(".gb-header.left").prepend($(".sw-mystart-button.home"));
    			}
    		            // SCHOOL LIST
    		            if($(".sw-mystart-dropdown.schoollist").length) {
    			                var schoolDropdown =    '<div class="cs-mystart-dropdown schools">' +
    			                                            '<div class="cs-selector" tabindex="0" aria-label="Schools" role="button" aria-expanded="false" aria-haspopup="true">Schools' +
    			                                            '<div class="cs-dropdown" aria-hidden="true" style="display:none;
    			">' +
    			                                                '<ul class="cs-dropdown-list">' + $(".sw-mystart-dropdown.schoollist .sw-dropdown-list").html() + '' +
    			                                            '' +
    			                                        '';
    			                // ADD SCHOOL LIST TO THE DOM    
    			                $(".gb-header.left").append(schoolDropdown);
    			                // BIND DROPDOWN EVENTS
    			                this.DropdownActions({
    				                    "dropdownParent"".cs-mystart-dropdown.schools",
    				                    "dropdownSelector"".cs-selector",
    				                    "dropdown"".cs-dropdown",
    				                    "dropdownList"".cs-dropdown-list"
    				                });
    			            }
    		            // ADD TRANSLATE
    		            $(".cs-mystart-dropdown.translate .cs-dropdown").creativeTranslate({
    			                "type"2,
    			                "advancedOptions": {
    				                    "addMethod""append",
    				                    "brandedLayout"1
    				}
    			});
    		            // BIND DROPDOWN EVENTS
    		            this.DropdownActions({
    			                "dropdownParent"".cs-mystart-dropdown.translate",
    			                "dropdownSelector"".cs-selector",
    			                "dropdown"".cs-dropdown",
    			                "dropdownList"".cs-dropdown-list"
    			});
    		            // USER OPTIONS
    		            // REGISTER BUTTON
    		            if($(".sw-mystart-button.register").length) {
    			                $("#gb-user-options").prepend($(".sw-mystart-button.register"));
    			}
    		            // SIGNIN BUTTON
    		            if($(".sw-mystart-button.signin").length) {
    			                $("#gb-user-options").prepend($(".sw-mystart-button.signin"));
    			            }
    		            this.DropdownActions({
    			                "dropdownParent"".cs-mystart-dropdown.user-options",
    			                "dropdownSelector"".cs-selector",
    			                "dropdown"".cs-dropdown",
    			                "dropdownList"".cs-dropdown-list"
    			});
    		},
    	        "DropdownActions": function(params) {
    		            /*****UMES THE FOLLOWING STRUCTURE
    		            <div class="cs-mystart-dropdown user-options">
    		                <div class="cs-selector" tabindex="0" aria-label="User Options" role="button" aria-expanded="false" aria-haspopup="true">User Options
    		                <div class="cs-dropdown" aria-hidden="true" style="display:none;
    		">
    		                    <ul class="cs-dropdown-list">
    		                        <li><a href="#">Link
    		            */
    		            // FOR SCOPE
    		            var _this this;
    		            var dropdownParent params.dropdownParent;
    		            var dropdownSelector params.dropdownSelector;
    		            var dropdown params.dropdown;
    		            var dropdownList params.dropdownList;
    		            $(dropdownParent " " dropdownList " a").attr("tabindex""-1");
    		            // MYSTART DROPDOWN SELECTOR CLICK EVENT
    		            $(dropdownParent).on("click"dropdownSelector, function(e) {
    			                e.preventDefault();
    			                if($(this).parent().hasClass("open")){
    				                    $("+ " dropdownList " a").attr("tabindex""-1");
    				                    $(this).attr("aria-expanded""false").parent().removeClass("open").find(dropdown).attr("aria-hidden""true").slideUp(300"swing");
    				} else {
    				                    $(this).attr("aria-expanded""true").parent().addClass("open").find(dropdown).attr("aria-hidden","false").slideDown(300"swing");
    				}
    			            });
    		            // MYSTART DROPDOWN SELECTOR KEYDOWN EVENTS
    		            $(dropdownParent).on("keydown"dropdownSelector, function(e) {
    			                // CAPTURE KEY CODE
    			                switch(e.keyCode) {
    				                    // CONSUME LEFT AND UP ARROWS
    				                    case _this.KeyCodes.enter:
    				                    case _this.KeyCodes.space:
    				                        e.preventDefault();
    				                        // IF THE DROPDOWN IS OPEN, CLOSE IT
    				                        if($(dropdownParent).hasClass("open")){
    					                            $("+ " dropdown " " dropdownList " a").attr("tabindex""-1");
    					                            $(this).attr("aria-expanded""false").parent().removeClass("open").find(dropdown).attr("aria-hidden""true").slideUp(300"swing");
    					} else {
    					                            $(this).attr("aria-expanded""true").parent().addClass("open").find(dropdown).attr("aria-hidden""false").slideDown(300"swing", function(){
    						                                $(dropdownList " li:first-child a"this).attr("tabindex""0").focus();
    						});
    					}
    				                    break;
    				                    // CONSUME TAB KEY
    				                    case _this.KeyCodes.tab:
    				                        if($("+ " dropdown " " dropdownList " a").length) {
    					                            $("+ " dropdown " " dropdownList " a").attr("tabindex""-1");
    					                            $(this).attr("aria-expanded""false").parent().removeClass("open").find(dropdown).attr("aria-hidden""true").slideUp(300"swing");
    					}
    				                    break;
    				                    // CONSUME LEFT AND UP ARROWS
    				                    case _this.KeyCodes.down:
    				                    case _this.KeyCodes.right:
    				                        e.preventDefault();
    				                        $("+ " dropdown " " dropdownList " a").attr("tabindex""-1");
    				                        $("+ " dropdown " " dropdownList " li:first-child > a"this).attr("tabindex""0").focus();
    				                    break;
    				}
    			});
    		            // MYSTART DROPDOWN LINK KEYDOWN EVENTS
    		            $(dropdownParent).on("keydown"dropdownList " li a", function(e) {
    			                // CAPTURE KEY CODE
    			                switch(e.keyCode) {
    				                    // CONSUME LEFT AND UP ARROWS
    				                    case _this.KeyCodes.left:
    				                    case _this.KeyCodes.up:
    				                        e.preventDefault();
    				                        // IS FIRST ITEM
    				                        if($(this).parent().is(":first-child")) {
    					                            // FOCUS DROPDOWN BUTTON
    					                            $(this).closest(dropdownList).find("a").attr("tabindex""-1");
    					                            $(this).closest(dropdownParent).find(dropdownSelector).focus();
    					} else {
    					                            // FOCUS PREVIOUS ITEM
    					                            $(this).closest(dropdownList).find("a").attr("tabindex""-1");
    					                            $(this).parent().prev("li").find("> a").attr("tabindex""0").focus();
    					}
    				                    break;
    				                    // CONSUME RIGHT AND DOWN ARROWS
    				                    case _this.KeyCodes.right:
    				                    case _this.KeyCodes.down:
    				                        e.preventDefault();
    				                        // IS LAST ITEM
    				                        if($(this).parent().is(":last-child")) {
    					                            // FOCUS FIRST ITEM
    					                            $(this).closest(dropdownList).find("a").attr("tabindex""-1");
    					                            $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex""0").focus();
    					} else {
    					                            // FOCUS NEXT ITEM
    					                            $(this).closest(dropdownList).find("a").attr("tabindex""-1");
    					                            $(this).parent().next("li").find("> a").attr("tabindex""0").focus();
    					}
    				                    break;
    				                    // CONSUME TAB KEY
    				                    case _this.KeyCodes.tab:
    				                        if(e.shiftKey) {
    					                            e.preventDefault();
    					                            // FOCUS DROPDOWN BUTTON
    					                            $(this).closest(dropdownList).find("a").attr("tabindex""-1");
    					                            $(this).closest(dropdownParent).find(dropdownSelector).focus();
    					}
    				                    break;
    				                    // CONSUME HOME KEY
    				                    case _this.KeyCodes.home:
    				                        e.preventDefault();
    				                        // FOCUS FIRST ITEM
    				                        $(this).closest(dropdownList).find("a").attr("tabindex""-1");
    				                        $(this).closest(dropdownList).find("li:first-child > a").attr("tabindex""0").focus();
    				                    break;
    				                    // CONSUME END KEY
    				                    case _this.KeyCodes.end:
    				                        e.preventDefault();
    				                        // FOCUS LAST ITEM
    				                        $(this).closest(dropdownList).find("a").attr("tabindex""-1");
    				                        $(this).closest(dropdownList).find("li:last-child > a").attr("tabindex""0").focus();
    				                    break;
    				                    // CONSUME ESC KEY
    				                    case _this.KeyCodes.esc:
    				                        e.preventDefault();
    				                        // FOCUS DROPDOWN BUTTON AND CLOSE DROPDOWN
    				                        $(this).closest(dropdownParent).find(dropdownSelector).focus();
    				                        $(this).closest(dropdownList).find("a").attr("tabindex""-1");
    				                        $(dropdownSelector).attr("aria-expanded""false").parent().removeClass("open").find(dropdown).attr("aria-hidden""true").slideUp(300"swing");
    				                    break;
    				}
    			});
    		            $(dropdownParent).mouseleave(function(e) {
    			                if(e.target.nodeName.toLowerCase() !== "select") {
    				                    $(dropdownList " a"this).attr("tabindex""-1");
    				                    $(dropdownSelectorthis).attr("aria-expanded""false").parent().removeClass("open").find(dropdown).attr("aria-hidden""true").slideUp(300"swing");
    				}
    			}).focusout(function() {
    			                var thisDropdown this;
    			                setTimeout(function () {
    				                    if(!$(thisDropdown).find(":focus").length) {
    					                        $(dropdownSelectorthisDropdown).attr("aria-expanded""false").parent().removeClass("open").find(dropdown).attr("aria-hidden""true").slideUp(300"swing");
    					}
    				}, 500);
    			});
    		},
    	        "Header": function() {
    		            // ADD SITENAME
    		            var siteNameOne = $.trim("");
    		            var siteNameTwo = $.trim("");
    		            var siteNameBegin '';
    		            var siteNameEnd '';
    		            if((siteNameOne == "") && (siteNameTwo == "")) {
    			                var siteName = ("Madison Public Schools").split(" ");
    			                siteNameBegin = $.trim(siteName.splice(01).toString().replace(/,/g" "));
    			                siteNameEnd = $.trim(siteName.toString().replace(/,/g" "));
    			                $("#gb-sitename").prepend("<h1>" siteNameBegin "<span>" siteNameEnd "");
    			                $("<h2>" siteNameBegin " " siteNameEnd "").insertBefore($("#gb-footer-contact"));
    			} else if((siteNameOne != "") && (siteNameTwo == "")) {
    			                $("#gb-sitename").prepend("<h1>" siteNameOne "");
    			                $("<h2>" siteNameOne "").insertBefore($("#gb-footer-contact"));
    			} else if((siteNameOne == "") && (siteNameTwo != "")) {
    			                $("#gb-sitename").prepend("<h1>" siteNameTwo "");
    			                $("<h2>" siteNameTwo "").insertBefore($("#gb-footer-contact"));
    			} else if((siteNameOne != "") && (siteNameTwo != "")) {
    			                $("#gb-sitename").prepend("<h1>" siteNameOne "<span>" siteNameTwo "");
    			                $("<h2>" siteNameOne " " siteNameTwo "").insertBefore($("#gb-footer-contact"));
    			}
    		},
    	        "ChannelBar": function() {
    		            var _this this;
    		            $(".sw-channel-item").unbind("hover");
    		            $(".sw-channel-item").hover(function(){
    			                $(".sw-channel-item ul").stop(truetrue);
    			                var subList = $(this).children('ul');
    			                if ($.trim(subList.html()) !== "") {
    				                    subList.slideDown(300"swing");
    				}
    			                $(this).addClass("hover");
    			}, function(){
    			                $(".sw-channel-dropdown").slideUp(300"swing");
    			                $(this).removeClass("hover");
    			});
    		            // APPEND ALL HIDDEN CHANNELS BEFORE BEGINNING SO THAT THEY DON'T INTERFERE WITH INDEXES
    		            $("#channel-navigation").append($("#channel-navigation .hidden-channel"));
    		            var megaMenuChannels = [
    		                {
    			                    "showImage""true",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0002-cropped.jpg",
    			                    "imageAlt""Sign",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""true",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0041-cropped.jpg",
    			                    "imageAlt""Auditorium",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""true",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0049-cropped.jpg",
    			                    "imageAlt""Hallway",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""true",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0055-cropped.jpg",
    			                    "imageAlt""Sidewalk",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""true",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0097-cropped.jpg",
    			                    "imageAlt""School",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""true",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0046-cropped.jpg",
    			                    "imageAlt""Office",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""true",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///New Template Pics/DSC_0091-cropped.jpg",
    			                    "imageAlt""Coat Hooks",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""false",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg",
    			                    "imageAlt""Channel 8 Image Alt Text",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""false",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg",
    			                    "imageAlt""Channel 9 Image Alt Text",
    			                    "showCaption"false,
    			                    "caption"""
    			},
    		                {
    			                    "showImage""false",
    			                    "imageSrc""/cms/lib/NJ01000205/Centricity/Template/GlobalAssets/images///Faces/default-man.jpg",
    			                    "imageAlt""Channel 10 Image Alt Text",
    			                    "showCaption"false,
    			                    "caption"""
    			}
    		            ];
    		            var homeChannelExists = $("#gb-channel-list #navc-HP").length;
    		            var channelIndex = (homeChannelExists) ? 1;
    		            $.each(megaMenuChannels, function(indexchannel) {
    			                // BREAK IF AND WHEN WE REACH THE CALENDAR CHANNEL
    			                if($("li.sw-channel-item:nth-child(" channelIndex ")").attr("id") == "navc-CA") {
    				                    return false;
    				}
    			                // CHECK TO MAKE SURE THE CHANNEL HAS A DROPDOWN
    			                var haveChannelDropdown = $("li.sw-channel-item:nth-child(" channelIndex ") .sw-channel-dropdown").length;
    			                var haveActiveSectionsInDropdown = $("li.sw-channel-item:nth-child(" channelIndex ") .sw-channel-dropdown > li").length;
    			                if(haveChannelDropdown && haveActiveSectionsInDropdown) {
    				                    // BUILD SECTION LINKS INTO COLUMNS
    				                    var columnNum 3,
    				                        endRange,
    				                        sectionNum = $("li.sw-channel-item:nth-child(" channelIndex ") .sw-channel-dropdown > li:not(.gb-mega-menu)").length,
    				                        sections [];
    				                    // LOOP TO BUILD COLUMNS
    				                    for(var 0;
    				 columnNum;
    				 i++) {
    					                        // KEEP FROM ADDING EMPTY UL'S TO THE DOM
    					                        if(sectionNum) {
    						                            // IF sectionNum / columnNum REMAINDER IS BETWEEN .0 AND .5 AND THIS IS THE FIRST LOOP ITERATION
    						                            // WE'LL ADD 1 TO THE END RANGE SO THAT THE EXTRA LINK GOES INTO THE FIRST COLUMN
    						                            if((sectionNum columnNum) % 0.0 && (sectionNum columnNum) % 0.5 && == 0) {
    							                                endRange Math.round(sectionNum columnNum) + 1;
    							} else if((sectionNum columnNum) % == 0.5 && >= (columnNum i)) {
    							                                endRange Math.round(sectionNum columnNum) - 1;
    							} else {
    							                                endRange Math.round(sectionNum columnNum)
    							}
    						                            // COLLECT THE SECTIONS FOR THIS COLUMN AND SAVE THEM INTO THE ARRAY
    						                            sections[i] = "";
    						                            for(var 1;
    						 <= endRange;
    						 s++) {
    							                                if($("li.sw-channel-item:nth-child(" channelIndex ") .sw-channel-dropdown > li:nth-child(" ")").html() !== undefined) {
    								                                    sections[i] += '<li>' + $("li.sw-channel-item:nth-child(" channelIndex ") .sw-channel-dropdown > li:nth-child(" ")").html() + '';
    								                                }
    							}
    						                            // REMOVE THIS RANGE OF SECTIONS NOW THAT WE'VE SAVED THEM
    						                            $("li.sw-channel-item:nth-child(" channelIndex ") .sw-channel-dropdown > li:nth-child(n+1):nth-child(-n+" endRange ")").remove();
    						}
    					}
    				                    var sectionColumns '';
    				                    $.each(sections, function(indexcolumnSections) {
    					                        sectionColumns += '<ul class="gb-mega-menu-column column-' + (index 1) + '">' columnSections '';
    					});
    				                    // APPLY MEGA MENU FOR THIS CHANNEL
    				                    $("li.sw-channel-item:nth-child(" channelIndex ")").addClass("gb-mega-menu-item").attr("data-mega-menu-index"index);
    				                    $("li.sw-channel-item:nth-child(" channelIndex ") .sw-channel-dropdown").append('' +
    				                        '<li class="gb-mega-menu">' +
    				                            '<div class="gb-mega-menu left" data-show-image="' channel.showImage '">' +
    				                                ((channel.showImage) ? '<img src="' channel.imageSrc '" alt="' channel.imageAlt '" />' '') +
    				                            '' +
    				                            '<div class="gb-mega-menu right">' +
    				                                '<div class="gb-mega-menu-sections">' sectionColumns '' +
    				                                ((channel.showCaption) ? '<div class="gb-mega-menu-caption" data-show-caption="' channel.showCaption '"><p class="cs-html-element">' channel.caption '' '') +
    				                            '' +
    				                        '' +
    				                    '');
    				}
    			                // BIND EVENTS
    			                var link = $("li.sw-channel-item:nth-child(" channelIndex ") ul.sw-channel-dropdown .gb-mega-menu-column > li a");
    			                var firstLinkIndex = $(link).index($(link).first());
    			                var firstLink = $(link).eq($(link).index($(link).first()));
    			                var lastLinkIndex = $(link).index($(link).last());
    			                var lastLink = $(link).eq($(link).index($(link).last()));
    			                $(link).keydown(function(e) {
    				                    var increment;
    				                    var thisIndex link.index(this);
    				                    var newIndex = -1;
    				                    switch(e.keyCode) {
    					                        case _this.KeyCodes.up:
    					                        case _this.KeyCodes.left:
    					                            e.preventDefault();
    					                            if($(this).is(firstLink)) {
    						                                $(this).closest("li.sw-channel-item").find("> a").focus();
    						} else {
    						                                newIndex thisIndex 1;
    						}
    					                        break;
    					                        case _this.KeyCodes.down:
    					                        case _this.KeyCodes.right:
    					                            e.preventDefault();
    					                            if($(this).is(lastLink)) {
    						                                $(this).closest("li.sw-channel-item").find("> a").focus();
    						} else {
    						                                newIndex thisIndex 1;
    						}
    					                        break;
    					                        case _this.KeyCodes.esc:
    					                            $(this).closest("li.sw-channel-item").find("> a").focus();
    					                        break;
    					}
    				                    if(newIndex != -1) {
    					                        link.eq(newIndex).focus();
    					}
    				});
    			                channelIndex++;
    			});
    		},
    	        "SetChannelDropdownPositions": function() {
    		            $(".sw-channel-item").each(function() {
    			                var bottomOffset = $(this).position().top + $(this).height();
    			                $(".sw-channel-dropdown"this).css("top"bottomOffset);
    			});
    		},
    	        "StickyHeader": function() {
    		            if(!this.IsMyViewPage) {
    			                switch(this.GetBreakPoint()) {
    				                    case "desktop":
    				                        var navOffset = $("#gb-sticky-header-outer").offset().top + $("#gb-sticky-header-outer").height() + 12;
    				                        // REVEAL HEADER AND CHANNEL BAR AFTER USER SCROLLS PAST CHANNEL BAR
    				                        if ($(window).scrollTop() > navOffset) {
    					                            $("#gb-sticky-header-outer").css("height", $("#gb-sticky-header").outerHeight(true));
    					                            if(!this.HeaderIsSticky) {
    						                                this.HeaderIsSticky true;
    						                                $("#gb-sticky-header-outer").addClass("sticky");
    						                                $("#gb-sticky-header").css("top""-" + $("#gb-sticky-header").height() + "px").stop().animate({
    							                                    top"0px"
    							}, 400);
    						}
    					                            if($(".sp").length && $(".ui-widget.app.calendar").length) {
    						                                if($(".wcm-controls").hasClass("wcm-stuck")) {
    							                                    $(".wcm-controls").css("margin-top", $("#gb-sticky-header").outerHeight(true));
    							}
    						}
    					} else {
    					                            if(this.HeaderIsSticky) {
    						                                this.HeaderIsSticky false;
    						                                $("#gb-sticky-header-outer").removeClass("sticky").removeAttr("style");
    						                                $("#gb-sticky-header").stop(truetrue).removeAttr("style");
    						                                this.HeaderIsSticky false;
    						}
    					}
    				                        $("#sw-maincontent").css({
    					                            "display""block",
    					                            "position""relative",
    					                            "top""-" + $("#gb-sticky-header").outerHeight(true) + "px"
    					});
    				                    break;
    				                    case "768": case "640": case "480": case "320":
    				                        if(this.HeaderIsSticky) {
    					                            this.HeaderIsSticky false;
    					                            $("#gb-sticky-header-outer").removeClass("sticky").removeAttr("style");
    					                            $("#gb-sticky-header").removeAttr("style");
    					}
    				                        if($(".sp").length && $(".ui-widget.app.calendar").length) {
    					                            $(".wcm-controls").css("margin-top""0px");
    					}
    				                        $("#sw-maincontent").removeAttr("style");
    				                    break;
    				}
    			}
    		},
    	        "Body": function() {
    		            // AUTO FOCUS SIGN IN FIELD
    		            $("#swsignin-txt-username").focus();
    		            // ADJUST HEADLINES
    		            $(".ui-widget.app.headlines .ui-articles > li").each(function() {
    			                $(".ui-article"this).children().not($(".ui-article-thumb"this)).wrapAll('<div class="ui-article-content">');
    			});
    		            $(".ui-widget.app.headlines").not($(".hp-content.one .ui-widget.app.headlines")).each(function() {
    			                $(".ui-articles"this).append('<li class="li-read-more"><div class="ui-article">' + $(".ui-read-more"this).html() + '');
    			                $(".ui-read-more"this).remove();
    			});
    		            // APPLY RESPONSIVE DIMENSIONS TO CONTENT IMAGES
    		            $("div.ui-widget.app .ui-widget-detail img")
    		                .not($("div.ui-widget.app.multimedia-gallery .ui-widget-detail img"))
    		                .not($("div.ui-widget.app.gallery.json .ui-widget-detail img"))
    		                .each(function() {
    			                    if ($(this).attr('width') !== undefined && $(this).attr('height') !== undefined) {
    				// IMAGE HAS INLINE DIMENSIONS
    				                        $(this).css({"display""inline-block""width""100%""max-width": $(this).attr("width") + "px""height""auto""max-height": $(this).attr("height") + "px"});
    				}
    			});
    		            // ADJUST FIRST BREADCRUMB
    		            $("li.ui-breadcrumb-first > a > span").text("Home");
    		            // USE CHANNEL NAME FOR PAGELIST NAV HEADER IF ONE IS NOT PRESENT
    		            if(!$("div.sp.column.one .ui-widget-header h1").length) {
    			                $("div.sp.column.one .ui-widget-header").append("<h1>");
    			}
    		},
    	        "GlobalIcons": function() {
    		            $(".hp #gb-global-icons-inner, .sp #gb-global-icons").creativeIcons({
    			                "iconNum"       "5",
    			                "icons"         : [
    			                    {
    				                        "image""Site Utility/32.png",
    				                        "showText"true,
    				                        "text""District Calendar",
    				                        "url""https://www.madisonpublicschools.org/Page/2",
    				                        "target""_self"
    				},
    			                    {
    				                        "image""Classroom/13.png",
    				                        "showText"true,
    				                        "text""Parent Portal",
    				                        "url""https://parents.genesisedu.com/madison/parents?gohome=true",
    				                        "target""_self"
    				},
    			                    {
    				                        "image""Student Program/50.png",
    				                        "showText"true,
    				                        "text""Lunch Menu",
    				                        "url""http://www.schoolnutritionandfitness.com/index.php?sid=1485197263741&page=menus",
    				                        "target""_blank"
    				},
    			                    {
    				                        "image""Student Program/61.png",
    				                        "showText"true,
    				                        "text""PayForIt",
    				                        "url""https://www.payforit.net/login.aspx",
    				                        "target""_blank"
    				},
    			                    {
    				                        "image""Classroom/59.png",
    				                        "showText"true,
    				                        "text""Staff Directory",
    				                        "url""https://www.madisonpublicschools.org/domain/821",
    				                        "target""_self"
    				}
    			                ],
    			                "siteID"        "1",
    			                "siteAlias"     "madisonps",
    			                "calendarLink"  "/Page/2",
    			                "contactEmail"  "webmaster@madisonpublicschools.org",
    			                "allLoaded"     : function(){
    				                    $(".cs-global-icon").each(function() {
    					                        $(this).attr("aria-label", $(".text"this).text());
    					});
    				                  }
    			});
    		},
    	        "ArticleSlider": function() {
    		            $(".hp-content.one .ui-widget.app.upcomingevents").csArticleSlider({
    			                "viewerNum": [42221], // NUMERICAL - [960 view, 768 view, 640 view, 480 view, 320 view]
    			                "transitionSpeed".5 // SECONDS
    			});
    		},
    	        "TabbedSocialMedia": function() {
    		            $("#sw-content-container3.ui-hp").tabBlocks();
    		            $("#sw-content-container3.ui-hp .tabs-container .tab-button").each(function() {
    			                var tabText = $.trim($(this).text()).toLowerCase();
    			                var tabButtonClass "";
    			                // FACEBOOK
    			                if(tabText.indexOf("facebook") > -1) {
    				                    tabButtonClass "social facebook"
    				}
    			                // TWITTER
    			                else if(tabText.indexOf("twitter") > -1) {
    				                    tabButtonClass "social twitter";
    				}
    			                // INSTAGRAM
    			                else if(tabText.indexOf("instagram") > -1) {
    				                    tabButtonClass "social instagram";
    				}
    			                // YOUTUBE
    			                else if(tabText.indexOf("youtube") > -1) {
    				                    tabButtonClass "social youtube";
    				}
    			                // NOT A SOCIAL MEDIA EMBED
    			                else {
    				                    var panel = $(this).attr("aria-controls");
    				                    $(this).remove();
    				                    $("#" panel).remove();
    				}
    			                $(this).addClass(tabButtonClass);
    			});
    		            if(!$("#sw-content-container3.ui-hp .ui-widget.app").length) $("#sw-content-container3.ui-hp").addClass("empty");
    		},
    	        "TabbedSocialMediaMobile": function() {
    		            var _this this;
    		            if(false) {
    			                if(this.GetBreakPoint() != "desktop" && !this.TabbedSocialMediaSet) {
    				                    // SET ROLES AND ATTRIBUTES
    				                    $("#hp-social-media-header").attr({"role""button""aria-expanded""false""aria-controls""sw-content-container3""tabindex""0"});
    				                    $("#sw-content-container3.ui-hp").hide().attr("aria-hidden""true");
    				                    // ACCORDION HEADER CLICK
    				                    $(do***ent).on("click keydown""#hp-social-media-header", function(e) {
    					                        if(_this.AllyClick(e)) {
    						                            if($("#hp-social-media-header").attr("aria-expanded") == "false") {
    							                                $("#hp-social-media-header").attr("aria-expanded""true");
    							                                $("#sw-content-container3.ui-hp").slideDown(300).attr("aria-hidden""false");
    							} else {
    							                                $("#hp-social-media-header").attr("aria-expanded""false");
    							                                $("#sw-content-container3.ui-hp").slideUp(300).attr("aria-hidden""true");
    							}
    						                        }
    					});
    				                    this.TabbedSocialMediaSet true;
    				} else if(this.GetBreakPoint() == "desktop" && this.TabbedSocialMediaSet) {
    				                    $("#hp-social-media-header").removeAttr("role aria-expanded aria-controls tabindex");
    				                    $(do***ent).off("click keydown""#hp-social-media-header");
    				                    $("#sw-content-container3.ui-hp").removeAttr("aria-hidden style");
    				                    this.TabbedSocialMediaSet false;
    				}
    			}
    		},
    	        "ModEvents": function() {
    		            $(".ui-widget.app.upcomingevents").modEvents({
    			                columns     "yes",
    			                monthLong   "no",
    			                dayWeek     "yes"
    			            });
    		            var months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
    		            var monthsLong = ["January","February","March","April","May","June","July","August","September","October","November","December"];
    		            var loopDay "";
    		            $(".ui-widget.app.upcomingevents .ui-article").each(function() {
    			                if($.trim($(".ui-article-description"this).text()) != "There are no upcoming events to display.") {
    				                    if($(".joel-day"this).length && $(".joel-day"this).text() != loopDay) {
    					                        loopDay = $(".joel-day"this).text();
    					}
    				                    if(!$(".sw-calendar-block-time"this).length) {
    					                        $(".ui-article-description"this).prepend('<span class="sw-calendar-block-time all-day"><span class="sw-calendar-time-day">' loopDay ' All Day');
    					} else {
    					                        $(".sw-calendar-block-time"this).prepend('<span class="sw-calendar-time-day">' loopDay ' ');
    					}
    				                    if(!$(".ui-article-title.sw-calendar-block-date"this).length) {
    					                        var moveArticle = $(this).html();
    					                        $(this).parent().prev("li").find(".upcoming-column.right").append(moveArticle);
    					                        $(this).parent().remove();
    					} else {
    					                        var ariaMonth monthsLong[months.indexOf($(".joel-month"this).text())];
    					                        var eventMonth = $(".joel-month"this).detach();
    					                        var eventDay = $(".joel-day"this).detach();
    					                        var eventDate = $.trim($(".ui-article-title"this).text());
    					                        if(eventDate.length == 1eventDate "0" eventDate;
    					                        var ariaDate eventDate;
    					                        switch(eventDate) {
    						                            case "01"ariaDate "First";
    						 break;
    						                            case "02"ariaDate "Second";
    						 break;
    						                            case "03"ariaDate "Third";
    						 break;
    						                            case "04"ariaDate "Fourth";
    						 break;
    						                            case "05"ariaDate "Fifth";
    						 break;
    						                            case "06"ariaDate "Sixth";
    						 break;
    						                            case "07"ariaDate "Seventh";
    						 break;
    						                            case "08"ariaDate "Eighth";
    						 break;
    						                            case "09"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 "***"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;
    						}
    					                        $(".ui-article-title"this).html(eventMonth).prepend('<span class="joel-date" aria-hidden="true">' eventDate '').append('<span class="joel-day" aria-hidden="true">' + $(eventDay).text() + '').attr("aria-label", $(eventDay).text() + ", " ariaMonth " " ariaDate);
    					                        $(".sw-calendar-block-date"this).prepend($(".joel-month"this).attr("aria-hidden""true"));
    					}
    				}
    			});
    		},
    	        "Footer": function() {
    		            var _this this;
    		            // SCROLL UP BUTTON
    		            $(do***ent).on("click keydown""#gb-scroll-up", function(e) {
    			                if(_this.AllyClick(e)) {
    				                    e.preventDefault();
    				                    $("html, body").animate({ scrollTop0
    					}, "slow");
    				}
    			            });
    		            // SOCIAL ICONS
    		            var socialIcons = [
    		                {
    			                    "show"false,
    			                    "label""Facebook",
    			                    "class""facebook",
    			                    "url""#",
    			                    "target""_self"
    			},
    		                {
    			                    "show"false,
    			                    "label""Twitter",
    			                    "class""twitter",
    			                    "url""#",
    			                    "target""_self"
    			},
    		                {
    			                    "show"false,
    			                    "label""YouTube",
    			                    "class""youtube",
    			                    "url""#",
    			                    "target""_self"
    			},
    		                {
    			                    "show"false,
    			                    "label""Instagram",
    			                    "class""instagram",
    			                    "url""#",
    			                    "target""_self"
    			}
    		            ];
    		            var icons '';
    		            $.each(socialIcons, function(indexicon) {
    			                if(icon.show) {
    				                    icons += '<li><a class="gb-social-media-icon ' icon.class + '" href="' icon.url '" aria-label="' icon.label '" target="' icon.target '">';
    				}
    			});
    		            if(icons.length) {
    			                $("#gb-social-media-icons").html('<ul>' icons '');
    			}
    		            // FOOTER LINKS
    		            var footerLinks = [
    		                {
    			                    "show"true,
    			                    "text""Accessibility",
    			                    "url""#",
    			                    "target""_self"
    			},
    		                {
    			                    "show"true,
    			                    "text""Contact Us",
    			                    "url""#",
    			                    "target""_self"
    			}
    		            ];
    		            var links '';
    		            $.each(footerLinks, function(indexlink) {
    			                if(link.show) {
    				                    links += '<li><span class="gb-footer-link-divider" aria-hidden="true">|<a href="' link.url '" target="' link.target '">' link.text '';
    				}
    			});
    		            if(links.length) {
    			                $("#gb-footer-links ul").append(links);
    			}
    		            // MOVE Bb FOOTER STUFF
    		            $(".gb-schoolwires-footer.logo").html($("#sw-footer-logo").html());
    		            var schoolwiresLinks '';
    		            schoolwiresLinks += '<li>' + $.trim($("#sw-footer-links li:eq(0)").html().replace("|""")) + '';
    		            schoolwiresLinks += '<li>' + $.trim($("#sw-footer-links li:eq(2)").html().replace("|""")) + '';
    		            schoolwiresLinks += '<li>' + $.trim($("#sw-footer-links li:eq(1)").html().replace("|""")) + '';
    		            $(".gb-schoolwires-footer.links").append('<ul>' schoolwiresLinks '');
    		            $(".gb-schoolwires-footer.copyright").append($("#sw-footer-copyright").html());
    		},
    	        "Slideshow": function() {
    		            var _this this;
    		            if($("#sw-content-container10.ui-hp .ui-widget.app.multimedia-gallery").length) {
    			                var mmg = eval("multimediaGallery" + $("#sw-content-container10.ui-hp .ui-widget.app.multimedia-gallery:first").attr("data-pmi"));
    			                mmg.props.defaultGallery false;
    			                $("#sw-content-container10.ui-hp .ui-widget.app.multimedia-gallery:first").csMultimediaGallery({
    				                    "efficientLoad" true,
    				                    "imageWidth" 930,
    				                    "imageHeight" 465,
    				                    "mobileDescriptionContainer": [960768640480320], // [960, 768, 640, 480, 320]
    				                    "galleryOverlay" false,
    				                    "linkedElement" []// ["image", "title", "overlay"]
    				                    "playPauseControl" true,
    				                    "backNextControls" true,
    				                    "bullets" true,
    				                    "thumbnails" false,
    				                    "thumbnailViewerNum": [44332], // NUMERICAL - [960 view, 768 view, 640 view, 480 view, 320 view]
    				                    "autoRotate" true,
    				                    "hoverPause" true,
    				                    "transitionType" "slide"// fade, slide, custom
    				                    "transitionSpeed" 1.5,
    				                    "transitionDelay" 4,
    				                    "fullScreenRotator" false,
    				                    "fullScreenBreakpoints" : [960], // NUMERICAL - [960, 768, 640, 480, 320]
    				                    "onImageLoad" : function(props{}// props.element, props.recordIndex, props.mmgRecords
    				                    "allImagesLoaded" : function(props{}// props.element, props.mmgRecords
    				                    "onTransitionStart" : function(props) {
    					// props.element, props.currentRecordIndex, props.currentGalleryIndex, props.nextRecordIndex, props.nextGalleryIndex, props.mmgRecords
    					                        // ANIMATE DESCRIPTION CONTAINER
    					                        animateMmgDescriptionHeight(props.element);
    					                        // MOBILE ADJUSTMENTS
    					                        mmgMobileAdjustments(props.element);
    					},
    				                    "onTransitionEnd" : function(props{}// props.element, props.currentRecordIndex, props.currentGalleryIndex, props.mmgRecords
    				                    "allLoaded" : function(props) {
    					// props.element, props.mmgRecords
    					                        // MOVE BULLETS
    					                        $(".mmg-viewer"props.element).append($(".mmg-bullets-outer"props.element));
    					                        // WRAP DESCRIPTION CONTAINER
    					                        $(".mmg-description-outer .mmg-description"props.element).wrap('<div class="mmg-description-wrapper">');
    					                        // MOVE CONTROLS
    					                        $(".mmg-description-outer .mmg-description-wrapper"props.element).prepend('<div class="mmg-description-controls">');
    					                        $(".mmg-description-outer .mmg-description-controls"props.element).prepend($(".mmg-control.play-pause"props.element), $(".mmg-control.back"props.element), $(".mmg-control.next"props.element));
    					                        // ANIMATE DESCRIPTION CONTAINER
    					                        animateMmgDescriptionHeight(props.element);
    					                        // MOBILE ADJUSTMENTS
    					                        mmgMobileAdjustments(props.element);
    					},
    				                    "onWindowResize": function(props) {
    					// props.element, props.mmgRecords
    					                        // ANIMATE DESCRIPTION CONTAINER
    					                        animateMmgDescriptionHeight(props.element);
    					                        // MOBILE ADJUSTMENTS
    					                        mmgMobileAdjustments(props.element);
    					}
    				});
    			}
    		            function animateMmgDescriptionHeight(element) {
    			                var mmgDescriptionHeight = $(".mmg-description-outer .mmg-description-wrapper"element).outerHeight(true);
    			                $(".mmg-description-outer"element).css("height"mmgDescriptionHeight);
    			}
    		            function mmgMobileAdjustments(element) {
    			                if(_this.GetBreakPoint() != "desktop") {
    				                    if(!$(".mmg-description-wrapper .mmg-description-links"element).length) {
    					                        $(".mmg-description-wrapper .mmg-description"element).append('<div class="mmg-description-links">');
    					}
    				                    $(".mmg-description-wrapper .mmg-description-links"element).prepend($(".mmg-description-controls"element).clone().html());
    				}
    			}
    		},
    	        "CheckSlideshow": function() {
    		            // FOR SCOPE
    		            var _this this;
    		            if($(".hp").length) {
    			                var slideshowOffset = (this.GetBreakPoint() == "desktop") ? $("#hp-slideshow").offset().top + $("#hp-slideshow").height() - $("#gb-sticky-header").height() : $("#hp-slideshow").offset().top + $("#hp-slideshow").height();
    			                if ($(window).scrollTop() <= slideshowOffset) {
    				                    if(this.SlideshowDescFixed) {
    					                        $("#hp-slideshow").removeAttr("style");
    					                        this.SlideshowDescFixed false;
    					}
    				} else {
    				                    if(!this.SlideshowDescFixed) {
    					                        $("#hp-slideshow").css({
    						                            "height": $("#hp-slideshow").height(),
    						                            "overflow""hidden"
    						});
    					                        this.SlideshowDescFixed true;
    					}
    				}
    			}
    		},
    	        "RsMenu": function() {
    		            // GLOBAL ICONS
    		            var globalIcons = [
    		                {
    			                    "image""Site Utility/32.png",
    			                    "showText"true,
    			                    "text""District Calendar",
    			                    "url""https://www.madisonpublicschools.org/Page/2",
    			                    "target""_self"
    			},
    		                {
    			                    "image""Classroom/13.png",
    			                    "showText"true,
    			                    "text""Parent Portal",
    			                    "url""https://parents.genesisedu.com/madison/parents?gohome=true",
    			                    "target""_self"
    			},
    		                {
    			                    "image""Student Program/50.png",
    			                    "showText"true,
    			                    "text""Lunch Menu",
    			                    "url""http://www.schoolnutritionandfitness.com/index.php?sid=1485197263741&page=menus",
    			                    "target""_blank"
    			},
    		                {
    			                    "image""Student Program/61.png",
    			                    "showText"true,
    			                    "text""PayForIt",
    			                    "url""https://www.payforit.net/login.aspx",
    			                    "target""_blank"
    			},
    		                {
    			                    "image""Classroom/59.png",
    			                    "showText"true,
    			                    "text""Staff Directory",
    			                    "url""https://www.madisonpublicschools.org/domain/821",
    			                    "target""_self"
    			}
    		            ];
    		            var iconNum = ("5" == "5;
    		4;
    		3;
    		2;
    		1;
    		0") ? parseInt("5");
    		            var haveLinks false;
    		            var links [];
    		            for(var 0;
    		 iconNum;
    		 i++) {
    			                links.push({ "text"globalIcons[i].text"url"globalIcons[i].url"target"globalIcons[i].target
    				});
    			                haveLinks true;
    			}
    		            var additionalItems {};
    		            if(haveLinks) {
    			                additionalItems["Popular Links"] = links;
    			}
    		            $.csRsMenu({
    			                "breakPoint" 768// SYSTEM BREAK POINTS - 768, 640, 480, 320
    			                "slideDirection" "left-to-right"// OPTIONS - left-to-right, right-to-left
    			                "menuButtonParent" "#gb-channel-list",
    			                "menuBtnText" "Menu",
    			                "colors": {
    				                    "pageOverlay""#000000"// DEFAULT #000000
    				                    "menuBackground""#FFFFFF"// DEFAULT #FFFFFF
    				                    "menuText""#333333"// DEFAULT #333333
    				                    "menuTextAccent""#333333"// DEFAULT #333333
    				                    "dividerLines""#E6E6E6"// DEFAULT #E6E6E6
    				                    "buttonBackground""#E6E6E6"// DEFAULT #E6E6E6
    				                    "buttonText""#333333" // DEFAULT #333333
    				},
    			                "showSchools" true,
    			                "schoolMenuText""Schools",
    			                "showTranslate" false,
    			                "translateMenuText""Translate",
    			                "translateVersion"2// 1 = FRAMESET, 2 = BRANDED
    			                "translateId" "",
    			                "showAccount"true,
    			                "accountMenuText""User Options",
    			                "usePageListNavigation"true,
    			                "extraMenuOptions"additionalItems, 
    			                "siteID""1",
    			                "allLoaded": function(){}
    			});
    		},
    	        "AppAccordion": function() {
    		            $("#sw-content-container4.ui-hp, #sw-content-container5.ui-hp").csAppAccordion({
    			                "accordionBreakpoints" : [768640480320]
    			});
    		            $(".sp-column.one").csAppAccordion({
    			                "accordionBreakpoints" : [480320]
    			});
    		},
    	        "Search": function() {
    		            var _this this;
    		            $(do***ent).on("click keydown""#gb-search-toggle", function(e){
    			                if(_this.AllyClick(e)) {
    				                    e.preventDefault();
    				                    // SEARCH IS CURRENTLY CLOSED
    				                    if($("#gb-search").attr("aria-hidden") == "true") {
    					                        $("#gb-search-toggle").attr("aria-expanded""true");
    					                        $("#gb-search").attr("aria-hidden""false");
    					                        setTimeout(function() {
    						                            $("#gb-search-input").focus();
    						}, 500);
    					}
    				                    // SEARCH IS CURRENTLY OPEN
    				                    else {
    					                        $("#gb-search-toggle").attr("aria-expanded""false");
    					                        $("#gb-search").attr("aria-hidden""true");
    					}
    				}
    			});
    		            $("#gb-search-input").blur(function() {
    			                $("#gb-search-toggle").attr("aria-expanded""false");
    			                $("#gb-search").attr("aria-hidden""true");
    			});
    		            $("#gb-search-form").submit(function(e){
    			                e.preventDefault();
    			                if($.trim($("#gb-search-input").val()) != "" && $.trim($("#gb-search-input").val()) != "Search...") {
    				                    window.location.href "/site/Default.aspx?PageType=6&SiteID=1&SearchString=" + $("#gb-search-input").val();
    				}
    			});
    		},
    	        "AllyClick": function(event) {
    		            if(event.type == "click") {
    			                return true;
    			} else if(event.type == "keydown" && (event.keyCode == this.KeyCodes.space || event.keyCode == this.KeyCodes.enter)) {
    			                return true;
    			} else {
    			                return false;
    			}
    		},
    	        "GetBreakPoint": function() {
    		            return window.getComputedStyle(do***ent.querySelector("body"), ":before").getPropertyValue("content").replace(/"|'/g, "");
    		/*"*/
    		}
    	};
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        (function (isogram) {
    	        i['GoogleAnalyticsObject'] = r;
    	 i[r] = i[r] || function () {
    		            (i[r].i[r].|| []).push(arguments)
    		}, i[r].* new Date();
    	 s.createElement(o),
    	        s.getElementsByTagName(o)[0];
    	 a.async 1;
    	 a.src g;
    	 m.parentNode.insertBefore(am)
    	})(window, do***ent'script''//www.google-analytics.com/analytics.js''ga');
        ga('create''UA-5173826-6''auto''BBTracker' );
        ga('BBTracker.set''dimension1''AWS');
        ga('BBTracker.set''dimension2''False');
        ga('BBTracker.set''dimension3''NJ01000205');
        ga('BBTracker.set''dimension4''1');
        ga('BBTracker.set''dimension5''1');
        ga('BBTracker.set''dimension6''1');
        ga('BBTracker.send''pageview');
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        function SWEndPreviewMode() {
    	        var data "{}";
    	        var success "window.location='';
    	";
    	        var failure "CallControllerFailure(result[0].errormessage);
    	";
    	        CallController("https://www.madisonpublicschools.org/site/SiteController.aspx/EndPreviewMode"datasuccessfailure);
    	    }
        function SWEndEmulationMode() {
    	        var data "{}";
    	        var success "DeleteCookie('SourceEmulationUserID');
    	DeleteCookie('SidebarIsClosed');
    	window.location='https://www.madisonpublicschools.org/ums/Users/Users.aspx';
    	";
    	        var failure "CallControllerFailure(result[0].errormessage);
    	";
    	        CallController("https://www.madisonpublicschools.org/site/SiteController.aspx/EndEmulationMode"datasuccessfailure);
    	    }
        function SWEndPreviewConfigMode() {
    	        var data "{}";
    	        var success "window.location='';
    	";
    	        var failure "CallControllerFailure(result[0].errormessage);
    	";
    	        CallController("https://www.madisonpublicschools.org/site/SiteController.aspx/EndPreviewConfigMode"datasuccessfailure);
    	    }
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
    $(do***ent).ready(function() {
    	    $('#sw-search-input').keyup(function(e) {
    		       if (e.keyCode == 13) {
    			            SWGoToSearchResultsPageswsearchinput();
    			}
    		});
    	    $('#sw-search-input').val($('#swsearch-hid-word').val())});
    function SWGoToSearchResultsPageswsearchinput() {
    	window.location.href="https://www.madisonpublicschools.org/site/Default.aspx?PageType=6&SiteID=1&SearchString=" + $('#sw-search-input').val();
    	}
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
    $(do***ent).ready(function() {
    	    $('#sw-search-button').keyup(function(e) {
    		       if (e.keyCode == 13) {
    			            SWGoToSearchResultsPageswsearchinput();
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        channelHoverIE();
    	        channelTouch();
    	        clo*****uByPressingKey();
    	});
        function channelTouch() {
    	        // this will change the dropdown behavior when it is touched vs clicked.
    	        // channels will be clickable on second click. first click simply opens the menu.
    	        $('#channel-navigation > .sw-channel-item > a').on({
    		            'touchstart': function (e) {
    			                // see if has menu
    			                if ($(this).siblings('ul.sw-channel-dropdown').children('li').length 0)  {
    				                    var button = $(this);
    				                    // add href as property if not already set
    				                    // then remove href attribute
    				                    if (!button.prop('linkHref')) {
    					                        button.prop('linkHref'button.attr('href'));
    					                        button.removeAttr('href');
    					}
    				                    // check to see if menu is already open
    				                    if ($(this).siblings('ul.sw-channel-dropdown').is(':visible')) {
    					                        // if open go to link
    					                        window.location.href button.prop('linkHref');
    					} 
    				} 
    			}
    		});
    	}
        function channelHoverIE(){
    	        // set z-index for IE7
    	        var parentZindex = $('#channel-navigation').parents('div:first').css('z-index');
    	        var zindex = (parentZindex parentZindex 8000);
    	        $(".sw-channel-item").each(function(ind) {
    		            $(this).css('z-index'zindex ind);
    		            zindex --;
    		        });
    	        $(".sw-channel-item").hover(function(){
    		            var subList = $(this).children('ul');
    		            if ($.trim(subList.html()) !== "") {
    			                subList.show();
    			                subList.attr("aria-hidden""false").attr("aria-expanded""true");
    			}
    		            $(this).addClass("hover");
    		}, function() {
    		            $(".sw-channel-dropdown").hide();
    		            $(this).removeClass("hover");
    		            var subList = $(this).children('ul');
    		            if ($.trim(subList.html()) !== "") {
    			                subList.attr("aria-hidden""true").attr("aria-expanded""false");
    			}
    		});
    	}
        function clo*****uByPressingKey() {
    	        $(".sw-channel-item").each(function(ind) {
    		            $(this).keyup(function (event) {
    			                if (event.keyCode == 27) {
    				// ESC
    				                    $(".sw-channel-dropdown").hide();
    				                    $(this).removeClass("hover");
    				                    var subList = $(this).children('ul');
    				                    if ($.trim(subList.html()) !== "") {
    					                        subList.attr("aria-hidden""true").attr("aria-expanded""false");
    					}
    				}
    			                if (event.keyCode == 13 || event.keyCode == 32) {
    				//enter or space
    				                    $(this).find('a').get(0).click();
    				}
    			});
    		});
    	        $(".sw-channel-item a").each(function (ind) {
    		            $(this).parents('.sw-channel-item').keydown(function (e) {
    			                if (e.keyCode == 9) {
    				// TAB
    				                    $(".sw-channel-dropdown").hide();
    				                    $(this).removeClass("hover");
    				                    var subList = $(this).children('ul');
    				                    if ($.trim(subList.html()) !== "") {
    					                        subList.attr("aria-hidden""true").attr("aria-expanded""false");
    					}
    				}
    			});
    		});
    	        $(".sw-channel-dropdown li").each(function(ind) {
    		            $(this).keydown(function (event) {
    			                if (event.keyCode == 9) {
    				// TAB
    				                    $(".sw-channel-dropdown").hide();
    				                    var parentMenuItem = $(this).parent().closest('li');
    				                    parentMenuItem.removeClass("hover");
    				                    var subList parentMenuItem.children('ul');
    				                    if ($.trim(subList.html()) !== "") {
    					                        subList.attr("aria-hidden""true").attr("aria-expanded""false");
    					}
    				                    parentMenuItem.next().find('a:first').focus();
    				                    event.preventDefault();
    				                    event.stopPropagation();
    				}
    			                if (event.keyCode == 37 || // left arrow
    			                    event.keyCode == 39) {
    				// right arrow
    				                    $(".sw-channel-dropdown").hide();
    				                    var parentMenuItem = $(this).parent().closest('li');
    				                    parentMenuItem.removeClass("hover");
    				                    var subList parentMenuItem.children('ul');
    				                    if ($.trim(subList.html()) !== "") {
    					                        subList.attr("aria-hidden""true").attr("aria-expanded""false");
    					}
    				                    if (event.keyCode == 37) {
    					                        parentMenuItem.prev().find('a:first').focus();
    					} else {
    					                        parentMenuItem.next().find('a:first').focus();
    					}
    				                    event.preventDefault();
    				                    event.stopPropagation();
    				}
    			});
    		});
    	}
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
            $(do***ent).ready(function() {
    	            var DomainID '1';
    	            var PageID '1';
    	            var RenderLoc '0';
    	            var MIID '14069';
    	            //added to check to make sure moderated content doesn't bleed through the dialog
    	            if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length 0) {
    		                $("#module-content-" MIID).find(".ui-widget-detail").find(".ui-article").append("<p> ");
    		}
    	});
        
    </script>
    
    
    

    
    <script type="text/javascript"> 
    $(do***ent).ready(function() {CheckScript('ModuleView');
    	CheckScript('Mustache');
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
                var multimediaGallery13887 = {
    	                "props": {
    		                    "defaultGallery"true,
    		                    "imageWidth" 960,
    		                    "imageHeight" 500,
    		                    "pageModuleInstanceId""13887",
    		                    "moduleInstanceId""14069",
    		                    "virtualFolderPath""/cms/lib/NJ01000205/Centricity/ModuleInstance/14069/"
    		},
    	                "records": [
    	{
    		                    "flexDataId""22155",
    		                    "hideTitle""True",
    		                    "title""A Visit from the Mayor",
    		                    "hideCaption""False",
    		                    "caption""Students from Interact Club and Project Aware were visited by Mayor Conley to talk about environmental initiatives in Madison.",
    		                    "imageSrc""/cms/lib/NJ01000205/Centricity/Domain/75/IMG_8862-cropped.jpg",
    		                    "imageWidth""",
    		                    "imageHeight""",
    		                    "imageAltText""A Visit from the Mayor",
    		                    "isLinked""False",
    		                    "linkUrl""",
    		                    "linkText""",
    		                    "openLinkInNewWindow""False",
    		                    "videoLinkText""",
    		                    "videoIsEmbedded""False",
    		                    "videoIframe"""
    		},
    	{
    		                    "flexDataId""22156",
    		                    "hideTitle""True",
    		                    "title""Biology Field Trip",
    		                    "hideCaption""False",
    		                    "caption""Beautiful day for an outdoor lab at Kitc**** Pond for Ms. Detrolio&#39;
    		s Biology Classes. ",
    		                    "imageSrc""/cms/lib/NJ01000205/Centricity/Domain/75/Biology.jpg",
    		                    "imageWidth""",
    		                    "imageHeight""",
    		                    "imageAltText""Biology",
    		                    "isLinked""False",
    		                    "linkUrl""",
    		                    "linkText""",
    		                    "openLinkInNewWindow""False",
    		                    "videoLinkText""",
    		                    "videoIsEmbedded""False",
    		                    "videoIframe"""
    		},
    	{
    		                    "flexDataId""***598",
    		                    "hideTitle""True",
    		                    "title""District 1",
    		                    "hideCaption""False",
    		                    "caption""",
    		                    "imageSrc""/cms/lib/NJ01000205/Centricity/Domain/1/DSC_0002-cropped.jpg",
    		                    "imageWidth""930",
    		                    "imageHeight""465",
    		                    "imageAltText""District Sign",
    		                    "isLinked""False",
    		                    "linkUrl""",
    		                    "linkText""",
    		                    "openLinkInNewWindow""False",
    		                    "videoLinkText""",
    		                    "videoIsEmbedded""False",
    		                    "videoIframe"""
    		},
    	{
    		                    "flexDataId""22157",
    		                    "hideTitle""False",
    		                    "title""MJS 11",
    		                    "hideCaption""False",
    		                    "caption""",
    		                    "imageSrc""/cms/lib/NJ01000205/Centricity/Domain/235/IMG_7138-cropped-cropped.jpg",
    		                    "imageWidth""",
    		                    "imageHeight""",
    		                    "imageAltText""Library",
    		                    "isLinked""False",
    		                    "linkUrl""",
    		                    "linkText""",
    		                    "openLinkInNewWindow""False",
    		                    "videoLinkText""",
    		                    "videoIsEmbedded""False",
    		                    "videoIframe"""
    		},
    	{
    		                    "flexDataId""2***76",
    		                    "hideTitle""True",
    		                    "title""MJS 5",
    		                    "hideCaption""False",
    		                    "caption""",
    		                    "imageSrc""/cms/lib/NJ01000205/Centricity/Domain/235/IMG_3198-cropped-cropped.jpg",
    		                    "imageWidth""",
    		                    "imageHeight""",
    		                    "imageAltText""Classroom",
    		                    "isLinked""False",
    		                    "linkUrl""",
    		                    "linkText""",
    		                    "openLinkInNewWindow""False",
    		                    "videoLinkText""",
    		                    "videoIsEmbedded""False",
    		                    "videoIframe"""
    		},
    	{
    		                    "flexDataId""2***77",
    		                    "hideTitle""True",
    		                    "title""CAS 3",
    		                    "hideCaption""False",
    		                    "caption""",
    		                    "imageSrc""/cms/lib/NJ01000205/Centricity/Domain/317/IMG_7168-cropped.jpg",
    		                    "imageWidth""",
    		                    "imageHeight""",
    		                    "imageAltText""Statue",
    		                    "isLinked""False",
    		                    "linkUrl""",
    		                    "linkText""",
    		                    "openLinkInNewWindow""False",
    		                    "videoLinkText""",
    		                    "videoIsEmbedded""False",
    		                    "videoIframe"""
    		},
    	{
    		                    "flexDataId""2***78",
    		                    "hideTitle""True",
    		                    "title""KRS 8",
    		                    "hideCaption""False",
    		                    "caption""",
    		                    "imageSrc""/cms/lib/NJ01000205/Centricity/Domain/451/IMG_8422-cropped.jpg",
    		                    "imageWidth""",
    		                    "imageHeight""",
    		                    "imageAltText""Building",
    		                    "isLinked""False",
    		                    "linkUrl""",
    		                    "linkText""",
    		                    "openLinkInNewWindow""False",
    		                    "videoLinkText""",
    		                    "videoIsEmbedded""False",
    		                    "videoIframe"""
    		},
    	{
    		                    "flexDataId""2***79",
    		                    "hideTitle""True",
    		                    "title""TJS S******s",
    		                    "hideCaption""False",
    		                    "caption""",
    		                    "imageSrc""/cms/lib/NJ01000205/Centricity/Domain/391/TJS S******s.jpg",
    		                    "imageWidth""",
    		                    "imageHeight""",
    		                    "imageAltText""TJS S******s",
    		                    "isLinked""False",
    		                    "linkUrl""",
    		                    "linkText""",
    		                    "openLinkInNewWindow""False",
    		                    "videoLinkText""",
    		                    "videoIsEmbedded""False",
    		                    "videoIframe"""
    		},
    	{}]
    	            };
            
    </script>
    
    
    

    
     <script type="text/javascript" src="//extend.schoolwires.com/creative/scripts/creative/rotate/multimedia-gallery/cs.multimedia.gallery.min.js"></script>
    
    


    madisonpublicschools.org is using ga
    
    <script type="text/javascript"> 
    
        $(function() {
    	        if(multimediaGallery13887.props.defaultGallery) {
    		            $("#pmi-13887 .ui-widget.app.multimedia-gallery").csMultimediaGallery({
    			                "pageModuleInstanceId"13887,
    			                "moduleInstanceId"14069,
    			                "imageWidth" multimediaGallery13887.props.imageWidth,
    			                "imageHeight" multimediaGallery13887.props.imageHeight,
    			                "playPauseControl" true,
    			                "bullets" true
    			});
    		}
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
    $(do***ent).ready(function (){
    	$(".tag-list li a").keypress(function(e) {
    		if(e.which == 13) {
    			$(this).click();
    			}});
    	});
    function LoadGroupedData(containerMIIDPMIgroupYeargroupMonthgroupBytag) {
    	  //ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
    	  var viewToUse "";
    	    if($('#hid-'+MIID+'-SidebarListView').length 0){
    		      viewToUse = $("#hid-" MIID "-SidebarListView").val();
    		};
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&RenderLoc=0&FromRenderLoc=0&GroupYear=' groupYear '&GroupMonth=' groupMonth '&GroupByField=' groupBy '&EnableQuirksMode=0&ViewID=' viewToUse '&Tag=' tagcontainer2'chkSidebar();
    	');
    	}
    function LoadData(containerMIIDPMIflexDataIDgroupYeargroupMonthgroupBytargetViewtag) {
    	  if(targetView !== undefined || targetView.Length() == 0){
    		  //targetView looks at the hidden Detail View defined in the Builder View.
    		      targetView = $('#hid-'+MIID+'-DetailView').val();
    		}
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&FlexDataID=' flexDataID '&GroupYear=' groupYear '&GroupMonth=' groupMonth '&GroupByField=' groupBy '&RenderLoc=0&FromRenderLoc=0&EnableQuirksMode=0&Tag=' tag '&ViewID=' targetViewcontainer2'chkSidebar();
    	');
    	}
    function LoadTaggedData(containerMIIDPMItag) {
    	  //ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
    	  var viewToUse "";
    	    if($('#hid-'+MIID+'-SidebarListView').length 0){
    		      viewToUse = $("#hid-" MIID "-SidebarListView").val();
    		};
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&RenderLoc=0&FromRenderLoc=0&Tag=' tag '&EnableQuirksMode=0&ViewID='+viewToUsecontainer2'chkSidebar();
    	');
    	  setTimeout(function(){ $("#module-content-"MIID +"").find('[tabindex]:first').focus();
    		}, 200);
    	}
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
            $(do***ent).ready(function() {
    	            var DomainID '1';
    	            var PageID '1';
    	            var RenderLoc '0';
    	            var MIID '1003';
    	            //added to check to make sure moderated content doesn't bleed through the dialog
    	            if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length 0) {
    		                $("#module-content-" MIID).find(".ui-widget-detail").find(".ui-article").append("<p> ");
    		}
    	});
        
    </script>
    
    
    

    
    <script type="text/javascript"> 
    $(do***ent).ready(function() {CheckScript('ModuleView');
    	CheckScript('Mustache');
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
    $(do***ent).ready(function (){
    	$(".tag-list li a").keypress(function(e) {
    		if(e.which == 13) {
    			$(this).click();
    			}});
    	});
    function LoadGroupedData(containerMIIDPMIgroupYeargroupMonthgroupBytag) {
    	  //ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
    	  var viewToUse "";
    	    if($('#hid-'+MIID+'-SidebarListView').length 0){
    		      viewToUse = $("#hid-" MIID "-SidebarListView").val();
    		};
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&RenderLoc=0&FromRenderLoc=0&GroupYear=' groupYear '&GroupMonth=' groupMonth '&GroupByField=' groupBy '&EnableQuirksMode=0&ViewID=' viewToUse '&Tag=' tagcontainer2'chkSidebar();
    	');
    	}
    function LoadData(containerMIIDPMIflexDataIDgroupYeargroupMonthgroupBytargetViewtag) {
    	  if(targetView !== undefined || targetView.Length() == 0){
    		  //targetView looks at the hidden Detail View defined in the Builder View.
    		      targetView = $('#hid-'+MIID+'-DetailView').val();
    		}
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&FlexDataID=' flexDataID '&GroupYear=' groupYear '&GroupMonth=' groupMonth '&GroupByField=' groupBy '&RenderLoc=0&FromRenderLoc=0&EnableQuirksMode=0&Tag=' tag '&ViewID=' targetViewcontainer2'chkSidebar();
    	');
    	}
    function LoadTaggedData(containerMIIDPMItag) {
    	  //ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
    	  var viewToUse "";
    	    if($('#hid-'+MIID+'-SidebarListView').length 0){
    		      viewToUse = $("#hid-" MIID "-SidebarListView").val();
    		};
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&RenderLoc=0&FromRenderLoc=0&Tag=' tag '&EnableQuirksMode=0&ViewID='+viewToUsecontainer2'chkSidebar();
    	');
    	  setTimeout(function(){ $("#module-content-"MIID +"").find('[tabindex]:first').focus();
    		}, 200);
    	}
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
            $(do***ent).ready(function() {
    	            var DomainID '1';
    	            var PageID '1';
    	            var RenderLoc '0';
    	            var MIID '1010';
    	            //added to check to make sure moderated content doesn't bleed through the dialog
    	            if ($('#dialog-overlay-WindowLargeModal-body.moderateContent').length 0) {
    		                $("#module-content-" MIID).find(".ui-widget-detail").find(".ui-article").append("<p> ");
    		}
    	});
        
    </script>
    
    
    

    
    <script type="text/javascript"> 
    $(do***ent).ready(function() {CheckScript('ModuleView');
    	CheckScript('Mustache');
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        /*$(do***ent).on('click', 'a.ui-article-thumb', function() {
    		            window.location = $(this).attr('href');
    		        });
    	*/
    	        $('#sw-app-headlines-1010').find('img').each(function() {
    		            if ($.trim(this.src) == '' ) {
    			                $(this).parent().parent().remove();
    			            }
    		        });
    	        // Jason Smith - 12/9/2014 - Removed due to bandwidth implications
    	    });
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
    $(do***ent).ready(function (){
    	$(".tag-list li a").keypress(function(e) {
    		if(e.which == 13) {
    			$(this).click();
    			}});
    	});
    function LoadGroupedData(containerMIIDPMIgroupYeargroupMonthgroupBytag) {
    	  //ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
    	  var viewToUse "";
    	    if($('#hid-'+MIID+'-SidebarListView').length 0){
    		      viewToUse = $("#hid-" MIID "-SidebarListView").val();
    		};
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&RenderLoc=0&FromRenderLoc=0&GroupYear=' groupYear '&GroupMonth=' groupMonth '&GroupByField=' groupBy '&EnableQuirksMode=0&ViewID=' viewToUse '&Tag=' tagcontainer2'chkSidebar();
    	');
    	}
    function LoadData(containerMIIDPMIflexDataIDgroupYeargroupMonthgroupBytargetViewtag) {
    	  if(targetView !== undefined || targetView.Length() == 0){
    		  //targetView looks at the hidden Detail View defined in the Builder View.
    		      targetView = $('#hid-'+MIID+'-DetailView').val();
    		}
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&FlexDataID=' flexDataID '&GroupYear=' groupYear '&GroupMonth=' groupMonth '&GroupByField=' groupBy '&RenderLoc=0&FromRenderLoc=0&EnableQuirksMode=0&Tag=' tag '&ViewID=' targetViewcontainer2'chkSidebar();
    	');
    	}
    function LoadTaggedData(containerMIIDPMItag) {
    	  //ViewToUse looks at the hidden Sidebar List View defined in the Builder View.
    	  var viewToUse "";
    	    if($('#hid-'+MIID+'-SidebarListView').length 0){
    		      viewToUse = $("#hid-" MIID "-SidebarListView").val();
    		};
    	  GetContent('https://www.madisonpublicschools.org//cms/UserControls/ModuleView/ModuleViewRendererWrapper.aspx?DomainID=1&PageID=1&ModuleInstanceID=' MIID '&PageModuleInstanceID=' PMI '&RenderLoc=0&FromRenderLoc=0&Tag=' tag '&EnableQuirksMode=0&ViewID='+viewToUsecontainer2'chkSidebar();
    	');
    	  setTimeout(function(){ $("#module-content-"MIID +"").find('[tabindex]:first').focus();
    		}, 200);
    	}
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
       $(do***ent).ready(function(){
    	      var beaconURL='https://analytics.schoolwires.com/analytics.asmx/Insert?AccountNumber=B10y%2fJyGVCKLNA%2bqRYLX2A%3d%3d&SessionID=35f292ad-3602-4b9f-a898-b***bdf02be25&SiteID=1&ChannelID=0&SectionID=0&PageID=1&HitDate=11%2f22%2f2019+10%3a53%3a19+AM&Browser=Unknown+0.0&OS=Unknown&IPAddress=10.61.65.205';
    	      try {
    		         $.getJSON(beaconURL '&jsonp=?', function(myData{});
    		} catch(err) {
    		         // prevent site error for analytics
    		}
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-WindowMedium-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-WindowSmall-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-WindowLarge-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-WindowMediumModal-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-WindowSmallModal-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-WindowLargeModal-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-WindowXLargeModal-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-MyAccountSubscriptionOverlay-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-InsertOverlay-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
        $(do***ent).ready(function() {
    	        $('#dialog-overlay-InsertOverlay2-base').appendTo('body');
    	        $('body').on('keydown''.ui-dialog-overlay-base-modal, .ui-dialog-overlay, .ui-sw-alert', function (e) {
    		            var swAlertOpen = $(".ui-sw-alert").length;
    		            if (swAlertOpen 1) {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    //get id of open alert
    				                    var alertboxid = $('.ui-sw-alert').attr('id');
    				                    //click ok or no
    				                    if ($('#' alertboxid 'ok').length 0) {
    					                        $('#' alertboxid 'ok').click();
    					} else {
    					                        $('#' alertboxid 'no').click();
    					}
    				}
    			} else {
    			                if (e.keyCode == 27) {//escape key
    				                    e.stopImmediatePropagation();
    				                    e.preventDefault();
    				                    // Check if ESC was pressed on DatePicker
    				                    var raisedByDatepicker e.target.classList.contains("datepicker");
    				                    if (!raisedByDatepicker) {
    					                        e.stopImmediatePropagation();
    					                        e.preventDefault();
    					                        // Close Dialog
    					                        $('.ui-dialog-overlay-close.modal:visible').last().click();
    					} else {
    					                        // Remove focus
    					                        e.target.blur();
    					                        e.target.classList.remove("focus");
    					}
    				}
    			}
    		});
    	});
    
    </script>
    
    
    

    
    <script type="text/javascript"> 
    
            $(do***ent).ready(function () {
    	            removeBrokenImages();
    	            checkSidebar();
    	            RemoveCookie();
    	            $('div.bullet').attr('tabindex''');
    	            $('.navigation li.collapsible').each(function () {
    		                if ($(this).find('ul').length == 0) {
    			                    $(this).removeClass('collapsible');
    			}
    		});
    	            // find page nav state cookie and add open chevron
    	            var arrValues GetCookie('SWPageNavState').split('~');
    	            $.each(arrValues, function () {
    		                if (this != '') {
    			                    $('#' this).addClass('collapsible').prepend("<div class='bullet collapsible' aria-label='Close Page Submenu'/>");
    			}
    		});
    	            // find remaining sub menus and add closed chevron and close menu
    	            $('.navigation li > ul').each(function () {
    		                var list = $(this);
    		                if (list.parent().hasClass('active') && !list.parent().hasClass('collapsible')) {
    			                    // open sub for currently selected page                    
    			                    list.parent().addClass('collapsible').prepend("<div class='bullet collapsible'aria-label='Close Page Submenu' />");
    			} else {
    			                    if (list.parent().hasClass('collapsible') && !list.siblings('div').hasClass('collapsible')) {
    				                        // open sub for page with auto expand
    				                        list.siblings('div.expandable').remove();
    				                        list.parent().prepend("<div class='bullet collapsible' aria-label='Close Page Submenu' />");
    				}
    			}
    		                if (!list.siblings('div').hasClass('collapsible')) {
    			                    // keep all closed that aren't already set to open
    			                    list.parent().addClass('expandable').prepend("<div class='bullet expandable' aria-label='Open Page Submenu' />");
    			                    ClosePageSubMenu(list.parent());
    			} else {
    			                    OpenPageSubMenu(list.parent());
    			}
    		});
    	            // remove bullet from hierarchy if no-bullet set
    	            $('.navigation li.collapsible').each(function () {
    		                if ($(this).hasClass('no-bullet')) {
    			                    if (!$(this).hasClass('navigationgroup')) {
    				$(this).removeClass('collapsible');
    				}
    			                    $(this).children('div.collapsible').remove();
    			}
    		});
    	            $('.navigation li.expandable').each(function () {
    		                if ($(this).hasClass('no-bullet')) {
    			                    if (!$(this).hasClass('navigationgroup')) {
    				$(this).removeClass('expandable');
    				}
    			                    $(this).children('div.expandable').remove();
    			}
    		});
    	            $('.navigation li:not(.collapsible,.expandable,.no-bullet)').each(function () {
    		                $(this).prepend("<div class='bullet'/>");
    		});
    	            $('.navigation li.active').parents('ul').each(function () {
    		                if (!$(this).hasClass('page-navigation')) {
    			                    OpenPageSubMenu($(this).parent());
    			}
    		});
    	            // Set aria ttributes
    	            $('li.collapsible').each(function () {
    		                $(this).attr("aria-expanded""true");
    		                $(this).find('div:first').attr('aria-pressed''true');
    		});
    	            $('li.expandable').each(function () {
    		                $(this).attr("aria-expanded""false");
    		                $(this).find('div:first').attr('aria-pressed''false');
    		});
    	            $('div.bullet').each(function () {
    		                $(this).attr("aria-hidden""true");
    		});
    	            // set click event for chevron
    	            $(do***ent).on('click''.navigation div.collapsible', function () {
    		                ClosePageSubMenu($(this).parent());
    		});
    	            $(do***ent).on('click''.navigation div.expandable', function () {
    		                OpenPageSubMenu($(this).parent());
    		});
    	            // set navigation grouping links
    	            $(do***ent).on('click''.navigationgroup.collapsible > a', function () {
    		                ClosePageSubMenu($(this).parent());
    		});
    	            $(do***ent).on('click''.navigationgroup.expandable > a', function () {
    		                OpenPageSubMenu($(this).parent());
    		});
    	            //SW MYSTART DROPDOWNS
    	            $(do***ent).on('click''.sw-mystart-dropdown', function () {
    		                $(this).children(".sw-dropdown").css("display""block");
    		});
    	            $(".sw-mystart-dropdown").hover(function () {
    		}, function () {
    		                $(this).children(".sw-dropdown").hide();
    		                $(this).blur();
    		});
    	            //SW ACCOUNT DROPDOWN
    	            $(do***ent).on('click''#sw-mystart-account', function () {
    		                $(this).children("#sw-myaccount-list").show();
    		                $(this).addClass("clicked-state");
    		});
    	            $("#sw-mystart-account, #sw-myaccount-list").hover(function () {
    		}, function () {
    		                $(this).children("#sw-myaccount-list").hide();
    		                $(this).removeClass("clicked-state");
    		                $("#sw-myaccount").blur();
    		});
    	            // set hover class for page and section navigation
    	            $('.ui-widget.app.pagenavigation, .ui-widget.app.sectionnavigation').find('li > a').hover(function () {
    		                $(this).addClass('hover');
    		}, function () {
    		                $(this).removeClass('hover');
    		});
    	            //set aria-label for home
    	            $('#navc-HP > a').attr('aria-label''Home');
    	            // set active class on channel and section
    	            var activeChannelNavType = $('input#hidActiveChannelNavType').val();
    	            if (activeChannelNavType == -1) {
    		                // homepage is active
    		                $('#navc-HP').addClass('active');
    		} else if (activeChannelNavType == 1) {
    		                // calendar page is active
    		                $('#navc-CA').addClass('active');
    		} else {
    		                // channel is active - set the active class on the channel
    		                var activeSelectorID = $('input#hidActiveChannel').val();
    		                $('#navc-' activeSelectorID).addClass('active');
    		                // set the breadcrumb channel href to the channel nav href
    		                $('li[data-bccID=' activeSelectorID '] a').attr('href', $('#navc-' activeSelectorID ' a').attr('href'));
    		                $('li[data-bccID=' activeSelectorID '] a span').text($('#navc-' activeSelectorID ' a span').first().text());
    		                // set the active class on the section
    		                activeSelectorID = $('input#hidActiveSection').val();
    		                $('#navs-' activeSelectorID).addClass('active');
    		                // set the breadcrumb section href to the channel nav href
    		                $('li[data-bcsID=' activeSelectorID '] a').attr('href', $('#navs-' activeSelectorID ' a').attr('href'));
    		                if ($('#navs-' activeSelectorID ' a').attr('target') !== undefined) {
    			                    $('li[data-bcsID=' activeSelectorID '] a').attr('target', $('#navs-' activeSelectorID ' a').attr('target'));
    			}
    		                $('li[data-bcsID=' activeSelectorID '] span').text($('#navs-' activeSelectorID ' a span').text());
    		                if ($('.sw-directory-columns').length 0) {
    			                    $('ul.ui-breadcrumbs li:last-child').remove();
    			                    $('ul.ui-breadcrumbs li:last-child a').replaceWith(function() {
    				return $('span'this);
    				});
    			                    $('ul.ui-breadcrumbs li:last-child span').append(' Directory');
    			}
    		}
    	});
     // end do***ent ready
            function OpenPageSubMenu(li) {
    	            if (li.prop('tagName').toLowerCase() == "li") {
    		                if (li.hasClass('expandable')) {
    			                    li.removeClass('expandable').addClass('collapsible');
    			}
    		                if (li.find('div:first').hasClass('expandable')) {
    			                    li.find('div:first').removeClass('expandable').addClass('collapsible').attr('aria-pressed''true').attr('aria-label','Close Page Submenu');
    			}
    		                li.find('ul:first').attr('aria-hidden''false').show();
    		                li.attr("aria-expanded""true");
    		                PageNavigationStateCookie();
    		}
    	}
            function ClosePageSubMenu