Wtf.CourseView=function(A){if(Wtf.realroles){this.tabArray=[];if(Wtf.realroles.indexOf("46")>-1){this.facHeadNewCourse=new Wtf.facultyNewCourse({title:"My Courses",layout:"fit",border:false,id:"newCourse"+A.id});this.facHeadGradingStruct=new Wtf.GradingStruct({title:"Grading Structure",layout:"fit",border:false,id:"gradeStruct"+A.id});this.facHeadprereq=new Wtf.prereq({id:"prereq",layout:"fit",border:false,title:"Pre-requisites",iconCls:"rulesIcon",bodyStyle:"background:none;"});this.tabArray.push(this.facHeadNewCourse);this.tabArray.push(this.facHeadGradingStruct);this.tabArray.push(this.facHeadprereq)}else{this.modassign=new Wtf.moduleassign({title:"My Courses",id:"modassign"+A.id});this.facHeadNewCourse=new Wtf.facultyNewCourse({title:"New Courses",layout:"fit",border:false,id:"newCourse"+A.id});this.disGrade=new Wtf.courseWithoutSession({title:"External Training",id:"disgrade"+A.id});this.tabArray.push(this.modassign);this.tabArray.push(this.facHeadNewCourse);this.tabArray.push(this.disGrade)}}Wtf.CourseView.superclass.constructor.call(this,{border:false,items:this.tabArray});this.setActiveTab(0);this.doLayout(0)};Wtf.extend(Wtf.CourseView,Wtf.TabPanel,{})