if (!Seasons) { var Seasons = {}; } Modernizr.addTest("boxsizing", function() { return Modernizr.testAllProps("boxSizing") && (document.documentMode === undefined || document.documentMode > 7); }); (function ($) { Seasons.showAdvancedForm = function () { var advancedForm = $('#advanced-form'); var searchTextbox = $('#search-form input[type=text]'); var searchSubmit = $('#search-form button'); if (advancedForm.length > 0) { advancedForm.css("display", "none"); $('#search-form').addClass("with-advanced"); $('#query').after('Advanced Search'); advancedForm.click(function (event) { event.stopPropagation(); }); $("#advanced-search").click(function (event) { event.preventDefault(); event.stopPropagation(); advancedForm.fadeToggle(); $(document).click(function (event) { if (event.target.id == 'query') { return; } advancedForm.fadeOut(); $(this).unbind(event); }); }); } else { $('#search-form input[type=submit]').addClass("blue button"); } }; Seasons.mobileSelectNav = function () { // Create the dropdown base $("