text: $(document).ready(function(){if(!(0<$("#searchArea").length)){$("head").append('<style>.search-form-checkbox { display: none; } .searchRadio { display: none; } div[id^="searchForm"] #query{float: left; margin:0; padding:0; border:1px solid #525967; font-size:1.2em; color:#036; height:19px; width:230px; } div[id^="searchForm"] #query.small{margin:0; padding:0; border:1px solid #525967; font-size:1.2em; color:#036; height:19px; width:120px;} div[id^="searchForm"] #query:focus, div[id^="searchForm"] textarea:focus {background-color:yellow;}</style>')}var strFormAction,aryPathsToIgnore=[],aryLocalSearchWhiteList=[{site:"atsdr_prod",localDisplayLabel:"ATSDR",locationMatch:"atsdr.cdc.gov",siteLimit:["www.atsdr.cdc.gov"],autoComplete:!0},{site:"atsdr_dev",localDisplayLabel:"ATSDR",locationMatch:"atsdr-dev.cdc.gov",siteLimit:["www.atsdr.cdc.gov"],autoComplete:!0},{site:"pcd",localDisplayLabel:"PCD",locationMatch:".cdc.gov/pcd/",siteLimit:["www.cdc.gov/pcd/"],autoComplete:!0},{site:"mmwr",localDisplayLabel:"MMWR",locationMatch:".cdc.gov/mmwr/",siteLimit:["www.cdc.gov/mmwr/"],autoComplete:!0},{site:"travelers_health",localDisplayLabel:"Traveler's Health",locationMatch:".cdc.gov/travel/",siteLimit:["wwwnc.cdc.gov/travel/"],autoComplete:!0},{site:"nhsn",localDisplayLabel:"NHSN",locationMatch:".cdc.gov/nhsn/",siteLimit:["www.cdc.gov/nhsn/"],autoComplete:!0},{site:"vaccines",localDisplayLabel:"Vaccines and Immunizations",locationMatch:".cdc.gov/vaccines/",siteLimit:["www.cdc.gov/vaccines/"],autoComplete:!0},{site:"niosh",localDisplayLabel:"NIOSH",locationMatch:".cdc.gov/niosh/",siteLimit:["www.cdc.gov/niosh","blogs.cdc.gov/niosh-science-blog/"],autoComplete:!0},{site:"eid",localDisplayLabel:"EID Only",locationMatch:".cdc.gov/eid/",siteLimit:["wwwnc.cdc.gov/eid/"],autoComplete:!0},{site:"nchs",localDisplayLabel:"NCHS",locationMatch:".cdc.gov/nchs/",siteLimit:["www.cdc.gov/nchs/"],autoComplete:!0}],jqSearchForm=$('form[id^="searchCDC"], form[id^="searchForm"], form.searchForm'),jqSearchInput=jqSearchForm.find('input[type="text"]'),strLocalSearchOptSelector=".searchRadio,.search-form-checkbox,table.hidden-two.hidden-four,td.hidden-three.hidden-one",strSmallClass=jqSearchInput.is("#searchBoxSmall")?"small":"",blnSpanishPage=$('html[lang="es"], html.esp, body.esp').length,strAffiliate=blnSpanishPage?"cdc-es":"cdc-main",strSearchLabel=blnSpanishPage?"BUSCAR":"SEARCH",strPath=($('input[name="utf8"]'),$('input[name="affiliate"]'),window.location.host,window.location.pathname),strHref=window.location.href.toLowerCase(),blnWhiteListedDomain=!1,blnAutoComplete=!1,arySiteLimit=[];strFormAction=blnSpanishPage?window.location.protocol+"//search.cdc.gov/search/spanish":window.location.protocol+"//search.cdc.gov/search";for(var i=0,len=aryPathsToIgnore.length;i<len;i++)if(0===strPath.indexOf(aryPathsToIgnore[i]))return;for(i=aryLocalSearchWhiteList.length-1;0<=i;i--){var objCurrLse=aryLocalSearchWhiteList[i];if(objCurrLse&&objCurrLse.locationMatch&&-1<strHref.indexOf(objCurrLse.locationMatch)){blnWhiteListedDomain=!0,blnAutoComplete=objCurrLse.autoComplete,arySiteLimit=objCurrLse.siteLimit;break}}(jqSearchInput.attr({id:"query",name:"query",autocomplete:"off"}).addClass(strSmallClass),blnAutoComplete&&jqSearchInput.addClass("usagov-search-autocomplete"),$.watermark?(jqSearchInput.watermark({html:strSearchLabel}),$(".wm-label").text(strSearchLabel)):$(".search-input input").attr("placeholder",strSearchLabel),jqSearchForm.attr({"accept-charset":"UTF-8",action:strFormAction,method:"get"}),$('input[name="utf8"]',jqSearchForm).remove(),jqSearchForm.append('<input type="hidden" name="utf8" id="utf8" value="&#x2713;" />'),$('input[name="affiliate"]',jqSearchForm).remove(),jqSearchForm.append('<input type="hidden" name="affiliate" id="affiliate" value="'+strAffiliate+'" />'),jqSearchForm.submit(function(e){var strSiteLimit,jqLocalSearchInput=$('input[name="subset"]:checked, input[name="sitelimit"]:checked',$(this)),blnLocalSearchChecked=1===jqLocalSearchInput.length;!0===blnWhiteListedDomain&&0<jqLocalSearchInput.length&&("sitelimit"===jqLocalSearchInput.attr("name")?jqLocalSearchInput.val(arySiteLimit.join(" | ")):($('input[name="sitelimit"]',jqSearchForm).remove(),strSiteLimit=blnLocalSearchChecked?arySiteLimit.join(" | "):"",jqSearchForm.append('<input type="hidden" name="sitelimit" id="sitelimit" value="'+strSiteLimit+'" />')));return!0}),blnWhiteListedDomain)?window.setTimeout(function(){$(strLocalSearchOptSelector).show()},0):($(strLocalSearchOptSelector,jqSearchForm).remove(),$('.skippy[href="#searchBoxLocal"]').remove())});