var IDLE_DELAY=900000;
var MESSAGE_DELAY=120000;
var PGHost=null;
var SWUtility=null;
var WApplication=null;
function start(){
Debug.Tracer.log("<b>LOAD:BEGIN</b>","UI and module start at:"+new Date(),1,"#9E7CC9");
Debug.Chronos.add("overall","loading adaptative module");
Debug.Tracer.log("userAgent",navigator.userAgent,1,"#E8E97F");
Debug.Tracer.log("appVersion",navigator.appVersion,1,"#E8E97F");
var m=/[^?]+/.exec(location.href);
var _2=location.href.replace(/[^\/]+[\/]+[^\/]+(\?.*)?$/,"");
PGLoader.load(_2,false);
PGHost=PGLoader.createObject("pghost");
WApplication=new CApplication();
Debug.Chronos.add("detectLmsAPIs","lms api detection");
var r=getLMSApi(LMS_MODE);
if(r.mode){
Debug.Tracer.log("LMS API","lms api type is "+r.mode);
}else{
Debug.Tracer.error("LMS API","no lms api");
}
Debug.Chronos.stop("detectLmsAPIs");
WApplication.load(location.href,r.api,r.mode);
document.title=WApplication.title;
fullscreen();
};

