/* Copyright © 2000-2005 SumTotal Systems, Inc. All rights reserved. */
var TBK={};
TBK._zS={};
TBK._AS={};
TBK._BS={};
TBK._CS={gif:0,jpeg:0,jpg:0,swf:0,aif:1,aiff:1,au:1,midi:1,wav:1,avi:2,asf:2,asx:2,ra:2,ram:2,rm:2,rmm:2};
TBK._DS=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8','9','.','!',];
TBK._ES={};
for(var i=0;i<TBK._DS.length;i++)
{
TBK._ES[TBK._DS[i]]=i;
}
TBK._FS=null;
TBK._GS=null;
TBK._HS=null;
TBK._zE=null;
TBK._IS=null;
TBK._xP=false;
TBK._zP=" ";
TBK._yP=0;
TBK._wP=false;
TBK._AI=0;
TBK._BI=0;
TBK._OF=false;
TBK.launchPage="";
TBK._JS=null;
TBK._KS=false;
TBK._4M=null;
TBK._gM=null;
TBK._LS=null;
TBK._MS=null;
TBK._NS=300;
TBK._eQ=null;
TBK._jQ=null;
TBK.popupText=null;
TBK.screenX=0;
TBK.screenY=0;
TBK._$F=0;
TBK._NH=0;
TBK._OS=0;
TBK._PS="\"";
TBK._aQ=0;
TBK._$P=0;
TBK._QS="<table width=100%% height=100%%><tr align=center valign=center><td><h1>%1</h1></td></tr></table>";
TBK._RS=null;
TBK._SS=String;
TBK._SS.prototype._3L=function(){
var _kD=this.valueOf();
_kD=_kD.replace(/^\s*/,"");
_kD=_kD.replace(/\s*$/,"");
return _kD;
};
TBK._SS.prototype._AG=function(_hG){
return this.indexOf(_hG)==0;
};
TBK._SS.prototype._4L=function(_hG){
return this.lastIndexOf(_hG)==this.length-_hG.length;
};
TBK._oG=function(_TS,_US,_VS){
var i,o,u,v;
switch(typeof _TS){
case "object":if(_TS){
if(_TS.constructor==Array){
o="";
for(i=0;i<_TS.length;++i)
{
v=TBK._oG(_TS[i]);
if(o){
o+=",";
}
if(v!==u){
o+=v;
}
else{
o+="null,";
}
}
return(_US&&!_VS?"JSON:":"")+"["+o+"]";
}
else{
switch(_TS.constructor){
case Number:case Boolean:case RegExp:return _US?_TS:_TS.toString();
case Date:return _US?_TS:"new Date("+_TS.getTime()+")";
case String:if(_US){
return _TS;
}
else{
var s=('"'+_TS.replace(new RegExp("([\"\\\\])","g"),"\\$1")+'"');
s=s.replace(new RegExp("(\\n)","g"),"\\n");
return s;
}
default:o="";
for(i in _TS)
{
if(typeof _TS[i]!="function"){
v=TBK._oG(_TS[i]);
if(v!==u){
if(o){
o+=",";
}
o+="\""+i+"\":"+v;
}
}
}
return(_US&&!_VS?"JSON:":"")+"{"+o+"}";
}
}
}
return _US?null:"null";
case "unknown":case "undefined":return u;
case "function":return"";
case "string":if(_US){
return _TS;
}
else{
var s=('"'+_TS.replace(new RegExp("([\"\\\\])","g"),"\\$1")+'"');
s=s.replace(new RegExp("(\\n)","g"),"\\n");
return s;
}
default:return _US?_TS:String(_TS);
}
};
TBK._0Q=function(_WS){
if(typeof _WS=="string"){
if(_WS._AG("JSON:{")&&_WS._4L("}")){
_WS=_WS.substring(5,_WS.length);
return eval("new Object("+_WS+")");
}
else if(_WS._AG("JSON:")){
_WS=_WS.substring(5,_WS.length);
return eval(_WS);
}
}
return _WS;
};
TBK._eG=function(id){
if(!id){
return null;
}
var _1K=id.indexOf(".");
if(_1K==-1){
return id;
}
else{
return id.substring(0,_1K);
}
};
TBK._6Q=function(_XS){
var e;
var _YS="";
try{
var _YS=this._ZS(_XS);
}
catch(e)
{}
if(_YS){
window.eval(_YS);
}
};
TBK._ZS=function(_XS){
if(!this._HS){
this._HS=this._0S();
}
if(this._HS){
this._HS.open("GET",_XS,false);
this._HS.send(null);
return this._HS.responseText;
}
};
TBK._0S=function(){
var _1S=null;
if(typeof(XMLHttpRequest)!="undefined"){
_1S=new XMLHttpRequest();
}
else{
try{
_1S=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try{
_1S=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(E)
{
}
}
}
return _1S;
};
TBK._OC_2Q=function(){
if(!this._2Q){
this._2Q=document.getElementById("syspageFrame");
}
return this._2Q;
};
TBK._2S=function(){
var _2Q=this._OC_2Q();
_2Q.style.visibility="inherit";
var e;
try{
_2Q.contentWindow.focus();
}
catch(e)
{
}
};
TBK._$N=function(_3S,left,top){
_3S.style.left="50%";
_3S.style.top="50%";
var _2Q=this._OC_2Q();
_3S.style.marginLeft=(-Math.round(_2Q.offsetWidth/2)+left)+"px";
_3S.style.marginTop=(-Math.round(_2Q.offsetHeight/2)+top)+"px";
};
TBK._OC_4S=function(){
return this._OC_2Q().contentWindow;
};
TBK._OC_5S=function(){
return this._OC_2Q().contentWindow.document;
};
TBK._UC_6S=function(width,height){
if(width==0){
width=this._pQ;
}
if(height==0){
height=this._qQ;
}
var _2Q=this._OC_2Q();
_2Q.style.width=width+"px";
_2Q.style.height=height+"px";
if(this._zE!="topleft"){
_2Q.style.marginLeft=-Math.round(width/2)+"px";
_2Q.style.marginTop=-Math.round(height/2)+"px";
}
};
TBK._7S=function(_8S){
if(_8S){
var _1J=this._pD('_qD.132');
return(_1J.indexOf(_8S.substr(_8S.length-1))!=-1);
}
return false;
};
TBK._9S=function(_jG,value){
this._AS[_jG.toUpperCase()]=value;
};
TBK._fG=function(_oH){
for(var i in _oH)
{
if(_oH.hasOwnProperty(i)){
return false;
}
}
return true;
};
TBK.__S=function(url){
var i=url.lastIndexOf("?");
if((i==-1)||((i+1)==url.length)){
return;
}
url=url.substring(i+1);
var _$S=url.split(/\s*&\s*/);
for(var j=0;j<_$S.length;j++)
{
var ch=_$S[j].split(/\s*=\s*/);
if(typeof(ch[0])!="undefined"&&ch[0]){
if(typeof(ch[1])=="undefined"){
ch[1]="";
}
this._9S(ch[0],this._aT(ch[1]));
}
}
};
TBK._aT=function(_bT){
var _cT="";
if(typeof(_bT)!="underfined"&&_bT){
_cT=_bT.replace(/\+/g," ");
_cT=(typeof(decodeURIComponent)=="undefined")?unescape(_cT):decodeURIComponent(_cT);
}
return _cT;
};
TBK._dT=function(url,_eT){
url=(""+url)._3L();
if(url.indexOf("javascript:")==0||url.indexOf("mailto:")==0||url.indexOf("mms:")==0){
var _1K=url.indexOf(":");
this._SL=url.substring(0,_1K);
this._fT=null;
this._gT=null;
this.hostname="";
this._hT="";
this._iT=url.substring(_1K+1);
this._kG="";
this.search="";
this.hash="";
return this;
}
url=url.replace(/\s/g,"%20");
if(url.indexOf("www.")==0){
url=this._eT?"//"+url:"http://"+url;
}
else if(url.indexOf("\\\\")==0){
url="file://"+url.substring(2);
}
var _jT="(?:[a-zA-Z][a-zA-Z0-9\\+-\\.]+)";
var _kT="(?:("+_jT+")\:)?";
var _lT="[^\\/\\:@\\=#\\\\]*";
var _mT="[^;\\/\\?\\:@&\\=#\\\\\]*";
var _nT="[\\d]*";
var _oT="(?:\/\/(("+_lT+")(\:("+_lT+"))?@)?("+_mT+")(?:\:("+_nT+"))?)?";
var _pT="(?:[^;\\?#])";
var _qT="("+_pT+"*)";
var _rT="(?:[^\\?#])";
var _sT="(?:;("+_rT+"*))?";
var _tT="(?:[^#])";
var _uT="(?:\\?("+_tT+"*))?";
var _vT="(?:#("+_tT+"*))?";
var _kJ=url.match(_kT+_oT+_qT+_sT+_uT+_vT);
if(_kJ){
this._SL=_kJ[1]?_kJ[1]:"";
this._fT=_kJ[3]?_kJ[3]:_kJ[2]?"":null;
this._gT=_kJ[5]?_kJ[5]:_kJ[4]?"":null;
this.hostname=_kJ[6]?_kJ[6]:"";
this._hT=_kJ[7]?_kJ[7]:"";
this._iT=_kJ[8]?_kJ[8].replace(/\\/g,"/"):(this._SL||this.hostname||this._hT)?"/":"";
this._kG=_kJ[9]?_kJ[9]:"";
this.search=_kJ[10]?_kJ[10]:"";
this.hash=_kJ[11]?_kJ[11]:"";
if(_eT){
if(_eT.constructor==TBK._dT){
this._eT=_eT;
}
else{
this._eT=new TBK._dT(_eT);
}
}
else{
this._eT=null;
}
if(this._eT){
if(!this._SL){
this._SL=this._eT._SL;
}
if(!this.hostname&&!this._hT){
this.hostname=this._eT.hostname;
if(this._SL==this._eT._SL){
this._hT=this._eT._hT;
}
}
var _wT=this._eT._iT;
if(_wT){
var _1K=_wT.lastIndexOf("/");
if(_1K>-1){
_wT=_wT.substring(0,_1K);
}
}
this._iT=TBK._xT(_wT,this._iT);
}
this._yT();
return this;
}
else{
return null;
}
};
TBK._dT.prototype._zT=function(url){
if(url){
if(url.constructor!=TBK._dT){
url=new TBK._dT(url);
}
}
if(url){
return(this._SL.toUpperCase()==url._SL.toUpperCase()&&this.hostname.toUpperCase()==url.hostname.toUpperCase()&&this._hT==url._hT);
}
else{
return false;
}
};
TBK._dT.prototype._OC_AT=function(){
return this.toString();
};
TBK._dT.prototype._OC_BT=function(){
return(this.hostname?this.hostname:"")+(this._hT?":"+this._hT:"");
};
TBK._dT.prototype._UC_BT=function(_BT){
_CT="(?:[^;\\/\\?\\:\\=#\\\\]+)";
_DT="("+_CT+"?)";
_ET="(?:\\:([\\d]*))?";
_oT="^(?:"+_DT+_ET+")?$";
_BT=""+_BT;
_kJ=_BT.match(_oT);
if(_kJ){
this.hostname=_kJ[1];
this._hT=_kJ[2];
}
this._yT();
};
TBK._dT.prototype.toString=function(){
var _kD=this._SL?this._SL+":":"";
if(this._fT||this._gT||this.hostname||this._hT){
_kD+="//";
var _FT="";
if(this._fT!=null||this._gT!=null){
var _FT="@";
if(this._gT!=null){
_FT=":"+this._gT+_FT;
}
if(this._fT!=null){
_FT=this._fT+_FT}
}
if(this.hostname){
_FT+=this.hostname;
}
if(this._hT){
_FT+=":"+this._hT;
}
_kD+=_FT;
}
if(this._iT){
if((this.hostname||this._hT)&&this._iT.indexOf("/")!=0){
_kD+="/"+this._iT;
}
else{
_kD+=this._iT;
}
}
_kD+=this._kG?";"+this._kG:"";
_kD+=this.search?"?"+this.search:"";
_kD+=this.hash?"#"+this.hash:"";
return _kD;
};
TBK._dT.prototype._yT=function(){
if(this._hT&&this._SL){
var _GT=({"ftp":21,"smtp":25,"telnet":23,"http":80,"https":443,"gopher":70,"mailto":-1,"news":-1,"nntp":119,"wais":210,"file":-1,"prospero":1525,"ldap":389,"snmp":161,"pop":-1,"imap":143})[this._SL];
if(_GT){
if(_GT==-1){
this._hT="";
}
else if(this._hT==_GT){
this._hT="";
}
}
}
};
TBK._9P=function(_aD){
url=new TBK._dT(_aD,window.location.href);
if(url){
return url.toString();
}
else{
return null;
}
};
TBK._HT=function(url){
var i=url.lastIndexOf('.');
if(i>0){
var _IT=url.substring(i+1).toLowerCase();
if(this._CS[_IT]){
return this._CS[_IT];
}
}
return-1;
};
TBK._uM=function(url){
var _tM;
var i=url.indexOf("#");
if(i>-1){
var j=url.indexOf("?",i);
if(j>-1){
_tM=url.substring(i+1,j);
}
else{
_tM=url.substring(i+1);
}
}
return _tM;
};
TBK._JT=function(_KM){
if((_KM.indexOf("click")>-1)||(_KM=="mousedown")){
if(this.__P){
this.exit(this._OD,false,false,this._jS,this._kS);
return false;
}
else if(!this._ID._9F()){
window.alert(this._pD('_qD.28'));
this.exit(this._OD,false,false,this._jS,this._kS);
return false;
}
}
return true;
};
TBK._KT=[];
TBK._PF=function(id){
this._OC_5S().onmousemove=this._LT;
this._MT(this._KT,id);
this._KT[this._KT.length]=id;
};
TBK._NT=function(_OT){
if(!TBK._KS){
TBK._KS=true;
this._JS=document.getElementById(this._mS);
if(this._JS){
var e;
try{
var _BG=this._JS.getVersion();
if(!_BG){
_CG._DG("TBK.validateSupportApplet(): Unable to validate runtime applet.");
this._JS=null;
}
}
catch(e)
{
_CG._DG("TBK.validateSupportApplet(): Unable to validate runtime applet. Error: "+TBK._PT(e));
this._JS=null;
}
}
else{
_CG._DG("TBK.validateSupportApplet(): Unable to locate runtime applet.");
}
if(!this._JS){
this._QT(_OT);
}
}
if(_OT&&!this._JS){
window.close();
}
return this._JS;
};
TBK.setParam=function(name,value){
if(value==null||typeof value=="undefined"){
delete this._BS[name];
}
else{
this._BS[name]=value;
}
};
TBK.post=function(url,_AM){
var e;
_CG._DG("HTTP Post");
_CG._DG("  URL: "+url);
_CG._DG("  Data: "+_AM);
var _eT=new TBK._dT(document.location.href);
if(!_eT){
_CG._DG("  Post failed: Unable to parse context URL ("+document.location.href+").");
return null;
}
var _RT=new TBK._dT(url,_eT);
if(!_RT){
_CG._DG("  Post failed: Unable to parse URL ("+url+").");
return null;
}
var _ST="";
if(_RT.search){
_ST=_RT.search;
_RT.search="";
}
if(typeof _AM=="undefined"){
for(var i in this._BS)
{
if(_ST){
_ST+="&";
}
_ST+=i+"="+encodeURIComponent(this._BS[i]);
}
this._BS={};
}
else if(_AM){
_ST=_ST?_ST+"&"+_AM:_AM;
}
url=_RT.toString();
_CG._DG("  Processed URL: "+url);
_CG._DG("  Processed data: "+_ST);
if(!_RT._zT(_eT)){
_CG._DG("  Using signed Java applet for cross-domain posting.");
if(this._NT()){
var _TT=true;
if(this.getBrowserType()=="NS7"&&(""+this._JS.getJavaVendor()).toLowerCase()._AG("sun")){
var _UT=""+this._JS.getJavaVersion();
var _VT=_UT.split(new RegExp("[\._]"));
var _WT="1.4.1_05";
var _XT=[1,4,1,5];
for(var i=0;i<4;i++)
{
if(!_VT[i]){
_VT[i]=0;
}
if(_VT[i]<_XT[i]){
_TT=false;
break;
}
else if(_VT[i]>_XT[i]){
break;
}
}
}
if(_TT){
try{
_kD=this._JS.post(url,_ST);
_CG._DG("  Post via Java applet successful: Return value: "+_kD);
return _kD;
}
catch(e)
{
_CG._DG("  Post via Java applet failed: Error calling Java applet (\""+this._PT(e)+"\"). Attempting JavaScript post.");
}
}
else{
_CG._DG("  Post via Java applet failed: Unsupported Java version (minimum expected: "+_WT+"; found: "+_UT+")");
if(!this._YT){
window.alert(this._LD(this._pD('_qD.150'),[_WT,_UT]));
this._YT=true;
}
}
}
else{
_CG._DG("  Post via Java applet failed: Signed Java applet not available. Attempting JavaScript post.");
}
}
if(!this._GS){
this._GS=this._0S();
}
if(this._GS){
try{
this._GS.open("POST",url,false);
this._GS.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
this._GS.send(_ST);
var _kD=this._GS.responseText;
_CG._DG("  Post successful: Return value: "+_kD);
return _kD;
}
catch(e)
{
_CG._DG("  Post failed: "+this._PT(e));
return null;
}
}
else{
_CG._DG("  Post failed: Unable to instantiate HTTP Request object.");
return null;
}
};
TBK._PT=function(e){
var _rH;
var x;
try{
_rH=e.message;
}
catch(x)
{}
if(_rH){
return _rH;
}
else{
return e.toString();
}
};
TBK._ZT=new Object();
TBK._QF=function(id,_KM){
this._ZT.id=id;
this._ZT._KM=_KM;
};
TBK._SF=function(id,_KM){
if(this._ZT.id==id&&this._ZT._KM==_KM){
this._ZT=new Object();
}
};
TBK._JD=function(){
if(this._ZT.id){
var _oH=this._RD(this._ZT.id);
this._0T(_oH,this._ZT._KM,"");
}
};
TBK._hD=function(_oH){
if(typeof(_oH)=="object"){
var _hD=new _oH.constructor();
for(var i in _oH)
{
_hD[i]=this._hD(_oH[i]);
}
return _hD;
}
return _oH;
};
TBK._1T=function(_KM){
if((_KM.indexOf("mouse")==0)&&(this._KT.length>0)){
var _2T=[];
var _3T=_2T.concat(this._KT);
for(var i=0;i<_3T.length;i++)
{
var _oH=this._RD(_3T[i]);
this._0T(_oH,_KM,"");
}
return true;
}
else{
return false;
}
};
TBK._0T=function(_oH,_KM,_ED){
if(_oH){
var _aN=new Array(arguments.length-3);
for(var i=0;i<_aN.length;i++)
{
_aN[i]=arguments[i+3];
}
_oH.fireEvent(_KM,_ED,_aN);
}
};
TBK._QT=function(_4T){
if(_4T){
var _5T=this._lS?this._pD('_qD.144'):this._pD('_qD.145');
}
else{
var _5T=this._lS?this._pD('_qD.146'):this._pD('_qD.147');
}
window.alert(_5T);
};
TBK._6T=function(){
return false;
};
TBK.exit=function(_WG,_MD,_ND,_WD,_XD){
if(!_ND||window.confirm(this._pD('_qD.11'))){
this.stop(_WG,_MD,_WD,_XD);
}
};
TBK._rF=function(_mC){
if(_mC){
if(_mC.id){
return _mC;
}
else{
return this._OC_5S().getElementById(_mC);
}
}
else{
return null;
}
};
TBK._RD=function(id){
return(!id?null:(id.id?id:this._OC_7T(id)));
};
TBK._8T=function(id,_9T){
var _oH=window;
var __T;
id=id.split(".");
for(var i=0;i<(id.length-1);i++)
{
__T=_oH[id[i]];
if(typeof(__T)!="object"||!__T){
__T={};
_oH[id[i]]=__T;
}
_oH=__T;
}
_oH[id[i]]=_9T;
};
TBK._SD=function(name,id){
var _oH=null;
var _8D=this.Persistence.dereference(id);
if(_8D){
_oH=this._RD(_8D._dP[name]);
}
if(!_oH){
var message=this._LD(this._pD('_qD.43'),[name]);
window.alert(message);
}
return _oH;
};
TBK._$T=function(){
var i=-1;
if(this._sS.length>0){
for(i=0;i<this._sS.length;i++)
{
if(this._aU(i)){
break;
}
}
if(i==this._sS.length){
i=Math.round(Math.random()*(this._sS.length-1));
this._bU(i);
}
}
return this._cU(i)?i:-1;
};
TBK._LD=function(message,_oJ){
var re=new RegExp("%.","g");
var _dU=function(_hG){
_hG=_hG.substring(1);
if(_hG=="%"){
return"%";
}
else if(_hG==1*_hG&&_hG>0){
return _oJ[_hG-1];
}
else{
return"";
}
};
return message.replace(re,_dU);
};
TBK._pG=function(_eU){
var x=Math.round(_eU/1000);
var ss=x%60;
x=Math.round(x/60);
var mm=x%24;
x=Math.round(x/24);
var hh=x;
var _kJ="";
if(hh<10){
_kJ+="0";
}
_kJ+=hh+":";
if(mm<10){
_kJ+="0";
}
_kJ+=mm+":";
if(ss<10){
_kJ+="0";
}
_kJ+=ss;
return _kJ;
};
TBK._fU=function(){
return("xyzzy"!='_gU');
};
TBK.LMSInitialize=function(_hU){
if(this._ID._OL._AG("SCORM")){
return this._ID.LMSInitialize(""+_hU);
}
else{
return"";
}
};
TBK.LMSFinish=function(_hU){
if(this._ID._OL._AG("SCORM")){
return this._ID.LMSFinish(""+_hU);
}
else{
return"";
}
};
TBK.LMSCommit=function(_hU){
if(this._ID._OL._AG("SCORM")){
return this._ID.LMSCommit(""+_hU);
}
else{
return"";
}
};
TBK.LMSGetDiagnostic=function(_cE){
if(this._ID._OL._AG("SCORM")){
return this._ID.LMSGetDiagnostic(_cE+"");
}
else{
return"";
}
};
TBK.LMSGetValue=function(_fE){
if(this._ID._OL._AG("SCORM")){
return this._ID.LMSGetValue(""+_fE);
}
else{
return"";
}
};
TBK.LMSSetValue=function(_fE,value){
if(this._ID._OL._AG("SCORM")){
return this._ID.LMSSetValue(""+_fE,""+value);
}
else{
return"";
}
};
TBK._OC_$D=function(){
var i;
for(i=0;i<this._JG.length;i++)
{
if(this._JG[i].indexOf("*")!=0){
return this._JG[i];
}
}
return null;
};
TBK._OC_yQ=function(){
var i;
for(i=this._JG.length-1;i>=0;i--)
{
if(this._JG[i].indexOf("*")!=0){
return this._JG[i];
}
}
return null;
};
TBK._OC_AQ=function(_gH){
if(_gH<this._JG.length-1){
var i;
for(i=_gH+1;i<this._JG.length;i++)
{
if(this._JG[i].indexOf("*")!=0){
return this._JG[i];
}
}
}
if(this._oS){
return this._OC_$D();
}
else{
return null;
}
};
TBK._OC_iU=function(_gH){
return(this._JG[_gH])?((this._JG[_gH].indexOf("*")==0)?this._JG[_gH].substr(1):
this._JG[_gH]):null;
};
TBK._OC_zQ=function(__D){
var i;
for(i=0;i<this._JG.length;i++)
{
if(this._JG[i]==__D){
return i;
}
else if(this._JG[i].indexOf("*")==0){
if(this._JG[i].substr(1)==__D){
return i;
}
}
}
return null;
};
TBK.getParam=function(_jG){
var _jU=this._AS[_jG.toUpperCase()];
if(typeof _jU=="undefined"){
_jU="";
}
return _jU;
};
TBK._OC_BQ=function(_gH){
if(_gH>0){
var i;
for(i=_gH-1;i>=0;i--)
{
if(this._JG[i].indexOf("*")!=0){
return this._JG[i];
}
}
}
if(this._oS){
return this._OC_yQ();
}
else{
return null;
}
};
TBK._5L=function(){
var url=window.location.href;
this._LS=url;
this._MS=this._kU(url);
var i=url.indexOf(this.__R);
if(i==-1){
this._4M=url;
}
else{
this._4M=url.substring(0,i)+url.substring(i+this.__R.length+1);
}
this._gM=this._kU(this._4M);
this.launchPage=this._uM(url);
this._lU();
this.__S(url);
this._zE=this.getParam("dhtmlActivation");
if(this.getParam("closeOnClick")=="true"){
this.__P=true;
}
if(this.getParam("logonRequired")=="false"){
this._7M=false;
this._9M=false;
}
if(typeof(this._aE._HD)!="undefined"){
this._JG=[];
for(var i=0;i<this._aE._HD.length;i++)
{
var _JG=this._aE._HD[i];
if(_JG._7F){
for(var j=0;j<_JG._mU;j++)
{
this._UR(_JG._JG,this._JG);
}
}
else{
for(var j=0;j<_JG._JG.length;j++)
{
this._JG[this._JG.length]=_JG._JG[j];
}
}
}
}
this._nU();
this._oU();
window.onerror=_CG._qH;
};
TBK._LC=function(_AC,_pU){
if(this._NT(true)){
_qU=new String(this._JS.decrypt(_pU));
var _oH=eval("new "+_AC+" ( "+_qU+" )");
return _oH;
}
else{
return null;
}
};
TBK.integerToRGB=function(_5D){
var _bE=_5D-0;
return""+((_bE>>16)&255)+","+((_bE>>8)&255)+","+((_bE>>0)&255);
};
TBK._rU=function(item,_mG){
for(var i=0;i<_mG.length;i++)
{
if(_mG[i]==item){
return true;
}
}
return false;
};
TBK.isNumber=function(x){
return((1*x)==x);
};
TBK.millisecondsToTime=function(ms){
ms=1*ms;
if(ms>=949381200000){
var d=new Date(ms);
return this._iH(d.getHours(),2)+":"+this._iH(d.getMinutes(),2)+":"+this._iH(d.getSeconds(),2);
}
else{
var _sU=Math.round(ms/1000);
return this._iH(Math.floor(_sU/60),2)+":"+this._iH(_sU%60,2);
}
};
TBK._tU=function(xx,yy){
var x=1*xx;
var y=1*yy;
var _kJ=x%y;
if(_kJ!=0){
if(((x<0)&&(y>0))||((x>0)&&(y<0))){
if(((_kJ<0)&&(y>0))||((_kJ>0)&&(y<0))){
_kJ+=y;
}
}
}
return _kJ;
};
TBK._oU=function(){
eval(function _aT(_JU,_KU,_LU){
return _JU.length==96?_JU.charAt(_JU.charCodeAt(0)):
_LU<_JU.length?_aT(_JU,_KU+=_aT(_JU.substring(0,95)+_JU.substring(_LU,_LU+=((_JU.length-95)>>1)),"",95),_LU):
_KU;
}
("e|D#o,jC3dGlcEZ59AXfU2y'MPsVB-4b/8q_=JRWK}7SY<n>tH %*$rF~6Ti!+x:wL{?].k;v0[Qa(@g`OIhpuz1&\")^m\\NZ<HeCa'D3uN,P[$NmC1'%Ct4zb[3mPs[:eCNKDDy&lhlyzb[3mPs[:eC~ZmPVu zzbCB4DN `RKPV[NomPs[:eCEKe) ,V6tPmCt4zzgI +: bV PuVNRNu++gII +: bCB4DPs[:e) ,V6tPmCt4%Ps[:eCt\"m7CB\"eA7zzgIhlVRC$QD hl+myN `Ry]C1']yRmRy]CB4]yRzyzgV PuVNRC$QgIgZ<He) ,V6tPD3uN,P[$NmCBE%Cu4zbhlVRCh4ghlVRC`4DjdghlVRC^4Di^0-(JJ0<0ghlVRC64DPs[:eCv4mCBEzghlVRC14DwYghlVRC<4DmC64e+ NoPsT>zSmCu4e+ NoPs=C14zghlVRC&*Djdg3$VmhlVR[DC<4%&Dig[MmC<4]C14zg[]D>%&]]zbC&*j&dDmCu4e,slV'$) 1Pm[zx5//zMM5>!mCu4e,slV'$) 1Pm[]wzx5//zMMwY!mCu4e,slV'$) 1Pm[]5zx5//zMMA!mCu4e,slV'$) 1Pm[](zx5//zgC&*j&dxD>50>0YJ50/gIhlVRC'4ghlVRNghlVRC\"4ghlVRC`EDig3$VmhlVR[Dig[MC64e+ NoPsg[]D5zbhlVRC'4Di^'Y-W(J5ighlVRND(5g`s[+ mN==OizbC64j[]wdDC64j[]wd=mmC64j[dMM>{C64j[dOOO/z]C64j[d{C'4]C&*jmC'4OOOwwzx(dzgC'4DC'4=C^4gC64j[dDC64j[d=mmC64j[]wdMM>{C64j[]wdOOO/z]C64j[]wd{C'4]C&*jmC'4x(zdzgI3$VmhlVRC-4DigC-4M5gC-4]]zbhlVRCW4D>5JAw0iiAighlVR|$h <6D5>g3$VmhlVRC*4DigC*4M>gC*4]]zbCQ4DmC64j[]C-4dxCW4zOOO|$h <6gC\"4DKPV[Noe3V$|'slV'$) mCQ4zg[3mCQ4M(5!!CQ4Ow5J!!C\"4DDySyzbC\"4D :,lt mC\"4zgIC`4jC`E]]dDC\"4gCW4OOODAg|$h <6=DAgIIIC`4D) ,$) 4FrmC`4e&$[Nmyyzzg[3mC`4e[N) ^q3my}^iiyz\\D=wzbC`4DC`4e:u?:PVmi%C`4e[N) ^q3my}^iiyzzgIV PuVNRC`4gIgZ<HeCv4D3uN,P[$NmCr4zbhlVRC64DjdgCr4DCr4e:t+[Pmyyzg3$VmhlVR[Di%&Dig[MCr4e+ NoPsg[]D>%&]D(zbhlVRfDmZ<HeC-KjCr4j[ddMMwAz!mZ<HeC-KjCr4j[]wddMMw5z!mZ<HeC-KjCr4j[]5ddMMYz!Z<HeC-KjCr4j[](ddgC64j8lPse3+$$Vm&@>zd!DmmfOOOwYzx5//zMMm&S>TAzgC64j8lPse3+$$Vmm&]wz@>zd!DmmfOOOAzx5//zMMmm&]wzS>TAzgC64j8lPse3+$$Vmm&]5z@>zd!Dmfx5//zMMmm&]5zS>TAzgIC64e+ NoPsD8lPse3+$$VmCr4e+ NoPsT(@wYzgV PuVNRC64gIg","",95));
};
TBK._lJ=function(_hG){
if(_hG){
_hG=_hG.replace(/\r\n/g,"\n");
_hG=_hG.replace(/\r/g,"\n");
}
return _hG;
};
TBK._MU=function(_kE){
var _JM=_kE;
while(_JM&&!_JM._NU)
{
_JM=_JM.parentNode;
}
if(_JM&&_JM._NU){
return _JM._NU;
}
else{
return null;
}
};
TBK._JN=function(x,y){
var _cP=null;
if(_Page._0D){
_cP=_Page._0D._FL(x,y);
}
return _cP?_cP:_Book._GD;
};
TBK._eL=function(value){
if(typeof(value)=="string"){
var re=new RegExp("\\\\","g");
var _OU=value.replace(re,"\\\\");
re=new RegExp("\\r","g");
_OU=_OU.replace(re,"\\r");
re=new RegExp("\\n","g");
_OU=_OU.replace(re,"\\n");
re=new RegExp("\\t","g");
_OU=_OU.replace(re,"\\t");
re=new RegExp("\\'","g");
_OU=_OU.replace(re,"\\'");
re=new RegExp("\\\"","g");
_OU=_OU.replace(re,"\\\"");
return"\""+_OU+"\"";
}
else if(typeof(value)=="object"){
return((value.id)?value.id:this._eL(value.toString()));
}
else return value;
};
TBK._UR=function(_5G,to){
var item=Math.round(Math.random()*(_5G.length-1));
to[to.length]=_5G[item];
for(var i=item;i<(_5G.length-1);i++)
{
_5G[i]=_5G[i+1];
}
_5G.length=_5G.length-1;
};
TBK._UF=function(id){
this._MT(this._KT,id);
if(this._KT.length==0){
this._OC_5S().onmousemove=null;
}
};
TBK._GQ=function(_mG,item){
for(var i=item;i<(_mG.length-1);i++)
{
_mG[i]=_mG[i+1];
}
_mG.length=_mG.length-1;
};
TBK._MT=function(_mG,_oH){
for(var i=0;i<_mG.length;i++)
{
if(_mG[i]==_oH){
this._GQ(_mG,i);
continue;
}
}
};
TBK._lU=function(){
TBK._SS.prototype._PU=TBK._SS.prototype.charCodeAt;
TBK._SS.prototype.charCodeAt=TBK._QU;
TBK._SS.prototype._RU=TBK._SS.prototype.charAt;
TBK._SS.prototype.charAt=TBK._SU;
};
TBK._TU=function(__D){
var _8D=this._RD(__D);
if(_8D&&_8D.isInstance('_Page')){
return _8D.id;
}
if((__D.indexOf("page")==0)&&(__D.length>4)){
var _gH=0+__D.substr(4)-1;
var _1D=this._OC_iU(_gH);
if(_1D){
return _1D;
}
}
else if(this.isNumber(__D)){
var _gH=__D-1;
var _1D=this._OC_iU(_gH);
if(_1D){
return _1D;
}
}
return __D;
};
TBK._xT=function(_wT,_UU){
_wT=""+_wT;
_UU=""+_UU;
_wT=_wT.replace(/\\/g,"/");
_UU=_UU.replace(/\\/g,"/");
if(_UU.length==0){
return _wT;
}
if(_UU.indexOf("/")==0){
return _UU;
}
if(_UU.charAt(1)==":"){
return"/"+_UU;
}
if(_wT.charAt(_wT.length-1)=="/"){
_wT=_wT.substring(0,_wT.length-1);
}
var _VU=(_wT+"/"+_UU).split("/");
var i;
for(i=0;i<_VU.length;i++)
{
if(_VU[i]=="."){
_VU.splice(i,1);
i--;
}
else if(_VU[i]==".."){
if(i>0){
_VU.splice(i-1,2);
i-=2;
}
}
}
return _VU.join("/");
};
TBK._pD=function(_WU){
return this._zS[_WU];
};
TBK.__C_XU=function(){
TBK._SS.prototype.charCodeAt=TBK._SS.prototype._PU;
TBK._SS.prototype.charAt=TBK._SS.prototype._RU;
};
TBK.rgbToInteger=function(_bE){
var _EJ=this._aH(_bE,",",false);
return((_EJ[0]-0)*65536)+((_EJ[1]-0)*256)+(_EJ[2]-0);
};
TBK._YU=function(){
if(_ZU){
_ZU._YU();
}
};
TBK._UC_IP=null;
TBK._UCfocus=function(_oH,_vD){
if(_vD&&this._UC_IP&&_oH!=this._UC_IP&&this._UC_IP.blur){
this._UC_IP._5O();
}
this._qF(this._IS);
if(_oH){
this._UC_IP=_oH;
}
if(this._UC_IP){
if(_vD){
_Page._HQ(this._UC_IP);
this._0T(this._UC_IP,"focus","");
if(this._UC_IP._xF){
var _DN=this._UC_IP._aI(null);
this._XI(this._IS,(_DN[0]*-1)-1,(_DN[1]*-1)-1,this._UC_IP.getWidth()+2,this._UC_IP.getHeight()+2,this._UC_IP._OC_CI()-1,null);
}
}
else{
this._0T(this._UC_IP,"blur","");
this._UC_IP=null;
}
}
return false;
};
TBK._QU=function(n){
return this._PU(n+95);
};
TBK.stop=function(_WG,_MD,_WD,_XD){
if(!this._NH){
this._NH=new Date().getTime();
this._WG=_WG;
this._MD=_MD;
this._WD=_WD;
this._XD=_XD;
this._aE._0U("");
}
};
TBK._1U=function(){
if(this._WG!=this._TD){
this._2U(false);
this._3U(false);
}
_Book._GD.stop();
this._ID.stop(this._WG,this._MD,this._WD,this._XD);
if(window['_Question']){
_Question._uR=null;
}
if(_Book._GD._kE){
_Book._GD._kE._NU=null;
_Book._GD._kE=null;
}
_CG.stop();
window.close()};
TBK._gE=function(){
for(var i=0;i<this._sS.length;i++)
{
this._bU(i);
}
};
TBK._kU=function(url){
var _4U="";
var i=url.indexOf("#");
var j=url.indexOf("?");
if((i==-1)&&(j==-1)){
_4U=url;
}
else if(i==-1){
_4U=url.substring(0,j);
}
else if(j==-1){
_4U=url.substring(0,i);
}
else{
_4U=url.substring(0,Math.min(i,j));
}
return _4U;
};
TBK._DP=function(_5U,_6U){
var _7U=_5U.toString(16);
while(_7U.length<_6U)
{
_7U="0"+_7U;
}
return _7U;
};
TBK._aH=function(string,_ZK,_8U){
var start=0;
var _YK=0;
var _EJ=[];
while((_YK=string.indexOf(_ZK,start))!=-1)
{
if(start<_YK){
_EJ[_EJ.length]=_8U?string.substring(start,_YK).toLowerCase():string.substring(start,_YK);
}
start=_YK+1;
}
if(start<string.length){
_EJ[_EJ.length]=_8U?string.substring(start).toLowerCase():string.substring(start);
}
return _EJ;
};
TBK._SU=function(n){
return this._RU(n-32);
};
TBK._9U=function(v1,v2){
return(v1-0)+(v2-0);
};
TBK._eF=function(value){
if(typeof(value)=="string"){
return(value.toLowerCase()!="false");
}
else return value;
};
TBK.__U=function(v1,v2){
return(""+v1)+(""+v2);
};
TBK._$U=function(v){
return((v-0)>=0)?Math.floor(v):Math.ceil(v);
};
TBK._aV=function(_mG){
return(typeof(_mG)=="object")?_mG.length:0;
};
TBK._bV=function(){
window.alert(this._pD('_qD.130'));
};
TBK._EP=function(_kE){
_kE._NU=null;
this._cV(_kE);
};
TBK._iH=function(value,_6U){
var text=""+value;
return"00000000".substr(0,_6U-text.length)+text;
};
TBK._XV=[];
TBK._4D=null;
TBK._YV=function(_jG,value){
this._XV[_jG]=value;
};
TBK._OC_2D=function(){
return this._aS;
};
TBK._7C=function(_3C,_eT){
if(_3C){
if(_eT&&_eT.toLowerCase()=="log"){
_3C=_3C.replace(/\r\n/g," ");
_3C=_3C.replace(/\r|\n|\t/g," ");
return _3C;
}
else{
var _sG=new RegExp(",|;|\"|\{|\}","g");
_3C=_3C.replace(_sG,"");
_3C=_3C.replace(/\r\n/g," ");
_3C=_3C.replace(/\r|\n/g," ");
return _3C;
}
}
return _3C;
};
TBK._7D=function(){
var i;
for(i=0;i<this._JG.length;i++)
{
var __D=this._OC_iU(i);
_Book._GD.resetPage(__D);
}
this._ID._7D();
};
TBK._YH=function(_nG){
_ZV=""+_nG;
if(_ZV){
_ZV=_ZV.replace(/&/g,"&amp;");
_ZV=_ZV.replace(/>/g,"&gt;");
_ZV=_ZV.replace(/</g,"&lt;");
_ZV=_ZV.replace(/\r\n/g,"<BR>");
_ZV=_ZV.replace(/\n\r/g,"<BR>");
_ZV=_ZV.replace(/\r/g,"<BR>");
_ZV=_ZV.replace(/\n/g,"<BR>");
_ZV=_ZV.replace(new RegExp("<BR> ","g"),"<BR>&nbsp;");
_ZV=_ZV.replace(new RegExp(" (?= )","g"),"&nbsp;");
return _ZV;
}
else{
return"";
}
};
TBK._0V=function(_ZV){
_nG=""+_ZV;
if(_nG){
_nG=_nG._3L();
_nG=_nG.replace(/\r/g,"");
_nG=_nG.replace(/\n/g,"");
var re=new RegExp("^(<p>|<li>|<tr>|<pre>|<div>)","gi");
while(_nG.search(re)>-1)
{
_nG=_nG.replace(re,"");
}
_nG=_nG.replace(/<br>|<p>|<li>|<\/tr>|<\/?_1V>|<\/?_2V>/gi,"\n");
_nG=_nG.replace(/<hr>/gi,"\n\n");
_nG=_nG.replace(/<\/?[^>]+>/gi,"");
var _3V=this._4V;
if(!_3V){
this._4V=document.createElement("span");
_3V=this._4V;
}
_nG=_nG.split("\n");
for(i=0;i<_nG.length;i++)
{
_3V.innerHTML=_nG[i];
if(_3V.firstChild){
_nG[i]=_3V.firstChild.nodeValue}
else{
_nG[i]="";
}
}
return _nG.join("\n");
}
else{
return"";
}
};
TBK._LV=false;
TBK._MV=null;
TBK._NV=null;
TBK._OV=false;
TBK.logData=[];
TBK._PV=function(){
if(!this._OV){
this._MV=document.getElementById("sysemail");
this._NV=window.prompt(this._pD('_qD.14'),"");
this._OV=true;
}
};
TBK._DR=function(_4C){
if(this._gS&&_4C._wM){
var _sH=_4C._OC_ZD()+"\t";
_sH+=_4C.name+"\t";
_sH+=_4C._5F+"\t";
if(!_4C._TG){
_sH=_sH+this._pD('_qD.17');
}
else if(!_4C._rR){
_sH=_sH+this._pD('_qD.18');
}
else{
_sH=_sH+this._pD('_qD.19');
}
_sH+="\t";
_sH+=Math.round(_4C.lastScore)+"\t";
_sH+=_4C._UG+"\t";
_sH+=_4C.locked+"\t";
_sH+=_4C.scoreCount+"\t";
_sH+=_4C._MG+"\t";
_sH+=this._pG(_4C._zM)+"\t";
_sH+=_4C._NP+"\t";
_sH+="[\t";
for(var i=0;i<_4C._8F.length;i++)
{
_lD=_4C._8F[i].findAnswerIdentification();
_lD=_lD.replace(/\r\n/g," ");
_lD=_lD.replace(/\r|\n|\t/g," ");
_lD=_lD.replace(/;/g,", ");
_sH+=_lD+"; ";
_sH+=_4C._8F[i].getAnswered()+"; ";
_sH+=_4C._8F[i]._YC+"\t";
}
_sH+="]\t";
_sH+=_4C.getLogData("userAnswer");
this.logData[this.logData.length]=_sH;
}
};
TBK._3U=function(_QV){
if(this._gS&&this._7M){
this._PV();
var _RV="";
if(this._cS){
for(var i=0;i<this._cS.length;i++)
{
_RV+=this._cS[i]+"; ";
}
}
if(this._dS){
_RV+=this._NV;
}
if(_RV){
if(!_QV){
var _SV=this._OC_2D()+" "+this._pD('_qD.20');
this._TV(_RV,_SV);
}
this._2U(true);
this._UV("\r\n");
this._UV(this._pD('_qD.21'));
this._UV("\r\n");
for(var i=0;i<this.logData.length;i++)
{
this._UV(this.logData[i]);
}
if(!_QV){
this._VV();
}
}
}
this.logData=[];
};
TBK._2U=function(_QV){
if(this._hS&&this._7M){
var _WV=0;
var _YG=0;
if(window._Question){
_YG=_Question._ZG();
if(this._0G>this._1G){
_YG=Math.min(this._0G,Math.max(this._1G,_YG));
_WV=Math.round((_YG*100)/this._0G);
}
}
this._PV();
var _RV="";
if(this._eS){
for(var i=0;i<this._eS.length;i++)
{
_RV+=this._eS[i]+"; ";
}
}
if(this._fS){
_RV+=this._NV;
}
if(_QV||_RV){
if(!_QV){
var _SV=this._OC_2D()+" "+this._pD('_qD.22');
this._TV(_RV,_SV);
}
var _oJ=new Array(6);
_oJ[0]=this._OC_2D();
_oJ[1]=this._NV;
_oJ[2]=_YG;
_oJ[3]=this._0G;
_oJ[4]=_WV;
_oJ[5]=this._pG(this._NH-this._$F);
var message=this._LD(this._pD('_qD.23'),_oJ);
this._UV(message);
if(!_QV){
this._VV();
}
}
}
};
TBK._UV=function(_AM){
if(this._LV&&this._MV){
this._MV.SendData(_AM);
}
};
TBK._TV=function(to,_SV){
if(this._MV&&this._NV){
this._LV=this._MV.StartMail(window.location.hostname,this._NV,to,_SV);
}
};
TBK._VV=function(){
if(this._LV&&this._MV){
this._MV.SendEnd();
this._MV.SendQuit();
}
};
function _ExternalEvent(id,event,_ED,_JF,_KF){
var _oH=id?this._RD(id):_Page._0D;
if(_oH){
this._wP=_JF;
this._xP=_KF;
if(event=="focus"){
this._UCfocus(_oH,true);
}
else if(event=="blur"){
this._UCfocus(_oH,false);
}
else{
this._0T(_oH,event,_ED);
}
}
}
function _ExternalEventX(id,event,_ED,_JF,_KF){
var _OM="_ExternalEvent ( '"+id+"', '"+event+"', '"+_ED+"', "+_JF+", "+_KF+" )";
_5V=window.setTimeout(_OM,1);
}
function _ObjectListener(event,_ED,_oH,_UO){
this.event=event;
this._ED=_ED;
this._oH=_oH;
this._UO=_UO;
}
TBK.Persistence=new Object();
TBK.Persistence._1O=0;
TBK.Persistence._SQ=1;
TBK.Persistence._3O=2;
TBK.Persistence._LH={};
TBK.Persistence._MH=null;
TBK.Persistence.setProperty=function(id,_WO,_pI){
var ob=this.dereference(id);
var _TQ=this._UQ(ob,_WO);
var _bP=ob._OC_bP(_WO);
if(_bP){
var __G=ob[_bP](_pI);
if(typeof __G=="undefined"){
_CG._DG("WARNING: "+ob.id+"."+_bP+"() returns undefined value.");
}
else{
_pI=__G;
}
}
else{
ob[_WO]=_pI;
}
this._VQ(ob,_WO,_pI,_TQ);
return _pI;
};
TBK.Persistence.setExternalProperty=function(id,_WO,_pI){
var ob=this.dereference(id);
if(ob.setExternalProperty){
return ob.setExternalProperty(_WO,_pI);
}
else{
return null;
}
};
TBK.Persistence.getProperty=function(id,_WO){
var ob=this.dereference(id);
var _8D=ob;
if(!_8D.isInstance('_Page')){
_8D=_8D._sL;
}
if(_8D&&_8D._WQ){
var _1D=_8D.id;
var _pI;
if(typeof(this._LH[_1D])!="undefined"){
_pI=this._LH[_1D][ob.id+"."+_WO];
if(typeof _pI!="undefined"){
return _pI;
}
}
}
var __O=ob._OC__O(_WO);
if(__O){
return ob[__O]();
}
else{
return ob[_WO];
}
};
TBK.Persistence.getExternalProperty=function(id,_WO){
var ob=this.dereference(id);
if(ob.getExternalProperty){
return ob.getExternalProperty(_WO);
}
else{
return null;
}
};
TBK.Persistence._mP=function(ob,_WO){
this._UQ(ob,_WO);
};
TBK.Persistence._8M=function(_XQ){
this._MH=_XQ;
this._LH=TBK._hD(_XQ);
this._KH();
};
TBK.Persistence._KH=function(){
_CG._KH(this._LH,this._MH);
};
TBK.Persistence._HG=function(_1D){
if(_1D){
if(typeof(this._LH[_1D])!="undefined"){
return true;
}
}
return false;
};
TBK.Persistence.__C_YQ=function(_8D){
if(_8D){
var _1D=_8D.id;
if(typeof(this._LH[_1D])!="undefined"){
_8D._WQ=true;
for(var _TQ in this._LH[_1D])
{
var _1K=_TQ.lastIndexOf(".");
if(_1K>-1){
var id=_TQ.substring(0,_1K);
var _WO=_TQ.substring(_1K+1,_TQ.length);
var ob=TBK._RD(id);
this._UQ(ob,_WO);
this.__C_ZQ(ob,_WO,TBK._0Q(this._LH[_1D][_TQ]));
}
}
delete _8D._WQ;
}
}
};
TBK.Persistence._GG=function(_LH,_1D,_EG,_WO,_pI){
if(_LH){
if(typeof(_LH[_1D])=="undefined"){
_LH[_1D]=new Object();
}
_LH[_1D][_EG+"."+_WO]=_pI;
}
};
TBK.Persistence._1Q=function(id){
var _2Q=TBK._OC_2Q();
var url=id?id+".html":"about:blank";
if(TBK._3Q){
_2Q.src=url;
}
else{
_2Q.contentWindow.location.replace(url);
}
};
TBK.Persistence._4Q={};
TBK.Persistence._5Q=function(id){
var _8D=window[id];
if(_8D){
return _8D;
}
TBK._6Q(id+".js");
_8D=window[id];
if(_8D){
this._4Q[id]=_8D;
_8D._sQ(true);
this.__C_YQ(_8D);
return _8D;
}
else{
return null;
}
};
TBK.Persistence._7Q=function(id){
var _8D=window[id];
if(!_8D){
TBK._6Q(id+".js");
_8D=window[id];
}
if(_8D){
this._8Q(_8D);
return _8D;
}
else{
return null;
}
};
TBK.Persistence._8Q=function(_8D){
delete this._4Q[_8D.id];
if(_8D.overlay){
this._8Q(_8D.overlay);
}
if(_8D.underlay){
this._8Q(_8D.underlay);
}
};
TBK.Persistence._9Q=function(){
for(var id in this._4Q)
{
var _8D=this._4Q[id];
_8D._vQ(true,true);
window[id]=null;
delete this._4Q[id];
}
};
TBK.Persistence.persistProperty=function(id,_WO,_lP){
var ob=this.dereference(id);
var _TQ=this._UQ(ob,_WO);
var _pI=this.getProperty(id,_WO);
this._VQ(ob,_WO,_pI,_TQ,_lP);
};
TBK.Persistence._UC_pI=function(id,_WO,_pI){
var ob=this.dereference(id);
var _TQ=this._UQ(ob,_WO);
this.__C_ZQ(ob,_WO,_pI);
this._VQ(ob,_WO,_pI,_TQ);
};
TBK.Persistence.dereference=function(id){
if(!id){
return null;
}
if(id.id){
return id;
}
var ob=TBK._RD(id);
if(ob){
return ob;
}
var _1D=TBK._eG(id);
this._5Q(_1D);
return TBK._RD(id);
};
TBK.Persistence._UQ=function(ob,_WO){
var __Q=null;
var _XH=ob._XH[_WO];
if(typeof(_XH)=="undefined"||typeof(_XH._OH)=="undefined"){
var _VO=this._SQ;
}
else{
var _VO=_XH._OH;
}
if(_VO>=this._SQ){
var _$Q=ob._$Q;
if(typeof(_$Q)=="undefined"){
ob._$Q=new Object();
_$Q=ob._$Q;
}
__Q=_$Q[_WO];
if(typeof(__Q)=="undefined"){
__Q=this.getProperty(ob,_WO);
if(typeof(__Q)=="undefined"){
_CG._DG("WARNING: Default value for "+_WO+" of object "+ob.id+" is undefined.");
__Q=null;
}
else{
__Q=TBK._oG(__Q,true);
}
_$Q[_WO]=__Q;
}
}
var _TQ=new Object();
_TQ._VO=_VO;
_TQ.__Q=__Q;
return _TQ;
};
TBK.Persistence._VQ=function(ob,_WO,_pI,_TQ,_lP){
_pI=TBK._oG(_pI,true);
if(_TQ._VO>=this._SQ){
var _1D=TBK._eG(ob.id);
if(!_lP&&_pI===_TQ.__Q){
this._tP(this._LH,_1D,ob.id,_WO);
if(_TQ._VO>=this._3O||ob._OC_VO()>=this._3O){
this._tP(this._MH,_1D,ob.id,_WO);
}
}
else{
this._GG(this._LH,_1D,ob.id,_WO,_pI);
if(_TQ._VO>=this._3O||ob._OC_VO()>=this._3O){
this._GG(this._MH,_1D,ob.id,_WO,_pI);
}
}
}
this._KH();
};
TBK.Persistence._tP=function(_LH,_1D,_EG,_WO){
if(_LH){
if(typeof(_LH[_1D])!="undefined"){
delete _LH[_1D][_EG+"."+_WO];
}
}
};
TBK.Persistence.__C_ZQ=function(ob,_WO,_pI){
var _aP=ob._OC_aP(_WO);
if(_aP){
ob[_aP](_pI);
}
else{
var _bP=ob._OC_bP(_WO);
if(_bP){
ob[_bP](_pI);
}
else{
ob[_WO]=_pI;
}
}
};
function _Object(id,_mC,enabled,visibility,_nC,name,title,parent){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
if(!this.constructor.prototype.hasOwnProperty('_AC')){
this.constructor.prototype._AC={};
this.constructor.prototype._AC['_Object']=true;
this.constructor.prototype._XH={};
this._UC_BO('_UE','_CO');
}
this.id=id;
this._mC=_mC;
this.enabled=enabled;
this.visibility=visibility;
this._nC=_nC;
this.name=name;
this.title=title;
this.parent=parent;
this._tI=[];
var i=this.name.indexOf(" (");
this._DO=((i>0)?this.name.substring(0,i):this.name);
this._UE=false;
this._EO=false;
this._2I=false;
this._FO=0;
this._GO=[];
this._HO=false;
this._IO=-1;
this._JO=enabled;
this._qI=0;
this._rI=0;
this._KO=visibility;
this._LO=false;
this._MO=false;
this._xF=false;
this.z=0;
this.backgroundColor=null;
this.left=null;
this.top=null;
this._sL=null;
this._NO={};
this._OO={};
this._PO={};
this._QO={};
this._RO=null;
if(this.parent&&this.parent._SO){
this.parent._SO(this);
}
this._sL=this._9C('_Page');
if(this._nC&&this._sL){
this._sL._TO(this);
}
}
}
_Object.prototype.addEventListener=function(event,_ED,_oH,_UO){
if(_UO.indexOf("_")==0){
this._OO[event+"."+_ED+"."+_oH+"."+_UO]=new _ObjectListener(event,_ED,_oH,_UO);
eval(_oH+"."+_UO+"="+_UO);
this._EL(event);
}
else{
this._NO[event+"."+_ED+"."+_oH+"."+_UO]=new _ObjectListener(event,_ED,_oH,_UO);
this._EL(event);
}
};
_Object.prototype.cancelBubble=function(){
this._EO=true;
};
_Object.prototype.fireEvent=function(event,_ED,_aN){
for(var _oH=this;_oH;_oH=_oH.parent)
{
_oH._EO=false;
_oH.fireEventInternal(event,_ED,this,_aN);
if((event=="mousemove")||_oH._EO)return;
}
if(event.indexOf("key")!=-1)_Book._GD.fireEventInternal(event,_ED,this,_aN);
};
_Object.prototype.getEnabled=function(){
return this.enabled;
};
_Object.prototype.getId=function(){
return this.id;
};
_Object.prototype.getName=function(){
return this._DO;
};
_Object.prototype._OC_VO=function(){
return this._RO;
};
_Object.prototype.getProperty=function(_WO){
return TBK.Persistence.getProperty(this,_WO);
};
_Object.prototype.getShowing=function(){
if(!this._sL||!this._sL.visibility){
return false;
}
else{
for(var parent=this;parent;parent=parent.parent)
{
if(!parent.visibility){
return false;
}
}
return true;
}
};
_Object.prototype.getTransparent=function(){
return(this.getBackgroundColor()==-1);
};
_Object.prototype.getVisible=function(){
return this.visibility;
};
_Object.prototype.getZorder=function(){
return this._OC_CI()-(this._MO?this._sL.z:0);
};
_Object.prototype.isInstance=function(_AC){
return _AC?this._AC[_AC]:true;
};
_Object.prototype.moveAbove=function(id){
var _XO=TBK._RD(id);
if(_XO){
this.setZorder(_XO.getZorder()+1);
}
};
_Object.prototype.moveBelow=function(id){
var _XO=TBK._RD(id);
if(_XO){
this.setZorder(_XO.getZorder()-1);
}
};
_Object.prototype.paint=function(){
if(this._UE&&this._DF){
this._DF();
}
};
_Object.prototype.reset=function(){
if(this._bD){
this._bD();
}
this._YO();
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
this._tI[i].reset();
}
}
if(this._ZO){
this._ZO();
}
this.fireEventInternal("reset","",this);
};
_Object.prototype.restoreEnabled=function(enabled){
this.enabled=TBK._eF(enabled);
this.paint();
};
_Object.prototype.restoreLeft=function(x){
this._UC_HL(1*x);
};
_Object.prototype.restoreVisible=function(visible){
this._UC_JL(TBK._eF(visible));
};
_Object.prototype.setEnabled=function(enabled){
this.restoreEnabled(enabled);
this.fireEvent("change","enabled");
return this.getEnabled();
};
_Object.prototype.setHeight=function(cy){
this._UC__N(1*cy);
this.fireEvent("change","height");
return this.getHeight();
};
_Object.prototype.setLeft=function(x){
this.restoreLeft(x);
this.fireEvent("change","left");
return this.getLeft();
};
_Object.prototype.setProperty=function(_WO,_pI){
return TBK.Persistence.setProperty(this,_WO,_pI);
};
_Object.prototype.setTop=function(y){
this._UC_IL(1*y);
this.fireEvent("change","top");
return this.getTop();
};
_Object.prototype.setTransparent=function(transparent){
if(TBK._eF(transparent)){
this.setBackgroundColor(-1);
}
else{
this.setBackgroundColor(this._IO);
}
this.fireEvent("change","transparent");
return this.getTransparent();
};
_Object.prototype.setVisible=function(visible){
this._UC_JL(TBK._eF(visible));
this.fireEvent("change","visible");
return this.getVisible();
};
_Object.prototype.setWidth=function(cx){
this._UC_bO(1*cx);
this.fireEvent("change","width");
return this.getWidth();
};
_Object.prototype.setZorder=function(z){
var zz=z-0;
if((zz!=this.getZorder())||(zz<=1)){
if((zz==0)&&this.parent){
zz=_Page._0O;
for(var i=0;i<this.parent._tI.length;i++)zz=Math.max(this.parent._tI[i].z,zz);
this._UC_CI(zz+1);
}
else if((zz==1)&&this.parent){
zz=_Page._DI;
for(var i=0;i<this.parent._tI.length;i++)zz=Math.min(this.parent._tI[i].z,zz);
this._UC_CI(zz-1);
}
else this._UC_CI(zz+(this._MO?this._sL.z:0));
this.fireEvent("change","zorder");
}
return this.getZorder();
};
_Object.prototype.toBack=function(){
this.setZorder(1);
};
_Object.prototype.toFront=function(){
this.setZorder(0);
};
_Object.prototype.trigger=function(){
this.fireEventInternal("click","",this);
if(this._UE&&this._ZN){
this._ZN();
}
this.fireEventInternal("trigger","",this);
};
_Object.prototype._UC_BO=function(_WO,_OH){
if(!this._XH[_WO]){
this._XH[_WO]={};
}
switch(_OH){
case '_CO':this._XH[_WO]._OH=TBK.Persistence._1O;
break;
case '_2O':this._XH[_WO]._OH=TBK.Persistence._3O;
break;
default:delete this._XH[_WO]._OH;
}
};
_Object.prototype._UC_VO=function(_OH){
if(_OH=='_2O'){
this._RO=TBK.Persistence._3O;
}
else{
this._RO=null;
}
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
this._tI[i]._UC_VO(_OH);
}
}
}
};
_Object.prototype._hL=function(_zL){
if(!this._UE){
this._VE();
this.backgroundColor=this.getBackgroundColor();
if(!this.left){
this.left=this.getLeft();
}
if(!this.top){
this.top=this.getTop();
}
if(!this.width){
this.width=this.getWidth();
}
if(!this.height){
this.height=this.getHeight();
}
this._IO=this.backgroundColor;
this._qI=this.left;
this._rI=this.top;
if(this._GC){
this._GC(_zL);
}
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
this._tI[i]._hL(_zL);
}
}
}
this._4O();
if(this._yL){
this._yL(_zL);
}
this._UE=true;
if(this._tF){
this._tF();
}
}
};
_Object.prototype.blur=function(){
if(this.getEnabled()&&this.getShowing()){
TBK._UCfocus(this,false);
this._5O();
}
};
_Object.prototype._6O=function(){
this._PO=this._NO;
this._QO=this._OO;
this._NO={};
this._OO={};
};
_Object.prototype._TF=function(){
var _7O={};
for(var x in this._OO)
{
if(this._OO[x])_7O[x]=this._OO[x];
}
this._OO=_7O;
};
_Object.prototype._aI=function(_XO){
var x1=0,y1=0,x2=0,y2=0;
for(var parent=this;!parent.isInstance('_Page');parent=parent.parent)
{
if(!parent.isInstance('_Group'))x1+=parent.getProperty('left'),y1+=parent.getTop();
}
if(_XO){
for(var parent=_XO;!parent.isInstance('_Page');parent=parent.parent)
{
if(!parent.isInstance('_Group'))x2+=parent.getProperty('left'),y2+=parent.getTop();
}
}
return[x2-x1,y2-y1];
};
_Object.prototype._8I=function(){
var x=TBK._AI;
var y=TBK._BI;
for(var parent=this;!parent.isInstance('_Page');parent=parent.parent)
{
if(!parent.isInstance('_Group')){
x-=parent.getProperty('left'),y-=parent.getTop();
}
}
return[x,y];
};
_Object.prototype.dereference=function(){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
this._tI[i]=TBK._RD(this._tI[i]);
if(this._tI[i]){
this._tI[i].dereference();
}
}
}
};
_Object.prototype._tD=function(_AC){
var _8O=[];
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
var _KL=this._tI[i];
if(_KL&&_KL.isInstance(_AC))_8O[_8O.length]=_KL;
}
}
return _8O;
};
_Object.prototype._9C=function(_AC){
var parent=this.parent;
while(parent&&!parent.isInstance(_AC))parent=parent.parent;
return parent;
};
_Object.prototype.focus=function(){
if(this.getEnabled()&&this.getShowing()){
TBK._UCfocus(this,true);
this._9O();
return true;
}
else return false;
};
_Object.prototype._OC_UE=function(){
return this._UE;
};
_Object.prototype._OC__O=function(_WO){
var _$O='_OC'+_WO;
if(this[_$O]){
return _$O;
}
_$O="get"+_WO.charAt(0).toUpperCase()+_WO.substring(1,_WO.length);
if(this[_$O]){
return _$O;
}
return null;
};
_Object.prototype._OC_aP=function(_WO){
var _$O='__C'+_WO;
if(this[_$O]){
return _$O;
}
_$O="restore"+_WO.charAt(0).toUpperCase()+_WO.substring(1,_WO.length);
if(this[_$O]){
return _$O;
}
return null;
};
_Object.prototype._OC_bP=function(_WO){
var _$O='_UC'+_WO;
if(this[_$O]){
return _$O;
}
_$O="set"+_WO.charAt(0).toUpperCase()+_WO.substring(1,_WO.length);
if(this[_$O]){
return _$O;
}
return null;
};
_Object.prototype._OC_CI=function(){
return this.z;
};
_Object.prototype._FL=function(x,y){
var xx=x-this.getLeft();
var yy=y-this.getTop();
if(this.getShowing()&&!this._2I&&(x>=this.getLeft())&&(x<(this.getLeft()+this.getWidth()))&&(y>=this.getTop())&&(y<(this.getTop()+this.getHeight()))){
var _cP=this._GL(xx,yy);
return _cP?_cP:this;
}
return null;
};
_Object.prototype._GL=function(x,y){
if(this._tI){
for(var i=this._tI.length-1;i>=0;i--)
{
var _cP=this._tI[i]._FL(x,y);
if(_cP)return _cP;
}
}
return null;
};
_Object.prototype._5L=function(_XE){
this._MO=!this._9C('_Layer')&&!this._9C('_Answerable');
if(this._sL&&this._DO){
this._sL._dP[this._DO]=this.id;
}
if(this._WE){
this._WE(_XE);
}
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
this._tI[i]._5L(_XE);
}
}
}
if(this._eP){
this._eP(_XE);
}
this._HO=true;
};
_Object.prototype._fP=function(){
if(this._dI){
this._dI();
}
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
this._tI[i]._fP();
}
}
}
this._tI=null;
this.parent=null;
this._gP();
this._sL=null;
this._HO=false;
};
_Object.prototype._hP=function(name){
return this._sL._hP(this.id+"_"+name);
};
_Object.prototype._IM=function(_JM,_KM){
var _ED="";
if(_JM){
var __G=_JM.toString();
var _gH=__G.indexOf("#");
if((_gH>-1)&&((__G.length-1)>_gH)){
var _iP=__G.indexOf("?");
if((_iP>-1)&&(_gH<_iP))_ED=__G.substring(_gH+1,_iP);
else _ED=__G.substring(_gH+1);
}
}
return _ED;
};
_Object.prototype._cO=function(){
this._YO();
if(this._ZE){
this._ZE();
}
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
this._tI[i]._cO();
}
}
}
if(this._AO){
this._AO();
}
};
_Object.prototype._jP=function(){
if(this._YE){
this._YE();
}
this.paint();
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
this._tI[i]._jP();
}
}
}
if(this._kP){
this._kP();
}
};
_Object.prototype.persistProperty=function(_WO,_lP){
TBK.Persistence.persistProperty(this,_WO,_lP);
};
_Object.prototype.savePropertyDefault=function(_WO){
TBK.Persistence._mP(this,_WO);
};
_Object.prototype._nP=function(){
if(this._oP){
this._oP();
}
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i])this._tI[i]._nP();
}
}
if(this._pP){
this._pP();
}
this._LO=true;
};
_Object.prototype._SO=function(ob){
this._tI[this._tI.length]=ob;
};
_Object.prototype._qP=function(){
this._NO=this._PO;
this._OO=this._QO;
};
_Object.prototype._RF=function(event,_ED,_oH,_UO){
var _NO=(_UO.indexOf("_")==0)?this._OO:this._NO;
_NO[event+"."+_ED+"."+_oH+"."+_UO]=null;
};
_Object.prototype._rP=function(name,_sP){
var _kD=this._sL.getProperty(this.id+"_"+name);
if(_sP){
this._sL._tP(this.id+"_"+name);
}
return _kD;
};
_Object.prototype._UC_2I=function(value){
this._2I=value;
return value;
};
_Object.prototype._UC_fF=function(dx){
if(dx!=0){
this._UC_pI("left",dx+this.getLeft());
}
};
_Object.prototype._UC_pI=function(_WO,_pI){
return TBK.Persistence._UC_pI(this,_WO,_pI);
};
_Object.prototype._UC_gF=function(dy){
if(dy!=0){
this._UC_pI("top",dy+this.getTop());
}
};
_Object.prototype._LL=function(_TI){
if(_TI){
this._UC_JL(this.visibility);
}
else{
var __G=this.visibility;
this._UC_JL(false);
this.visibility=__G;
}
};
_Object.prototype._4O=function(){
for(var x in this._OO)if(this._OO[x])this._EL(this._OO[x].event);
for(var x in this._NO)if(this._NO[x])this._EL(this._NO[x].event);
};
_Object.prototype.fireEventInternal=function(event,_ED,_HF,_aN){
if(this.getEnabled()){
for(var x in this._OO)
{
var _uP=this._OO[x];
if(_uP&&(event==_uP.event)&&((_ED==_uP._ED)||(_uP._ED=="*")))this._vP(event,_ED,_HF,_aN,_uP._oH,_uP._UO);
}
if(event!="mousemove"){
for(var x in this._NO)
{
var _uP=this._NO[x];
if(_uP&&(event==_uP.event)&&((_ED==_uP._ED)||(_uP._ED=="*")))this._vP(event,_ED,_HF,_aN,_uP._oH,_uP._UO);
}
}
}
};
_Object.prototype._vP=function(event,_ED,_HF,_aN,_oH,_UO){
_oH=TBK.Persistence.dereference(_oH);
var _OM=_oH.id+"."+_UO+"(\""+event+"\",\""+_ED+"\","+_HF.id;
if((event.indexOf("click")!=-1)||(event.indexOf("mouse")!=-1))_OM+=","+TBK._AI+","+TBK._BI+","+TBK._wP+","+TBK._xP;
else if(event.indexOf("key")!=-1)_OM+=","+TBK._yP+","+TBK._eL(TBK._zP)+","+TBK._wP+","+TBK._xP;
else if(_aN&&(_aN.length>0)){
for(var i=0;i<_aN.length;i++)_OM+=","+TBK._eL(_aN[i]);
}
_OM+=")";
eval(_OM);
};
_Object.prototype._YO=function(){
for(var i=this._GO.length-1;i>=0;i--)
{
window.clearTimeout(this._GO[i]);
this._GO.length--;
}
};
_Object.prototype._gP=function(){
var ob=window;
var id=this.id.split(".");
for(var i=0;i<id.length-1;i++)
{
ob=ob[id[i]];
if(typeof(ob)=="undefined"){
return;
}
}
ob[id[id.length-1]]=null;
};
_Object.prototype.applyTransition=function(_AP,_BP){
if(this._kE){
TBK.applyTransition(this._kE,_AP,_BP);
}
};
_Object.prototype.getBackgroundImage=function(){
if(this._kE&&this._kE.style.backgroundImage){
var image=this._kE.style.backgroundImage;
return image.substring(4,image.length-1);
}
else return"";
};
_Object.prototype.getHeight=function(){
return this._kE?this._kE.offsetHeight:0;
};
_Object.prototype.getLeft=function(){
if(this.left){
return this.left;
}
return this._kE?(parseInt(this._kE.style.left)):0;
};
_Object.prototype.getTitle=function(){
return this._kE?this._kE.title:"";
};
_Object.prototype.getTop=function(){
if(this.top){
return this.top;
}
return this._kE?parseInt(this._kE.style.top):0;
};
_Object.prototype.getWidth=function(){
return this._kE?this._kE.offsetWidth:0;
};
_Object.prototype.restoreBackgroundColor=function(color){
if(this._kE){
var _CP=TBK._DP(color,6);
this._kE.style.backgroundColor=(color==-1)?"":("#"+_CP);
}
};
_Object.prototype.setBackgroundColor=function(color){
if(this._kE){
this.restoreBackgroundColor(color);
this.fireEvent("change","backgroundColor");
}
return this.getBackgroundColor();
};
_Object.prototype.setBackgroundImage=function(image){
if(this._kE){
this._kE.style.backgroundImage=image?("url("+image+")"):"";
this.fireEvent("change","backgroundImage");
}
return this.getBackgroundImage();
};
_Object.prototype.setTitle=function(title){
if(this._kE){
this._kE.title=title;
this.fireEvent("change","title");
}
return this.getTitle();
};
_Object.prototype._VE=function(){
this._kE=TBK._rF(this._mC);
if(this._kE){
TBK._bN(this._kE,this,null);
}
};
_Object.prototype._zO=function(){
if(this._kE){
TBK._EP(this._kE);
}
this._kE=null;
};
_Object.prototype._EL=function(event){
if(this._kE)TBK._FP(this._kE,event);
};
_Object.prototype._GP=function(){
if(this._wF){
this._wF();
}
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
this._tI[i]._GP();
}
}
}
if(this._HP){
this._HP();
}
this._zO();
this._UE=false;
};
_Object.prototype._UC_HL=function(x){
this.left=x;
if(this._kE){
this._kE.style.left=Math.round(x)+'px';
}
return true;
};
_Object.prototype._UC__N=function(cy){
this.width=cy;
if(this._kE){
this._kE.style.height=cy+'px';
this._kE.style.clip="rect(0 "+this.getWidth()+" "+cy+" 0)";
}
};
_Object.prototype._UC_IL=function(y){
this.top=y;
if(this._kE){
this._kE.style.top=Math.round(y)+'px';
}
};
_Object.prototype._UC_JL=function(visible){
if(!visible&&TBK._UC_IP==this){
this.blur();
}
this.visibility=visible;
this._2I=!visible;
if(this._kE&&(!visible||(this.parent&&this.parent.getShowing()))){
this._kE.style.visibility=visible?"inherit":"hidden";
}
};
_Object.prototype._UC_bO=function(cx){
this.width=cx;
if(this._kE){
this._kE.style.width=cx+'px';
this._kE.style.clip="rect(0 "+cx+" "+this.getHeight()+" 0)";
}
};
_Object.prototype._UC_CI=function(z){
this.z=z;
if(this._kE){
this._kE.style.zIndex=parseInt(z);
}
};
_Object.prototype._yL=function(_zL){
if(_zL){
this._UC_CI(++this._sL._AL);
}
};
_Object.prototype._5O=function(){
if(this._kE&&this._kE.blur)this._kE.blur();
};
_Object.prototype._9O=function(){
if(this._kE&&this._kE.focus)this._kE.focus();
};
_Object.prototype._JP=function(event){
if(this._kE)TBK._KP(this._kE,event);
};
_Object.prototype.getBackgroundColor=function(){
if(this.backgroundColor){
return this.backgroundColor;
}
if(this._kE&&this._kE.style.backgroundColor){
var color=this._kE.style.backgroundColor.substring(1);
return parseInt("0x"+color);
}
else return-1;
};
function _Group(id,enabled,visibility,_nC,name,title,parent){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,null,enabled,visibility,_nC,name,title,parent);
if(!this.constructor.prototype._AC['_Group']){
this.constructor.prototype._AC['_Group']=true;
}
}
}
_Group.prototype=new _Object();
_Group.prototype.getItemSelected=function(){
_kD=[];
if(this._tI){
var i;
for(i=0;i<this._tI.length;i++)
{
var _lD=this._tI[i];
if(_lD.isInstance('_RadioButton')){
_kD[_kD.length]=_lD.getChecked();
}
}
}
return _kD;
};
_Group.prototype.getItemText=function(){
_kD=[];
if(this._tI){
var i;
for(i=0;i<this._tI.length;i++)
{
var _lD=this._tI[i];
if(_lD.isInstance('_RadioButton')){
_kD[_kD.length]=_lD.getCaption();
}
}
}
return _kD;
};
_Group.prototype.getSelection=function(){
_kD=[];
if(this._tI){
for(var i in this._tI)
{
var _lD=this._tI[i];
if(_lD.isInstance('_RadioButton')){
if(_lD.getChecked()){
return _lD.getCaption();
}
}
}
}
return"";
};
_Group.prototype.setItemSelected=function(_xL){
if(this._tI){
var _XK=0;
var i;
for(i=0;i<this._tI.length;i++)
{
var _lD=this._tI[i];
if(_lD.isInstance('_RadioButton')){
_lD.setProperty('answered',_xL[_XK]);
_XK++;
}
}
}
this.fireEvent("change","itemSelected");
return this.getItemSelected();
};
_Group.prototype.setItemText=function(itemText){
if(this._tI){
var _XK=0;
var i;
for(i=0;i<this._tI.length;i++)
{
var _lD=this._tI[i];
if(_lD.isInstance('_RadioButton')){
_lD.setCaption(itemText[_XK]);
_XK++;
}
}
}
this.fireEvent("change","itemText");
return this.getItemText();
};
_Group.prototype.setSelection=function(selection){
if(this._tI){
for(var i in this._tI)
{
var _lD=this._tI[i];
if(_lD.isInstance('_RadioButton')){
_lD.setProperty('answered',_lD.getCaption()==selection);
}
}
}
this.fireEvent("change","selection");
return this.getSelection();
};
_Group.prototype._yL=function(_zL){
if(_zL){
this.z=++this._sL._AL;
}
};
_Group.prototype._OC_BL=function(){
var _CL=[0,0];
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
var left=this._tI[i].getProperty('left');
var _DK=left+this._tI[i].getWidth();
if(_CL[1]<=_CL[0]){
_CL[0]=left;
_CL[1]=_DK;
}
else{
if(left<_CL[0]){
_CL[0]=left;
}
if(_DK>_CL[1]){
_CL[1]=_DK;
}
}
}
}
}
return _CL;
};
_Group.prototype._OC_DL=function(){
var _CL=[0,0];
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
var top=this._tI[i].getTop();
var _EK=top+this._tI[i].getHeight();
if(_CL[1]<=_CL[0]){
_CL[0]=top;
_CL[1]=_EK;
}
else{
if(top<_CL[0]){
_CL[0]=top;
}
if(_EK>_CL[1]){
_CL[1]=_EK;
}
}
}
}
}
return _CL;
};
_Group.prototype._EL=function(event){
if((event.indexOf("click")!=-1)||(event.indexOf("key")!=-1)||(event.indexOf("mouse")!=-1)){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
this._tI[i]._EL(event);
}
}
}
};
_Group.prototype.getHeight=function(){
var _CL=this._OC_DL();
return _CL[1]-_CL[0];
};
_Group.prototype.getLeft=function(){
var _CL=this._OC_BL();
return _CL[0];
};
_Group.prototype.getTop=function(){
var _CL=this._OC_DL();
return _CL[0];
};
_Group.prototype.getWidth=function(){
var _CL=this._OC_BL();
return _CL[1]-_CL[0];
};
_Group.prototype._FL=function(x,y){
return this._GL(x,y);
};
_Group.prototype._UC_fF=function(dx){
if(dx!=0){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
this._tI[i]._UC_fF(dx);
}
}
}
};
_Group.prototype._UC_HL=function(x){
this._UC_fF(x-this.getLeft());
};
_Group.prototype._UC_gF=function(dy){
if(dy!=0){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
this._tI[i]._UC_gF(dy);
}
}
}
};
_Group.prototype._UC_IL=function(y){
this._UC_gF(y-this.getTop());
};
_Group.prototype._UC_JL=function(visible){
this.visibility=visible;
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
var _KL=this._tI[i];
if(visible){
_KL._UC_JL(_KL.visibility);
}
else{
var __G=_KL.visibility;
_KL._UC_JL(false);
_KL.visibility=__G;
}
}
}
};
_Group.prototype._UC_CI=function(z){
this.z=z;
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
this._tI[i]._UC_CI(this.z+i);
}
}
};
_Group.prototype._LL=function(_TI){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
this._tI[i]._LL(_TI&this.visibility);
}
}
};
function _OP(_wM,_UG,_dM,_MP,_MG,_NP){
if(arguments.length>0){
if(!this.constructor.prototype._AC['_OP']){
this.constructor.prototype._AC['_OP']=true;
}
this._wM=_wM;
this._UG=_UG;
this._dM=_dM;
this._MP=_MP;
this._MG=_MG;
this._NP=_NP;
}
}
function _Page(id,name,title,_wM,_UG,_dM,_MP,_MG,_NP,overlay,underlay,width,height){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Group.call(this,id,true,false,false,name,title,null);
_OP.call(this,_wM,_UG,_dM,_MP,_MG,_NP);
if(!this.constructor.prototype._AC['_Page']){
this.constructor.prototype._AC['_Page']=true;
}
this._PP=[];
this._QP=null;
this._RP=null;
this._SP=null;
this._TP=null;
this.overlay=overlay;
this.underlay=underlay;
this._dP=[];
this.visited=false;
this._AL=0;
this.width=width;
this.height=height;
this._UP=false;
}
}
_Page.prototype=new _Group();
_OP.call(_Page.prototype);
_Page._VP=[];
_Page._WP=new Object();
_Page._XP=16;
_Page._YP=0;
for(var i=0;i<_Page._XP;i++)
{
_Page._YP+=Math.pow(2,i);
}
_Page._0O=0;
_Page._DI=_Page._YP-1;
_Page._ZP=_Page._YP;
_Page._YI=_Page._YP+32767;
_Page._0P=false;
_Page._1P=[];
_Page._0D=null;
_Page._TP=null;
_Page._2P=[];
_Page.tabIndex=0;
_Page._3P=[];
_Page._4P=null;
_Page.prototype._5P=_Page.prototype.fireEventInternal;
_Page.prototype.fireEventInternal=function(event,_ED,_HF,_aN){
if(this.overlay)this.overlay.fireEventInternal(event,_ED,_HF,_aN);
this._5P(event,_ED,_HF,_aN);
if(this.underlay)this.underlay.fireEventInternal(event,_ED,_HF,_aN);
};
_Page.prototype.getOverlay=function(){
return this.overlay;
};
_Page.prototype.getUnderlay=function(){
return this.underlay;
};
_Page.prototype.getVisited=function(){
return this.visited;
};
_Page.prototype.gotoBack=function(transition){
if(_Page._2P.length>1){
_Page._2P.length--;
TBK._aE.gotoPage(_Page._2P[_Page._2P.length-1],transition);
}
};
_Page.prototype.gotoBook=function(url){
TBK.bootstrap(url,true,"","",false);
};
_Page.prototype.gotoFirst=function(transition){
if(_Page._0D&&_Page._0D._QP){
TBK._aE.gotoPage(_Page._0D._QP,transition);
}
};
_Page.prototype.gotoLast=function(transition){
if(_Page._0D&&_Page._0D._RP){
TBK._aE.gotoPage(_Page._0D._RP,transition);
}
};
_Page.prototype.gotoMarker=function(_ED){
var i=_ED.indexOf("/");
if(i==-1)this.gotoPage(_ED,"");
else this.gotoPage(_ED.substring(0,i),_ED.substring(i+1));
};
_Page.prototype.gotoNext=function(transition){
if(_Page._0D&&_Page._0D._SP){
TBK._aE.gotoPage(_Page._0D._SP,transition);
}
};
_Page.prototype.gotoPage=function(id,transition){
TBK._aE.gotoPage(id,transition);
};
_Page.prototype.gotoPrevious=function(transition){
if(_Page._0D&&_Page._0D._TP){
TBK._aE.gotoPage(_Page._0D._TP,transition);
}
};
_Page.prototype.gotoURL=function(url,id,x,y,cx,cy,_6P,_7P,_8P){
if(url){
url=""+TBK._9P(url);
if(url.indexOf("javascript:")==0){
eval(url.substr(11));
}
else if(url.indexOf("mailto:")==0){
window.location.href=url;
}
else{
var _OM="status=yes";
if((cx>0)&&(cy>0)){
x+=TBK.screenX;
y+=TBK.screenY;
if(cx>=window.screen.availWidth){
x=0;
_8P=(cx>window.screen.availWidth)?true:_8P;
cx=window.screen.availWidth;
}
else{
if(x+cx>window.screen.availWidth){
x=window.screen.availWidth-cx;
}
}
if(cy>=window.screen.availHeight){
y=0;
_8P=(cy>window.screen.availHeight)?true:_8P;
cy=window.screen.availHeight;
}
else{
if(y+cy>window.screen.availHeight){
y=window.screen.availHeight-cy;
}
}
_OM+=",left="+x+",top="+y;
_OM+=",width="+cx+",height="+cy;
}
_OM+=_6P?",toolbar=yes,location=yes,menubar=yes":",toolbar=no,location=no,menubar=no";
_OM+=",resizable="+(_7P?"yes":"no");
_OM+=",scrollbars="+(_8P?"yes":"no");
window.open(url,id.replace(/\./g,""),_OM);
}
}
};
_Page.prototype.popupBook=function(url,__P){
TBK.bootstrap(url,false,TBK._AI,TBK._BI,TBK._eF(__P));
};
_Page.prototype.popupPage=function(id,cx,cy,__P){
TBK._JD();
this.gotoURL("index.html#"+id+"?logonRequired=false&closeOnClick="+(TBK._eF(__P)?"true":"false"),"",TBK._AI,TBK._BI,cx?cx:TBK._$P,cy?cy:TBK._aQ,false,false,false);
};
_Page.prototype.popupText=function(text){
var __G=(text!=null)?""+text:" ";
if(__G.length==0){
__G=" ";
}
this._3K(__G,true,true,true);
};
_Page.prototype._VE=function(){};
_Page.prototype._zO=function(){};
_Page.prototype._tL=function(_CC,_jL){
if(_Page._0D){
switch(_CC){
case "back":return(_Page._2P.length>1);
case "first":return!!(_Page._0D._QP&&(_Page._0D._QP!=_Page._0D.id));
case "last":return!!(_Page._0D._RP&&(_Page._0D._RP!=_Page._0D.id));
case "next":return!!(_Page._0D._SP&&(_Page._0D._SP!=_Page._0D.id));
case "previous":return!!(_Page._0D._TP&&(_Page._0D._TP!=_Page._0D.id));
default:return true;
}
}
else return false;
};
_Page.prototype._uL=function(_CC,_jL,transition){
if(_Page._0D){
switch(_CC){
case "back":return this.gotoBack(transition);
case "book":return this.gotoBook(_jL);
case "first":return TBK._aE.gotoPage(_Page._0D._QP,transition);
case "last":return TBK._aE.gotoPage(_Page._0D._RP,transition);
case "next":return TBK._aE.gotoPage(_Page._0D._SP,transition);
case "previous":return TBK._aE.gotoPage(_Page._0D._TP,transition);
case "page":return TBK._aE.gotoPage(_jL,transition);
case "popup":return this.popupPage(_jL,0,0,false);
case "popup2":return this.popupBook(_jL,false);
case "popupCloseOnClick":return this.popupPage(_jL,0,0,true);
case "popupCloseOnClick2":return this.popupBook(_jL,true);
case "url":return this.gotoURL(_jL,"MEF021852",0,0,0,0,true,true,true);
}
}
};
_Page.prototype._FL=function(x,y){
var _cP=null;
if(this.overlay)if(_cP=this.overlay._FL(x,y))return _cP;
if(_cP=this._GL(x,y))return _cP;
if(this.underlay)if(_cP=this.underlay._FL(x,y))return _cP;
return null;
};
_Page.prototype._bQ=function(id){
var _kJ=false;
if(this.overlay)if(_kJ=this.overlay._bQ(id))return true;
if(id==this.id)return true;
if(this.underlay)if(_kJ=this.underlay._bQ(id))return true;
return false;
};
_Page.prototype._hP=function(name){
return false;
};
_Page.prototype._3K=function(text,_cQ,_rD,_dQ){
if((text==null)||(text.length==0)){
return;
}
TBK._JD();
if(_Page._0P&&_cQ){
_Page._1P[_Page._1P.length]=this.id+"."+'_3K'+"("+TBK._eL(text)+","+_cQ+","+_rD+","+_dQ+")";
}
else{
if(_cQ){
TBK._eQ.style.zIndex=_Page._YI;
TBK._eQ.style.visibility="inherit";
_Page._0P=true;
}
else{
TBK._qF(TBK._eQ);
}
if(_rD){
var ct=Math.max(text.length*14,32);
var cx=Math.min(300,ct);
var cy=8+(12*(Math.floor(ct/cx)+1));
var _fQ=this._gQ(cx,cy);
var xx=_fQ[0];
var yy=_fQ[1];
_fQ=TBK._hQ(TBK.popupText,TBK._iQ,text,cx,cy,true);
cx=_fQ[0];
cy=_fQ[1];
TBK._XI(TBK.popupText,xx,yy,cx,cy,(_Page._YI+_Page._ZP)/2,null,true);
if(_dQ){
TBK._XI(TBK._jQ,xx+12,yy+12,cx,cy,_Page._ZP,null,true);
}
else{
TBK._qF(TBK._jQ);
}
}
else{
TBK._qF(TBK.popupText);
}
}
};
_Page.prototype._TO=function(ob){
this._PP[this._PP.length]=ob;
};
_Page.prototype._tP=function(name){
};
_Page.prototype._LL=function(_TI){
this.visibility=_TI;
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i]){
this._tI[i]._LL(_TI);
}
}
}
};
_Page.prototype._kQ=function(_lQ){
if(this.overlay)this.overlay._kQ(_lQ);
_lQ[_lQ.length]=this;
if(this.underlay)this.underlay._kQ(_lQ);
};
_Page.prototype._mQ=function(_nQ,lo,hi,sz){
if(this.width>sz.width){
sz.width=this.width;
}
if(this.height>sz.height){
sz.height=this.height;
}
var _oQ=Math.round((lo+hi)/2);
if(this.overlay){
this.overlay._mQ(_nQ,_oQ+1,hi,sz);
}
_nQ[_nQ.length]=this;
this.z=_oQ;
if(this.underlay){
this.underlay._mQ(_nQ,lo,_oQ-1,sz);
}
};
_Page.prototype._gQ=function(cx,cy){
var xx=Math.min(TBK._AI+8,TBK._pQ-cx);
var yy=Math.min(TBK._BI+8,TBK._qQ-cy);
return[xx,yy];
};
_Page.prototype._rQ=function(){
this._LL(true);
this._jP();
};
_Page.prototype._sQ=function(_tQ){
if(!this._HO){
this.dereference();
if(!_Page._WP[this.id]){
this._5L(true);
_Page._WP[this.id]=true;
}
else{
this._5L(false);
}
}
if(!_tQ&&!this._UE){
this._hL(true);
}
};
_Page.prototype._uQ=function(){
this.fireEvent("turn","");
};
_Page.prototype._vQ=function(_wQ,_xQ){
this._UP=_wQ;
if(!_xQ){
if(_wQ){
this._cO();
}
this._GP();
}
if(_wQ){
this._fP();
}
this._UP=false;
};
_Page.prototype._GC=function(_zL){
if(_zL){
this._AL=this.z;
}
};
_Page.prototype._yL=function(){};
_Page.prototype._eP=function(){
};
_Page.prototype._WE=function(){
_Page._VP[_Page._VP.length]=this.id;
if(TBK._JG.length>0){
if(!this._QP){
this._QP=TBK._OC_$D();
}
if(!this._RP){
this._RP=TBK._OC_yQ();
}
var _zQ=TBK._OC_zQ(this.id);
if(_zQ!=null){
if(!this._SP){
this._SP=TBK._OC_AQ(_zQ);
}
if(!this._TP){
this._TP=TBK._OC_BQ(_zQ);
}
}
}
this._sL=this;
this._MO=true;
};
_Page.prototype._ZE=function(){
this.fireEvent("unload","");
this.setProperty('visited',true);
};
_Page.prototype._dI=function(){
this.underlay=null;
this.overlay=null;
};
_Page.prototype._bD=function(){
_CG._DG("Resetting page "+this.id);
this.setProperty('visited',false);
};
_Page._9D=function(_1D){
if(_1D){
if(TBK.Persistence._HG(_1D)){
return true;
}
if(TBK._ID._HG(_1D)){
return true;
}
}
return false;
};
_Page._CQ=function(_DQ){
if(_Page._3P.length){
if(_Page.tabIndex>=0){
_Page._3P[_Page.tabIndex].blur();
}
var _EQ=0;
while(_EQ<2)
{
_Page.tabIndex+=(_DQ?-1:+1);
if(_Page.tabIndex<0){
_Page.tabIndex=_Page._3P.length-1;
_EQ++;
}
if(_Page.tabIndex>=_Page._3P.length){
_Page.tabIndex=0;
_EQ++;
}
if(_Page._3P[_Page.tabIndex].focus()){
break;
}
}
}
};
_Page._2K=function(_FQ){
if(_Page._0P){
TBK._eQ.style.visibility="hidden";
TBK._qF(TBK._jQ);
TBK._qF(TBK.popupText);
_Page._0P=false;
if(_Page._1P.length>0){
if(_FQ==true){
_Page._1P=[];
}
else{
var _OM=_Page._1P[0];
TBK._GQ(_Page._1P,0);
eval(_OM);
}
}
}
};
_Page._HQ=function(_oH){
for(var i=0;i<_Page._3P.length;i++)
{
if(_oH==_Page._3P[i]){
_Page.tabIndex=i;
break;
}
}
};
TBK._QS="<table width=100%% height=100%%>"+"<tr align=center valign=center><td><h1>"+"%1</h1></td></tr></table>";
TBK._RS=null;
TBK._dV=function(_jG){
delete this._eV[_jG];
};
TBK._fV=function(_jG,value){
this._eV[_jG]=value;
};
TBK._OC_gV=function(_jG){
var _jU=(this._eV?this._eV[_jG]:null);
if(typeof(_jU)=="undefined")_jU=null;
return _jU;
};
TBK.bootstrap=function(url,close,left,top,__P){
url=""+this._9P(url);
if(__P)url+=((url.indexOf("?")==-1)?"?":"&")+"closeOnClick=true";
if(left!=""){
left+=this.screenX;
url+=((url.indexOf("?")==-1)?"?":"&")+"left="+left;
}
if(top!=""){
top+=this.screenY;
url+=((url.indexOf("?")==-1)?"?":"&")+"top="+top;
}
if(close&&((this._zE=="topleft")||(this._zE=="inplace")))window.location.href=url;
else{
if(close){
window._BE=this._hV;
}
document.getElementById("sysbootstrap").innerHTML="<iframe name=bootstrap src='"+url+"'></iframe>";
}
};
TBK._hV=function(){
_Book._GD.complete(false,false);
};
TBK._FP=function(_kE,_KM){
this._iV(_kE);
if(_KM.indexOf("click")!=-1){
_kE.onclick=this._LT;
_kE.ondblclick=this._LT;
_kE.onmousedown=this._LT;
_kE.onmouseup=this._LT;
}
else if(_KM!="mousemove"&&(_KM!="change"||(_kE.tagName!="TEXTAREA"&&_kE.tagName!="INPUT"))){
_kE["on"+_KM]=this._LT;
}
};
TBK._iV=function(_kE){};
TBK._jV=function(_mC){
return document.getElementById(_mC);
};
TBK._OC_7T=function(_jG){
var _kD=window;
_jG=_jG.split(".");
for(var i=0;i<_jG.length;i++)
{
_kD=_kD[_jG[i]];
if(typeof(_kD)=="undefined"||!_kD){
return"";
}
}
return _kD;
};
TBK._qF=function(_kE){
_kE.style.visibility="hidden";
};
TBK._hQ=function(_kE,_kV,text,cx,cy,_lV){
_kE.innerHTML=text;
return[cx,cy];
};
TBK._aU=function(_mV){
return((this._sS[_mV].ReadyState<3)||(this._sS[_mV].PlayState==0));
};
TBK._cU=function(_mV){
return(typeof this._sS[_mV].ReadyState!="undefined");
};
TBK._pF=function(_kE,x,y){
_kE.style.left=x+'px';
_kE.style.top=y+'px';
_kE.style.visibility="inherit";
};
TBK.playMovie=function(url){
var type=this._HT(url);
if((type==-1)||(type==0)){
window.open(url);
}
else{
window.location.href=url;
}
};
TBK.playSound=function(url){
url=this._HC(url);
var _mV=this._$T();
if(_mV>=0){
this._sS[_mV].PlayCount=1;
this._sS[_mV].FileName=url;
this._tS[_mV]=null;
this._uS[_mV]=url;
}
};
TBK._KP=function(_kE,_KM){};
TBK._cV=function(_kE){};
TBK._HC=function(_yC){
if(_yC.indexOf("../")!=0){
return _yC;
}
if(this._MS.indexOf("file:/")==0){
var _nV=this._MS;
var i=_nV.lastIndexOf("/");
if(i!=-1){
_nV=_nV.substr(0,i);
}
var _oV=this._xT(_nV,_yC);
return unescape(_oV);
}
else{
return _yC;
}
};
TBK._kF=function(_kE){
return[_kE.offsetWidth,_kE.offsetHeight];
};
TBK._pV=false;
TBK.start=function(start){
TBK._pV=true;
this._5L();
this._eQ=document.getElementById("syspopupGlass");
this._jQ=document.getElementById("syspopupShadow");
this.popupText=document.getElementById("syspopupText");
for(var i=0;i<this._sS.length;i++)
{
this._sS[i]=document.getElementById("syssoundPlayer"+i);
this._tS[i]=null;
this._uS[i]=null;
}
if(!this._qV()){
this._sS=[];
this._tS=[];
this._uS=[];
}
this.__C_XU();
if(this._5M()){
var _vH=new Date();
this._$F=_vH.getTime();
this._NH=0;
_Book._GD.start();
var __D="";
if(!this._iS||!this.launchPage){
__D=this._ID._OC_sM(start);
}
else{
__D=this.launchPage;
}
if(!__D){
__D=this._OC_$D();
}
if(!this._aE.gotoPage(__D)){
var _rV;
for(i=0;i<this._JG.length;i++)
{
_rV=this._OC_iU(i);
if(this._aE.gotoPage(_rV)){
break;
}
}
if(i==this._JG.length){
var message=this._LD(TBK._pD('_qD.27'),[__D]);
window.alert(message);
}
}
}
_CG.start();
};
TBK.getBrowserType=function(){
return"IE5";
};
TBK.applyTransition=function(_oH,_AP,_BP){
if((window.screen.colorDepth<=8)&&(_AP.toLowerCase=="fade")){
_AP="RandomDissolve";
}
_oH.style.filter="progid:DXImageTransform.Microsoft."+_AP+"("+_BP+")";
_oH.filters.item(0).stop();
_oH.filters.item(0).apply();
_oH.filters.item(0).play();
};
TBK._sV=function(transition){
var _AP=null;
var speed=0;
var _tV=this._aH(transition," ",true);
if(_tV.length>0){
_AP=12;
var _jL="left";
if(this._rU("right",_tV)){
_jL="right";
}
else if(this._rU("top",_tV)){
_jL="top";
}
else if(this._rU("bottom",_tV)){
_jL="bottom";
}
else if(this._rU("horizontal",_tV)){
_jL="horizontal";
}
else if(this._rU("vertical",_tV)){
_jL="vertical";
}
var _uV="in";
if(this._rU("out",_tV)){
_uV="out";
}
speed=2;
if(this._rU("slow",_tV)){
speed=10;
}
else if(this._rU("fast",_tV)){
speed=1;
}
else{
for(var i=0;i<_tV.length;i++)
{
if(!(isNaN(parseInt(_tV[i])))){
speed=parseInt(_tV[i])/1000;
break;
}
}
}
var _BP="duration="+speed;
if(this._rU("blinds",_tV)){
_AP="Blinds";
_BP+=", direction="+(_jL=="vertical"?"'right'":"'down'");
}
else if(this._rU("iris",_tV)){
_AP="Iris";
_BP+=", irisstyle='circle', motion="+(_uV=="out"?"'out'":"'in'");
}
else if(this._rU("split",_tV)){
_AP="Barn";
_BP+=", orientation="+(_jL=="vertical"?"'vertical'":"'horizontal'")+", motion"+(_uV=="out"?"'out'":"'in'");
}
else if(this._rU("spiral",_tV)){
_AP="Iris";
_BP+=", irisstyle='circle', motion='in'";
}
else if(this._rU("turnpage",_tV)){
_AP="Strips";
_BP+=", motion="+(_jL=="right"?"'rightup'":"'leftup'");
}
else if(this._rU("wipe",_tV)||this._rU("slide",_tV)){
_AP="Blinds";
_BP+=", bands=1, direction=";
switch(_jL){
case "left":case "right":_BP+=_jL;
break;
case "top":_BP+="up";
break;
default:_BP+="down"}
}
else if(this._rU("fade",_tV)){
_AP="Fade";
_BP+=", overlap=1";
}
else if(this._rU("rain",_tV)){
_AP="Blinds";
_BP+=", bands=1, direction="+(_jL=="right"?"'right'":"'left'");
}
else if(this._rU("dissolve",_tV)){
_AP="RandomDissolve";
}
else if(this._rU("drip",_tV)){
_AP="CheckerBoard";
_BP+=", direction='down', squaresX=24, squaresY=1";
}
else if(this._rU("push",_tV)){
_AP="Slide";
_BP+=", slideStyle='push', bands=1";
}
else if(this._rU("puzzle",_tV)){
_AP="CheckerBoard";
_BP+=", direction='down', squaresX=8, squaresY=8";
}
else if(this._rU("puzzle",_tV)){
_AP="CheckerBoard";
_BP+=", direction='down', squaresX=8, squaresY=8";
}
else if(this._rU("tear",_tV)){
_AP="CheckerBoard";
_BP+=", direction='down', squaresX=24, squaresY=1";
}
else if(this._rU("zoom",_tV)){
_AP="Inset";
}
}
return[_AP,_BP,speed];
};
TBK._vV=function(transition){
if((transition!=null)&&(transition!="")&&(transition!=" ")&&(transition!="none")){
var _mG=this._sV(transition);
_AP=_mG[0];
_BP=_mG[1];
speed=_mG[2];
if(_AP){
var _vH=new Date();
this._OS=_vH.getTime()+(speed*1000);
this.applyTransition(document.body,_AP,_BP);
}
}
};
TBK._bU=function(_mV){
var _nL=this._RD(this._tS[_mV]);
if(_nL){
_nL.stop();
}
else{
this._sS[_mV].Stop();
}
this._tS[_mV]=null;
this._uS[_mV]=null;
};
TBK._qV=function(){
return((this._sS.length>0)&&(this._sS[0].IsSoundCardEnabled()));
};
TBK._LT=function(){
e=TBK._OC_4S().event;
if(!e){
return;
}
TBK._xP=e.ctrlKey;
TBK._zP=e.shiftKey?String.fromCharCode(e.keyCode):String.fromCharCode(e.keyCode).toLowerCase();
TBK._yP=e.keyCode;
TBK._wP=e.shiftKey;
TBK._AI=e.clientX-document.body.scrollLeft;
TBK._BI=e.clientY-document.body.scrollTop;
TBK._OF=(e.button==2);
TBK.screenX=e.screenX-e.clientX;
TBK.screenY=e.screenY-e.clientY;
var _KM=e.type;
if(_KM=="keydown"){
_Page._2K(true);
}
var to,_5G;
if((_KM=="mouseover")||(_KM=="mouseout")){
if((e.toElement==e.fromElement)||!e.toElement||!e.fromElement){
return false;
}
_5G=TBK._MU(e.fromElement);
to=TBK._MU(e.toElement);
if(_5G==to){
return false;
}
}
var rc=((_KM!="mousemove")&&!TBK._OF&&(_KM.indexOf("key")!=-1));
if(TBK._JT(_KM)){
if(!TBK._1T(_KM)){
var _oH=null;
if(_KM.indexOf("key")!=-1){
_oH=TBK._UC_IP;
if(!_oH){
_oH=_Page._0D;
}
}
else{
if(document.all){
_oH=TBK._MU(e.srcElement);
if(!_oH&&(e.srcElement!=TBK._eQ)){
_oH=TBK._JN(TBK._AI,TBK._BI);
}
}
else{
_oH=TBK._MU(e.target);
if(!_oH&&(e.target!=TBK._eQ)){
_oH=TBK._JN(TBK._AI,TBK._BI);
}
}
}
if(_oH){
var _JM=null;
_JM=e.srcElement;
while(_JM&&(!_JM.href||(_JM.href.indexOf("#")==-1)))
{
_JM=_JM.parentNode;
}
var href=(_JM&&_JM.href)?_JM.href:"";
if(href.indexOf("#")!=-1){
rc=false;
}
var _ED=_oH._IM(href,_KM);
TBK._0T(_oH,_KM,_ED);
if((_KM=="mousedown")&&TBK._OF){
TBK._0T(_oH,"rclick",_ED);
}
}
}
}
if(e){
var ex;
try{
e.cancelBubble=true;
}
catch(ex)
{
}
}
if((_KM=="keydown")&&(TBK._yP==9)&&(_Page._0D)){
_Page._CQ(TBK._wP);
return false;
}
return rc;
};
TBK._wV=function(){
TBK._OC_4S().event.srcElement.blur();
};
TBK._nU=function(){
this._aQ=document.body.clientHeight;
this._$P=document.body.clientWidth;
document.oncontextmenu=this._6T;
var _xV=this._jV("syspopupGlass");
_xV.style.backgroundImage="url( ../resources/dummy.gif )";
};
TBK._XI=function(_kE,x,y,cx,cy,z,bgColor,_yV){
_kE.style.visibility="inherit";
if(_yV==true){
TBK._$N(_kE,x,y);
}
else{
_kE.style.left=x+'px';
_kE.style.top=y+'px';
}
_kE.style.width=cx+'px';
_kE.style.height=cy+'px';
_kE.style.clip="rect ( 0 "+cx+" "+cy+" 0 )";
_kE.style.zIndex=parseInt(z);
if(bgColor){
var _CP=this._DP(bgColor,6);
_kE.style.backgroundColor=(bgColor==-1)?"":("#"+_CP);
}
};
TBK._bN=function(_kE,_JM,_zV){
_kE._NU=_JM;
if(_zV){
this._iV(_kE);
for(var i=0;i<_zV.length;i++)
{
_kE["on"+_zV[i]]=this._LT;
}
}
};
_CG=new Object();
_CG._nH=function(_oH,name,_8H){};
_CG._qH=function(_rH,url,_sH){
window.alert(TBK._pD('_qD.8')+"\n\n"+_sH+" "+_rH);
return true;
};
_CG.status=function(status){
window.status=status;
};
_CG.start=function(){};
_CG.stop=function(){};
_CG._uH=function(){};
_CG._wH=function(_xH){};
_CG._DG=function(_zH){};
_CG._KH=function(){};
_CG._0H=function(){};
_CG._3H=function(){};
function _XF(){
this._nM=0;
this._hM=1;
this._lM=2;
this._mM=3;
this._kM=0;
this._jM=1;
this._iM=2;
this._PM=0;
this._QM=1;
this._RM=2;
this._SM=3;
this._TM=4;
this._XG=false;
this._aG=0;
this.__F=0;
this._$F=new Date().getTime();
this._mD=new Object();
this._kG=new Object();
this._iG=new Object();
this._OL=null;
if(window['_Question']){
_Question._YG=0;
}
this.addLink=function(){
};
this.addNote=function(){
};
this._9F=function(){
return true;
};
this.getDescription=function(){
return"";
};
this._OC_sM=function(start){
return start;
};
this.getStudentName=function(){
return"";
};
this._OC_KG=function(name){
if(!this._iG){
this._iG=new Object();
}
return this._iG[name.toUpperCase()]?this._iG[name.toUpperCase()]:null;
};
this._HG=function(_1D){
return false;
};
this._LG=function(){
};
this._vM=function(){
};
this._VG=function(){
};
this._7D=function(){
};
this._UC_UM=function(){
};
this._UC_KG=function(name,value){
if(!this._iG){
this._iG=new Object();
}
this._iG[name.toUpperCase()]=value;
};
this._UC_UM=function(_8D){
if(_8D){
this._fM=_8D.id;
}
else{
this._fM=null;
}
};
this.showExperts=function(){
};
this.showFeedback=function(){
};
this.showGlossary=function(){
};
this.showHelp=function(){
};
this.stop=function(){
}
}
TBK._ML={
_NL:[],_VM:function(_WM,_XM){
this._YM=0;
var _QL=this._ZM(_WM,_XM);
if((_QL==null)&&(_WM.opener!=null)&&(typeof _WM.opener!="undefined")){
_QL=this._ZM(_WM.opener,_XM);
}
if((_QL==null)&&(_WM.opener!=null)&&(_WM.opener.opener!=null)&&(typeof(_WM.opener.opener)!="undefined")){
_QL=this._ZM(_WM.opener.opener,_XM);
}
return _QL;
},_ZM:function(_QL,_XM){
var _0M=eval('_QL'+".parent");
while((_QL[_XM]==null)&&(_0M!=null)&&(_0M!=_QL))
{
this._YM++;
if(this._YM>7){
_CG._DG("Error finding API -- too deeply nested.");
return null;
}
_QL=_0M;
_0M=eval('_QL'+".parent");
}
if(_QL[_XM]!=null){
return _QL;
}
else{
return null;
}
}
};
function _ID(_wM){
var _1M;
var _2M;
var _3M=null;
var _OL="";
if((typeof _wM!="undefined")&&!_wM){
_OL="NoLMS";
}
for(var i=0;i<TBK._ML._NL.length;i++)
{
_2M=TBK._ML._NL[i];
if(!_OL||_2M._OL==_OL){
if(_1M=_2M._PL(TBK._4M,window)){
_3M=new _2M._ID(_1M);
if(!TBK._fG(_3M)){
return _3M;
}
}
}
}
return null;
}
TBK._5M=function(){
if(!TBK._ID){
var _6M=false;
TBK._ID=new _ID(TBK._7M);
_6M=TBK._ID._XG;
if(_6M){
TBK.Persistence._8M(TBK._ID._kG);
}
else if(TBK._9M){
window.alert(TBK._pD('_qD.5'));
return false;
}
}
return true;
};
function _WF(){
_XF.call(this);
this._YF=false;
this._ZF=function(_3C,_0F,_4C,_lD,_1F){
var _2F=_lD._2C;
var _3F;
var _4F=this._OC_5F(_4C);
if(!_1F&&((_4F=="fill-in")||(_4F=="performance"))){
_3F=TBK._7C(_lD.value);
}
else{
_3F=_lD._3C;
}
if(_3C){
_3C+=",";
}
if(_0F){
if(_4F=="true-false"){
if(_3F.toUpperCase=="TRUE"){
_3C+="t";
}
else if(_3F.toUpperCase=="FALSE"){
_3C+="f";
}
else{
_3C+=(_2F=="a")?"t":"f";
}
}
else{
_3C+=_2F;
}
}
else{
_3C+=_3F;
}
return _3C;
};
this._6F=function(_4C){
var _kD="";
var _mD,_lD,i;
if(_4C._7F=="pick"){
_mD=[];
for(i=0;i<_4C._8F.length;i++)
{
_lD=_4C._8F[i];
if(_lD._0C>=0){
_mD[_lD._0C]=_lD;
}
}
}
else{
_mD=_4C._8F;
}
for(i=0;i<_mD.length;i++)
{
_lD=_mD[i];
if(this._OC_5F(_4C)=="fill-in"){
if(_lD.answered){
_kD=_lD._2C+"~"+(_lD._YC?"1":"0")+"~"+_lD.value;
break;
}
}
else{
if(_kD){
_kD+="~";
}
_kD+=_lD._3C+"~"+_lD._2C+"~"+(_lD.answered?"1":"0")+"~"+(_lD._YC?"1":"0");
}
}
if(_kD){
return _4C.scoreCount+"~"+_kD;
}
else{
return"";
}
};
this._9F=function(){
if(this.__F<=0||((new Date().getTime()-this._$F)+this._aG)<this.__F){
return true;
}
else{
return false;
}
};
this._bG=function(_cG){
delete this._mD[_cG.toUpperCase()];
if(this._dG){
var _1D=TBK._eG(_cG);
if(this._dG[_1D]){
delete this._dG[_1D][_cG];
if(TBK._fG(this._dG[_1D])){
delete this._dG[_1D];
}
}
}
};
this._gG=function(){
var _hG="";
if(!TBK._fG(this._iG)){
_hG+="global\r\n";
for(_jG in this._iG)
{
_hG+=_jG+"="+this._iG[_jG]+"\r\n";
}
}
if(!TBK._fG(this._mD)){
_hG+="qn\r\n";
for(_jG in this._mD)
{
_hG+=_jG+"="+this._mD[_jG]+"\r\n";
}
}
if(!TBK._fG(this._kG)){
_hG+="prop\r\n"+this._OC_lG(this._kG);
}
return _hG;
};
this._OC_lG=function(_mG){
var _nG="";
for(var i in _mG)
{
_nG+=i+"="+TBK._oG(_mG[i],true,true)+"\r\n";
}
return _nG;
};
this._pG=function(_qG){
_qG=Math.round(_qG/1000);
return this._rG(Math.floor(_qG/3600))+":"+this._rG(Math.floor((_qG%3600)/60))+":"+this._rG((_qG%3600)%60);
};
this._OC_cG=function(_4C){
var _sG=new RegExp(" ","g");
var id=_4C.name.replace(_sG,"_");
_sG=new RegExp("[()/*+=:\\-]","g");
id=id.replace(_sG,"_");
return encodeURI(id);
};
this._OC_5F=function(_4C){
if(_4C._5F=="Simulation"){
return"performance";
}
return _4C._5F;
};
this._OC_tG=function(_4C){
var _4F=this._OC_5F(_4C);
var _uG="";
var _0F=this._YF&&(_4F=="choice"||_4F=="true-false"||_4F=="matching"||_4F=="sequencing");
for(var i=0;i<_4C._8F.length;i++)
{
var _lD=_4C._8F[i];
if(_lD.getProperty('answered')){
_uG=this._ZF(_uG,_0F,_4C,_lD);
}
}
return _uG;
};
this._OC_vG=function(_wG,name){
var _kD=_wG;
name=name.split(".");
for(var i=0;i<name.length;i++)
{
if(!_kD[name[i]]){
_kD[name[i]]=new Object();
}
_kD=_kD[name[i]];
}
return _kD;
};
this._rG=function(value){
if(value<10){
value="0"+value;
}
return value;
};
this._xG=function(_yG,_lG){
var _zG;
var value;
for(var name in _yG)
{
value=_yG[name];
if(name._AG("_MDP_TESTSTATE_")){
switch(name){
case "_MDP_TESTSTATE__GLOBAL_SEQUENCE":_zG="SEQUENCE";
break;
case "_MDP_TESTSTATE_RAWSCORE":_zG="SCORE";
break;
default:_zG="";
}
if(_zG){
if(!_lG["global"]){
_lG["global"]=new Object();
}
_lG["global"][_zG]=value;
}
}
else if(name._AG("_MDP_PAGESTATE_")){
var _BG=name.match(/([PB]\d*)(O\d*)(\w*)$/);
if(!_BG||_BG.length!=4){
_CG._DG("Unrecognized page state item name: "+name);
}
else{
var _1D=_BG[1].toLowerCase();
var _EG=_BG[2].toLowerCase();
var _FG=_BG[3].toLowerCase();
if(!_lG["prop"]){
_lG["prop"]=new Object();
}
TBK.Persistence._GG(_lG["prop"],_1D,_EG,_FG,value);
}
}
else{
var _BG=name.match(/\(([PB]\d*):(\d*)\)$/);
var _EG=_BG[1].toLowerCase()+".o"+_BG[2];
if(value._AG("PREVIOUS_ATTEMPT_COUNT")){
value=value.substring(23);
}
else{
value="1~"+value;
}
if(!_lG["qn"]){
_lG["qn"]=new Object();
}
_lG["qn"][_EG.toUpperCase()]=value;
}
}
};
this._HG=function(_1D){
if(!this._dG){
this._dG={};
for(var _cG in this._mD)
{
_cG=_cG.toLowerCase();
var _1D=TBK._eG(_cG);
if(!this._dG[_1D]){
this._dG[_1D]={};
}
this._dG[_1D][_cG]=true;
}
}
return(_1D&&this._dG[_1D])?true:false;
};
this._IG=function(_lG){
if(_lG["qn"]){
this._mD=_lG["qn"];
}
if(_lG["prop"]){
this._kG=_lG["prop"];
}
if(_lG["global"]){
this._iG=_lG["global"];
}
var _JG=this._OC_KG("sequence");
if(_JG&&_JG.length){
TBK._JG=eval(_JG);
}
};
this._LG=function(_4C){
var i;
var _lD=this._mD[_4C.id.toUpperCase()];
if(_lD){
_lD=_lD.split("~");
_4C.setProperty('scoreCount',+_lD[0]);
_4C.setProperty('locked',((_4C.scoreCount&&!_4C._eD)||(_4C._MG&&(_4C.scoreCount>=_4C._MG))));
var _NG=new Object();
var _OG=_lD.length-1;
if(_OG%4==0){
for(i=1;i<_lD.length;i+=4)
{
var _2C=_lD[i+1];
_NG[_2C]=new Object();
_NG[_2C].value=_lD[i];
_NG[_2C].answered=(_lD[i+2]==1);
_NG[_2C]._PG=(_lD[i+3]==1);
_NG[_2C]._0C=(i-1)/4;
}
}
else if(_OG==3){
_2C=_lD[1];
_NG[_2C]=new Object();
_NG[_2C].value=_lD[3];
_NG[_2C].answered=true;
_NG[_2C]._PG=(_lD[2]==1);
_NG[_2C]._0C=-1;
}
var _QG=[];
var _RG=0;
for(i=0;i<_4C._8F.length;i++)
{
var _lD=_4C._8F[i];
var _SG=_NG[_lD._2C];
if(_SG){
_lD.setProperty('value',_SG.value);
_lD.setProperty('answered',_SG.answered);
_4C.setProperty('_TG',true);
if(_4C._7F=="pick"){
if(_SG._0C>-1){
_QG[_SG._0C]=_lD.id;
}
}
if(_SG.answered){
_RG+=_4C._UG*_lD._1C;
}
}
}
if(_4C._7F=="pick"){
_4C.setProperty('_QG',_QG);
}
_4C.setProperty('lastScore',_RG);
}
};
this._VG=function(_4C){
this._bG(_4C.id);
};
this._7D=function(){
this._mD={};
this._dG={};
};
this.stop=function(_WG,_MD,_WD,_XD){
if(this._XG){
var _YG=0;
if(window['_Question']){
_YG=_Question._ZG(true);
if(TBK._0G>TBK._1G){
_YG=Math.min(TBK._0G,Math.max(TBK._1G,_YG));
}
}
var _JG=this._OC_KG("sequence");
if(!_JG){
_JG="[";
for(var i=0;i<TBK._JG.length;i++)
{
if(i!=0){
_JG+=",";
}
_JG+="\""+TBK._JG[i]+"\"";
}
_JG+="]";
this._UC_KG("sequence",_JG);
}
this._2G(_WG,_MD,_YG,TBK._1G,TBK._0G,_WD,_XD);
this._XG=false;
}
};
this._3G=function(_cG,value){
this._mD[_cG.toUpperCase()]=value;
if(this._dG){
var _1D=TBK._eG(_cG);
if(!this._dG[_1D]){
this._dG[_1D]={};
}
this._dG[_1D][_cG]=true;
}
}
}
function _6V(){
_WF.call(this);
this._7V=null;
this.API_Extended=null;
this.objExperienceAPI=null;
this._8V=null;
this._9V=false;
this.__V=false;
this._WL=function(){
try{
this.LMSInitialize();
}
catch(e)
{
_CG._DG("LMSInitialize() call failed: "+e);
return false;
}
return true;
};
this._5L=function(){
var _YG=0;
this._aG=this._$V(this._aW());
if(this._aG==null){
_CG._DG("Invalid LMSGetTotalTime(). Setting to 00:00:00.00.");
this._aG=0;
}
this.__F=this._$V(this._bW());
if(this.__F==null){
_CG._DG("Invalid LMSGetMaxTime(). Setting to 00:00:00.00 (no limit).");
this.__F=0;
}
var _cW=this._dW();
if((_cW=="resume")||(this._eW()=="review")){
var _yG=new Object();
var _lG=new Object();
var _fW=this._gW();
if(_fW){
_CG._DG("Consuming suspendData...");
var _0L=_yG;
var _2L="";
st=_fW.split('\n');
for(i=0;i<st.length;i++)
{
var _hW=st[i]._3L();
if(_hW){
var _1K=_hW.indexOf('=');
if(_1K==-1){
_0L=this._OC_vG(_lG,_hW);
_2L=_hW;
_CG._DG("  - In "+_2L);
}
else{
var _iW=_hW.substring(0,_1K)._3L();
var _jW=_hW.substring(_1K+1)._3L();
if(_2L=="prop"){
_0L[_iW]=eval("new Object("+_jW+")");
}
else{
_0L[_iW.toUpperCase()]=_jW;
}
_CG._DG("    - Name: "+_iW+"; Value: "+_jW);
}
}
}
this._xG(_yG,_lG);
if(!TBK._fG(_lG)){
this._IG(_lG);
}
}
_YG=parseFloat(this._OC_KG("RawScore"));
if(isNaN(_YG)){
var _bM=_kW();
if(_bM){
_YG=parseFloat(_bM);
if(isNaN(_YG)){
_YG=0;
}
}
else{
_YG=0;
}
}
}
this._lW(_cW);
if(window['_Question']){
_Question._YG=_YG;
}
var _mW=this.objExperienceAPI;
if(_mW){
if(_mW.LaunchMode("")=="experience"){
_mW.SetLocalData("0",_mW.GetLocalData("0"));
_mW.SetLocalData("1",_mW.GetLocalData("1"));
}
}
var status=this._nW();
if(status.match("^(unknown|not[-_ ]attempted)$")){
_CG._DG("Initializing lesson status to 'incomplete'");
this._oW("incomplete");
}
else{
_CG._DG("Lesson status is '"+status+"'");
}
this._$F=new Date().valueOf();
};
this.addLink=function(){
if(this._OCobjExperienceAPI){
this.objExperienceAPI.AddLink("");
}
};
this.addNote=function(){
if(this.objExperienceAPI){
this.objExperienceAPI.AddNote("");
}
};
this._pW=function(src){
var _qW="";
var c;
for(var i=0;i<src.length();i++)
{
c=src.charAt(i);
switch(c){
case '\\':i++;
c=src.charAt(i);
switch(c){
case 'n':_qW+='\n';
break;
default:_qW+=c;
break;
}
break;
default:_qW+=c;
break;
}
}
return _qW;
};
this._rW=function(src){
var _qW="";
var c;
for(var i=0;i<src.length();i++)
{
c=src.charAt(i);
switch(c){
case '\\':_qW+="\\\\";
break;
case '\n':_qW+="\\n";
break;
default:_qW+=c;
break;
}
}
return _qW;
};
this._2G=function(_WG,_MD,_RG,_dM,_UG,_WD,_XD){
var status=null;
var exit=null;
var _sW=this._tW();
var _uW=this._eW();
if(_uW!="review"){
var url=this._fM?TBK._gM+"#"+this._fM:"0";
this._vW(url);
if(_WG==this._hM){
switch(_WD){
case this._iM:exit="";
break;
case this._jM:case this._kM:default:exit="suspend";
break;
}
status="incomplete";
}
else if(_WG==this._lM){
}
else if(_WG==this._mM){
switch(_WD){
case this._jM:exit="suspend";
break;
case this._iM:exit="";
break;
case this._kM:default:var _cW=this._dW();
if(_cW=="resume"){
exit="suspend";
}
else{
exit="";
}
break;
}
status=this._nW();
}
else{
switch(_WD){
case this._jM:exit="suspend";
break;
case this._iM:exit="";
break;
case this._kM:default:exit="logout";
break;
}
status="completed";
}
if((_WG==this._hM)||(_WG==this._nM)){
this._wW(exit);
this._oW(status);
if(_RG||_UG||_dM){
this._xW(_RG,_UG,_dM);
}
this._yW(this._zW(new Date().getTime()-this._$F));
this._UC_KG("RawScore",_RG);
var _lG=this._gG();
if(_lG){
this._AW(_lG);
}
}
else if(_WG==this._mM){
this._yW(this._zW(new Date().getTime()-this._$F));
this._wW(exit);
}
}
this.LMSCommit();
this._XG=false;
if(this._9V&&!this.API_Extended){
_CG._DG("Closing SumTotal player window via old method");
this.LMSGetDiagnostic("98004");
}
this.LMSFinish();
if(this.API_Extended){
_CG._DG("Closing SumTotal player window via new method");
var _BW;
try{
this.API_Extended.SetNavCommand("exit");
}
catch(_BW)
{}
}
if(this.objExperienceAPI){
var _mW=this.objExperienceAPI;
var _CW=_mW.LaunchMode("");
if(_CW=="experience"){
_mW.SetLocalData("0",_mW.GetLocalData("0"));
_mW.SetLocalData("1",_mW.GetLocalData("1"));
}
if(_CW!="cms"){
switch(_XD){
case this._PM:default:break;
case this._QM:_CG._DG("Requesting TEST_NAVIGATION_NEXT");
if(_sW=="credit"){
_mW.QNavigationNext("");
}
else if(_WG==this._hM){
_mW.NavigationNextSkip("");
}
else if(_WG==this._mM){
if((status=="not attempted")||(status=="incomplete")){
_mW.NavigationNextSkip("");
}
else{
_mW.NavigationNextDone("");
}
}
else{
_mW.NavigationNextDone("");
}
break;
case this._RM:_CG._DG("Requesting TEST_NAVIGATION_PREV");
if(_sW=="credit"){
_mW.QNavigationPrev("");
}
else if(_WG==this._hM){
_mW.NavigationPrevSkip("");
}
else if(_WG==this._mM){
if((status=="not attempted")||(status=="incomplete")){
_mW.NavigationPrevSkip("");
}
else{
_mW.NavigationPrevDone("");
}
}
else{
_mW.NavigationPrevDone("");
}
break;
case this._SM:_CG._DG("Requesting TEST_NAVIGATION_HOME");
_mW.NavigationHome("");
break;
case this._TM:_CG._DG("Requesting TEST_NAVIGATION_FINISH_ASSESSMENT");
if(_sW=="credit"){
if(_uW._DW("review")){
_mW.QFinishReview("");
}
else{
_mW.QSubmitAssessment("");
}
}
break;
}
}
}
};
this._OC_sM=function(start){
if(this._eW()=="review"){
return start;
}
else{
var _sM=this._EW();
if(_sM){
var _tM=TBK._uM(_sM);
if(_tM){
return _tM;
}
}
return start;
}
};
this.getStudentName=function(){
return this._FW();
};
this.hasNext=function(){
if(this.objExperienceAPI){
if(this._tW()=="credit"){
return(this.objExperienceAPI.QIsLastQuestion()=="false");
}
else{
return(this.objExperienceAPI.IsLastPage()=="false");
}
}
else{
return false;
}
};
this.hasPrevious=function(){
if(this.objExperienceAPI){
if(this._tW()=="credit"){
return(this.objExperienceAPI.QIsFirstQuestion()=="false");
}
else{
return(this.objExperienceAPI.IsFirstPage()=="false");
}
}
else{
return false;
}
};
this._vM=function(_4C){
if(this._eW()!="review"&&_4C._wM){
this._UC_GW(_4C);
this._HW(this._OC_cG(_4C));
this._IW(this._JW(new Date(_4C._yM)));
this._KW(this._OC_5F(_4C));
this._LW(this._zW(_4C._zM));
this._MW(_4C);
var _NW=this._OC_tG(_4C);
this._OW(_4C.lastScore);
this._PW(_4C._UG);
this._QW(_NW);
if(_4C._5F!="Simulation"){
this._3G(_4C.id,this._6F(_4C));
}
}
};
this._MW=function(_4C){
var _4F=this._OC_5F(_4C);
var _pM="";
var _0F=this._YF&&(_4F=="choice"||_4F=="true-false"||_4F=="matching"||_4F=="sequencing");
var _RW=0;
for(var i=0;i<_4C._8F.length;i++)
{
var _lD=_4C._8F[i];
if(_lD._YC){
if(_4C._rM){
_pM=this._ZF("",_0F,_4C,_lD,true);
this._SW(_RW,_pM);
_RW++;
}
else{
_pM=this._ZF(_pM,_0F,_4C,_lD,true);
}
}
}
if(!_4C._rM){
this._SW(0,_pM);
}
};
this.showExperts=function(){
if(this.objExperienceAPI){
this.objExperienceAPI.ShowExperts("");
}
};
this.showGlossary=function(){
if(this.objExperienceAPI){
this.objExperienceAPI.ShowGlossary("");
}
};
this.showHelp=function(){
if(this.objExperienceAPI){
this.objExperienceAPI.ShowHelp("");
}
};
this.showFeedback=function(){
if(this.objExperienceAPI){
this.objExperienceAPI.ShowFeedback("");
}
}
}
TBK._ML._NL[TBK._ML._NL.length]={
_OL:"SCORM2004",_PL:function(url,_QL){
var _UL=null;
_CG._DG("Looking for a SCORM 2004 API object starting in window.name = '"+_QL.name+"'");
var _TW="API_1484_11";
_QL=TBK._ML._VM(_QL,_TW);
if(_QL){
if(_QL[_TW]&&(typeof _QL[_TW]!="string")){
_CG._DG("Found SCORM 2004 API object in window.name = '"+_QL.name+"'");
_UL=new Object();
_UL._OL=this._OL;
_UL.API=_QL[_TW];
if(_QL.API_Extended&&(typeof _QL.API_Extended=="object")&&_QL.API_Extended.SetNavCommand){
_CG._DG("Found API_Extended object in window.name = '"+_QL.name+"'");
_UL._8V=_QL[_TW];
_UL.API_Extended=_QL.API_Extended;
}
if(_QL.objExperienceAPI&&(typeof _QL.objExperienceAPI!="string")){
_CG._DG("Found objExperienceAPI object in window.name = '"+_QL.name+"'");
_UL._8V=_QL[_TW];
_UL.objExperienceAPI=_QL.objExperienceAPI;
}
}
else{
_CG._DG("Unexpected error, bad SCORM 2004 object found in window.name = '"+_QL.name+"'");
}
}
else{
_CG._DG("Didn't find a SCORM 2004 API object");
}
return _UL;
},_ID:function(_UL){
if(_UL._OL!="SCORM2004"){
_CG._DG("SCORM2004 constructor: Wrong credential type \""+_UL._OL+"\" received");
return{};
}
_6V.call(this);
this._OL="SCORM2004";
this._XG=true;
this._YF=false;
this._7V=_UL.API;
if(_UL.API_Extended){
this._8V=_UL._8V;
this.API_Extended=_UL.API_Extended;
}
if(_UL.objExperienceAPI){
this._8V=_UL._8V;
this.objExperienceAPI=_UL.objExperienceAPI;
}
this._ZF=function(_3C,_0F,_4C,_lD,_1F){
var _4F=this._OC_5F(_4C);
var _2F=_lD._2C;
var _3F;
if(!_1F&&((_4F=="fill-in")||(_4F=="performance"))){
_3F=TBK._7C(_lD.value);
}
else{
_3F=_lD._3C;
}
var _6W=true;
if(_3C){
_3C+="[,]";
_6W=false;
}
if(_4F=="true-false"){
if(_3F.toUpperCase=="TRUE"){
_3C+="true";
}
else if(_3F.toUpperCase=="FALSE"){
_3C+="false";
}
else{
_3C+=(_2F=="a")?"true":"false";
}
}
else if(_4F=="choice"){
_3C+=this._7W(_3F);
}
else if(_4F=="fill-in"){
if(this._8W){
_3C+="{lang="+_8W+"}";
}
_3C+=_3F;
if(_1F&&_6W){
_3C="{case_matters="+(_lD._aJ?"true":"false")+"}"+_3C;
}
}
else if(_4F=="matching"){
var _9W=_3F.indexOf(".");
_3C+=this._7W(_3F.substring(0,_9W))+"[.]"+this._7W(_3F.substring(_9W+1));
}
else if(_4F=="sequencing"){
_3C+=this._7W(_3F);
}
else if(_4F=="performance"){
_3C+="[.]"+_3F;
}
return _3C;
};
this._7W=function(_hG){
_hG=_hG.replace(/\s/g,"_");
return encodeURI(_hG);
};
this._lW=function(_cW){
this.__W={};
if(_cW=="resume"){
var n=this._$W();
for(this._UW=0;this._UW<n;this._UW++)
{
var id=this._aX();
this.__W[id]=this._UW;
}
}
};
this._xW=function(_RG,_UG,_dM){
this._VW(this._WW(_dM));
this._XW(this._WW(_UG));
this._YW(this._WW(_RG));
var _bX=0;
if(_RG){
if(_dM>=_UG){
_bX=(_RG>0)?1:-1;
}
else if(_UG>0){
_bX=Math.max(-1,Math.min(_RG/_UG,1));
}
else{
_bX=Math.max(-1,Math.min(_RG/Math.abs(_dM),1));
}
}
this._cX(this._dX(_bX));
var _eX=this._fX();
if((_eX!="")&&!isNaN(_eX=Number(_eX))){
var _gX=(_bX<_eX)?"failed":"passed";
this._hX(_gX);
}
};
this._UC_GW=function(_4C){
this._UW=this.__W[_4C.id];
if(!this._UW&&(this._UW!==0)){
this._UW=this._$W();
this.__W[_4C.id]=this._UW;
}
};
this._tW=function(){
return this.LMSGetValue("cmi.credit");
};
this._dW=function(){
return this.LMSGetValue("cmi.entry");
};
this._wW=function(value){
return this.LMSSetValue("cmi.exit",value);
};
this._SW=function(_RW,_pM){
return this.LMSSetValue("cmi.interactions."+this._UW+".correct_responses."+_RW+".pattern",_pM);
};
this._aX=function(){
return this.LMSGetValue("cmi.interactions."+this._UW+".id");
};
this._HW=function(id){
return this.LMSSetValue("cmi.interactions."+this._UW+".id",id);
};
this._LW=function(_1W){
return this.LMSSetValue("cmi.interactions."+this._UW+".latency",_1W);
};
this._OW=function(_kJ){
return this.LMSSetValue("cmi.interactions."+this._UW+".result",_kJ);
};
this._QW=function(_3C){
return this.LMSSetValue("cmi.interactions."+this._UW+".learner_response",_3C);
};
this._IW=function(_2W){
return this.LMSSetValue("cmi.interactions."+this._UW+".timestamp",_2W);
};
this._KW=function(_3W){
return this.LMSSetValue("cmi.interactions."+this._UW+".type",_3W);
};
this._PW=function(_1C){
return this.LMSSetValue("cmi.interactions."+this._UW+".weighting",_1C);
};
this._$W=function(){
return this.LMSGetValue("cmi.interactions._count");
};
this._EW=function(){
return this.LMSGetValue("cmi.location");
};
this._vW=function(value){
return this.LMSSetValue("cmi.location",value);
};
this._eW=function(){
return this.LMSGetValue("cmi.mode");
};
this._nW=function(){
return this.LMSGetValue("cmi.completion_status");
};
this._oW=function(value){
return this.LMSSetValue("cmi.completion_status",value);
};
this._XW=function(value){
return this.LMSSetValue("cmi.score.max",value);
};
this._bW=function(){
return this.LMSGetValue("cmi.max_time_allowed");
};
this._VW=function(value){
return this.LMSSetValue("cmi.score.min",value);
};
this._kW=function(){
return this.LMSGetValue("cmi.score.raw");
};
this._YW=function(value){
return this.LMSSetValue("cmi.score.raw",value);
};
this._fX=function(){
return this.LMSGetValue("cmi.scaled_passing_score");
};
this._iX=function(){
return this.LMSGetValue("cmi.score.scaled");
};
this._cX=function(value){
return this.LMSSetValue("cmi.score.scaled",value);
};
this._yW=function(value){
return this.LMSSetValue("cmi.session_time",value);
};
this._FW=function(){
return this.LMSGetValue("cmi.learner_name");
};
this._hX=function(value){
return this.LMSSetValue("cmi.success_status",value);
};
this._gW=function(){
return this.LMSGetValue("cmi.suspend_data");
};
this._AW=function(value){
return this.LMSSetValue("cmi.suspend_data",value);
};
this._aW=function(){
return this.LMSGetValue("cmi.total_time");
};
this._zW=function(_jX){
var _hG="S";
var n;
n=_jX%1000;
_jX=Math.floor(_jX/1000);
n=Math.round(n/10);
if(n==100){
_jX++;
}
else if(n!=0){
_hG="."+this._rG(n)+_hG;
}
n=_jX%60;
_jX=Math.floor(_jX/60);
_hG=""+n+_hG;
if(_jX>0){
n=_jX%60;
_jX=Math.floor(_jX/60);
_hG=""+n+"M"+_hG;
if(_jX>0){
n=_jX%24;
_jX=Math.floor(_jX/24);
_hG=""+n+"H"+_hG;
}
}
_hG="T"+_hG;
if(_jX>0){
_hG=_jX+"D"+_hG;
}
_hG="P"+_hG;
return _hG;
};
this._$V=function(_4W){
_4W=_4W._3L();
var _kX="^P"+"(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)D)?"+"(?:T(?:(\\d+)H)?(?:(\\d+)M)?"+"(?:(\\d+(?:\\.\\d*)?)S)?)?"+"$";
var _9L=_4W.match(_kX);
if(!_9L){
_CG._DG("Invalid SCORM 2004 timeinterval format (\""+_4W+"\"). Should be P[yY][mM][dD][T[hH][mM][s[.s]S]].");
return null;
}
else{
var _lX=(_9L[1]?365*_9L[1]:0)+(_9L[2]?30*_9L[2]:0)+(_9L[3]?1*_9L[3]:0);
_lX=24*_lX+(_9L[4]?1*_9L[4]:0);
_lX=60*_lX+(_9L[5]?1*_9L[5]:0);
_lX=60*_lX+(_9L[6]?1*_9L[6]:0);
return Math.round(1000*_lX);
}
};
this._WW=function(value){
try{
var _mX=new Number(value);
return this._nX(_mX);
}
catch(e)
{
_CG._DG("Exception ("+e+") formatting raw score value '"+value+"'");
return"";
}
};
this._dX=function(value){
try{
var _mX=new Number(value);
return this._nX(_mX);
}
catch(e)
{
_CG._DG("Exception ("+e+") formatting scaled score value '"+value+"'");
return"";
}
};
this._JW=function(_7G){
var _hG="";
_hG+=_7G.getFullYear()+"-";
_hG+=this._rG(_7G.getMonth()+1)+"-";
_hG+=this._rG(_7G.getDate())+"T";
_hG+=this._rG(_7G.getHours())+":";
_hG+=this._rG(_7G.getMinutes())+":";
_hG+=this._rG(_7G.getSeconds());
return _hG;
};
this._nX=function(_oX){
var _hG=_oX.toFixed(7);
_hG=_hG.replace(/\.?0+$/,"");
return _hG;
};
this.LMSInitialize=function(){
return this._7V.Initialize("");
};
this.LMSFinish=function(){
return this._7V.Terminate("");
};
this.LMSCommit=function(){
return this._7V.Commit("");
};
this.LMSGetDiagnostic=function(_cE){
var rv=this._7V.GetDiagnostic(""+_cE);
return""+rv;
};
this.LMSGetValue=function(_fE){
var rv=this._7V.GetValue(""+_fE);
_CG._DG("LMS get <<<<< ["+_fE+"] is \""+rv+"\"");
return""+rv;
};
this.LMSSetValue=function(_fE,value){
_CG._DG("LMS SET >>>>> ["+_fE+"] to \""+value+"\"");
return this._7V.SetValue(""+_fE,""+value);
};
if(!this._WL()){
return{};
}
this._5L();
}
};
TBK._ML._NL[TBK._ML._NL.length]={
_OL:"SCORM12",_PL:function(url,_QL){
var _UL=null;
_CG._DG("Looking for a SCORM 1.2 API object starting in window.name = '"+_QL.name+"'");
var _TW="API";
_QL=TBK._ML._VM(_QL,_TW);
if(_QL){
if(_QL[_TW]&&(typeof _QL[_TW]!="string")){
_CG._DG("Found SCORM 1.2 API object in window.name = '"+_QL.name+"'");
_UL=new Object();
_UL._OL=this._OL;
_UL.API=_QL[_TW];
if(_QL.API_Extended&&(typeof _QL.API_Extended=="object")&&_QL.API_Extended.SetNavCommand){
_CG._DG("Found API_Extended object in window.name = '"+_QL.name+"'");
_UL._8V=_QL[_TW];
_UL.API_Extended=_QL.API_Extended;
}
if(_QL.objExperienceAPI&&(typeof _QL.objExperienceAPI!="string")){
_CG._DG("Found objExperienceAPI object in window.name = '"+_QL.name+"'");
_UL._8V=_QL[_TW];
_UL.objExperienceAPI=_QL.objExperienceAPI;
}
}
else{
_CG._DG("Unexpected error, bad SCORM 1.2 object found in window.name = '"+_QL.name+"'");
}
}
else{
_CG._DG("Didn't find a SCORM 1.2 API object");
}
return _UL;
},_ID:function(_UL){
if(_UL._OL!="SCORM12"){
_CG._DG("SCORM12 constructor: Wrong credential type \""+_UL._OL+"\" received");
return{};
}
_6V.call(this);
this._OL="SCORM12";
this._XG=true;
this._7V=_UL.API;
if(_UL.API_Extended){
this._8V=_UL._8V;
this.API_Extended=_UL.API_Extended;
}
if(_UL.objExperienceAPI){
this._8V=_UL._8V;
this.objExperienceAPI=_UL.objExperienceAPI;
}
this._lW=function(_cW){
this._UW=-1;
};
this._xW=function(_RG,_UG,_dM){
if(this.__V){
this._VW(this._WW(_dM));
this._XW(this._WW(_UG));
this._YW(this._WW(_RG));
}
else{
var _ZW;
if(_UG<=0){
_UG=100;
}
if(_dM<=0){
_ZW=0;
}
else{
_ZW=Math.round((_dM/_UG)*100*100)/100.0;
}
var _WV;
if(_RG<=0){
_WV=0;
}
else{
_WV=Math.round((_RG/_UG)*100*100)/100.0;
}
this._VW(this._0W(_ZW));
this._XW(this._0W(100));
this._YW(this._0W(_WV));
}
};
this._UC_GW=function(_4C){
this._UW++;
};
this._tW=function(){
return this.LMSGetValue("cmi.core.credit");
};
this._dW=function(){
return this.LMSGetValue("cmi.core.entry");
};
this._wW=function(value){
return this.LMSSetValue("cmi.core.exit",value);
};
this._SW=function(_RW,_pM){
return this.LMSSetValue("cmi.interactions."+this._UW+".correct_responses."+_RW+".pattern",_pM);
};
this._HW=function(id){
return this.LMSSetValue("cmi.interactions."+this._UW+".id",id);
};
this._LW=function(_1W){
return this.LMSSetValue("cmi.interactions."+this._UW+".latency",_1W);
};
this._OW=function(_kJ){
return this.LMSSetValue("cmi.interactions."+this._UW+".result",_kJ);
};
this._QW=function(_3C){
return this.LMSSetValue("cmi.interactions."+this._UW+".student_response",_3C);
};
this._IW=function(_2W){
return this.LMSSetValue("cmi.interactions."+this._UW+".time",_2W);
};
this._KW=function(_3W){
return this.LMSSetValue("cmi.interactions."+this._UW+".type",_3W);
};
this._PW=function(_1C){
return this.LMSSetValue("cmi.interactions."+this._UW+".weighting",_1C);
};
this._EW=function(){
return this.LMSGetValue("cmi.core.lesson_location");
};
this._vW=function(value){
return this.LMSSetValue("cmi.core.lesson_location",value);
};
this._eW=function(){
return this.LMSGetValue("cmi.core.lesson_mode");
};
this._nW=function(){
return this.LMSGetValue("cmi.core.lesson_status");
};
this._oW=function(value){
return this.LMSSetValue("cmi.core.lesson_status",value);
};
this._XW=function(value){
return this.LMSSetValue("cmi.core.score.max",value);
};
this._bW=function(){
return this.LMSGetValue("cmi.student_data.max_time_allowed");
};
this._VW=function(value){
return this.LMSSetValue("cmi.core.score.min",value);
};
this._kW=function(){
return this.LMSGetValue("cmi.core.score.raw");
};
this._YW=function(value){
return this.LMSSetValue("cmi.core.score.raw",value);
};
this._yW=function(value){
return this.LMSSetValue("cmi.core.session_time",value);
};
this._FW=function(){
return this.LMSGetValue("cmi.core.student_name");
};
this._gW=function(){
return this.LMSGetValue("cmi.suspend_data");
};
this._AW=function(value){
return this.LMSSetValue("cmi.suspend_data",value);
};
this._aW=function(){
return this.LMSGetValue("cmi.core.total_time");
};
this._zW=function(_eU){
return this._pG(_eU);
};
this._$V=function(_4W){
var _5W=false;
var _9L=_4W.split(":");
if(_9L.length>=2){
try{
var ms=1000*(3600*_9L[0]+60*_9L[1]+1*_9L[2]);
}
catch(e)
{
_5W=true;
}
}
else{
_5W=true;
}
if(_5W){
_CG._DG("Invalid SCORM duration format (\""+_4W+"\"). Should be HH:MM:SS.");
return null;
}
return ms;
};
this._0W=function(value){
var _hG="";
try{
_hG=new Number(value).toString();
}
catch(e)
{
_CG._DG("Exception ("+e+") formatting percent score value \""+value);
}
return _hG;
};
this._WW=function(value){
var _hG="";
try{
_hG=new Number(value).toString();
}
catch(e)
{
_CG._DG("Exception ("+e+") formatting raw score value \""+value);
}
return _hG;
};
this._JW=function(_7G){
var _hG="";
_hG+=this._rG(_7G.getHours())+":";
_hG+=this._rG(_7G.getMinutes())+":";
_hG+=this._rG(_7G.getSeconds());
return _hG;
};
this.LMSInitialize=function(){
return this._7V.LMSInitialize("");
};
this.LMSFinish=function(){
return this._7V.LMSFinish("");
};
this.LMSCommit=function(){
return this._7V.LMSCommit("");
};
this.LMSGetDiagnostic=function(_cE){
var rv=this._7V.LMSGetDiagnostic(""+_cE);
return""+rv;
};
this.LMSGetValue=function(_fE){
var rv=this._7V.LMSGetValue(""+_fE);
_CG._DG("LMS get <<<<< ["+_fE+"] is \""+rv+"\"");
return""+rv;
};
this.LMSSetValue=function(_fE,value){
_CG._DG("LMS SET >>>>> ["+_fE+"] to \""+value+"\"");
return this._7V.LMSSetValue(""+_fE,""+value);
};
if(!this._WL()){
return{};
}
this._5L();
}
};
TBK._ML._NL[TBK._ML._NL.length]={
_OL:"HACP",_PL:function(url,_QL){
var name,value;
_RL=decodeURIComponent(TBK.getParam("AICC_URL"));
if(!_RL){
_CG._DG("Detect AICC: No AICC detected because AICC_URL parameter missing.");
return null;
}
_SL="http://";
if(_RL.indexOf("http://")==0){
_RL=_RL.substring(7);
}
else if(_RL.indexOf("https://")==0){
_RL=_RL.substring(8);
_SL="https://";
}
_TL=TBK.getParam("AICC_SID");
if(!_TL){
_CG._DG("Detect AICC: No AICC connection because AICC_SID parameter missing.");
return null;
}
_UL=new Object();
_UL._OL=this._OL;
_UL._SL=_SL;
_UL._RL=_RL;
_UL._TL=_TL;
return _UL;
},_ID:function(_UL){
if(_UL._OL!="HACP"){
_CG._DG("HACP constructor: Wrong credential type \""+_UL._OL+"\" received");
return{};
}
_WF.call(this);
this._OL="HACP";
this._XG=true;
this._VL="3.0";
this._SL=_UL._SL;
this._RL=_UL._RL;
this._TL=_UL._TL;
this._WL=function(){
var _XL=this._YL("command=GetParam&version="+this._VL+"&session_id="+this._TL+"&AICC_DATA=\r\n");
_XL=_XL.split("\n");
var _ZL=new Object();
var _yG=new Object();
var _lG=new Object();
var _0L=_ZL;
_CG._DG("Attach to AICC: Processing GetParam return value");
var _1L=false;
var _2L="";
for(i=0;i<_XL.length;i++)
{
param=_XL[i]._3L();
if(param._AG("[")&&param._4L("]")){
if(param.toUpperCase()=="[CORE_LESSON]"){
_0L=_yG;
_1L=true;
}
else{
_0L=_ZL;
_1L=false;
}
_2L="";
_CG._DG("  - In "+param);
}
else{
start=param.indexOf("=");
if(start==-1){
if(_1L){
_0L=this._OC_vG(_lG,param);
_2L=param;
_CG._DG("  - In "+_2L);
}
}
else{
name=param.substring(0,start)._3L();
value=param.substring(start+1)._3L();
if(_2L=="prop"){
_0L[name]=eval("new Object("+value+")");
}
else{
_0L[name.toUpperCase()]=value;
}
_CG._DG("    - Name: "+name+"; Value: "+value);
}
}
}
if(TBK._fG(_ZL)){
_CG._DG("Attach to AICC: AICC connection failed because no data was returned from GetParam call");
return null;
}
this._ZL=_ZL;
this._yG=_yG;
this._lG=_lG;
return true;
};
this._5L=function(){
var _yG=this._yG;
var _lG=this._lG;
delete this._yG;
delete this._lG;
var _6L=this._ZL["VERSION"];
var _7L=parseFloat(_6L);
if(!isNaN(_7L)){
_CG._DG("Attach to AICC: LMS reports AICC version: "+_6L);
_8L=parseFloat(this._VL);
if(_7L<_8L){
if(_7L<2){
this._VL="2.0";
}
else{
this._VL=_6L;
}
}
}
var _9L;
var __L=this._ZL["TIME"];
if(__L){
_9L=__L.split(":");
if(_9L.length>=2){
this._aG=1000*(3600*_9L[0]+60*_9L[1]+1*_9L[2]);
}
else{
_CG._DG("Attach to AICC: [core] parameter 'time' invalid format (\""+__L+"\"). Should be HH:MM:SS. Assuming 0.");
}
}
else{
_CG._DG("Attach to AICC: Required [core] parameter 'time' not specified. Assuming 0.");
}
var __L=this._ZL["MAXTIME"];
if(__L){
_9L=__L.split(":");
if(_9L.length>=2){
this.__F=1000*(3600*_9L[0]+60*_9L[1]+1*_9L[2]);
}
}
var _$L=this._ZL["LESSON_STATUS"];
if(!_$L){
_$L="N";
var _aM="A";
}
else{
_$L=_$L.toUpperCase();
var _aM="";
start=_$L.indexOf(",");
if(start!=-1){
_aM=_$L.substring(start+1);
_$L=_$L.substring(0,start);
}
}
this._xG(_yG,_lG);
var _YG=0;
if(!TBK._fG(_lG)){
this._IG(_lG);
_YG=parseFloat(this._OC_KG("RawScore"));
if(isNaN(_YG)){
var _bM=this._ZL["SCORE"];
if(_bM){
_YG=parseFloat(this._ZL["SCORE"]);
if(isNaN(_YG)){
var start=_bM.indexOf(",");
if(start>-1){
_YG=parseFloat(_bM.substring(0,start));
if(isNaN(_YG)){
_YG=0;
}
}
else{
_YG=0;
}
}
}
else{
_YG=0;
}
}
}
if(window['_Question']){
_Question._YG=_YG;
}
this._cM="";
};
this._2G=function(_WG,_MD,_RG,_dM,_UG,_WD,_XD){
var _EC="command=PutParam&version="+this._VL+"&session_id="+this._TL+"&AICC_DATA=";
var _eM="[core]\r\nlesson_location=";
var url=this._fM?TBK._gM+"#"+this._fM:"0";
_eM+=url+"\r\n";
if(_WG==this._hM){
_eM+="Lesson_Status=Incomplete";
switch(_WD){
case this._iM:break;
case this._jM:case this._kM:default:_eM+=",suspend";
break;
}
_eM+="\r\n";
}
else if(_WG==this._lM);
else if(_WG==this._mM);
else{
_eM+="Lesson_Status=Completed";
switch(_WD){
case this._jM:_eM+=",suspend";
break;
case this._iM:case this._kM:default:break;
}
_eM+="\r\n";
}
if(_WG==this._hM||_WG==this._nM){
_eM+="Time="+this._pG(new Date().getTime()-this._$F)+"\r\n";
if(_RG||_UG||_dM){
_eM+="score=";
if(this._VL<3&&this._YF){
if(_RG<0||_UG<=0){
_eM+="0";
}
else{
_eM+=Math.round((_RG/_UG)*100);
}
}
else{
_eM+=_RG;
}
if(this._VL>=3){
_eM+=","+_UG+","+_dM;
}
_eM+="\r\n";
}
this._UC_KG("RawScore",_RG);
_eM+="[core_lesson]\r\n";
_eM+=this._gG();
if(this._VL<3){
_eM+="[mercury_data]\r\n";
_eM+="maxtestscore="+_UG+"\r\n";
_eM+="mintestscore="+_dM+"\r\n";
}
this._YL(_EC+encodeURIComponent(_eM));
_EC="command=PutInteractions&version="+this._VL+"&session_id="+this._TL+"&aicc_data=";
_eM="\"date\", \"time\", \"interaction_id\", \"objective_id\", \"type_interaction\", \"correct_response\", \"student_response\", \"result\", \"weighting\", \"latency\" \r\n";
this._YL(_EC+encodeURIComponent(_eM)+encodeURIComponent(this._cM));
}
this._YL("command=ExitAU&version="+this._VL+"&session_id="+this._TL);
};
this._OC_oM=function(_4C){
var _4F=this._OC_5F(_4C);
var _pM="";
var _0F=this._YF&&(_4F=="choice"||_4F=="true-false"||_4F=="matching"||_4F=="sequencing");
var _qM=0;
for(var i=0;i<_4C._8F.length;i++)
{
var _lD=_4C._8F[i];
if(_lD._YC){
_qM++;
_pM=this._ZF(_pM,_0F,_4C,_lD,true);
}
}
if(_qM>1&&!_4C._rM){
_pM="{"+_pM+"}";
}
return _pM;
};
this._OC_sM=function(start){
var _sM=this._ZL["LESSON_LOCATION"];
if(_sM){
var _tM=TBK._uM(_sM);
if(_tM){
return _tM;
}
}
return start;
};
this.getStudentName=function(){
return this._ZL["STUDENT_NAME"];
};
this._vM=function(_4C){
if(_4C._wM){
if(this._cM){
this._cM+="\r\n";
}
var _xM=new Date(_4C._yM);
this._cM+="\""+_xM.getFullYear()+"/"+this._rG(_xM.getMonth()+1)+"/"+this._rG(_xM.getDate())+"\", ";
this._cM+="\""+this._rG(_xM.getHours())+":"+this._rG(_xM.getMinutes())+":"+this._rG(_xM.getSeconds())+"\", ";
this._cM+="\""+this._OC_cG(_4C)+"\", ";
this._cM+="\"oid\", ";
this._cM+="\""+this._OC_5F(_4C)+"\", ";
this._cM+="\""+this._OC_oM(_4C)+"\", ";
this._cM+="\""+this._OC_tG(_4C)+"\", ";
var _RG=_4C.lastScore;
var _UG=_4C._UG;
if(this._YF&&(this._VL<3.0)){
if(_RG<=0||_UG<=0){
_RG=0;
}
else{
_RG=Math.round((_RG/_UG)*100);
}
}
this._cM+="\""+_RG+"\", ";
this._cM+="\""+_UG+"\", ";
this._cM+="\""+this._pG(_4C._zM)+"\"";
if(_4C._5F!="Simulation"){
this._3G(_4C.id,this._6F(_4C));
}
}
};
this._YL=function(_AM){
return TBK.post(this._SL+this._RL,_AM);
};
if(!this._WL()){
return{};
}
this._5L();
}
};
TBK._ML._NL[TBK._ML._NL.length]={
_OL:"NoLMS",_PL:function(url,_QL){
var _UL={_OL:this._OL};
return _UL;
},_ID:function(_UL){
if(_UL._OL!="NoLMS"){
_CG._DG("NoLMS constructor: Wrong credential type \""+_UL._OL+"\" received");
return null;
}
_XF.call(this);
this._OL="NoLMS";
}
};
function _BookEntry(_1D,_ZD){
this._1D=_1D;
this._ZD=_ZD;
}
function _Book(id){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,null,true,true,false,"","",null,null);
if(!this.constructor.prototype._AC['_Book']){
this.constructor.prototype._AC['_Book']=true;
}
_Book._GD=this;
}
}
_Book.prototype=new _Object();
_Book._GD=null;
_Book._HD=[];
_Book.prototype.addLink=function(){
TBK._ID.addLink();
};
_Book.prototype.addNote=function(){
TBK._ID.addNote();
};
_Book.prototype.alert=function(message){
TBK._JD();
this._KD().alert(message);
};
_Book.prototype.asNumber=function(x){
if(!this.isNumber(x)){
var message=TBK._LD(TBK._pD('_qD.29'),[""+x]);
window.alert(message);
}
return 1*x;
};
_Book.prototype.asString=function(x){
return""+x;
};
_Book.prototype.complete=function(_MD,_ND){
TBK.exit(TBK._OD,_MD,_ND,TBK._PD,TBK._QD);
};
_Book.prototype.confirm=function(message){
TBK._JD();
return this._KD().confirm(message);
};
_Book.prototype.dereference=function(id){
return TBK._RD(id);
};
_Book.prototype.dereferenceByName=function(name,id){
return TBK._SD(name,id);
};
_Book.prototype.discard=function(_MD,_ND){
TBK.exit(TBK._TD,_MD,_ND,TBK._UD,TBK._QD);
};
_Book.prototype.exit=function(_VD,_WD,_XD,_ND){
if(_VD==TBK._YD){
this.restart(false,_ND);
}
else{
TBK.exit(_VD,false,_ND,_WD,_XD);
}
};
_Book.prototype.getContents=function(){
var contents=new Array(_Book._HD.length);
for(var i=0;i<_Book._HD.length;i++)
{
contents[i]=_Book._HD[i]._ZD;
}
return contents;
};
_Book.prototype.getDescription=function(){
return TBK._ID.getDescription();
};
_Book.prototype.getHtmlContents=function(){
var contents="";
if(_Page._0D){
for(var i=0;i<_Book._HD.length;i++)
{
contents+="<a href='#"+_Book._HD[i]._1D+"'>";
if(_Book._HD[i]._1D==_Page._0D.id){
contents+="<img border=0 src=../resources/index.gif><b>";
}
else{
contents+="<img border=0 src=../resources/index2.gif>";
}
contents+=_Book._HD[i]._ZD;
if(_Book._HD[i]._1D==_Page._0D.id){
contents+="</b>";
}
contents+="</a>";
if(i<(_Book._HD.length-1)){
contents+="<br>";
}
}
}
return contents;
};
_Book.prototype.getLaunchPage=function(){
return TBK.launchPage;
};
_Book.prototype.getParam=function(name){
return TBK.getParam(name);
};
_Book.prototype.getStudentName=function(){
return TBK._ID.getStudentName();
};
_Book.prototype.getTitle=function(){
return TBK._OC_2D();
};
_Book.prototype.hasNext=function(){
return TBK._3D.hasNext(TBK._4D);
};
_Book.prototype.hasPrevious=function(){
return TBK._3D.hasPrevious(TBK._4D);
};
_Book.prototype.integerToRGB=function(_5D){
return TBK.integerToRGB(_5D);
};
_Book.prototype.isNumber=function(x){
return TBK.isNumber(x);
};
_Book.prototype.millisecondsToTime=function(ms){
return TBK.millisecondsToTime(ms);
};
_Book.prototype.playMovie=function(url){
TBK.playMovie(url);
};
_Book.prototype.playSound=function(url){
TBK.playSound(url);
};
_Book.prototype.post=function(url){
return TBK.post(url);
};
_Book.prototype.print=function(){
this._KD().print();
};
_Book.prototype.prompt=function(message,_6D){
TBK._JD();
return this._KD().prompt(message,_6D);
};
_Book.prototype.reset=function(){
TBK._7D();
this.fireEventInternal("reset","",this);
};
_Book.prototype.resetPage=function(_1D){
var _8D=TBK._RD(_1D);
if(_8D){
_8D.reset();
}
else if(_Page._9D(_1D)){
_8D=TBK.Persistence.dereference(_1D);
if(_8D){
_8D.reset();
}
}
};
_Book.prototype.restart=function(_MD,_ND){
if(!_ND||window.confirm(TBK._pD('_qD.44'))){
this.reset();
__D=TBK._OC_$D();
if(__D){
TBK._aE.gotoPage(__D);
}
}
};
_Book.prototype.rgbToInteger=function(_bE){
return TBK.rgbToInteger(_bE);
};
_Book.prototype.SCORM_LMSCommit=function(){
return TBK.LMSCommit();
};
_Book.prototype.SCORM_LMSGetDiagnostic=function(_cE){
return TBK.LMSGetDiagnostic(_cE);
};
_Book.prototype.SCORM_LMSGetErrorString=function(_cE){
return TBK._dE(_cE);
};
_Book.prototype.SCORM_LMSGetLastError=function(){
return TBK._eE();
};
_Book.prototype.SCORM_LMSGetValue=function(_fE){
return TBK.LMSGetValue(_fE);
};
_Book.prototype.SCORM_LMSSetValue=function(_fE,value){
return TBK.LMSSetValue(_fE,value);
};
_Book.prototype.setLaunchPage=function(launchPage){
TBK.launchPage=launchPage;
this.fireEvent("change","launchPage");
return TBK.launchPage;
};
_Book.prototype.setParam=function(name,value){
TBK.setParam(name,value);
};
_Book.prototype.showExperts=function(){
TBK._ID.showExperts();
};
_Book.prototype.showFeedback=function(){
TBK._ID.showFeedback();
};
_Book.prototype.showGlossary=function(){
TBK._ID.showGlossary();
};
_Book.prototype.showHelp=function(){
TBK._ID.showHelp();
};
_Book.prototype.status=function(message){
this._KD().status=message;
};
_Book.prototype.stopAllMedia=function(){
TBK._gE();
if(window['_hE']){
_hE.stopAllMedia();
}
};
_Book.prototype.suspend=function(_MD,_ND){
TBK.exit(TBK._iE,_MD,_ND,TBK._jE,TBK._QD);
};
_Book.prototype.toLowerCase=function(s){
return(""+s).toLowerCase();
};
_Book.prototype.toUpperCase=function(s){
return(""+s).toUpperCase();
};
_Book.prototype.stop=function(){
this.fireEvent("stop","");
};
_Book.prototype.canTransition=function(){
return true;
};
_Book.prototype.start=function(){
this._kE=document.body;
this.fireEvent("start","");
};
_Book.prototype._KD=function(){
return window;
};
_Book._lE=function(name,_mE,_nE,_oE,_pE,_qE){
document.write("<applet id=\""+name+"\" name=\""+name+"\" code=\""+_mE+"\" codebase=\""+_nE+"\" "+"archive=\""+_oE+"\" width=\"0\" height=\"0\" MAYSCRIPT>");
if(_pE){
document.write("<param name=\"debug\" value=\"true\">");
}
if(_qE){
document.write("<param name=\"cabbase\" value=\"bootstrapSigned.cab\">");
}
document.write("</applet>");
};
_Book._rE=function(name,_mE,_nE,_oE,_sE,_pE,_qE){
document.write("<applet id=\""+name+"\" name=\""+name+"\" code=\""+_mE+"\" codebase=\""+_nE+"\" "+"archive=\""+_oE+"\" width=\"0\" height=\"0\" MAYSCRIPT>");
if(_sE!=null){
document.write("<param name=\"encoding\" value=\""+_sE+"\">");
}
if(_pE){
document.write("<param name=\"debug\" value=\"true\">");
}
if(_qE){
document.write("<param name=\"cabbase\" value=\"bootstrapSigned.cab\">");
document.write("<param name=\"signedApplet\" value=\"true\">");
}
document.write("</applet>");
};
_Book._tE=function(id,_yC){
document.write("<object classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" "+"codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab\" "+"id=\""+id+"\" width=\"0\" height=\"0\">");
document.write("<param name=\"AutoStart\" value=\"1\">");
document.write("<param name=\"FileName\" value=\""+_yC+"\">");
document.write("<param name=\"ShowControls\" value=\"1\">");
document.write("<param name=\"ShowDisplay\" value=\"0\">");
document.write("</object>");
};
function _UN(_sC,_tC,_uC,_SN,_TN){
if(arguments.length>0){
if(!this.constructor.prototype._AC['_UN']){
this.constructor.prototype._AC['_UN']=true;
}
if(_sC){
this._tC=_tC?_tC:[];
this._uC=_uC;
this._SN=_SN;
this._TN=_TN;
this._60=true;
this._70=this._TN?Number.MAX_VALUE:Number.MIN_VALUE;
this._80=this._70;
this._90=new Array(this._tC.length);
}
else{
this._wO=function(){};
this._vO=function(){};
this._YN=function(){};
this._XN=function(){};
this._sO=function(){};
this.__0=function(){};
}
}
else{
this._wO=function(_$0){
this._60=false;
for(var i=0;i<this._tC.length;i++)
{
if(!this._90[i]){
var _ED=0+this._tC[i];
if((this._TN&&(_ED>=_$0))||(!this._TN&&(_ED<=_$0))){
this._90[i]=true;
this.fireEvent("markerIndex",""+i);
this.fireEvent("timeMarker",""+_ED);
}
}
}
if(this._uC){
var _OQ=this._TN?Math.ceil(_$0/this._uC):Math.floor(_$0/this._uC);
if((this._TN&&(_OQ<this._70))||(!this._TN&&(_OQ>this._70))){
this._70=_OQ;
this.fireEvent("timeMarker",""+(_OQ*this._uC));
}
}
};
this._vO=function(){
if(this._90){
for(var i=0;i<this._90.length;i++)
{
this._90[i]=false;
}
}
this._70=this._TN?Number.MAX_VALUE:Number.MIN_VALUE;
this._80=this._70;
};
this._YN=function(){
if(!this._a1){
this._a1=window.setTimeout(this.id+"."+'__0'+"()",100);
}
};
this._XN=function(){
if(this._a1){
window.clearTimeout(this._a1);
this._a1=null;
}
this._sO();
};
this._sO=function(){
this._vO();
if(!this._60){
this._60=true;
this.fireEvent("complete","");
}
};
this.__0=function(){
window.onerror=_UN._qH;
var _$0=this.getPosition();
if((this._TN&&(_$0>this._80))||(!this._TN&&(_$0<this._80))){
this._vO();
}
else{
this._80=_$0;
}
if(this.getStopped()){
if(!this._60){
this.stop();
this._sO();
}
}
else if(this.getPlaying()){
this._wO(_$0);
}
window.onerror=_CG._qH;
if(this._a1){
this._a1=window.setTimeout(this.id+"."+'__0'+"()",100);
}
}
}
}
_UN._qH=function(){
window.onerror=_CG._qH;
return true;
};
function _hE(id,_mC,enabled,visibility,_nC,name,title,parent,_oC,_pC,_lL,_rC,_sC,_tC,_uC,_SN,_TN){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,_mC,enabled,visibility,_nC,name,title,parent);
_UN.call(this,_sC,_tC,_uC,_SN,_TN);
if(!this.constructor.prototype._AC['_hE']){
this.constructor.prototype._AC['_hE']=true;
}
this._lL=_lL;
this._oC=_oC;
this._pC=_pC;
this._rC=_rC;
}
}
_hE.prototype=new _Object();
_UN.call(_hE.prototype);
_hE._VN={};
_hE.prototype.setPlaying=function(playing){
if(TBK._eF(playing)){
this.play();
}
else{
this.stop();
}
this.fireEvent("change","playing");
return this.getPlaying();
};
_hE.prototype._IC=function(_CC){
if(this._WN){
window.clearTimeout(this._WN);
}
this._WN=window.setTimeout(_CC,500);
};
_hE.prototype._GC=function(){
this._DC=TBK._rF(this._lL);
};
_hE.prototype._wF=function(){
this._DC=null;
};
_hE.prototype._WE=function(_XE){
_hE._VN[this.id]=this;
};
_hE.prototype._ZE=function(){
if(_Page._0D){
this.stop();
this._XN();
if(this._WN){
window.clearTimeout(this._WN);
}
}
};
_hE.prototype._YE=function(){
if(_Page._0D){
this.stop();
if(this._oC){
this.play();
}
if(this._SN){
this._YN();
}
}
};
_hE.prototype._bD=function(){
this.stop();
this.setPosition(0);
};
_hE.prototype._ZN=function(){
this.stop();
this.play();
};
_hE.prototype._dI=function(){
if(_hE._VN[this.id]){
delete _hE._VN[this.id];
}
};
_hE.stopAllMedia=function(){
for(var id in _hE._VN)
{
var _0N=TBK._RD(id);
if(_0N){
_0N.stop();
_0N.setPosition(0);
}
}
};
function _Sound(id,name,title,parent,_oC,_pC,_rC,_20,_sC,_tC,_uC){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_hE.call(this,id,null,true,false,false,name,title,parent,_oC,_pC,null,_rC,_sC,_tC,_uC,false,false);
if(!this.constructor.prototype._AC['_Sound']){
this.constructor.prototype._AC['_Sound']=true;
}
this._20=TBK._HC(_20);
this._mV=-1;
this.position=0;
this._pO=0;
}
}
_Sound.prototype=new _hE();
_Sound.prototype.getPlaying=function(){
if(this._mV>=0){
return((TBK._sS[this._mV].ReadyState>=3)&&(TBK._sS[this._mV].PlayState==2));
}
else{
return false;
}
};
_Sound.prototype.getPosition=function(){
if((this._mV>=0)&&(TBK._sS[this._mV].ReadyState>=3)){
this.position=Math.round(TBK._sS[this._mV].CurrentPosition*1000);
}
return this.position;
};
_Sound.prototype.getStopped=function(){
if(this._mV>=0){
return((TBK._sS[this._mV].ReadyState<3)||(TBK._sS[this._mV].PlayState==0));
}
else{
return true;
}
};
_Sound.prototype.pause=function(){
if(this._mV>=0){
if(TBK._sS[this._mV].ReadyState>=3){
TBK._sS[this._mV].Pause();
}
else{
this._IC(this.id+"."+'pause'+"()");
}
}
};
_Sound.prototype.play=function(){
if(this._mV==-1){
this._mV=TBK._$T();
if(this._mV>=0){
TBK._sS[this._mV].PlayCount=Math.max(0,this._rC);
TBK._sS[this._mV].FileName=this._20;
if(this.position>0){
this._UC_MQ();
}
TBK._tS[this._mV]=this.id;
TBK._uS[this._mV]=this._20;
}
}
else{
TBK._sS[this._mV].Play();
}
this._YN();
};
_Sound.prototype.setPosition=function(position){
this.position=Math.max(0,Math.min(this._pC,position));
if(this._mV>=0){
this._UC_MQ();
}
this.fireEvent("change","position");
return this.getPosition();
};
_Sound.prototype.stop=function(){
this.position=0;
if(this._mV>=0){
TBK._sS[this._mV].Stop();
TBK._tS[this._mV]=null;
TBK._uS[this._mV]=null;
this._mV=-1;
}
this._XN();
};
_Sound.prototype._UC_MQ=function(){
if(TBK._sS[this._mV].ReadyState>=3){
TBK._sS[this._mV].CurrentPosition=this.position/1000;
}
else{
this._IC(this.id+"."+'_UC_MQ'+"()");
}
};
TBK._aE=new Object();
TBK._aE._5L=function(){
};
TBK._aE.gotoBack=function(){
};
TBK._aE.gotoBook=function(){
};
TBK._aE.gotoFirst=function(){
};
TBK._aE.gotoLast=function(){
};
TBK._aE.gotoNext=function(){
};
TBK._aE.gotoPrevious=function(){
};
TBK._aE.gotoPage=function(id,transition){
if(!id){
_CG._DG("TBK.Sequence.gotoPage(): Called with no page id.");
return false;
}
if(_Page._0D&&_Page._0D.id==id){
return true;
}
if(!TBK.Persistence._7Q(id)){
_CG._DG("TBK.Sequence.gotoPage(): Could not load page "+id);
return false;
}
var _rH=TBK._pD('_qD.3');
window.status=TBK._LD(_rH,[id]);
TBK._vV(transition);
var _MK=100;
if(this._OS){
var _vH=new Date();
_MK=Math.max(_MK,this._OS-_vH.getTime());
this._OS=0;
}
if(this._4P){
window.clearTimeout(this._4P);
}
var _OM='TBK._aE._0U'+"('"+id+"')";
this._4P=window.setTimeout(_OM,_MK);
return true;
};
TBK._aE._QX=function(){
};
TBK._aE._RX=function(){
};
TBK._aE.gotoURL=function(){
};
TBK._aE.popupPage=function(){
};
TBK._aE._SX=function(){
};
TBK._aE._TX=function(){
};
TBK._aE.popupBook=function(){
};
TBK._aE._OC_UX=function(){
};
TBK._aE._OC_VX=function(){
};
TBK._aE._OC_UM=function(){
};
TBK._aE._OC_WX=function(){
};
TBK._aE._OC_XX=function(){
};
TBK._aE._OC_$D=function(){
};
TBK._aE._OC_yQ=function(){
};
TBK._aE._YX=function(_ZX){
if(!TBK._pV){
return;
}
var _8D=TBK._RD(_ZX);
_Page._TP=_8D;
if(_8D){
var _0X=null;
if(this._0X){
_0X=window[this._0X];
if(!_0X){
_CG._DG("Warning: Destination page "+this._0X+" not already loaded in TBK.Sequence.pageUnloaded()");
_0X=TBK.Persistence._7Q(this._0X);
}
delete this._0X;
}
var _1X=TBK._OC_4S();
this._2X=[];
_8D._kQ(this._2X);
this._3X(_0X);
for(var i=0;i<this._2X.length;i++)
{
var p=this._2X[i];
var _wQ=!TBK._rU(p,this._4X);
p._vQ(_wQ);
if(_wQ){
this._2X[i]=null;
}
_1X[p.id]=null;
}
TBK._EP(TBK._OC_5S());
_1X.TBK=null;
_1X[_ZX]=null;
TBK._IS=null;
TBK._UC_IP=null;
}
TBK.Persistence._9Q();
_Page._0D=null;
if(TBK._NH){
TBK._1U();
}
};
TBK._aE._5X=function(_ZX){
if(!TBK._pV){
TBK.Persistence._1Q("");
return;
}
if(!this._6X){
this._6X=true;
var _7X=document.getElementById("sysstandby");
TBK._qF(_7X);
}
var _8D=window[_ZX];
if(!_8D){
_CG._DG("Warning: Page "+_ZX+" not already loaded in TBK.Sequence.pageLoaded()");
_8D=TBK.Persistence._7Q(_ZX);
}
if(_8D){
_Page._0D=_8D;
var _1X=TBK._OC_4S();
_1X.TBK=TBK;
TBK._ID._UC_UM(_8D);
if(!this._4X){
this._3X(_8D);
}
TBK._UC_6S(this._8X.width,this._8X.height);
TBK._2S();
TBK._OC_5S().oncontextmenu=TBK._6T;
TBK._bN(TBK._OC_5S(),_8D,["click","dblclick","keydown","keypress","keyup","mousedown","mouseup"]);
var i;
var p;
if(!this._2X){
this._2X=[];
}
_Page._3P=[];
for(i=0;i<this._4X.length;i++)
{
p=this._4X[i];
if(p._PP){
for(var j=0;j<p._PP.length;j++)
{
var _oH=p._PP[j];
if(_oH){
_Page._3P[_Page._3P.length]=_oH;
}
}
}
_1X[p.id]=p;
p._sQ();
}
for(var i=0;i<this._4X.length;i++)
{
TBK.Persistence.__C_YQ(this._4X[i]);
}
for(var i=0;i<this._4X.length;i++)
{
p=this._4X[i];
if(!TBK._rU(p,this._2X)){
p._rQ();
}
}
if(_Page._2P.length==0){
_Page._2P[0]=_8D.id;
}
else if(_8D.id!=_Page._2P[_Page._2P.length-1]){
_Page._2P[_Page._2P.length]=_8D.id;
}
_8D._uQ();
TBK._IS=_1X.document.getElementById("sysfocusRect");
_Page.tabIndex=-1;
_Page._CQ(false);
for(var i=0;i<this._4X.length;i++)
{
p=this._4X[i];
if(!TBK._rU(p,this._2X)){
p.fireEvent("load","");
}
}
delete this._2X;
delete this._4X;
delete this._8X;
var _pC=new Date().getTime()-this.start;
var _rH=TBK._pD('_qD.4');
window.status=TBK._LD(_rH,[_8D.id,_pC]);
}
};
TBK._aE._0U=function(id){
if(this._4P){
window.clearTimeout(this._4P);
}
if(_Page._0P){
var _OM='TBK._aE._0U'+"('"+id+"')";
this._4P=window.setTimeout(_OM,100);
return;
}
else{
this._4P=null;
}
this.start=new Date().getTime();
_Page._2K(true);
TBK._gE();
this._0X=id;
TBK.Persistence._1Q(id);
};
TBK._aE._3X=function(_8D){
this._4X=[];
this._8X={};
this._8X.width=0;
this._8X.height=0;
if(_8D){
_8D._mQ(this._4X,_Page._0O,_Page._DI,this._8X);
}
};
function _Sequence(_mU,_7F,_JG){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
this._mU=_mU;
this._7F=_7F;
this._JG=_JG;
}
}
TBK._aE._HD=[];
function _Scrollable(_8P){
if(arguments.length>0){
if(!this.constructor.prototype._AC['_Scrollable']){
this.constructor.prototype._AC['_Scrollable']=true;
}
this._8P=_8P;
this.pan=0;
this.scroll=0;
this.savePropertyDefault('pan');
this.savePropertyDefault('scroll');
}
else{
this.getPan=function(){
if(this._kE){
return this._kE.scrollLeft;
}
else{
return this.pan;
}
};
this.getScroll=function(){
if(this._kE){
return this._kE.scrollTop;
}
else{
return this.scroll;
}
};
this.setPan=function(pan){
this.__Cpan(1*pan);
this.fireEvent("change","pan");
return this.getPan();
};
this.setScroll=function(scroll){
this.__Cscroll(1*scroll);
this.fireEvent("change","scroll");
return this.getScroll();
};
this.__Cpan=function(pan){
pan=Math.max(pan,0);
if(this._kE){
this._kE.scrollLeft=pan;
this.pan=this._kE.scrollLeft;
}
else{
this.pan=pan;
}
};
this.__Cscroll=function(scroll){
scroll=Math.max(scroll,0);
if(this._kE){
this._kE.scrollTop=scroll;
this.scroll=this._kE.scrollTop;
}
else{
this.scroll=scroll;
}
};
this._wF=function(){
this.persistProperty('pan');
this.persistProperty('scroll');
}
}
}
function _Layer(id,_mC,enabled,visibility,_nC,name,title,parent,__M){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,_mC,enabled,visibility,_nC,name,title,parent);
_Scrollable.call(this,true);
if(!this.constructor.prototype._AC['_Layer']){
this.constructor.prototype._AC['_Layer']=true;
}
this.__M=__M;
}
}
_Layer.prototype=new _Object();
_Scrollable.call(_Layer.prototype);
_Layer.prototype._$M=_Layer.prototype.fireEventInternal;
_Layer.prototype.fireEventInternal=function(event,_ED,_HF,_aN){
if(this.__M&&_Page._0D&&(this._sL!=_Page._0D)){
this.cancelBubble();
_Page._0D.fireEvent(event,_ED,_aN);
}
else{
this._$M(event,_ED,_HF,_aN);
}
};
_Layer.prototype._GC=function(){
if(this.__M&&this._kE){
TBK._bN(this._kE,this,["click","dblclick","keydown","keypress","keyup","mousedown","mouseup"]);
}
};
function _XC(id,_mC,enabled,visibility,_nC,name,title,parent,_YC,_ZC,_0C,_1C){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,_mC,enabled,visibility,_nC,name,title,parent);
if(!this.constructor.prototype._AC['_XC']){
this.constructor.prototype._AC['_XC']=true;
}
this._YC=_YC;
this._ZC=_ZC;
this._0C=_0C;
this._1C=_1C;
this.answered=false;
this._2C=null;
this._3C=null;
}
}
_XC.prototype=new _Object();
_XC.prototype.findAnswerIdentification=function(){
return this._ZC?"<else>":this.getName();
};
_XC.prototype.getAnswered=function(){
return this.answered;
};
_XC.prototype.initializeAnswer=function(_4C){
if(!_4C._5C){
_4C.setProperty('_5C',0);
}
if(_4C._5C<_Question._6C.length){
this.setProperty('_2C',_Question._6C.substr(_4C._5C++,1));
_4C.setProperty('_5C',_4C._5C);
}
else{
this.setProperty('_2C',"");
}
this.setProperty('_3C',TBK._7C(this.findAnswerIdentification()));
};
_XC.prototype.setAnsweredState=function(answered){
var _4C=this._8C();
if(_4C){
_4C.setAnsweredState(this,answered);
}
else{
this.setProperty('answered',answered);
}
return this.getAnswered();
};
_XC.prototype._8C=function(){
if(!this._9C('_AnswerableContainer')){
return this._9C('_Question');
}
else{
return null;
}
};
_XC.prototype._UCanswered=function(answered){
this.__Canswered(answered);
return this.getAnswered();
};
_XC.prototype._$C=function(_aD){
return(this._ZC||(_aD==this.name));
};
_XC.prototype.__Canswered=function(answered){
this.answered=answered;
this.paint();
};
_XC.prototype._bD=function(){
this.setProperty('answered',false);
};
function _Feedback(id,parent,_jL,_kL,_ED,_lL,_mL,_nL,text,_oL,transition,type){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,null,true,false,false,"","",parent);
if(!this.constructor.prototype._AC['_Feedback']){
this.constructor.prototype._AC['_Feedback']=true;
}
this._jL=_jL;
this._kL=_kL;
this._ED=_ED;
this._lL=_lL;
this._mL=_mL;
this._nL=_nL;
this.text=text;
this._oL=_oL;
this.transition=transition;
this.type=type;
}
}
_Feedback.prototype=new _Object();
_Feedback._pL=null;
_Feedback.prototype._WE=function(_XE){
this._DC=TBK._RD(this._lL);
};
_Feedback.prototype._dI=function(){
this._DC=null;
};
_Feedback._qL=function(id,_oH,type){
if(_oH._tI){
for(var i=0;i<_oH._tI.length;i++)
{
var _rL=_oH._tI[i];
if(_rL.isInstance('_Feedback')&&((_rL.type=="always")||(_rL.type==type))){
if(_Feedback._pL){
if(_Feedback._pL.getProperty('_UE')){
_Feedback._pL.reset();
}
_Feedback._pL=null;
}
if(_rL._ED){
_oH.fireEvent("user",_rL._ED);
}
if(_rL.text){
_Feedback._rD(id,_rL.text,_rL._oL);
}
if((_rL._kL!="none")&&_oH._sL._tL(_rL._kL,_rL._jL)){
_oH._sL._uL(_rL._kL,_rL._jL,_rL.transition);
}
if(_rL._mL){
TBK.playMovie(_rL._mL);
}
if(_rL._nL){
TBK.playSound(_rL._nL);
}
if(_rL._DC){
_rL._DC.reset();
_rL._DC.play();
_Feedback._pL=_rL._DC;
}
}
}
}
};
_Feedback._rD=function(id,text,_oL){
window.setTimeout('_Feedback._vL'+"(\""+id+"\","+TBK._eL(text)+",\""+_oL+"\")",50);
};
_Feedback._vL=function(id,text,_oL){
var _wL=TBK._RD(id);
if(((_oL=="auto")&&(!_wL||!_wL.getShowing()))||(_oL=="popup")){
if(_Page._0D&&(text!=" ")){
_Page._0D._3K(text,true,true,true);
}
text="";
}
if(_wL&&_wL.setHtmlText){
_wL.setProperty('htmlText',text);
}
};
function _Answerable(_eD,_fD,_gD){
if(arguments.length>0){
if(!this._AC['_Answerable']){
this._AC=TBK._hD(this._AC);
this._AC['_Answerable']=true;
if(!this._iD){
_Answerable.call(this);
}
}
this._eD=_eD;
this._fD=_fD;
this._gD=_gD;
this.locked=false;
if(typeof this._0C=="undefined"){
this._0C=null;
}
}
else{
this._jD=function(){
var _kD="";
if(this.isInstance('_XC')){
if(this.getProperty('answered')){
var _lD=this.findAnswerIdentification();
if(_lD){
_kD=TBK._7C(_lD,"log");
}
}
}
else{
var _mD=this._nD();
for(var i=0;i<_mD.length;i++)
{
if(_mD[i].getProperty('answered')){
_lD=_mD[i].findAnswerIdentification();
if(_lD){
_lD=TBK._7C(_lD,"log");
if(_kD){
_kD+="\t"+_lD;
}
else{
_kD=_lD;
}
}
}
}
}
return _kD;
};
this._oD=function(_4C){
if(this.locked){
var text=this._gD?TBK._pD(this._gD):TBK._pD('_qD.36');
_Feedback._rD(_4C._sD,text,"auto");
}
return this.locked;
};
this._nD=function(){
return this._tD('_XC');
};
this._8C=function(){
if(!this._9C('_AnswerableContainer')){
return this._9C('_Question');
}
else{
return null;
}
};
this._uD=function(_vD){
this.setProperty('_fD',_vD);
};
this._wD=function(_vD){
if(!this._eD){
this.setProperty('locked',_vD);
}
};
this.initializeAnswers=function(_4C){
if(this.isInstance('_XC')){
this.initializeAnswer(_4C);
}
else{
var _mD=this._nD();
for(var i=0;i<_mD.length;i++)
{
_mD[i].initializeAnswer(_4C);
}
}
};
this._xD=this._bD;
this._bD=function(){
if(this._xD){
this._xD();
}
this.setProperty('locked',false);
};
this._iD=true;
}
}
function _Text(id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_YC,_ZC,_0C,_1C,_b1,htmlText){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_XC.call(this,id,_mC,enabled,visibility,_nC,name,title,parent,_YC,_ZC,_0C,_1C);
_Answerable.call(this,_eD,_fD,_gD);
_Scrollable.call(this,true);
if(!this._AC['_Text']){
this._AC['_Text']=true;
this._UC_BO('text','_CO');
}
this._b1=_b1;
this.htmlText=htmlText;
}
}
_Text.prototype=new _XC();
_Answerable.call(_Text.prototype);
_Scrollable.call(_Text.prototype);
_Text.prototype.getHtmlText=function(){
if(this._lZ){
return this._lZ.innerHTML;
}
else{
return this.htmlText;
}
};
_Text.prototype.getRtfText=function(){
return"";
};
_Text.prototype.getText=function(){
return TBK._0V(this.getHtmlText());
};
_Text.prototype.replaceMarker=function(_ED,text){
var contents=this.getHtmlText();
var i=contents.indexOf("#"+_ED);
if(i==-1){
return;
}
var i=contents.indexOf(">",i);
if(i==-1){
return;
}
var j=contents.indexOf("<",i);
if(j==-1){
return;
}
this.setProperty('htmlText',(contents.substr(0,i+1)+text+contents.substr(j)));
};
_Text.prototype.setHtmlText=function(text){
this.__ChtmlText(""+text);
this.fireEvent("change","htmlText");
return this.getHtmlText();
};
_Text.prototype.setRtfText=function(text){
this.__CrtfText(text);
this.fireEvent("change","rtfText");
return text;
};
_Text.prototype.setText=function(text){
this._UC_pI('htmlText',TBK._YH(text));
this.fireEvent("change","text");
return this.getText();
};
_Text.prototype.__ChtmlText=function(text){
if(this._lZ){
this._lZ.innerHTML=this._eH(text);
this.htmlText=this._lZ.innerHTML;
}
else{
this.htmlText=text;
}
};
_Text.prototype.__CrtfText=function(text){
};
_Text.prototype._eH=function(text){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
var _c1=this._tI[i];
if(_c1.isInstance('_9G')){
text=_c1._eH(text);
}
}
}
return text;
};
_Text.prototype._GC=function(){
this._lZ=this._kE;
this.__ChtmlText(this.htmlText);
};
_Text.prototype._tF=function(){
this._d1=this.getText();
};
_Text.prototype._e1=_Text.prototype._wF;
_Text.prototype._wF=function(){
this._e1();
this.htmlText=this.getHtmlText();
this._lZ=null;
};
_Text.prototype._WE=function(_XE){
this.addEventListener("click","*",this.id,'_f1');
};
_Text.prototype._DF=function(){
var _4C=this._8C();
if(_4C){
var _g1=this._tD('_Hotword');
if(_g1.length==0){
if(this.getAnswered()){
this.setProperty('backgroundColor',_4C._fR);
}
else{
this.setProperty('backgroundColor',this._IO);
}
}
}
};
_Text.prototype.findAnswerIdentification=function(){
return this.getText();
};
function _f1(event,_ED,_HF){
var _4C=this._8C();
if(!_4C||(!this._oD(_4C)&&!_4C._oD())){
this._wD(true);
var _g1=this._tD('_Hotword');
if(!_ED&&(_g1.length==0)){
this.setAnsweredState(!this.getAnswered());
}
else{
if(_4C){
_4C._MM();
}
for(var i=0;i<_g1.length;i++)
{
_g1[i].setProperty('answered',false);
}
for(var i=0;i<_g1.length;i++)
{
if(_g1[i]._$C(_ED)){
_g1[i].setAnsweredState(true);
break;
}
}
}
}
}
function _Question(id,enabled,visibility,_nC,name,title,parent,_wM,_UG,_dM,_MP,_MG,_NP,_eD,_eR,_fR,_gR,_hR,_iR,_jR,_kR,_lR,_5F,_7F,_mR,_nR,_rM,_sD,_oR){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Group.call(this,id,enabled,visibility,_nC,name,title,parent);
_OP.call(this,_wM,_UG,_dM,_MP,_MG,_NP);
if(!this.constructor.prototype._AC['_Question']){
this.constructor.prototype._AC['_Question']=true;
}
this._eD=_eD;
this._fR=_fR;
this._iR=_iR;
this._jR=_jR;
this._lR=_lR;
this._5F=_5F;
this._7F=_7F;
this._oR=_oR;
this._mR=_mR;
this._nR=_nR;
this._rM=_rM;
this._8F=[];
this._pR=[];
this._qR=null;
this._eR=_eR;
this._sD=_sD;
this._gR=_gR;
this._hR=_hR;
this._kR=_kR;
this._TG=false;
this._rR=true;
this.lastScore=0;
this.locked=false;
this._sR=null;
this._tR=0;
this._QG=null;
this.scoreCount=0;
this._yM=0;
this._zM=0;
this._5C=0;
}
}
_Question.prototype=new _Group();
_OP.call(_Question.prototype);
_Question._uR=[];
_Question._YG=0;
_Question._6C="abcdefghijklmnopqrstuvwxyz0123456789";
_Question.prototype.getAnswerShortID=function(_AD){
if(this._vR){
return this._vR[_AD];
}
else{
return null;
}
};
_Question.prototype.getLastScore=function(){
return this.lastScore;
};
_Question.prototype.getLocked=function(){
return this.locked;
};
_Question.prototype.getLogData=function(type){
var _kD="";
switch(type){
case "userAnswer":for(var i=0;i<this._pR.length;i++)
{
_lD=this._pR[i]._jD();
if(_lD){
_lD=_lD.replace(/\r\n/g," ");
_lD=_lD.replace(/\r|\n|\t/g," ");
if(_kD){
_kD+="\t"+_lD;
}
else{
_kD=_lD;
}
}
}
break;
}
return _kD;
};
_Question.prototype.getScoreCount=function(){
return this.scoreCount;
};
_Question.prototype.getScoreRemaining=function(){
return Math.max(0,this._MG-this.scoreCount);
};
_Question.prototype.getTimeRemaining=function(){
return Math.max(0,this._NP-this._tR);
};
_Question.prototype.initializeAnswers=function(){
this.setProperty('_5C',0);
for(var i=0;i<this._pR.length;i++)
{
this._pR[i].initializeAnswers(this);
}
this.setProperty('_5C',null);
};
_Question.prototype.setAnsweredState=function(_lD,answered){
if(!this.locked){
this.setProperty('_TG',true);
this.setProperty('_rR',true);
if(!this._rM||!answered){
_lD.setProperty('answered',answered);
}
else{
for(var i=0;i<this._8F.length;i++)
{
var _vD=(this._8F[i]==_lD);
this._8F[i].setProperty('answered',_vD);
}
}
if(_lD.getProperty('answered')){
var type=_lD._YC?"correct":"incorrect";
_Feedback._qL(this._sD,_lD,type);
this.fireEvent("answer",type,[_lD.findAnswerIdentification()]);
}
if(!this._eD&&!this.locked){
this._wR(false,false,false);
this._xR();
}
}
};
_Question.prototype.setAnswerShortID=function(_AD,_yR){
if(!this._vR){
this._vR=[];
}
this._vR[_AD]=_yR;
this.setProperty('_vR',this._vR);
};
_Question.prototype._OC_ZD=function(){
if(this._sL){
return this._sL.name;
}
return this._qR;
};
_Question.prototype._oD=function(){
if(this.locked){
if(!this._sR){
this.setProperty('_sR',this._zR);
}
_Feedback._rD(this._sD,this._sR,"auto");
this.setProperty('_sR',null);
}
return this.locked;
};
_Question.prototype._wR=function(showFeedback,_mR,_AR){
var _BR=this.lastScore;
this.setProperty('scoreCount',this.scoreCount+1);
if(!this.locked&&(this._MG>0)&&(this.scoreCount>=this._MG)){
this._xR();
this.setProperty('_sR',this._CR);
}
if(this._rR){
if(this._wM){
_Question._YG-=_BR;
}
this.setProperty('_rR',false);
_BR=0;
for(var i=0;i<this._8F.length;i++)
{
if(this._8F[i].getAnswered()){
_BR+=this._UG*this._8F[i]._1C;
}
}
_BR=Math.min(this._UG,Math.max(this._dM,_BR));
this.setProperty('lastScore',_BR);
if(this._wM){
_Question._YG+=_BR;
}
if(this._$F>0){
var _vH=new Date();
this.setProperty('_zM',this._zM+(_vH.getTime()-this._$F));
this._$F=_vH.getTime();
}
if(this._eD||!this.locked){
TBK._DR(this);
TBK._ID._vM(this);
}
}
if(_mR){
this.reset();
}
if(_AR){
this._xR();
}
var _ER=this._dM*100;
var _FR=Math.round(_BR*100);
var _GR=this._UG*100;
var type="mixed";
if(_FR<=_ER){
type="incorrect";
}
else if(_FR>=_GR){
type="correct";
}
if(showFeedback){
_Feedback._qL(this._sD,this,type);
}
this.fireEvent("score",type,[showFeedback]);
return _BR;
};
_Question.prototype._MM=function(){
this.setProperty('_rR',true);
};
_Question.prototype._HR=function(){
this._8F=[];
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
var _KL=this._tI[i];
var _IR=[];
if(_KL.isInstance('_Answerable')){
_IR=_KL._nD();
for(var j=0;j<_IR.length;j++)
{
this._8F[this._8F.length]=_IR[j];
}
}
if(_KL.isInstance('_XC')&&(_IR.length==0)){
this._8F[this._8F.length]=_KL;
}
}
}
this._pR=this._tD('_Answerable');
};
_Question.prototype._JR=function(id){
for(var i=0;i<this._pR.length;i++)
{
if(this._pR[i].id==id){
return this._pR[i];
}
}
return null;
};
_Question.prototype._KR=function(){
this.setProperty('_TG',false);
this.setProperty('_rR',true);
this.setProperty('lastScore',0);
this.setProperty('locked',false);
this.setProperty('_sR',null);
this.setProperty('_tR',0);
this._LR=null;
this.setProperty('_QG',null);
this.setProperty('scoreCount',0);
this._$F=new Date().getTime();
this.setProperty('_yM',this._$F);
this.setProperty('_zM',0);
};
_Question.prototype._xR=function(){
if(!this.locked){
this.setProperty('locked',true);
this.fireEvent("change","locked");
}
};
_Question.prototype._MR=function(){
this._LR=null;
this.fireEvent("timeMarker",""+this._tR);
if(this._tR>=this._NP){
this.fireEvent("complete","");
if(!this.locked){
this._xR();
this.setProperty('_sR',this._NR);
}
}
else{
this._LR=window.setTimeout('_Question._uR'+"[\""+this.id+"\"]."+'_MR'+"()",1000);
this.setProperty('_tR',this._tR+1000);
}
};
_Question.prototype._OR=function(){
if(this._7F!="none"){
this.setProperty('_rR',true);
}
var j=Math.round(Math.random()*(this._pR.length-1));
for(var i=0;i<this._pR.length;i++)
{
var _PR=this._pR[i];
if(this._jR){
_PR._uD(i==j);
}
else{
_PR._uD(_PR._fD);
}
}
if((this._7F=="pick")&&this._iR&&(this._iR.length>=2)){
this._QR();
}
else if((this._7F=="scatter")&&this._nR&&(this._nR.length>=4)){
this._RR();
}
};
_Question.prototype._QR=function(){
for(var i=0;i<this._pR.length;i++)
{
var _PR=this._pR[i];
_PR._UC_pI('visible',false);
_PR.setProperty('_0C',-1);
}
if(!this._QG||(this._QG.length==0)){
var _QG=[];
var _DK=[];
var _SR=[];
for(var i=0;i<this._pR.length;i++)
{
var _PR=this._pR[i];
if(_PR._fD){
_DK[_DK.length]=_PR.id;
}
else{
_SR[_SR.length]=_PR.id;
}
}
var _TR=this._iR.length/2;
var random=[];
while((_TR>0)&&(_DK.length>0))
{
TBK._UR(_DK,random);
_TR--;
}
while((_TR>0)&&(_SR.length>0))
{
TBK._UR(_SR,random);
_TR--;
}
while(random.length>0)
{
TBK._UR(random,_QG);
}
this.setProperty('_QG',_QG);
}
for(var i=0;i<this._QG.length;i++)
{
var x=this._iR[i*2];
var y=this._iR[(i*2)+1];
var _PR=this._JR(this._QG[i]);
_PR._UC_pI('left',x);
_PR._UC_pI('top',y);
if(this.getShowing()){
_PR._UC_pI('visible',true);
}
else{
_PR.visibility=true;
_PR.persistProperty('visible');
}
_PR.setProperty('_0C',i);
_PR.setProperty('_qI',x);
_PR.setProperty('_rI',y);
}
};
_Question.prototype._RR=function(){
var _VR=this._nR[0];
var _WR=this._nR[2];
var _XR=this._nR[1];
var _YR=this._nR[3];
for(var i=0;i<this._pR.length;i++)
{
var _PR=this._pR[i];
if(!_PR._fD){
var x=_VR+(Math.random()*(_WR-_VR-_PR.getWidth()));
var y=_XR+(Math.random()*(_YR-_XR-_PR.getHeight()));
_PR._UC_pI('left',x);
_PR._UC_pI('top',y);
_PR.setProperty('_qI',x);
_PR.setProperty('_rI',y);
}
}
};
_Question.prototype._eP=function(_XE){
if(_XE){
this.initializeAnswers();
TBK._ID._LG(this);
}
};
_Question.prototype._WE=function(_XE){
this._HR();
this._pJ=this._eR?TBK._pD(this._eR):TBK._pD('_qD.30');
this._NR=this._gR?TBK._pD(this._gR):TBK._pD('_qD.31');
this._CR=this._hR?TBK._pD(this._hR):TBK._pD('_qD.32');
this._zR=this._kR?TBK._pD(this._kR):TBK._pD('_qD.33');
_Question._uR[this.id]=this;
if(_XE){
this._KR();
}
};
_Question.prototype._ZE=function(){
var _vH=new Date();
this.setProperty('_zM',this._zM+(_vH.getTime()-this._$F));
this._$F=0;
if((this._mR=="always")||(this._mR=="leave")){
this.reset();
}
};
_Question.prototype._fP=function(){
this._qR=this._sL.name;
this.parent=null;
_Question._ZR(this);
};
_Question._ZR=function(ob){
ob._sL=null;
if(ob._tI){
for(var i=0;i<ob._tI.length;i++)
{
_Question._ZR(ob._tI[i]);
}
}
};
_Question.prototype._YE=function(){
if(this._oR){
_Feedback._rD(this._sD,"","field");
}
if((this._mR=="always")||(this._mR=="enter")){
this.reset();
}
var _vH=new Date();
this._$F=_vH.getTime();
};
_Question.prototype._ZO=function(){
if(this._zM==0){
this._OR();
var _0R=!this._sL||this._sL._UP;
if(!_0R&&this.getShowing()&&!this.locked&&(this._NP>0)&&!this._LR){
this._MR();
}
}
};
_Question.prototype._kP=_Question.prototype._ZO;
_Question.prototype._bD=function(){
if(this._wM){
_Question._YG-=this.lastScore;
}
if(this._LR){
window.clearTimeout(this._LR);
}
this._KR();
if(this._oR){
_Feedback._rD(this._sD,"","field");
}
TBK._ID._VG(this);
};
_Question._ZG=function(_1R){
for(var id in _Question._uR)
{
var _4C=_Question._uR[id];
if(_4C._wM){
if(_4C._TG){
_4C._wR(false,false,false);
}
}
if(_1R){
if(_4C._2R){
_4C._2R();
}
}
}
return _Question._YG;
};
_Question._8C=function(_cG){
return(_cG?(_cG.id?_cG:_Question._uR[_cG]):null);
};
function _AnswerableContainer(_eD,_fD,_gD){
if(arguments.length>0){
_Answerable.call(this,_eD,_fD,_gD);
if(!this._AC['_AnswerableContainer']){
this._AC['_AnswerableContainer']=true;
}
}
else{
_Answerable.call(this);
this._nD=function(){
return this._tD('_cD');
};
this._8C=function(){
return this._9C('_Question');
};
this.initializeAnswers=function(_4C){
if(!_4C._5C&&(_4C._5C!==0)){
_4C.setProperty('_5C',0);
}
var _yD=TBK._7C(this.name);
var _zD="";
if(_4C._5C<_Question._6C.length){
_zD=_Question._6C.substr(_4C._5C,1);
_4C.setProperty('_5C',_4C._5C+1);
}
var _mD=this._nD();
for(var i=0;i<_mD.length;i++)
{
var _AD=TBK._7C(_mD[i].findAnswerIdentification());
var _2C=_4C.getAnswerShortID(_AD);
if(!_2C){
if(_4C._5C<_Question._6C.length){
_2C=_Question._6C.substr(_4C._5C,1);
_4C.setProperty('_5C',_4C._5C+1);
_4C.setAnswerShortID(_AD,_2C);
}
else{
_2C="";
}
}
_mD[i].setProperty('_2C',_zD+"."+_2C);
_mD[i].setProperty('_3C',_yD+"."+_AD);
}
}
}
}
function _kI(_iI,_jI,_eI){
if(arguments.length>0){
if(!this.constructor.prototype._AC['_kI']){
this.constructor.prototype._AC['_kI']=true;
}
this._jI=_jI;
this._eI=_eI;
this._FI=(_iI.indexOf("one")==0);
this._HI=(_iI.indexOf("ToOne")>0);
}
else{
this._JI=function(){
var _mD=this._nD();
for(var i=0;i<_mD.length;i++)
{
var _lD=_mD[i];
if(_lD.getProperty('_ZC')){
_lD.setAnsweredState(true);
}
else if(this._FI){
_lD.setProperty('answered',false);
}
}
var _4C=this._8C();
if(_4C){
_4C._MM();
}
};
this._GI=function(name){
var _mD=this._nD();
for(var i=0;i<_mD.length;i++)
{
var _lD=_mD[i];
if(!_lD._$C(name)&&_lD.getProperty('answered')){
_lD.reset();
}
}
};
this._II=function(name){
var _4C=this._8C();
if(_4C){
var _EN=_4C._tD('_Answerable');
for(var i=0;i<_EN.length;i++)
{
var _FN=_EN[i];
if(_FN!=this){
var _GN=false;
var _mD=_FN._nD();
for(var j=0;j<_mD.length;j++)
{
var _lD=_mD[j];
if(_lD._$C(name)&&_lD.getProperty('answered')){
_GN=true;
break;
}
}
if(_GN){
_FN.reset();
}
}
}
}
}
}
}
function _DraggableLayer(id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_bI,_cI,_iI,_jI,_eI,_gI){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Layer.call(this,id,_mC,enabled,visibility,_nC,name,title,parent,false);
_AnswerableContainer.call(this,_eD,_fD,_gD);
_kI.call(this,_iI,_jI,_eI);
if(!this._AC['_DraggableLayer']){
this._AC['_DraggableLayer']=true;
}
this._bI=_bI;
this._cI=_cI;
this._gI=_gI;
this._lI=false;
this._mI=0;
this._nI=0;
this._oI=0;
}
}
_DraggableLayer.prototype=new _Layer();
_AnswerableContainer.call(_DraggableLayer.prototype);
_kI.call(_DraggableLayer.prototype);
_DraggableLayer.prototype._hI=function(_dD){
if(_dD){
var xx=(_dD.getWidth()/2)-this._bI;
var yy=(_dD.getHeight()/2)-this._cI;
var _$H=this._aI(_dD);
this._UC_fF(xx+_$H[0]);
this._UC_gF(yy+_$H[1]);
}
};
_DraggableLayer.prototype._fI=function(){
this._UC_pI('left',this._qI);
this._UC_pI('top',this._rI);
};
_DraggableLayer.prototype._sI=function(){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
var _uI=this._tI[i];
if(_uI.isInstance('_DragTarget')){
var _9H=_uI._OC_9H();
if(_9H){
return _9H;
}
}
}
}
return this;
};
_DraggableLayer.prototype._WE=function(_XE){
this.addEventListener("mousedown","*",this.id,'_vI');
};
_DraggableLayer.prototype._wI=_DraggableLayer.prototype._bD;
_DraggableLayer.prototype._bD=function(){
this._wI();
this._fI();
};
_DraggableLayer.prototype._xI=_DraggableLayer.prototype._uD;
_DraggableLayer.prototype._uD=function(_vD){
this._xI(_vD);
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
var _uI=this._tI[i];
if(_uI.isInstance('_DragTarget')){
if(_uI._YC){
if(_uI.getProperty('answered')){
this.setProperty('_fD',true);
}
if(this._fD){
_uI.setProperty('answered',true);
}
}
}
}
}
};
function _vI(event,_ED,_HF){
var _4C=this._8C();
if(!_4C||(!this._oD(_4C)&&!_4C._oD())){
TBK._PF(this.id);
this._lI=true;
this.addEventListener("mousemove","*",this.id,'_yI');
this.addEventListener("mouseup","*",this.id,'_zI');
this._mI=TBK._AI;
this._nI=TBK._BI;
this._oI=this.getZorder();
this._UC_CI(_Page._DI);
}
}
function _yI(event,_ED,_HF){
if(this._lI){
this._UC_pI('left',this.getLeft()+(TBK._AI-this._mI));
this._UC_pI('top',this.getTop()+(TBK._BI-this._nI));
this._mI=TBK._AI;
this._nI=TBK._BI;
}
}
function _zI(event,_ED,_HF){
if(this._lI){
var _EI=false;
var _oH=this._sI();
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
var _uI=this._tI[i];
if(_uI.isInstance('_DragTarget')&&_uI._$C(_oH.id)&&(_uI._YC||!this._jI)){
if(this._FI){
this._GI(_uI._EG);
}
if(!_uI.getProperty('answered')){
_uI.setAnsweredState(true);
}
else if(this._gI){
this._hI(_uI._dD);
}
_EI=true;
if(this._HI){
this._II(_uI._EG);
}
break;
}
}
}
if(!_EI){
if(this._eI||this._jI){
this.reset();
}
this._JI();
}
this._wD(true);
this.setZorder(this._oI);
this._RF("mousemove","*",this.id,'_yI');
this._RF("mouseup","*",this.id,'_zI');
this._TF();
this._lI=false;
TBK._UF(this.id);
}
}
function _Button(id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_YC,_ZC,_0C,_1C,checked,inverted,_0E,_1E,caption,_2E,_3E,_4E,_5E,_6E,_7E,_8E,_9E,__E,_$E,_aF){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_XC.call(this,id,_mC,enabled,visibility,_nC,name,title,parent,_YC,_ZC,_0C,_1C);
_Answerable.call(this,_eD,_fD,_gD);
if(!this._AC['_Button']){
this._AC['_Button']=true;
}
this._2E=_2E;
this._3E=_3E;
this._4E=_4E;
this._5E=_5E;
this._6E=_6E;
this._7E=_7E;
this._8E=_8E;
this._9E=_9E;
this.__E="url("+__E+")";
this._$E=_$E;
this._aF=_aF;
this._0E=_0E;
this.caption=caption;
this._bF=null;
this._1E=_1E;
this.inverted=inverted;
this._cF=false;
this.answered=checked;
}
}
_Button.prototype=new _XC();
_Answerable.call(_Button.prototype);
_Button._dF=null;
_Button.prototype.getCaption=function(){
return this.caption;
};
_Button.prototype.getChecked=function(){
return this.getAnswered();
};
_Button.prototype.getInverted=function(){
return this.inverted;
};
_Button.prototype.setCaption=function(caption){
this.__Ccaption(caption);
this.fireEvent("change","caption");
return this.getCaption();
};
_Button.prototype.setChecked=function(checked){
if(!this.locked){
this.__Cchecked(checked);
this.fireEvent("change","checked");
}
return this.getChecked();
};
_Button.prototype.setInverted=function(inverted){
inverted=TBK._eF(inverted);
if(inverted){
if(!this.inverted&&!this._8E&&(this._0E!="none")){
this._UC_fF(+1);
this._UC_gF(+1);
}
}
else{
if(this.inverted&&!this._8E&&(this._0E!="none")){
this._UC_fF(-1);
this._UC_gF(-1);
}
}
this.__Cinverted(inverted);
this.paint();
this.fireEvent("change","inverted");
return this.getInverted();
};
_Button.prototype.__Ccaption=function(caption){
this._UC_hF(""+caption);
};
_Button.prototype.__Cchecked=function(checked){
this.setAnsweredState(TBK._eF(checked));
};
_Button.prototype.__Cinverted=function(inverted){
this.inverted=inverted;
};
_Button.prototype._iF=function(){
var cx=this.getWidth();
var cy=this.getHeight();
if(this._0E=="shadowed"){
cx-=4;
cy-=4;
}
var _jF=TBK._kF(this._lF);
var _mF=TBK._kF(this._nF);
var _1E=this.caption?this._1E:"center";
var _oF=4;
switch(_1E){
case "bottom":var y=(cy-(_jF[1]+_oF+_mF[1]))/2;
TBK._pF(this._nF,(cx-_mF[0])/2,y+_jF[1]+_oF);
if(this.caption){
TBK._pF(this._lF,(cx-_jF[0])/2,y);
}
else{
TBK._qF(this._lF);
}
break;
case "center":case "stretch":TBK._pF(this._nF,(cx-_mF[0])/2,(cy-_mF[1])/2);
if(this.caption){
TBK._pF(this._lF,(cx-_jF[0])/2,(cy-_jF[1])/2);
}
else{
TBK._qF(this._lF);
}
break;
case "left":var x=(this._0E=="none")?0:(cx/3)-_mF[0];
TBK._pF(this._nF,x,(cy-_mF[1])/2);
if(this.caption){
TBK._pF(this._lF,x+_mF[0]+_oF,(cy-_jF[1])/2);
}
else{
TBK._qF(this._lF);
}
break;
case "right":var x=(this._0E=="none")?cx-_mF[0]:(2*cx)/3;
TBK._pF(this._nF,x,(cy-_mF[1])/2);
if(this.caption){
TBK._pF(this._lF,x-_jF[0]-_oF,(cy-_jF[1])/2);
}
else{
TBK._qF(this._lF);
}
break;
case "top":var y=(cy-(_jF[1]+_oF+_mF[1]))/2;
TBK._pF(this._nF,(cx-_mF[0])/2,y);
if(this.caption){
TBK._pF(this._lF,(cx-_jF[0])/2,y+_mF[1]+_oF);
}
else{
TBK._qF(this._lF);
}
break;
}
};
_Button.prototype._GC=function(){
this._lF=TBK._rF(this._2E);
this._nF=TBK._rF(this._3E);
this._sF=TBK._rF(this._4E);
this._iF();
};
_Button.prototype._tF=function(){
this._uF=this.getCaption();
this._vF=this.getChecked();
};
_Button.prototype._wF=function(){
this._lF=null;
this._nF=null;
this._sF=null;
};
_Button.prototype._WE=function(_XE){
this._xF=this._nC;
this.addEventListener("click","*",this.id,'_yF');
this.addEventListener("keydown","*",this.id,'_zF');
this.addEventListener("mousedown","*",this.id,'_AF');
this.addEventListener("mouseout","*",this.id,'_BF');
this.addEventListener("mouseover","*",this.id,'_CF');
};
_Button.prototype._DF=function(){
if(!this.enabled){
this._EF(false);
if(this._7E){
this._sF.src=this._7E;
}
}
else{
this._EF(true);
var _FF=false;
var _GF=false;
if(this.getInverted()){
if(this._8E){
this._sF.src=this._8E;
_FF=true;
}
if(this._$E){
this._kE.style.backgroundImage="url("+this._$E+")";
_GF=true;
}
}
else if(this.getAnswered()&&this._6E){
this._sF.src=this._6E;
_FF=true;
}
else if(_Button._dF==this){
if(this._9E){
this._sF.src=this._9E;
_FF=true;
}
if(this._aF){
this._kE.style.backgroundImage="url("+this._aF+")";
_GF=true;
}
}
if((!_FF)&&(this._sF.src!=this._5E)){
this._sF.src=this._5E;
}
if(!_GF){
if(this._kE.style.backgroundImage!=this.__E){
this._kE.style.backgroundImage=this.__E;
}
}
}
};
function _yF(event,_ED,_HF){
this.setChecked(!this.getChecked());
this._wD(true);
}
function _zF(event,_ED,_HF,keyCode,_IF,_JF,_KF){
if(keyCode==32){
if(!this._cF){
this._cF=true;
this._AF(event,_ED,_HF);
}
}
}
function _LF(event,_ED,_HF,keyCode,_IF,_JF,_KF){
this._cF=false;
this._MF=_NF;
this._MF(event,_ED,_HF);
this.fireEvent("click","");
}
function _AF(event,_ED,_HF){
if(!TBK._OF){
if(this._nC){
this.focus();
}
var _4C=this._8C();
if(!_4C||(!this._oD(_4C)&&!_4C._oD())){
this.setInverted(true);
TBK._PF(this.id);
if(event=="mousedown"){
this.addEventListener("mouseup","*",this.id,'_NF');
TBK._QF(this.id,"mouseup");
}
else if(event=="keydown"){
this.addEventListener("keyup","*",this.id,'_LF');
TBK._QF(this.id,"keyup");
}
}
}
}
function _BF(event,_ED,_HF){
_Button._dF=null;
this.paint();
}
function _CF(event,_ED,_HF){
_Button._dF=this;
this.paint();
}
function _NF(event,_ED,_HF){
if(event=="mouseup"){
this._RF("mouseup","*",this.id,'_NF');
TBK._SF(this.id,"mouseup");
}
else if(event=="keyup"){
this._RF("keyup","*",this.id,'_LF');
TBK._SF(this.id,"keyup");
}
this._TF();
TBK._UF(this.id);
this.setInverted(false);
}
_Button.prototype._UC_hF=function(caption){
this.caption=caption;
if(this._lF){
if(this._bF==null){
var _VF;
if(this._lF.getElementsByTagName){
_VF=this._lF.getElementsByTagName("A");
}
else if(this._lF.children){
_VF=this._lF.children;
}
if(_VF&&_VF.length>0){
this._bF=_VF[0].style.cssText;
}
else{
this._bF="";
}
}
this._lF.innerHTML=this.caption;
this._iF();
}
};
_Button.prototype.findAnswerIdentification=function(){
return this.caption;
};
_Button.prototype._EF=function(enabled){
if(enabled){
this._lF.style.filter="";
}
else{
this._lF.style.filter="alpha(opacity=25)";
}
};
function _cD(id,parent,_YC,_ZC,_0C,_1C){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_XC.call(this,id,null,true,false,false,"","",parent,_YC,_ZC,_0C,_1C);
if(!this.constructor.prototype._AC['_cD']){
this.constructor.prototype._AC['_cD']=true;
}
}
}
_cD.prototype=new _XC();
_cD.prototype.findAnswerIdentification=function(){
return this._ZC?"<else>":(this._dD?this._dD.getName():this.getName());
};
_cD.prototype._8C=function(){
return this._9C('_Question');
};
function _DragTarget(id,parent,_YC,_ZC,_0C,_1C,_EG){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_cD.call(this,id,parent,_YC,_ZC,_0C,_1C);
if(!this.constructor.prototype._AC['_DragTarget']){
this.constructor.prototype._AC['_DragTarget']=true;
}
this._EG=_EG;
}
}
_DragTarget.prototype=new _cD();
_DragTarget.prototype._OC_9H=function(){
if(this._dD){
var __H=this._9C('_DraggableLayer');
var _$H=this._dD._aI(__H);
var x=_$H[0]+__H._bI;
var y=_$H[1]+__H._cI;
if((x>=0)&&(x<this._dD.getWidth())&&(y>=0)&&(y<this._dD.getHeight())){
return this._dD;
}
}
return null;
};
_DragTarget.prototype._WE=function(_XE){
this._dD=TBK._RD(this._EG);
};
_DragTarget.prototype._dI=function(){
this._dD=null;
};
_DragTarget.prototype._DF=function(){
if(this.getAnswered()){
var __H=this._9C('_DraggableLayer');
if(this._ZC&&__H._eI){
__H._fI();
}
else if(!this._OC_9H()||__H._gI){
__H._hI(this._dD);
}
}
};
_DragTarget.prototype._$C=function(_aD){
return(_aD==this._EG);
};
function _Image(id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_YC,_ZC,_0C,_1C,_BM,_3E,_CM){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_XC.call(this,id,_mC,enabled,visibility,_nC,name,title,parent,_YC,_ZC,_0C,_1C);
_Answerable.call(this,_eD,_fD,_gD);
if(!this._AC['_Image']){
this._AC['_Image']=true;
}
this._BM=_BM;
this._3E=_3E;
this._CM=_CM;
}
}
_Image.prototype=new _XC();
_Answerable.call(_Image.prototype);
_Image.prototype.getImage=function(){
return this._CM;
};
_Image.prototype.setImage=function(image){
this.restoreImage(image);
this.fireEvent("change","image");
return this.getImage();
};
_Image.prototype.restoreImage=function(image){
this._UC_DM(image);
};
_Image.prototype._UC_DM=function(image){
if(image!=this.getImage()){
this._CM=image;
this._nF.src=image;
}
};
_Image.prototype._GC=function(){
this._EM=TBK._rF(this._BM);
this._nF=TBK._rF(this._3E);
};
_Image.prototype._wF=function(){
this._EM=null;
this._nF=null;
};
_Image.prototype._WE=function(_XE){
this.addEventListener("click","*",this.id,'_FM');
};
_Image.prototype._DF=function(){
if(this._8C()){
var _GM=this._tD('_FD');
if(_GM.length==0){
this._HM(this.getAnswered());
}
}
};
_Image.prototype._IM=function(_JM,_KM){
var _7I=this._8I();
if(this._tI){
for(var i=this._tI.length-1;i>=0;i--)
{
var _LM=this._tI[i];
if(_LM.isInstance('_FD')&&_LM.inside(_7I)){
return _LM._ED;
}
}
}
return"";
};
function _FM(event,_ED,_HF){
var _4C=this._8C();
if(!_4C||(!this._oD(_4C)&&!_4C._oD())){
this._wD(true);
var _GM=this._tD('_FD');
if(!_ED&&(_GM.length==0)){
this.setAnsweredState(!this.getAnswered());
}
else{
if(_4C){
_4C._MM();
}
for(var i=0;i<_GM.length;i++)
{
_GM[i].setProperty('answered',false);
}
for(var i=0;i<_GM.length;i++)
{
if(_GM[i]._$C(_ED)){
_GM[i].setAnsweredState(true);
break;
}
}
}
}
}
_Image.prototype._HM=function(answered){
if(this._EM){
this._EM.style.visibility=answered?"inherit":"hidden";
}
};
function _VectorGraphic(id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_YC,_ZC,_0C,_1C,_BM,_3E,_CM){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Image.call(this,id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_YC,_ZC,_0C,_1C,_BM,_3E,_CM);
if(!this._AC['_VectorGraphic']){
this._AC['_VectorGraphic']=true;
}
}
}
_VectorGraphic.prototype=new _Image();
function _Navigator(id,name,title,parent,_jL,_kL,_nO,transition,_oC,_pC,_rC,_sC,_tC,_uC){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_hE.call(this,id,null,true,false,false,name,title,parent,_oC,_pC,null,_rC,_sC,_tC,_uC,false,false);
if(!this.constructor.prototype._AC['_Navigator']){
this.constructor.prototype._AC['_Navigator']=true;
}
this._jL=_jL;
this._kL=_kL;
this._nO=_nO;
this.transition=transition;
}
}
_Navigator.prototype=new _hE();
_Navigator.prototype.getPlaying=function(){
return this.playing;
};
_Navigator.prototype.getPosition=function(){
return Math.max(0,Math.min(this._pC,this._oO));
};
_Navigator.prototype.getStopped=function(){
return this.stopped;
};
_Navigator.prototype.pause=function(){
this.playing=false;
};
_Navigator.prototype.play=function(){
if(!this.playing){
this.playing=true;
this.stopped=false;
if(this._pC>0){
var _vH=new Date();
this._pO=_vH.getTime();
this._qO=window.setTimeout(this.id+"."+'_rO'+"()",100);
}
else{
this._rO();
}
}
};
_Navigator.prototype.setPosition=function(position){
this._oO=Math.max(0,Math.min(this._pC,position));
this.fireEvent("change","position");
return this.getPosition();
};
_Navigator.prototype.stop=function(){
this.playing=false;
this.stopped=true;
this._sO();
this._tO();
};
_Navigator.prototype._tO=function(){
this._uO=0;
this.playing=false;
this._oO=0;
if(this._qO){
window.clearTimeout(this._qO);
}
this._qO=null;
this._pO=0;
this._vO();
this.stopped=true;
};
_Navigator.prototype._rO=function(){
if(_Page._0D){
var _vH=new Date();
this._oO+=_vH.getTime()-this._pO;
this._pO=_vH.getTime();
this._wO(this._oO);
if(this._oO>=this._pC){
this._vO();
this._oO=0;
_Page._0D._uL(this._kL,this._jL,this.transition);
if(((this._rC!=-1)&&(++this._uO>=this._rC))||!_Page._0D._tL(this._kL,this._jL)){
this.stop();
}
}
if(this.playing){
this._qO=window.setTimeout(this.id+"."+'_rO'+"()",100);
}
}
};
_Navigator.prototype._xO=_Navigator.prototype._WE;
_Navigator.prototype._WE=function(_XE){
this._xO(_XE);
this._tO();
this._sL.addEventListener("turn","*",this.id,'_yO');
};
function _yO(){
if(this._nO){
for(var i=0;i<this._nO.length;i++)
{
var _oH=TBK._RD(this._nO[i]);
if(_Page._0D){
_oH.setProperty('enabled',_Page._0D._tL(this._kL,this._jL));
}
}
}
}
function _FD(id,parent,_YC,_ZC,_0C,_1C,_ED){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_XC.call(this,id,null,true,false,false,"","",parent,_YC,_ZC,_0C,_1C);
if(!this.constructor.prototype._AC['_FD']){
this.constructor.prototype._AC['_FD']=true;
}
this._ED=_ED;
}
}
_FD.prototype=new _XC();
_FD.prototype.inside=function(_7I){
return false;
};
_FD.prototype._DF=function(){
var _9X=this._9C('_Image');
var _GM=_9X._tD('_FD');
if(_GM.length==1){
_9X._HM(this.getAnswered());
}
};
_FD.prototype._$C=function(_aD){
return(this._ZC||(_aD==this._ED));
};
function _Polyline(id,parent,_YC,_ZC,_0C,_1C,_ED){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_FD.call(this,id,parent,_YC,_ZC,_0C,_1C,_ED);
if(!this.constructor.prototype._AC['_Polyline']){
this.constructor.prototype._AC['_Polyline']=true;
}
}
}
_Polyline.prototype=new _FD();
function _Rectangle(id,parent,_YC,_ZC,_0C,_1C,left,top,width,height,_ED){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_FD.call(this,id,parent,_YC,_ZC,_0C,_1C,_ED);
if(!this.constructor.prototype._AC['_Rectangle']){
this.constructor.prototype._AC['_Rectangle']=true;
}
this._8R=left;
this._9R=top;
this._DK=left+width;
this._EK=top+height;
}
}
_Rectangle.prototype=new _FD();
_Rectangle.prototype.inside=function(_7I){
return((_7I[0]>=this._8R)&&(_7I[0]<this._DK)&&(_7I[1]>=this._9R)&&(_7I[1]<this._EK));
};
function _zC(id,_mC,enabled,visibility,_nC,name,title,parent,_oC,_pC,_lL,_rC,_sC,_tC,_uC,_vC,_wC,_xC){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_hE.call(this,id,_mC,enabled,visibility,_nC,name,title,parent,_oC,_pC,_lL,_rC,_sC,_tC,_uC,true,false);
if(!this.constructor.prototype._AC['_zC']){
this.constructor.prototype._AC['_zC']=true;
}
this._vC=_vC;
this._wC=_wC;
this._xC=_xC;
}
}
_zC.prototype=new _hE();
_zC.prototype._KC=function(){
if(this._wC){
if(this.getVisible()){
if(this._xC){
if(this._1N){
window.clearTimeout(this._1N);
}
this._1N=window.setTimeout(this.id+"."+'_2N'+"()",this._xC);
}
else{
this.setVisible(false);
}
}
}
};
_zC.prototype._JC=function(){
if(this._1N){
window.clearTimeout(this._1N);
this._1N=null;
}
if(this._wC||this._vC){
if(!this.getVisible()){
this.setVisible(true);
}
this.toFront();
}
};
_zC.prototype._2N=function(){
if(this.getStopped()){
this.setVisible(false);
}
if(this._1N){
this._1N=null;
}
};
_zC.prototype._3N=_zC.prototype._ZE;
_zC.prototype._ZE=function(){
this._3N();
if(this._1N){
window.clearTimeout(this._1N);
this._2N();
}
if(this._vC){
this.setVisible(false);
}
};
function _ActiveMovie(id,_mC,enabled,visibility,_nC,name,title,parent,_oC,_pC,_qC,_rC,_sC,_tC,_uC,_vC,_wC,_xC,_yC){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_zC.call(this,id,_mC,enabled,visibility,_nC,name,title,parent,_oC,_pC,_qC,_rC,_sC,_tC,_uC,_vC,_wC,_xC);
if(!this.constructor.prototype._AC['_ActiveMovie']){
this.constructor.prototype._AC['_ActiveMovie']=true;
}
this._yC=_yC;
}
}
_ActiveMovie.prototype=new _zC();
_ActiveMovie.prototype._BC=function(_CC){
if(!this._DC.FileName){
this._DC.FileName=this._yC;
}
var _EC=this.id+"."+'_DC'+"."+_CC;
eval(_EC);
if(this._DC.HasError){
this._DC.FileName=this._yC;
eval(_EC);
}
};
_ActiveMovie.prototype._FC=_ActiveMovie.prototype._GC;
_ActiveMovie.prototype._GC=function(){
this._FC();
this._DC.FileName=TBK._HC(this._yC);
this._yC=this._DC.FileName;
};
_ActiveMovie.prototype.getPlaying=function(){
return(this._DC&&(this._DC.ReadyState>=3)&&(this._DC.PlayState==2));
};
_ActiveMovie.prototype.getPosition=function(){
return(this._DC&&(this._DC.ReadyState>=3))?Math.round(this._DC.CurrentPosition*1000):0;
};
_ActiveMovie.prototype.getStopped=function(){
return(!this._DC||(this._DC.ReadyState<3)||(this._DC.PlayState==0));
};
_ActiveMovie.prototype.pause=function(){
if(this._DC){
if(this._DC.ReadyState>=3){
if(this._DC.PlayState==2){
this._BC("Pause()");
}
}
else{
this._IC(this.id+"."+'pause'+"()");
}
}
};
_ActiveMovie.prototype.play=function(){
if(this._DC){
if(this._DC.ReadyState>=3){
this._JC();
this._BC("Play()");
}
else{
this._IC(this.id+"."+'play'+"()");
}
}
};
_ActiveMovie.prototype.setPosition=function(position){
if(this._DC){
if(this._DC.ReadyState>=3){
if((position/1000)!=this._DC.CurrentPosition){
this._DC.CurrentPosition=position/1000;
this.fireEvent("change","position");
}
}
else{
this._IC(this.id+"."+'setPosition'+"("+position+")");
}
}
return this.getPosition();
};
_ActiveMovie.prototype.stop=function(){
if(this._DC){
if(this._DC.ReadyState>=3){
this._BC("Stop()");
this._KC();
}
else{
this._IC(this.id+"."+'stop'+"()");
}
}
else{
this._KC();
}
};
function _CheckBox(id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_YC,_ZC,_0C,_1C,checked,inverted,_0E,_1E,caption,_2E,_3E,_4E,_5E,_6E,_7E,_8E,_9E,__E,_$E,_aF){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Button.call(this,id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_YC,_ZC,_0C,_1C,checked,inverted,_0E,_1E,caption,_2E,_3E,_4E,_5E,_6E,_7E,_8E,_9E,__E,_$E,_aF);
if(!this._AC['_CheckBox']){
this._AC['_CheckBox']=true;
}
}
}
_CheckBox.prototype=new _Button();
function _TextEntry(id,_mC,enabled,visibility,_nC,name,title,parent,_eD,_fD,_gD,_h1,_i1,_j1){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,_mC,enabled,visibility,_nC,name,title,parent);
_Answerable.call(this,_eD,_fD,_gD);
_Scrollable.call(this,true);
if(!this._AC['_TextEntry']){
this._AC['_TextEntry']=true;
}
this._h1=_h1;
this._i1=_i1;
this._j1=_j1;
this._XE=false;
this._k1="";
this._l1="";
this.text=null;
}
}
_TextEntry.prototype=new _Object();
_Answerable.call(_TextEntry.prototype);
_Scrollable.call(_TextEntry.prototype);
_TextEntry.prototype.getText=function(){
if(this._m1){
return this._m1.value;
}
else{
return this.text;
}
};
_TextEntry.prototype.setText=function(text){
this.__Ctext(this._eH(""+text));
this.setProperty('_k1',this.getText());
this.fireEvent("change","text");
return this._k1;
};
_TextEntry.prototype.__Ctext=function(text){
this._UC_n1(text);
};
_TextEntry.prototype._o1=function(){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
if(this._tI[i].isInstance('_9G')){
this.setProperty('text',this.getText());
break;
}
}
}
if(this._XE){
this.setProperty('_l1',this.getText());
}
};
_TextEntry.prototype._UC_n1=function(text){
if(this._m1){
this._m1.value=text;
}
else{
this.text=text;
}
};
_TextEntry.prototype._eH=function(text){
if(this._tI){
for(var i=0;i<this._tI.length;i++)
{
var _c1=this._tI[i];
if(_c1.isInstance('_9G')){
text=_c1._eH(text);
}
}
}
return text;
};
_TextEntry.prototype._GC=function(){
this._m1=this._kE;
this._o1();
};
_TextEntry.prototype._p1=_TextEntry.prototype._wF;
_TextEntry.prototype._wF=function(){
this._p1();
this.persistProperty('text',true);
this.text=this.getText();
this._m1=null;
};
_TextEntry.prototype._WE=function(_XE){
this.addEventListener("blur","*",this.id,'_q1');
if(this._i1&&!this._j1){
this.addEventListener("keydown","*",this.id,'_r1');
}
this._XE=_XE;
};
_TextEntry.prototype._s1=_TextEntry.prototype._bD;
_TextEntry.prototype._bD=function(){
this._s1();
this.setProperty('text',this._l1);
};
_TextEntry.prototype._ZN=function(){
this.setProperty('_k1',"");
this.fireEvent("blur","");
};
_TextEntry.prototype._t1=_TextEntry.prototype._jD;
_TextEntry.prototype._jD=function(){
var _u1=this._t1();
var _kD=this.getText();
if(_u1){
if((_u1.charAt(0)!="<")||(_u1.charAt(_u1.length-1)!=">")){
_u1="<"+_u1+">";
}
_kD=_u1+" "+_kD;
}
return _kD;
};
_TextEntry.prototype._5O=function(){
this._m1.blur();
};
_TextEntry.prototype._9O=function(){
this._m1.focus();
this._m1.select();
};
function _q1(event,_ED,_HF){
if(this._k1!=this.getText()){
var _4C=this._8C();
if(!_4C||(!this._oD(_4C)&&!_4C._oD())){
this._wD(true);
this.setText(this.getText());
if(_4C){
_4C._MM();
}
var _v1=this._tD('_Entry');
for(var i=0;i<_v1.length;i++)
{
_v1[i].setProperty('answered',false);
}
for(var i=0;i<_v1.length;i++)
{
var _cW=_v1[i];
if(_cW._$C(this.getText())){
_cW.setAnsweredState(true);
break;
}
}
}
}
}
function _r1(event,_ED,_HF,keyCode,_IF,_JF,_KF){
if(keyCode==13){
this.blur();
}
}
function _Polygon(id,parent,_YC,_ZC,_0C,_1C,_JQ,_ED){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_FD.call(this,id,parent,_YC,_ZC,_0C,_1C,_ED);
if(!this.constructor.prototype._AC['_Polygon']){
this.constructor.prototype._AC['_Polygon']=true;
}
this._JQ=_JQ;
}
}
_Polygon.prototype=new _FD();
_Polygon.prototype.inside=function(_7I){
var a1,a2,x1,x2,da;
var _cR=0;
var n=this._JQ.length;
for(var i=0;i<n;i+=2)
{
x1=this._JQ[i]-_7I[0];
y1=this._JQ[i+1]-_7I[1];
if((y1==0.0)&&(x1==0.0)){
a1=0.0;
}
else{
a1=Math.atan2(y1,x1);
}
if(i<(n-2)){
x2=this._JQ[i+2]-_7I[0];
y2=this._JQ[i+3]-_7I[1];
}
else{
x2=this._JQ[0]-_7I[0];
y2=this._JQ[1]-_7I[1];
}
if((y2==0.0)&&(x2==0.0)){
a2=0.0;
}
else{
a2=Math.atan2(y2,x2);
}
da=a2-a1;
while(da<-Math.PI)
{
da+=2*Math.PI;
}
while(da>Math.PI)
{
da-=2*Math.PI;
}
_cR+=da;
}
return Math.abs(_cR)>Math.PI;
};
function _Scorer(id,name,title,parent,_AR,_mR,_pX,_qX,_rX,_sX,_tX,showFeedback,_uX,_vX,_nO,_sD,_oR){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,null,true,false,false,name,title,parent);
if(!this.constructor.prototype._AC['_Scorer']){
this.constructor.prototype._AC['_Scorer']=true;
}
this._AR=_AR;
this._oR=_oR;
this._mR=_mR;
this._pX=_pX;
this._sX=_sX;
this._tX=_tX;
this.showFeedback=showFeedback;
this._uX=_uX;
this._vX=_vX;
this._nO=_nO;
this._sD=_sD;
this._qX=_qX;
this._rX=_rX;
}
}
_Scorer.prototype=new _Object();
_Scorer.prototype.scoreQuestions=function(){
var _dM=0;
var _UG=0;
var _YG=0;
if(this._wX||this._vX||this._mR||this._AR){
_Feedback._rD(this._sD,"","field");
}
var _xX=[];
for(var i in this._nO)
{
var _4C=_Question._8C(this._nO[i]);
if(!_4C||((this._tX=="page")&&(!_4C._sL||!_Page._0D._bQ(_4C._sL.id)))){
continue;
}
_xX[_xX.length]=_4C;
}
var _yX=(_xX.length>1);
var _zX=[];
for(var i=0;i<_xX.length;i++)
{
var _4C=_xX[i];
var visible=_4C._sL&&_Page._0D._bQ(_4C._sL.id);
var showFeedback=this.showFeedback&&visible;
var _uX=this._uX&&visible;
if(_4C._AX&&(_4C._AX!=this._sD)){
_Feedback._rD(_4C._BX,"","field");
}
_4C._AX=this._sD;
var _BR=0;
if(this._tX!="all"){
_BR=_4C._wR(showFeedback,this._mR,this._AR);
}
else if(_4C._TG){
_zX[_zX.length]=_4C;
_BR=_4C._wR(showFeedback,false,false);
}
if(_4C._wM){
_dM+=_4C._dM;
_UG+=_4C._UG;
_YG+=_BR;
if(_uX){
this._CX(_4C,_BR,_4C._UG,_yX);
}
}
}
if((this._tX=="all")&&(TBK._0G>TBK._1G)){
_dM=TBK._1G;
_UG=TBK._0G;
}
else if((this._tX=="page")&&_Page._0D&&(_Page._0D._UG>_Page._0D._dM)){
_dM=_Page._0D._dM;
_UG=_Page._0D._UG;
}
if(this._tX=="all"){
_YG=_Question._YG;
if(this._mR||this._AR){
for(var i=0;i<_zX.length;i++)
{
if(this._mR){
_zX[i].reset();
}
if(this._AR){
_zX[i]._xR();
}
}
}
}
if(_UG>_dM){
_YG=Math.min(_UG,Math.max(_dM,_YG));
}
if(this._vX){
this._CX(null,_YG,_UG,false);
}
_YG=Math.round(_YG*100)/100;
return _YG;
};
_Scorer.prototype._CX=function(_4C,_BR,_UG,_yX){
var text="";
if(_yX){
text="<b>"+_4C.name+" "+TBK._pD('_qD.10')+"</b><br>";
}
var _oJ=[];
if(this._pX=="integer"){
_oJ[0]=Math.round(_BR);
_oJ[1]=_UG;
text+=TBK._LD(this._DX,_oJ);
}
else if(this._pX=="rounded"){
var s=""+Math.round(_BR*Math.pow(10,this._sX));
var i=(this._sX+1)-s.length;
if(i>0){
s="000000000".substring(0,i)+s;
}
var _5D=s.substring(0,s.length-this._sX);
var _EX=s.substring(s.length-this._sX);
if(_EX){
_oJ[0]=_5D+"."+_EX;
}
else{
_oJ[0]=_5D;
}
_oJ[1]=_UG;
text+=TBK._LD(this._DX,_oJ);
}
else if(this._pX=="percent"){
_oJ[0]=Math.round((_BR*100)/((_UG==0)?1:_UG));
text+=TBK._LD(this._FX,_oJ);
}
else{
text+=TBK._pD('_qD.10')+" "+_BR;
}
_Feedback._rD(this._sD,text,"auto");
};
_Scorer.prototype._WE=function(_XE){
if(this._tX!="named"){
this._nO=_Question._uR;
}
this._FX=this._qX?TBK._pD(this._qX):TBK._pD('_qD.34');
this._DX=this._rX?TBK._pD(this._rX):TBK._pD('_qD.35');
};
_Scorer.prototype._dI=function(){
this._nO=null;
};
_Scorer.prototype._YE=function(){
if(this._oR){
_Feedback._rD(this._sD,"","field");
}
};
_Scorer.prototype._bD=function(){
if(this._oR){
_Feedback._rD(this._sD,"","field");
}
};
_Scorer.prototype._ZN=function(){
this.scoreQuestions();
};

