function areCookiesEnabled(){document.cookie="__verify=1";var n=document.cookie.length>1&&document.cookie.indexOf("__verify=1")>-1,t=new Date(1976,8,16);return document.cookie="__verify=1;expires="+t.toUTCString(),n}function initValidation(){$("#usernameForm").validate({errorPlacement:function(n,t){$("<br />").appendTo(t.parent());n.appendTo(t.parent());$(t).attr("aria-describedby","userName-error")},rules:{Username:{required:!0}},messages:{Username:"Username is required to continue."},errorElement:"div"})}function initUsernamePage(){$("#noScriptWarning").hide();areCookiesEnabled()?$("#signinForm").show():$("#cookieWarning").show();initValidation();$("#MachineThumbprint").val(getFingerprint());$("input[name=Username]").focus();$(window).resize(stsResize);$(window).load(stsResize)}function autoSubmitForm(){$("#contentBox").hide();$("#noScriptWarning").hide();$("#MachineThumbprint").val(getFingerprint());$("#usernameForm").submit()}$(function(){var n=typeof oldIE!="undefined";n?($("#signinForm").hide(),$("#noScriptWarning").hide(),$("#cookieWarning").hide(),$("#btnAnyway").click(function(){$("#oldVersionWarning").hide();initUsernamePage()})):$("#autoSubmit").val()?autoSubmitForm():initUsernamePage()})