$(function(){$(".add").click(function(){$(".add").val("Add another file")});$(".icmform").submit(function(){$(".loading").show()});$("form").submit(function(){$(this).valid()||$(".loading").hide()})});typeof $.validator!="undefined"&&$.validator.setDefaults({ignore:":hidden:not(.address)"});$(function(){function t(t){var r=$(".formPage:visible").index()+t;$(".formPage").hide();$(".formPage").eq(r).show();i();$(".previous").toggle(r!==0);$(".next").toggle(r<n);$(".submit").toggle(r===n)}function i(){window.scrollTo(0,175)}if($("#PreApplication").length!==0){var n=$(".formPage:last").index();$("#nextButton").click(function(){if(!$("#PreApplication").valid()){i();return}t(1)});$("#previousButton").click(function(){t(-1)})}})