if(hap==null){var hap={root:"/HAP10/",user:"",admin:!1,bsadmin:!1,hdadmin:!1,errorTimeout:null,common:{jsonError:function(n,t,i){try{if(n.responseText.match(/\<\/div>');$('
<\/span>'+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('
<\/div><\/div>'),$("#hapHeaderMore").click(function(){hap.header.StopClose=!0}).mouseleave(function(){hap.header.WaitInit||$("#hapHeaderMore").animate({height:"toggle"})}),$("#hapTitleMore").click(function(){return hap.header.WaitInit=!0,$("#hapHeaderMore").animate({height:"toggle"},500,"linear",function(){hap.header.WaitInit=!1}),!1}).trigger("click"),t=0;t"+unescape(n[t].GroupName)+"
",t==0&&(r+=''+hap.common.getLocal("home")+"<\/a>"),i=0;i'+n[t].Tiles[i].Name+"<\/a>");r+="<\/div><\/div>";$("#hapHeaderMore > .tiles").append(r)}},error:hap.common.jsonError}),$("#hapTitleMore").attr("title",hap.common.getLocal("more")),$("#hapHeader").css("right",$("#hapUserTitle").width()+30+"px")):$("#hapHeader").hide();$("#hapUserTitle").click(function(){return $("#hapUserMenu").animate({height:"toggle"}),!1}).trigger("click");$("#hapUserMenu").click(function(){hap.header.StopUClose=!0});$("#hapContent").click(function(){hap.header.StopUClose||$("#hapUserMenu").css("display")!="block"||$("#hapUserMenu").animate({height:"toggle"});hap.header.StopUClose=!1})}},loadtypes:{none:0,help:1,full:2},load:2,help:{Init:function(){document.getElementById("helpbox")==null&&$('
Loading<\/div><\/div>').appendTo(document.body).hide()},Load:function(n){$("#helpbox").hapPopup();$("#helpbox .content").html("Loading...");$.ajax({type:"GET",url:hap.common.resolveUrl("~/api/Help/"+n),dataType:"json",contentType:"application/json",success:function(n){$("#helpbox .content").html(n);$("#helpbox .content button").button()},error:hap.common.jsonError})}},localization:[{name:"ad/disabled",value:"Your account has been disabled. Please contact your IT Department for Help"},{name:"ad/passexpired",value:"Your password has expired. Please logon to a school computer or the email system to change your password"},{name:"ad/expired",value:"Your account has been expired. Please contact your IT Department for Help"},{name:"ad/lockedout",value:"Your account has been locked out. Please contact your IT Department for Help"},{name:"homeaccessplus",value:"Home Access Plus+"},{name:"home",value:"Home"},{name:"editprofile",value:"Edit Profile"},{name:"loading",value:"Loading"},{name:"help",value:"Help"},{name:"more",value:"More"},{name:"name",value:"Name"},{name:"autologon",value:"About Auto Logon"},{name:"of",value:"of"},{name:"to",value:"to"},{name:"from",value:"from"},{name:"items",value:"items"},{name:"username",value:"Username"},{name:"close",value:"Close"},{name:"openmenu",value:"Open Menu"},{name:"search",value:"Search"},{name:"password",value:"Password"},{name:"errordetails",value:"Error Details"},{name:"bookingsystem/bookingsystem",value:"Booking System"},{name:"bookingsystem/quicksearch",value:"Search for: "},{name:"bookingsystem/nodisclaimer",value:"You need to agree to the resource disclaimer"},{name:"timetable/my",value:"My Timetable"},{name:"helpdesk/archivedtickets",value:"Archived Tickets"},{name:"helpdesk/archivetickets",value:"Archive Tickets"},{name:"helpdesk/selectarchive",value:"Select an Archive"},{name:"helpdesk/assignticket",value:"Ticket (#) has been Assigned To You"},{name:"helpdesk/ticketupdated",value:"Ticket (#) has been Updated"},{name:"helpdesk/tickedhasbeen",value:"Your Ticket (#) has been %"},{name:"helpdesk/ticketcreated",value:"A Ticket (#) has been Created"},{name:"helpdesk/ticketlogged",value:"A Support Ticket (#) has been Logged"},{name:"helpdesk/daystoindex",value:"Days to Index"},{name:"helpdesk/refreshstats",value:"Refresh Stats"},{name:"helpdesk/stats",value:"Stats"},{name:"helpdesk/helpdesk",value:"Help Desk"},{name:"helpdesk/priority",value:"Priority"},{name:"helpdesk/high",value:"High"},{name:"helpdesk/low",value:"Low"},{name:"helpdesk/updated",value:"Updated"},{name:"helpdesk/normal",value:"Normal"},{name:"helpdesk/fixed",value:"Fixed"},{name:"helpdesk/closed",value:"Closed"},{name:"helpdesk/opened",value:"Opened"},{name:"helpdesk/reopened",value:"Reopened"},{name:"helpdesk/update",value:"Update"},{name:"helpdesk/reopen",value:"Reopen"},{name:"helpdesk/makeaware",value:"Make aware"},{name:"helpdesk/csloun",value:"(comma seperated list of usernames)"},{name:"helpdesk/markasfaq",value:"Mark as FAQ"},{name:"helpdesk/fixed",value:"Fixed"},{name:"helpdesk/note",value:"Note"},{name:"helpdesk/faqs",value:"FAQs"},{name:"helpdesk/opentickets",value:"Open Tickets"},{name:"helpdesk/newtickets",value:"New Ticket"},{name:"helpdesk/closedtickets",value:"Closed Tickets"},{name:"helpdesk/issue",value:"Issue"},{name:"helpdesk/room",value:"Room"},{name:"helpdesk/subject",value:"Subject"},{name:"helpdesk/userinter",value:"User Interaction Requested"},{name:"tracker/archive",value:"Archive"},{name:"tracker/logontracker",value:"Logon Tracker"},{name:"tracker/webtracker",value:"Web Tracker"},{name:"tracker/livelogons",value:"Live Logons"},{name:"tracker/weblogs",value:"Web Logs"},{name:"tracker/historiclogs",value:"Historic Logs"},{name:"tracker/logs",value:"Logs"},{name:"myfiles/directedit",value:"DirectEdit"},{name:"myfiles/myfiles",value:"My Files"},{name:"myfiles/open",value:"Open"},{name:"myfiles/download",value:"Download"},{name:"myfiles/rename",value:"Rename"},{name:"myfiles/only1",value:"This only works on 1 item"},{name:"myfiles/create",value:"Create"},{name:"myfiles/mydrives",value:"My Drives"},{name:"myfiles/filefolder",value:"File Folder"},{name:"myfiles/waiting",value:"Waiting"},{name:"myfiles/renaming",value:"Renaming"},{name:"myfiles/folderexists1",value:"The folder"},{name:"myfiles/checking",value:"Checking"},{name:"myfiles/folderexists2",value:"already exists!"},{name:"myfiles/merge",value:"Do you want to merge this folder?"},{name:"myfiles/cut",value:"Cut"},{name:"myfiles/paste",value:"Paste"},{name:"myfiles/copy/copy",value:"Copy"},{name:"myfiles/copy/copying",value:"Copying"},{name:"myfiles/copy/copyingitem1",value:"Copying item"},{name:"myfiles/copy/error1",value:"An Error has occured while copying"},{name:"myfiles/copy/error2",value:"do you want to Continue?"},{name:"myfiles/move/move",value:"Move"},{name:"myfiles/move/moving",value:"Moving"},{name:"myfiles/move/movingitem1",value:"Moving item"},{name:"myfiles/move/error1",value:"An Error has occured while moving"},{name:"myfiles/move/error2",value:"do you want to Continue?"},{name:"myfiles/move/question1",value:"Are you sure you want to move:"},{name:"myfiles/downloadwarning",value:"You are about to download this file. If you wish to edit this file, remember to\r\nsave it to your computer and upload it back once you have finished!"},{name:"myfiles/directeditquestion",value:"Do you want to download this file or DirectEdit it?"},{name:"myfiles/upload/random",value:"Random Name Suffix"},{name:"myfiles/upload/upload",value:"Upload"},{name:"myfiles/upload/uploading",value:"Uploading"},{name:"myfiles/upload/uploadprogress",value:"Upload Progress"},{name:"myfiles/upload/filetypewarning",value:"is an restricted file type\r\n\r\nYou can only upload"},{name:"myfiles/upload/folderwarning",value:"You cannot upload the folder %\r\n\r\nTry compressing it into a ZIP File first"},{name:"myfiles/upload/filetypeerror",value:"You have attempted to upload a restricted file type!"},{name:"myfiles/upload/filesizewarning",value:"is Too Big to Upload!"},{name:"myfiles/upload/fileexists1",value:"The file"},{name:"myfiles/upload/fileexists2",value:"already exists\r\n\r\nDo you want to overwrite it?"},{name:"myfiles/upload/failed",value:" has Failed!"},{name:"myfiles/upload/note",value:"This page will refresh when it has finished"},{name:"myfiles/delete/question1",value:"Are you sure you want to delete:"},{name:"myfiles/delete/delete",value:"Delete"},{name:"myfiles/delete/deletingitem1",value:"Deleting item"},{name:"myfiles/zip/zipingitem1",value:"Zipping item"},{name:"myfiles/zip/question1",value:"What do you want to call your Zip File?"},{name:"myfiles/zip/question2",value:"FileName:"},{name:"myfiles/zip/zip",value:"ZIP"},{name:"myfiles/unzip/unzipping",value:"Unzipping"},{name:"myfiles/unzip/error1",value:"An Error has occured while unzipping"},{name:"myfiles/unzip/error2",value:"do you want to Continue?"},{name:"myfiles/unzip/question1",value:"Are you sure you want to unzip:"},{name:"myfiles/unzip/unzip",value:"UnZIP"},{name:"myfiles/size",value:"Size"},{name:"myfiles/type",value:"Type"},{name:"myfiles/location",value:"Location"},{name:"myfiles/contains",value:"Contains"},{name:"myfiles/created",value:"Created"},{name:"myfiles/typeoffile",value:"Type of File"},{name:"myfiles/modified",value:"Modified"},{name:"myfiles/accessed",value:"Accessed"},{name:"myfiles/extension",value:"Extension"},{name:"myfiles/newfolder",value:"New Folder"},{name:"myfiles/tiles",value:"Tiles"},{name:"myfiles/smallicons",value:"Small Icons"},{name:"myfiles/mediumicons",value:"Medium Icons"},{name:"myfiles/largeicons",value:"Large Icons"},{name:"myfiles/details",value:"Details"},{name:"myfiles/view",value:"View"},{name:"myfiles/properties",value:"Properties"},{name:"myfiles/preview",value:"Preview"},{name:"myfiles/progress",value:"Progress"},{name:"myfiles/sendto/googledocs",value:"Send to Google Docs"},{name:"myfiles/sendto/googlesignin",value:"Sign into Google Docs"},{name:"myfiles/sendto/googlesignin2",value:"Once you have signed into Google, HAP+ will upload the selected file to your Google Docs"},{name:"myfiles/sendto/skydrive",value:"Send to SkyDrive"},{name:"myfiles/homework/path",value:"Path:"},{name:"myfiles/homework/homework",value:"My Files - Homework"},{name:"myfiles/homework/new",value:"New"},{name:"myfiles/homework/edit",value:"Edit"},{name:"myfiles/homework/remove",value:"Remove"},{name:"myfiles/homework/title",value:"Title"},{name:"myfiles/homework/description",value:"Description"},{name:"myfiles/homework/start",value:"Start"},{name:"myfiles/homework/end",value:"End"},{name:"myfiles/homework/students",value:"Students"},{name:"myfiles/homework/teachers",value:"Additional Teachers"},{name:"myfiles/homework/confirmremove",value:"Are you sure you want to remove this homework?"},{name:"myfiles/homework/upload",value:"Upload Homework"}],livetiles:{Init:function(n){var t,r,i;if(n.length>0)if($("#"+n[0].Data.Group).is(".me"))this.ShowMe(n);else for(t=0;t<\/div>').parent().addClass("me"),$.ajax({url:hap.common.formatJSONUrl("~/api/livetiles/me"),type:"GET",context:this.id,dataType:"json",contentType:"application/JSON",success:function(n){n.Photo!=""&&n.Photo!=null&&$("#me-me").append('');$("#me-me").append('
'+n.Name+'<\/div>
'+n.Email+"<\/div>")},error:hap.common.jsonError})):n[t].Data.Name=="Password"&&($("#"+n[t].Data.Group).append('

Change My Password<\/h1>