function applyExtensions(){$.expr[":"].Contains=function(n,t,i){return(n.textContent||n.innerText||"").toLowerCase().indexOf(i[3].toLowerCase())>=0}}function focusFirstField(n){n||(n="body");$(n).find("input:text, input[type='email'], input:password, textarea").not("input[class^='date'], input[class*=' date'], input[class^='file'], input[class*=' file'], input[readonly=readonly]").first().focus()}function stopEventPropagation(){window.event.cancelBubble=!0;event.stopPropagation()}function endsWith(n,t){return n.indexOf(t,n.length-t.length)!==-1}function isValidDate(n){return Object.prototype.toString.call(n)!=="[object Date]"?!1:!isNaN(n.getTime())}function formatIsoDate(n){function t(n){return n<10?"0"+n:n}return n.getUTCFullYear()+"-"+t(n.getUTCMonth()+1)+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())+"Z"}function formatDate(n){function t(n){return n<10?"0"+n:n}return n.getFullYear()+"-"+t(n.getMonth()+1)+"-"+t(n.getDate())}function formatTime(n){function t(n){return n<10?"0"+n:n}return(n.getHours()%12||12)+":"+t(n.getMinutes())+" "+(n.getHours()<12?"AM":"PM")}function showElement(n,t){t?n.animate({height:"show",opacity:"show"},300):n.animate({height:"show"},300)}function hideElement(n,t){t?n.animate({height:"hide",opacity:"hide"},300):n.animate({height:"hide"},300)}function toggleElement(n,t){t?n.animate({height:"toggle",opacity:"toggle"},300):n.animate({height:"toggle"},300)}function revealElement(n){n.animate({height:"toggle",opacity:"toggle"},300).delay(1e3).animate({height:"toggle",opacity:"toggle"},300)}function showSuccessMessage(){revealElement($(".success"))}function showFailureMessage(){revealElement($(".failure"))}function prepareMenu(){$("#menu li").hover(function(){$(this).find("ul:first").css({visibility:"visible",display:"block"})},function(){$(this).find("ul:first").css({visibility:"hidden"})})}$(function(){})