function accordionAnchor(){document.querySelector("#pagedocuments")&&(document.querySelector("#pagedocuments").getAttribute("aria-expanded")==="false"?(document.querySelector("#pagedocuments").click(),window.location.hash="pagedocuments"):document.querySelector("#pagedocuments").getAttribute("aria-expanded")==="true"&&(history.pushState("",document.title,window.location.pathname+window.location.search),window.location.hash="pagedocuments"))}var ariaS,i;let newDate=new Date,currentYear=newDate.getFullYear();document.getElementById("insertYear").innerHTML=currentYear;$.fn.newToggle=function(n,t){return this.each(function(){let i=!0;$(this).on("click",function(){i?n.call(this):t.call(this);i=!i})})};let hostURL=window.location.hostname;if(document.querySelectorAll("a").forEach(function(n){(n.getAttribute("href")&&n.getAttribute("href").includes("mailto")||n.getAttribute("href")&&n.getAttribute("href").includes("schools.nyc.gov"))&&n.classList.add("noLinkIcon")}),document.getElementsByTagName("table")&&!document.getElementById("results-table")){let n=$("table").outerHeight(),t=window.innerHeight;n>=t*.95&&$("table").addClass("max-table");$(window).resize(function(){n=$("table").outerHeight();t=window.innerHeight;n>=t*.95?$("table").addClass("max-table"):$("table").removeClass("max-table")});$("table").wrap("<div class='table-responsive'><\/div>");jQuery.fn.addTHead=function(){"use strict";return this.each(function(){let n=$(this);if(n.is("table")){let t=n.children("tbody").children("tr"),i=n.children("thead").length;i||t.eq(0).wrap("<thead/>").parent().prependTo(n)}})};$(document).ready(function(){$("table").addTHead()});$(".table-responsive").length>0&&$(".table-responsive").each(function(){if($(this).attr("class").indexOf("noscope")<0)if($(this).find("thead").length==0){let n=$(this).find("table tr:first-child td");$(n).each(function(){$(this).replaceWith('<th scope="col">'+$(this).text()+"<\/th>")})}else $(this).find("th").attr("scope","col")})}if(function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){n.ui=n.ui||{};n.ui.version="1.12.1";n.fn.extend({uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}})}),document.getElementsByClassName("accordionblock")&&($("div.accordionblock h2").addClass("arrowdown"),$("div.accordionblock h2").attr("tabindex","0"),$("div.accordionblock h2").attr("role","button"),$("div.accordionblock h2").attr("aria-expanded","false"),$("div.accordionblock h2").each(function(){$(this).nextUntil("h2").wrapAll("<div class='accordiontoggle'><\/div>")}),$(".accordionblock div.accordiontoggle").append("<hr>"),$("div.accordionblock h2").click(function(){$(this).next(".accordiontoggle").slideToggle("250")}),$("div.accordionblock h2").newToggle(function(){$(this).removeClass("arrowdown");$(this).addClass("arrowup");$(this).attr("aria-expanded","true")},function(){$(this).removeClass("arrowup");$(this).addClass("arrowdown");$(this).attr("aria-expanded","false")}),$("div.accordionblock h2").each(function(){$(this).uniqueId()}),$("div.accordionblock h2").each(function(){let n=$(this).attr("id");$(this).next(".accordiontoggle").attr("aria-labelledby",n)}),$("div.accordionblock h2.arrowdown").keypress(function(n){let t=n.which;if(t==13)return $(this).click(),!1})),document.getElementsByClassName("telLink")&&$("div.telLink").find("*").each(function(){$(this).html($(this).html().replace(/([0-9]{3}|[0-9]{3}-)[0-9]{3}-[0-9]{4}/gi,'<a class="noLinkIcon" href="tel:1-$&">$&<\/a>'))}),document.getElementsByClassName("accordionblockh3")&&($("div.accordionblockh3 h3").addClass("arrowdown"),$("div.accordionblockh3 h3").attr("tabindex","0"),$("div.accordionblockh3 h3").attr("role","button"),$("div.accordionblockh3 h3").attr("aria-expanded","false"),$("div.accordionblockh3 h3").each(function(){$(this).nextUntil("h3").wrapAll("<div class='accordiontoggle'><\/div>")}),$(".accordionblockh3 div.accordiontoggle").append("<hr>"),$("div.accordionblockh3 h3").click(function(){$(this).next(".accordiontoggle").slideToggle("250")}),$("div.accordionblockh3 h3").newToggle(function(){$(this).removeClass("arrowdown");$(this).addClass("arrowup");$(this).attr("aria-expanded","true")},function(){$(this).removeClass("arrowup");$(this).addClass("arrowdown");$(this).attr("aria-expanded","false")}),$("div.accordionblockh3 h3").each(function(){$(this).uniqueId()}),$("div.accordionblockh3 h3").each(function(){let n=$(this).attr("id");$(this).next(".accordiontoggle").attr("aria-labelledby",n)}),document.getElementsByClassName("accordionblock accordionblockh3")&&$(".accordionblock.accordionblockh3 p ~ hr ~ hr").remove(),$("div.accordionblockh3 h3.arrowdown").keypress(function(n){let t=n.which;if(t==13)return $(this).click(),!1})),document.getElementsByClassName("accordiontoggle")&&($(".accordiontoggle .table-responsive > hr").remove(),$(".accordionEmbed .accordiontoggle > hr").remove()),document.getElementsByClassName("accordionEmbed")&&$(".main-column .accordionEmbed").each(function(){let n=$(this).nextUntil(".rte-content").filter(".embed-container, .googleCalendar");$(this).children(".accordiontoggle").append(n)}),document.querySelector(".accordionDoc")&&document.querySelectorAll(".accordionDoc h2").forEach(function(n){n.getAttribute("aria-expanded")==="false"&&document.querySelectorAll(".accordionIndicator").forEach(function(n){n.style.display="none"});n.addEventListener("click",function(){let n=document.querySelector(".accordionDoc > h2").id;document.querySelectorAll(".accordionIndicator").forEach(function(t){t.style.display==="none"?(t.style.display="block",t.setAttribute("aria-labelledby",n),t.previousElementSibling.previousElementSibling.querySelector("hr")&&t.previousElementSibling.previousElementSibling.classList.contains("accordionDoc")?(t.previousElementSibling.previousElementSibling.querySelector("hr").style.display="none",t.previousElementSibling.previousElementSibling.style.paddingBottom="0"):t.previousElementSibling.querySelector("hr")&&t.previousElementSibling.classList.contains("accordionDoc")&&(t.previousElementSibling.querySelector("hr").style.display="none",t.previousElementSibling.style.paddingBottom="0")):(t.style.display="none",t.previousElementSibling.previousElementSibling.style.paddingBottom="2rem")})});n.addEventListener("keypress",function(n){let t=n.which||n.keyCode;t===13&&document.querySelectorAll(".accordionIndicator").forEach(function(n){n.style.display==="none"?(n.style.display="block",n.previousElementSibling.previousElementSibling.querySelector("hr")&&(n.previousElementSibling.previousElementSibling.querySelector("hr").style.display="none")):n.style.display="none"})})}),document.querySelector("#clicking")&&document.querySelector("#clicking").addEventListener("keypress",function(n){let t=n.which||n.keyCode;t===13&&document.querySelector("#clicking").click()}),document.getElementsByClassName("sf-breadscrumb")[0]&&document.getElementById("Main_T8DA3989C001_Col01")&&document.getElementById("Main_T8DA3989C001_Col01").getElementsByClassName("section-nav")&&document.getElementsByClassName("sf-breadscrumb")[0].getElementsByClassName("active")[0]){let n=document.getElementById("Main_T8DA3989C001_Col01").getElementsByClassName("section-nav"),t=document.getElementsByClassName("sf-breadscrumb")[0].getElementsByClassName("active")[0].innerText;if(n.length>-1)for(i=0;i<n.length;i++)for(sideNavItems=n[i].getElementsByTagName("li"),j=0;j<sideNavItems.length;j++)t!=sideNavItems[j].innerText?sideNavItems[j].classList.remove("active"):sideNavItems[j].classList.add("activelink")}document.querySelector("#Main_T8DA3989C001_Col01 > #relatedLinksAreMissing")&&document.querySelector(".relatedLinksContentBlock")&&document.querySelector(".relatedLinksContentBlock").setAttribute("style","display:none");window.location.href.includes("?imagegallery")&&document.getElementById("imageGalleryWidget").scrollIntoView(!0);document.getElementsByClassName("addRoleOption")[0]&&document.getElementsByClassName("addRoleOption")[0].parentNode.setAttribute("role","option");let ariaHeroSlideSelected=document.querySelector(".hero.view-01");if(ariaHeroSlideSelected){document.querySelector(".addRoleOption").parentNode.setAttribute("aria-selected","true");ariaS=document.querySelector(".addRoleOption").parentNode.querySelector(".hero-content a");ariaS!=null&&ariaS.setAttribute("aria-selected","true");document.querySelector(".hero.view-01>.slides>.slick-list>.slick-track").setAttribute("aria-label","Slider with notable webpages to choose from.");let n=ariaHeroSlideSelected.querySelectorAll("#hero-dots-0 ul li");for(i=0;i<n.length;i++)n[i].addEventListener("click",updateAriaSelected,!1)}if(document.querySelector(".externalCB")){let n=document.querySelectorAll(".externalCB");for(i=0;i<n.length;i++)if(n[i].parentNode.getAttribute("target")=="_blank"){let t=n[i].innerHTML;t+="<svg class='icon icon-link-off' aria-hidden='true' focusable='false'> <use xlink:href='#icon-link-off'><\/use> <\/svg>";n[i].innerHTML=t;n[i].parentNode.childNodes[1].remove()}}if(document.getElementById("jobPostingsHawkSearchDB")){let n=document.getElementById("sortBy"),t=document.getElementById("showBy");dbHawkParameters!=""&&document.getElementById("applySortingButton")?(dbHawkParameters=removePageParameter(dbHawkParameters),document.getElementById("applySortingButton").href=dbHawkParameters,document.querySelectorAll(".hawk-pageLink").forEach(function(n){let t="&page="+getUrlParameter("page");n.href=n.href+dbHawkParameters.replace("?","&").replace(t,"")}),document.querySelectorAll("[data-facet]").forEach(function(n){let t="";t=n.getAttribute("id").includes("No Deadline")?"0001":n.getAttribute("id").replace("facetCheck ","");let i=n.getAttribute("data-facet");getUrlParameter(i).includes(t)&&n.classList.add("hawkFacet-active")}),dbHawkParameters.includes("searchwr=")&&(document.getElementById("searchWithinDB").value=getUrlParameter("searchwr"))):document.getElementById("applySortingButton")&&(document.getElementById("applySortingButton").href="?sort="+n.value+"&itemsperpage="+t.value);getUrlParameter("sort")&&(n.value=getUrlParameter("sort"));getUrlParameter("itemsperpage")&&(t.value=getUrlParameter("itemsperpage"));document.getElementById("applySortingButton")&&(n.addEventListener("change",function(){dropFunction("sortBy","sort")}),t.addEventListener("change",function(){dropFunction("showBy","itemsperpage")}));document.getElementById("hawkTagSelected")&&(RemoveFilter("filterjobtype","facetjobtype","Job Type"),RemoveFilter("filterborough","facetborough","Location"),RemoveFilter("filteryear","facetyear","Year"),RemoveFilter("filtermonth","facetmonth","Month"),RemoveFilter("searchWR","searchwr","Search Within Results"));document.getElementById("hawkRailNav")&&(document.querySelectorAll("[data-facet='facetjobtype']").forEach(cbRightRail),document.querySelectorAll("[data-facet='facetborough']").forEach(cbRightRail),document.querySelectorAll("[data-facet='facetyear']").forEach(cbRightRail),document.querySelectorAll("[data-facet='facetmonth']").forEach(cbRightRail));document.getElementById("hawk-searchWithinButtonDB")&&(dbHawkParameters=removePageParameter(dbHawkParameters),document.getElementById("hawk-searchWithinButtonDB").addEventListener("click",function(){if(dbHawkParameters=="")document.location.search="?searchwr="+document.getElementById("searchWithinDB").value;else if(dbHawkParameters.includes("searchwr=")){if(dbHawkParameters.includes("searchwr=")){let n=getUrlParameter("searchwr").replace(/\|/g,"%7C");document.location.search=removeParameter("searchwr="+n.replace(/\ /g,"%20"),"searchwr="+document.getElementById("searchWithinDB").value.replace(/\ /g,"%20"))}}else document.location.search=dbHawkParameters+"&searchwr="+document.getElementById("searchWithinDB").value}));document.getElementById("searchWithinDB")&&document.getElementById("searchWithinDB").addEventListener("keyup",function(n){n.keyCode===13&&(n.preventDefault(),document.getElementById("hawk-searchWithinButtonDB").click())})}if(document.getElementById("calendarHawkSearchDB")){if(!document.getElementById("noCalendarItemsFound")){let n=document.getElementById("sortBy"),t=document.getElementById("showBy");dbHawkParameters!=""?(dbHawkParameters=removePageParameter(dbHawkParameters),document.getElementById("applySortingButton").href=dbHawkParameters,document.querySelectorAll(".hawk-pageLink").forEach(function(n){let t="&page="+getUrlParameter("page");n.href=n.href+dbHawkParameters.replace("?","&").replace(t,"")}),document.querySelectorAll("[data-facet]").forEach(function(n){let t=n.getAttribute("id").replace("facetCheck ",""),i=n.getAttribute("data-facet");getUrlParameter(i).includes(t)&&n.classList.add("hawkFacet-active")}),dbHawkParameters.includes("searchwr=")&&(document.getElementById("searchWithinDB").value=getUrlParameter("searchwr"))):document.getElementById("applySortingButton").href="?sort="+n.value+"&itemsperpage="+t.value;getUrlParameter("sort")&&(n.value=getUrlParameter("sort"));getUrlParameter("itemsperpage")&&(t.value=getUrlParameter("itemsperpage"));n.addEventListener("change",function(){dropFunction("sortBy","sort")});t.addEventListener("change",function(){dropFunction("showBy","itemsperpage")});document.querySelectorAll("[data-facet='faceteventcategory']").forEach(cbRightRail);document.querySelectorAll("[data-facet='facetborough']").forEach(cbRightRail);document.querySelectorAll("[data-facet='facetyear']").forEach(cbRightRail);document.querySelectorAll("[data-facet='facetmonth']").forEach(cbRightRail);document.querySelectorAll("[data-facet='facetdistrict']").forEach(cbRightRail);document.getElementById("hawk-searchWithinButtonDB").addEventListener("click",function(){if(dbHawkParameters=removePageParameter(dbHawkParameters),dbHawkParameters=="")document.location.search="?searchwr="+document.getElementById("searchWithinDB").value;else if(dbHawkParameters.includes("searchwr=")){if(dbHawkParameters.includes("searchwr=")){let n=getUrlParameter("searchwr").replace(/\|/g,"%7C");document.location.search=removeParameter("searchwr="+n.replace(/\ /g,"%20"),"searchwr="+document.getElementById("searchWithinDB").value.replace(/\ /g,"%20"))}}else document.location.search=dbHawkParameters+"&searchwr="+document.getElementById("searchWithinDB").value});document.getElementById("searchWithinDB").addEventListener("keyup",function(n){n.keyCode===13&&(n.preventDefault(),document.getElementById("hawk-searchWithinButtonDB").click())})}document.getElementById("hawkTagSelected")&&(RemoveFilter("filtereventcategory","faceteventcategory","Event Category"),RemoveFilter("filterborough","facetborough","Location"),RemoveFilter("filterdistrict","facetdistrict","District"),RemoveFilter("filteryear","facetyear","Year"),RemoveFilter("filtermonth","facetmonth","Month"),RemoveFilter("searchWR","searchwr","Search Within Results"))}$(document).on("keyup keypress",'form input[type="text"]',function(n){if(n.which==13)return n.preventDefault(),!1});$(document).on("keyup keypress",'form input[type="number"]',function(n){if(n.which==13)return n.preventDefault(),!1});$(function(){setTimeout(function(){$(".goog-logo-link").attr("title","Powered by Google Translate");var n=$(".goog-logo-link, .goog-logo-link img");n.attr("tabindex","-1");n.attr("aria-hidden","true")},500)})