'+jQuery.parseJSON(n.responseText).Message+'<\/a>This error has been logged on the server\'s event log<\/div><\/div>').appendTo("#errorlist");hap.errorTimeout==null&&(hap.errorTimeout=setTimeout("hap.common.clearError();",1e4));try{console.log(n.responseText)}catch(r){}}}catch(u){i!=""&&alert(i)}},formatJSONUrl:function(n){var t=(new Date).valueOf();return hap.common.resolveUrl(n)+"?"+t},clearError:function(){$($("#errorlist").children()[0]).animate({height:0},300,function(){$($("#errorlist").children()[0]).remove()});hap.errorTimeout=$("#errorlist").children().length>0?setTimeout("hap.common.clearError();",1e4):null},resolveUrl:function(n){return n.replace(/~\//g,hap.root)},keepAlive:function(){setInterval(function(){$.ajax({url:hap.common.formatJSONUrl("~/api/test/"),type:"GET",success:function(){},error:hap.common.jsonError})},6e4)},getLocal:function(n){for(var t=0;t<\/span><\/i><\/span>'),n.addClass("hapswitch").change(function(){$(this).prev().removeClass("on").addClass($(this).is(":checked")?"on":"")}).prev().click(function(){$(this).next().prop("checked",$(this).next().is(":checked")?!1:!0);$(this).removeClass("on").addClass($(this).next().is(":checked")?"on":"")}),n.is(":checked")&&n.prev().addClass("on"))}},header:{StopClose:!1,StopUClose:!1,WaitInit:!1,Init:function(){window.location.pathname.toLowerCase()!=hap.root.toLowerCase()&&window.location.pathname.toLowerCase()!=hap.common.resolveUrl("~/login.aspx").toLowerCase()&&window.location.pathname.toLowerCase()!=hap.common.resolveUrl("~/kerberos.aspx").toLowerCase()?($("#hapTitleMore").click(function(){return!1}),$.ajax({url:hap.common.formatJSONUrl("~/api/livetiles/"),type:"GET",dataType:"json",contentType:"application/JSON",success:function(n){var t,r,i;for($("#hapContent").click(function(){$("#hapHeaderMore").css("display")!="block"||hap.header.StopClose||$("#hapHeaderMore").animate({height:"toggle"});hap.header.StopClose=!1}).append('