var DKI;if(!DKI){DKI={};}DKI.CourseInfo=function(a,d,f,g,i,e,b,c){var h=parseInt(c);this.name=a;this.version=d;this.published=f;this.homeurl=g;this.homeversion=i;this.glossaryType=(e!=null)?e:0;this.hasResources=(b!=null)?b:0;this.passMark=(h!="NaN"&&h<=0&&h>=100)?c:0;this.cfVersions=["5.1s","5.2s"];this.themeFile="";this.helpLink="";this.scrollbars="auto";this.resizeable=0;this.pageTitles=0;this.glossaryLaunch="inline";this.glossaryLink="";};DKI.CourseInfo.prototype.LoadInfoXML=function(b){var d=Spry.Utils.loadURL("GET",b,false);var f=Spry.Utils.stringToXMLDoc(d.xhRequest.responseText);var e=Spry.Utils.getRecordSetFromXMLDoc(f,"/course");var g=Spry.Utils.getRecordSetFromXMLDoc(f,"course/layout");var a=e.getData();var c=g.getData();this.name=a[0]["name"];this.version=a[0]["version"];this.published=a[0]["published"];this.homeurl=a[0]["homeurl"];this.homeversion=a[0]["homeversion"];this.glossaryType=a[0]["glossarytype"];this.hasResources=(a[0]["hasresources"]=="true")?true:false;this.passMark=a[0]["passmark"];this.themeFile=a[0]["theme"]+".xml";this.width=a[0]["width"];this.height=a[0]["height"];this.topBarHeight=a[0]["topbarheight"];this.bottomBarHeight=a[0]["bottombarheight"];this.helpLink=a[0]["helplink"];this.scrollbars=a[0]["scrollbars"];this.resizeable=a[0]["resizeable"];this.pageTitles=a[0]["pagetitles"];this.glossaryLaunch=a[0]["glossarylaunch"];this.glossaryLink=a[0]["glossarylink"];};DKI.CourseInfo.prototype.GetWidth=function(){return this.width;};DKI.CourseInfo.prototype.GetHeight=function(){return this.height;};DKI.CourseInfo.prototype.GetTopBarHeight=function(){return this.topBarHeight;};DKI.CourseInfo.prototype.GetBottomBarHeight=function(){return this.bottomBarHeight;};DKI.CourseInfo.prototype.GetHomeUrl=function(){return this.homeurl;};DKI.CourseInfo.prototype.GetCourseId=function(){return 0;};DKI.CourseInfo.prototype.GetGlossaryType=function(){return this.glossaryType;};DKI.CourseInfo.prototype.HasResources=function(){return this.hasResources;};DKI.CourseInfo.prototype.IsCF=function(){return true;};DKI.CourseInfo.prototype.IsNET=function(){return false;};DKI.CourseInfo.prototype.GetPassMark=function(){return this.passMark;};DKI.CourseInfo.prototype.ShowModEndscreens=function(){return true;};DKI.CourseInfo.prototype.GetThemeFile=function(){return this.themeFile;};DKI.CourseInfo.prototype.GetHelpLink=function(){return this.helpLink;};DKI.CourseInfo.prototype.GetScrollbars=function(){return this.scrollbars;};DKI.CourseInfo.prototype.GetResizeable=function(){return this.resizeable;};DKI.CourseInfo.prototype.GetPageTitles=function(){return this.pageTitles;};DKI.CourseInfo.prototype.GetGlossaryLaunch=function(){return this.glossaryLaunch;};DKI.CourseInfo.prototype.GetGlossaryLink=function(){return this.glossaryLink;};