edu={isIE:(navigator.userAgent.indexOf("MSIE")!=-1),isFirefox:(navigator.userAgent.indexOf("Firefox")!=-1),isChrome:(navigator.userAgent.indexOf("Chrome")!=-1),isSafari:(navigator.userAgent.indexOf("Safari")!=-1),Permissions:{None:0,ExamCreation:1,OnlineTests:2,Reporting:4,ClassManagement:8,Activated:16,TrialAccount:32,ExtendedQuestions:64,OverwriteQuestions:128,Feedbacks:256,Licenses:512,Stats:1024,AdminPanel:2048},AdminTypes:{NotAdmin:0,Department:1,School:2,District:3,Super:4},init:function(A,B){this.Name=A;this.Email=B;$("#__EVENTTARGET").val("");Function._validateParameterCount=function(){return null};Function._validateParameter=function(){return null};Function._validateParams=function(){return null};Function._validateParameterType=function(){return null};var C=WebForm_ExecuteCallback;WebForm_ExecuteCallback=function(D){if(D.xmlRequest.responseText=="<session end>"){window.onbeforeunload=null;window.location="/Pages/SignedOutHome.aspx?mode=session"}else{if(D.xmlRequest.responseText=="<session kick>"){window.onbeforeunload=null;window.location="/Pages/SignedOutHome.aspx?mode=kicked"}else{C.apply(this,arguments)}}}},pageMethod:function(A,D,E,C,G,F){if(!G){G=window.location.href.split("#")[0];var B=G.split("?");G=B[0]+"/"+A+((B.length>1)?"?"+B[1]:"")}else{G=G+"/"+A}$.ajax({type:"POST",url:G,data:(D)?(((typeof D)=="string")?D:Sys.Serialization.JavaScriptSerializer.serialize(D)):"{}",contentType:"application/json; charset=utf-8",dataType:"json",success:((E)?function(H){E(H.d,F)}:null),error:C})},callback:function(D,A,F,C,E,G){var B=$("form").serializeArray();B.push({name:"__CALLBACKID",value:D});B.push({name:"__CALLBACKPARAM",value:A});G=((G)?G:window.location.href.split("#")[0]);if(G.indexOf(".aspx")==-1){G+="Default.aspx"}$.ajax({type:"POST",url:G,data:$.param(B),contentType:"application/x-www-form-urlencoded; charset=utf-8",dataType:"html",success:((F)?function(H){if(H=="<session end>"){window.onbeforeunload=null;window.location="/Pages/SignedOutHome.aspx?mode=session"}else{if(H=="<session kick>"){window.onbeforeunload=null;window.location="/Pages/SignedOutHome.aspx?mode=kick"}else{F(H.substring(1,H.length),C)}}}:null),error:E})},toJSON:function(A){return Sys.Serialization.JavaScriptSerializer.serialize(A)},LoadFeedback:function(){var A=window.open("/Pages/Feedback.aspx","feedback","height=250,width=420");if(A&&A.focus){A.focus()}},AjaxRequest:function(A){window["ctl00_MasterAjaxManager"].AjaxRequest(A)},GotoCreateExam:function(){edu.Postback("Master","createExam")},PluralString:function(C,A,B){if(C==1){return C+" "+A}else{return C+" "+B}},Postback:function(A,B){$("form").serializeArray();theForm.__EVENTTARGET.value=A;theForm.__EVENTARGUMENT.value=B;theForm.submit()},ShowAC:function(){var A="http://www.answerchat.com/cgi-bin/answerchat.exe?account=e0008&cPage=http://localhost:8080/Pages/Home.aspx&browser=Safari&bVersion=5&action=js&backgroundID=0137&buttonFolder=0006&gmt=-4&person="+edu.Name+"&email="+edu.Email;var B=window.open(A,"name","height=350,width=600");if(B&&B.focus){B.focus()}},MainMenu:function(K,O,A,Q){if(this.__MenuCreated){return}this.__MenuCreated=true;var H=A!=edu.AdminTypes.NotAdmin;var I=$("#Tab").children();var D=function(T,U,S){S=S||"#";var V=$('<li><a href="'+S+'">'+T+"</a></li>");V.appendTo(I);edu.DropDown.create(T,U);edu.DropDown.attachGroup(V,T)};var C=function(){var S=[];S.push({text:"Create an Exam",href:"javascript:edu.GotoCreateExam()"});S.push({text:"View / Modify Exam",href:"/Pages/Exam/ExamSel.aspx"});D("Exam",S)};var E=function(){var S=[];S.push({text:"Create an Exam",href:"javascript:edu.GotoCreateExam()"});S.push({text:"View / Modify Exam",href:"/Pages/Exam/ExamSel.aspx"});S.push({text:"Online Assignments",href:"/Pages/Teacher/OnlineAssignment/Default.aspx"});D("Exam",S)};var G=function(){var S=[];if(H){S=[{text:"Dashboard",href:"/Pages/Dashboard.aspx"},{text:"Batch Reporting",href:"/Pages/BatchReporting/BatchReport.aspx"},{text:"Grades By Class",href:"/Pages/Grades/ClassGrades/Default.aspx"},{text:"Grades By Exam",href:"/Pages/Grades/GradesByExam/Default.aspx"},{text:"Category Report",href:"/Pages/Grades/Category/CategoryComparison.aspx"},{text:"Individual Student",href:"/Pages/Teacher/ReviewStudentGrades.aspx"},{text:"Item Analysis",href:"/Pages/Grades/ItemAnalysis/Default.aspx"},{text:"Student Responses",href:"/Pages/Grades/StudentResponses/Default.aspx"},{text:"Thinking Skills",href:"/Pages/Grades/Category/CategoryComparison.aspx?mode=TS"},{text:"Focus Groups",href:"/Pages/Grades/FocusGroup/Default.aspx"}]}else{if(!O){S=[{text:"Dashboard",href:"/Pages/Dashboard.aspx"},{text:"Grades By Class",href:"/Pages/Grades/ClassGrades/Default.aspx"},{text:"Grades By Exam",href:"/Pages/Grades/GradesByExam/Default.aspx"},{text:"Category Report",href:"/Pages/Grades/Category/CategoryComparison.aspx"},{text:"Individual Student",href:"/Pages/Teacher/ReviewStudentGrades.aspx"},{text:"Item Analysis",href:"/Pages/Grades/ItemAnalysis/Default.aspx"},{text:"Student Responses",href:"/Pages/Grades/StudentResponses/Default.aspx"},{text:"Thinking Skills",href:"/Pages/Grades/Category/CategoryComparison.aspx?mode=TS"},{text:"Focus Groups",href:"/Pages/Grades/FocusGroup/Default.aspx"}]}else{S=[{text:"Student Report",href:"/Pages/Grades/StudentReport/"}]}}D("Reports",S)};var P=function(){var S=[];if(H){S.push({text:"Create / Edit Users",href:"/Pages/Admin/Users.aspx"});S.push({text:"Create / Edit Roster",href:"/Pages/Admin/ClassesManager.aspx"})}else{if(K){S.push({text:"Create / Edit Users",href:"/Pages/Admin/Users.aspx"});S.push({text:"Create / Edit Roster",href:"/Pages/Teacher/ClassesManager.aspx"})}}if(A>edu.AdminTypes.School){S.push({text:"Edit School",href:"/Pages/Admin/SchoolManager.aspx"})}S.push({text:"View Student Roster",href:"/Pages/Teacher/Roster/Default.aspx"});S.push({text:"View Teacher Roster",href:"/Pages/Teacher/Roster/TeacherRoster.aspx"});S.push({text:"Account Settings",href:"/Pages/Settings.aspx"});if(A>=edu.AdminTypes.District){S.push({text:"Manage District Licenses",href:"/Pages/Admin/License/Default.aspx"})}else{if(A==edu.AdminTypes.School){S.push({text:"Manage School Licenses",href:"/Pages/Admin/License/Default.aspx"})}else{if(A==edu.AdminTypes.Department){S.push({text:"Manage Department Licenses",href:"/Pages/Admin/License/Default.aspx"})}}}D("Manage",S)};var R=function(){var S=[];if((Q&edu.Permissions.AdminPanel)==edu.Permissions.AdminPanel){S.push({text:"User Portal",href:"/Pages/SuperAdmin/UserPortal.aspx"});S.push({text:"School Portal",href:"/Pages/SuperAdmin/SchoolPortal.aspx"});S.push({text:"District Portal",href:"/Pages/SuperAdmin/DistrictPortal.aspx"});S.push({text:"Admin Panel",href:"/Pages/SuperAdmin/AdminPanel.aspx"})}if((Q&edu.Permissions.Licenses)==edu.Permissions.Licenses){S.push({text:"License Panel",href:"/Pages/SuperAdmin/LicensePanel.aspx"});S.push({text:"License Stats",href:"/Pages/SuperAdmin/LicenseStats.aspx"})}if((Q&edu.Permissions.Stats)==edu.Permissions.Stats){S.push({text:"Site Activity",href:"/Pages/SuperAdmin/ActivityPanel.aspx"});S.push({text:"Exam List",href:"/Pages/Admin/ExamList.aspx"})}if((Q&edu.Permissions.OverwriteQuestions)==edu.Permissions.OverwriteQuestions){S.push({text:"Fix Questions",href:"/Pages/SuperAdmin/FixQuestion.aspx"})}if((Q&edu.Permissions.Feedbacks)==edu.Permissions.Feedbacks){S.push({text:"Feedbacks",href:"/Controls/Feedback/Default.aspx"})}if((Q&edu.Permissions.AdminPanel)==edu.Permissions.AdminPanel){S.push({text:"Merge Schools",href:"/Pages/SuperAdmin/Merge.aspx"})}D("Office Tools",S)};var J=function(){var S=[{text:"Scan Grades",href:"/Pages/OtherActions/ScanGrades.aspx"},{text:"Upload Roster",href:"/Pages/Teacher/UploadCSV.aspx?Eu=0"}];D("Tools",S)};var L=function(){var S=[{text:"Import Local Content",href:"/Pages/WizardImport/WizardImport.aspx"},];D("Tools",S)};var F=function(){var S=[{text:"Scan Grades",href:"/Pages/OtherActions/ScanGrades.aspx"},{text:"Upload Roster",href:"/Pages/Teacher/UploadCSV.aspx?Eu=0"},{text:"Import from Wizard Test Maker",href:"/Pages/WizardImport/WizardImport.aspx"},{text:"Import from Document",href:"/Pages/Questions/PasteEntireDocument.aspx"}];D("Tools",S)};var N=function(){var S=[{text:"Inbox",href:"/Pages/Messages/Inbox.aspx"},{text:"Compose a Message",href:"/Pages/Messages/Compose.aspx"},{text:"Trash",href:"/Pages/Messages/Trash.aspx"}];D("Message",S)};D("Home",[],"/Pages/Home.aspx");if(!O){if((Q&edu.Permissions.ExamCreation)==edu.Permissions.ExamCreation){if((Q&edu.Permissions.OnlineTests)==edu.Permissions.OnlineTests){E()}else{C()}}if((Q&edu.Permissions.Reporting)==edu.Permissions.Reporting){G()}if((Q&edu.Permissions.ClassManagement)==edu.Permissions.ClassManagement){P()}if(A==edu.AdminTypes.Super){R()}var B=(Q&edu.Permissions.ClassManagement)==edu.Permissions.ClassManagement;var M=(Q&edu.Permissions.ExamCreation)==edu.Permissions.ExamCreation;if(!O){if(B&&M){F()}else{if(B){J()}else{if(M){L()}}}}D("Live Help",[],"javascript:edu.ShowAC()")}else{G()}}};var $del=function(B,A){return function(){A.apply(B,arguments)}};