function googleSearchCallback(e,t){var c={div:"tiarcGoogleSearch",tag:"search",attributes:{linkTarget:"_self"}};"complete"==document.readyState?OnLoad(google.search.cse.element.render(c)):google.setOnLoadCallback((function(){OnLoad(google.search.cse.element.render(c))}),!0)}function OnLoad(e){""!=$("#hdnCustomSearchCriteria").val()&&e.execute($("#hdnCustomSearchCriteria").val()),$(".BaseTemplate .gsc-input input").attr("placeholder","Enter your search here"),$(".btn.searchBtn").on("click",(function(){$(".gsc-search-button").click(),history.replaceState&&""!=$("input.gsc-input").val()&&history.replaceState({},document.title,"/search/"+encodeURI($("input.gsc-input").val()))})),$("input.gsc-input").keydown((function(e){13==e.keyCode&&history.replaceState&&""!=$("input.gsc-input").val()&&history.replaceState({},document.title,"/search/"+encodeURI($("input.gsc-input").val()))})),$(".gssb_e").on("click",(function(){setTimeout((function(){history.replaceState&&""!=$("input.gsc-input").val()&&history.replaceState({},document.title,"/search/"+encodeURI($("input.gsc-input").val()))}),200)}))}window.__gcse={parsetags:"explicit",callback:function(){googleSearchCallback()}},function(){var e=$("#hdnGoogleSearchCode").val(),t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="https://cse.google.com/cse.js?cx="+e;var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(t,c)}();