/* Copyright © 2000-2005 SumTotal Systems, Inc. All rights reserved. */
var TBK={};
TBK._uT={};
TBK._vT={};
TBK._wT={};
TBK._xT={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._yT=['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._zT={};
for(var i=0;i<TBK._yT.length;i++)
{
TBK._zT[TBK._yT[i]]=i;
}
TBK._AT=null;
TBK._BT=null;
TBK._CT=null;
TBK._DF=null;
TBK._DT=null;
TBK._AQ=false;
TBK._CQ=" ";
TBK._BQ=0;
TBK._zQ=false;
TBK._gF=0;
TBK._iF=0;
TBK._PG=false;
TBK.launchPage="";
TBK._ET=null;
TBK._FT=false;
TBK._6N=null;
TBK._eN=null;
TBK._GT=null;
TBK._HT=null;
TBK._IT=300;
TBK._7E=null;
TBK._eF=null;
TBK.popupText=null;
TBK.screenX=0;
TBK.screenY=0;
TBK._eH=0;
TBK._TI=0;
TBK._JT=0;
TBK._KT="\"";
TBK._LT="<table width=100%% height=100%%><tr align=center valign=center><td><h1>%1</h1></td></tr></table>";
TBK._MT=null;
TBK._NT=String;
TBK._NT.prototype._2M=function(){
var _TD=this.valueOf();
_TD=_TD.replace(/^\s*/,"");
_TD=_TD.replace(/\s*$/,"");
return _TD;
};
TBK._NT.prototype._FH=function(_mH){
return this.indexOf(_mH)==0;
};
TBK._NT.prototype._PH=function(_mH){
return this.lastIndexOf(_mH)==this.length-_mH.length;
};
TBK._pH=function(_OT,_PT,_QT,_oQ){
var i,o,u,v;
var _RT=_QT?"":"JSON:";
switch(typeof _OT){
case "object":if(_OT){
if(_OT.constructor==Array){
o="";
for(i=0;i<_OT.length;++i)
{
v=TBK._pH(_OT[i]);
if(o){
o+=",";
}
if(v!==u){
o+=v;
}
else{
o+="null,";
}
}
return(_PT?_RT:"")+"["+o+"]";
}
else{
switch(_OT.constructor){
case Number:case Boolean:case RegExp:if(_PT&&!_oQ){
return _OT;
}
else{
return(_PT?_RT:"")+_OT.toString();
}
case Date:if(_PT&&!_oQ){
return _OT;
}
else{
return(_PT?_RT:"")+"new Date("+_OT.getTime()+")";
}
case String:if(_PT&&!_oQ){
return _OT;
}
else{
var s=('"'+_OT.replace(new RegExp("([\"\\\\])","g"),"\\$1")+'"');
s=s.replace(new RegExp("(\\n)","g"),"\\n");
return(_PT?_RT:"")+s;
}
default:o="";
for(i in _OT)
{
if(typeof _OT[i]!="function"){
v=TBK._pH(_OT[i]);
if(v!==u){
if(o){
o+=",";
}
o+="\""+i+"\":"+v;
}
}
}
return(_PT?_RT:"")+"{"+o+"}";
}
}
}
return _PT?null:"null";
case "unknown":case "undefined":return u;
case "function":return"";
case "string":if(_PT&&!_oQ){
return _OT;
}
else{
var s=('"'+_OT.replace(new RegExp("([\"\\\\])","g"),"\\$1")+'"');
s=s.replace(new RegExp("(\\n)","g"),"\\n");
return(_PT?_RT:"")+s;
}
default:return _PT?_OT:String(_OT);
}
};
TBK._HR=function(_ST){
if(typeof _ST=="string"){
if(_ST._FH("JSON:{")&&_ST._PH("}")){
_ST=_ST.substring(5,_ST.length);
return eval("new Object("+_ST+")");
}
else if(_ST._FH("JSON:")){
_ST=_ST.substring(5,_ST.length);
return eval(_ST);
}
}
return _ST;
};
TBK._jH=function(id){
if(!id){
return null;
}
var _3L=id.indexOf(".");
if(_3L==-1){
return id;
}
else{
return id.substring(0,_3L);
}
};
TBK._TR=function(_TT){
var e;
var _UT="";
try{
var _UT=this._VT(_TT);
}
catch(e)
{}
if(_UT){
window.eval(_UT);
}
};
TBK._VT=function(_TT){
if(!this._CT){
this._CT=this._WT();
}
if(this._CT){
this._CT.open("GET",_TT,false);
this._CT.send(null);
return this._CT.responseText;
}
};
TBK._WT=function(){
var _XT=null;
if(typeof(XMLHttpRequest)!="undefined"){
_XT=new XMLHttpRequest();
}
else{
try{
_XT=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try{
_XT=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(E)
{
}
}
}
return _XT;
};
TBK._lD_YT=function(){
return document.body.clientHeight;
};
TBK._lD_ZT=function(){
return document.body.clientWidth;
};
TBK._lD_gP=function(){
if(!this._gP){
this._gP=document.getElementById("syspageDiv");
}
return this._gP;
};
TBK._lD_JR=function(){
if(!this._JR){
this._JR=document.getElementById("syspageFrame");
}
return this._JR;
};
TBK._0T=function(){
var _JR=this._lD_JR();
_JR.style.visibility="inherit";
var e;
try{
_JR.contentWindow.focus();
}
catch(e)
{
}
};
TBK._lD_1T=function(){
return this._lD_JR().contentWindow;
};
TBK._lD_2T=function(){
return this._lD_JR().contentWindow.document;
};
TBK._rD_3T=function(width,height){
if(width==0){
width=this._hF;
}
if(height==0){
height=this._jF;
}
var _gP=this._lD_gP();
_gP.style.width=width+"px";
_gP.style.height=height+"px";
if(this._DF!="topleft"){
_gP.style.left=Math.max(0,Math.round((this._lD_ZT()-width)/2))+"px";
_gP.style.top=Math.max(0,Math.round((this._lD_YT()-height)/2))+"px";
}
};
TBK._4T=function(){
if(this._DF!="topleft"){
var _gP=TBK._lD_gP();
width=parseInt(_gP.style.width);
height=parseInt(_gP.style.height);
_gP.style.left=Math.max(0,Math.round((this._lD_ZT()-width)/2))+"px";
_gP.style.top=Math.max(0,Math.round((this._lD_YT()-height)/2))+"px";
}
};
TBK._5T=function(_6T){
if(_6T){
var _3K=this._YD('_ZD.132');
return(_3K.indexOf(_6T.substr(_6T.length-1))!=-1);
}
return false;
};
TBK._7T=function(_oH,value){
this._vT[_oH.toUpperCase()]=value;
};
TBK._kH=function(_uI){
for(var i in _uI)
{
if(_uI.hasOwnProperty(i)){
return false;
}
}
return true;
};
TBK._8T=function(url){
var i=url.lastIndexOf("?");
if((i==-1)||((i+1)==url.length)){
return;
}
url=url.substring(i+1);
var _9T=url.split(/\s*&\s*/);
for(var j=0;j<_9T.length;j++)
{
var ch=_9T[j].split(/\s*=\s*/);
if(typeof(ch[0])!="undefined"&&ch[0]){
if(typeof(ch[1])=="undefined"){
ch[1]="";
}
this._7T(ch[0],this.__T(ch[1]));
}
}
};
TBK.__T=function(_$T){
var _aU="";
if(typeof(_$T)!="underfined"&&_$T){
_aU=_$T.replace(/\+/g," ");
_aU=(typeof(decodeURIComponent)=="undefined")?unescape(_aU):decodeURIComponent(_aU);
}
return _aU;
};
TBK._bU=function(url,_cU){
url=(""+url)._2M();
if(url.indexOf("javascript:")==0||url.indexOf("mailto:")==0||url.indexOf("mms:")==0){
var _3L=url.indexOf(":");
this._RM=url.substring(0,_3L);
this._dU=null;
this._eU=null;
this.hostname="";
this._fU="";
this._gU=url.substring(_3L+1);
this._qH="";
this.search="";
this.hash="";
return this;
}
url=url.replace(/\s/g,"%20");
if(url.indexOf("www.")==0){
url=this._cU?"//"+url:"http://"+url;
}
else if(url.indexOf("\\\\")==0){
url="file://"+url.substring(2);
}
var _hU="(?:[a-zA-Z][a-zA-Z0-9\\+-\\.]+)";
var _iU="(?:("+_hU+")\:)?";
var _jU="[^\\/\\:@\\=#\\\\]*";
var _kU="[^;\\/\\?\\:@&\\=#\\\\\]*";
var _lU="[\\d]*";
var _mU="(?:\/\/(("+_jU+")(\:("+_jU+"))?@)?("+_kU+")(?:\:("+_lU+"))?)?";
var _nU="(?:[^;\\?#])";
var _oU="("+_nU+"*)";
var _pU="(?:[^\\?#])";
var _qU="(?:;("+_pU+"*))?";
var _rU="(?:[^#])";
var _sU="(?:\\?("+_rU+"*))?";
var _tU="(?:#("+_rU+"*))?";
var _mK=url.match(_iU+_mU+_oU+_qU+_sU+_tU);
if(_mK){
this._RM=_mK[1]?_mK[1]:"";
this._dU=_mK[3]?_mK[3]:_mK[2]?"":null;
this._eU=_mK[5]?_mK[5]:_mK[4]?"":null;
this.hostname=_mK[6]?_mK[6]:"";
this._fU=_mK[7]?_mK[7]:"";
this._gU=_mK[8]?_mK[8].replace(/\\/g,"/"):(this._RM||this.hostname||this._fU)?"/":"";
this._qH=_mK[9]?_mK[9]:"";
this.search=_mK[10]?_mK[10]:"";
this.hash=_mK[11]?_mK[11]:"";
if(_cU){
if(_cU.constructor==TBK._bU){
this._cU=_cU;
}
else{
this._cU=new TBK._bU(_cU);
}
}
else{
this._cU=null;
}
if(this._cU){
if(!this._RM){
this._RM=this._cU._RM;
}
if(!this.hostname&&!this._fU){
this.hostname=this._cU.hostname;
if(this._RM==this._cU._RM){
this._fU=this._cU._fU;
}
}
var _uU=this._cU._gU;
if(_uU){
var _3L=_uU.lastIndexOf("/");
if(_3L>-1){
_uU=_uU.substring(0,_3L);
}
}
this._gU=TBK._vU(_uU,this._gU);
}
this._wU();
return this;
}
else{
return null;
}
};
TBK._bU.prototype._xU=function(url){
if(url){
if(url.constructor!=TBK._bU){
url=new TBK._bU(url);
}
}
if(url){
return(this._RM.toUpperCase()==url._RM.toUpperCase()&&this.hostname.toUpperCase()==url.hostname.toUpperCase()&&this._fU==url._fU);
}
else{
return false;
}
};
TBK._bU.prototype._lD_yU=function(){
return this.toString();
};
TBK._bU.prototype._lD_zU=function(){
return(this.hostname?this.hostname:"")+(this._fU?":"+this._fU:"");
};
TBK._bU.prototype._rD_zU=function(_zU){
_AU="(?:[^;\\/\\?\\:\\=#\\\\]+)";
_BU="("+_AU+"?)";
_CU="(?:\\:([\\d]*))?";
_mU="^(?:"+_BU+_CU+")?$";
_zU=""+_zU;
_mK=_zU.match(_mU);
if(_mK){
this.hostname=_mK[1];
this._fU=_mK[2];
}
this._wU();
};
TBK._bU.prototype.toString=function(){
var _TD=this._RM?this._RM+":":"";
if(this._dU||this._eU||this.hostname||this._fU){
_TD+="//";
var _DU="";
if(this._dU!=null||this._eU!=null){
var _DU="@";
if(this._eU!=null){
_DU=":"+this._eU+_DU;
}
if(this._dU!=null){
_DU=this._dU+_DU}
}
if(this.hostname){
_DU+=this.hostname;
}
if(this._fU){
_DU+=":"+this._fU;
}
_TD+=_DU;
}
if(this._gU){
if((this.hostname||this._fU)&&this._gU.indexOf("/")!=0){
_TD+="/"+this._gU;
}
else{
_TD+=this._gU;
}
}
_TD+=this._qH?";"+this._qH:"";
_TD+=this.search?"?"+this.search:"";
_TD+=this.hash?"#"+this.hash:"";
return _TD;
};
TBK._bU.prototype._wU=function(){
if(this._fU&&this._RM){
var _EU=({"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._RM];
if(_EU){
if(_EU==-1){
this._fU="";
}
else if(this._fU==_EU){
this._fU="";
}
}
}
};
TBK._FU=function(_JD){
url=new TBK._bU(_JD,window.location.href);
if(url){
return url.toString();
}
else{
return null;
}
};
TBK._GU=function(url){
var i=url.lastIndexOf('.');
if(i>0){
var _HU=url.substring(i+1).toLowerCase();
if(this._xT[_HU]){
return this._xT[_HU];
}
}
return-1;
};
TBK._sN=function(url){
var _rN;
var i=url.indexOf("#");
if(i>-1){
var j=url.indexOf("?",i);
if(j>-1){
_rN=url.substring(i+1,j);
}
else{
_rN=url.substring(i+1);
}
}
return _rN;
};
TBK._IU=function(_IN){
if((_IN.indexOf("click")>-1)||(_IN=="mousedown")){
if(this._OE){
this.exit(this._pE,false,false,this._eT,this._fT);
return false;
}
else if(!this._jE._cH()){
window.alert(this._YD('_ZD.28'));
this.exit(this._pE,false,false,this._eT,this._fT);
return false;
}
}
return true;
};
TBK._JU=[];
TBK._QG=function(id){
this._lD_2T().onmousemove=this._KU;
this._LU(this._JU,id);
this._JU[this._JU.length]=id;
};
TBK._MU=function(_NU){
if(!TBK._FT){
TBK._FT=true;
this._ET=document.getElementById(this._hT);
if(this._ET){
var e;
try{
var _GH=this._ET.getVersion();
if(!_GH){
_HH._IH("TBK.validateSupportApplet(): Unable to validate runtime applet.");
this._ET=null;
}
}
catch(e)
{
_HH._IH("TBK.validateSupportApplet(): Unable to validate runtime applet. Error: "+TBK._OU(e));
this._ET=null;
}
}
else{
_HH._IH("TBK.validateSupportApplet(): Unable to locate runtime applet.");
}
if(!this._ET){
this._PU(_NU);
}
}
if(_NU&&!this._ET){
window.close();
}
return this._ET;
};
TBK.setParam=function(name,value){
if(value==null||typeof value=="undefined"){
delete this._wT[name];
}
else{
this._wT[name]=value;
}
};
TBK.post=function(url,_yN){
var e;
_HH._IH("HTTP Post");
_HH._IH("  URL: "+url);
_HH._IH("  Data: "+_yN);
var _cU=new TBK._bU(document.location.href);
if(!_cU){
_HH._IH("  Post failed: Unable to parse context URL ("+document.location.href+").");
return"";
}
var _QU=new TBK._bU(url,_cU);
if(!_QU){
_HH._IH("  Post failed: Unable to parse URL ("+url+").");
return"";
}
var _RU="";
if(typeof _yN=="undefined"){
for(var i in this._wT)
{
if(_RU){
_RU+="&";
}
_RU+=i+"="+encodeURIComponent(this._wT[i]);
}
this._wT={};
}
else if(_yN){
_RU=_RU?_RU+"&"+_yN:_yN;
}
url=_QU.toString();
_HH._IH("  Processed URL: "+url);
_HH._IH("  Processed data: "+_RU);
if(!_QU._xU(_cU)&&TBK._gT){
_HH._IH("  Using signed Java applet for cross-domain posting.");
if(this._MU()){
var _SU=true;
if(this.getBrowserType()=="NS7"&&(""+this._ET.getJavaVendor()).toLowerCase()._FH("sun")){
var _TU=""+this._ET.getJavaVersion();
var _UU=_TU.split(new RegExp("[\._]"));
var _VU="1.4.1_05";
var _WU=[1,4,1,5];
for(var i=0;i<4;i++)
{
if(!_UU[i]){
_UU[i]=0;
}
if(_UU[i]<_WU[i]){
_SU=false;
break;
}
else if(_UU[i]>_WU[i]){
break;
}
}
}
if(_SU){
try{
_TD=this._ET.post(url,_RU);
_HH._IH("  Post via Java applet successful: Return value: "+_TD);
return(_TD===null)?"":_TD;
}
catch(e)
{
_HH._IH("  Post via Java applet failed: Error calling Java applet (\""+this._OU(e)+"\"). Attempting JavaScript post.");
}
}
else{
_HH._IH("  Post via Java applet failed: Unsupported Java version (minimum expected: "+_VU+"; found: "+_TU+")");
if(!this._XU){
window.alert(this._mE(this._YD('_ZD.150'),[_VU,_TU]));
this._XU=true;
}
}
}
else{
_HH._IH("  Post via Java applet failed: Signed Java applet not available. Attempting JavaScript post.");
}
}
if(!this._BT){
this._BT=this._WT();
}
if(this._BT){
try{
this._BT.open("POST",url,false);
this._BT.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
this._BT.send(_RU);
var _TD=this._BT.responseText;
_HH._IH("  Post successful: Return value: "+_TD);
return(_TD===null)?"":_TD;
}
catch(e)
{
_HH._IH("  Post failed: "+this._OU(e));
return"";
}
}
else{
_HH._IH("  Post failed: Unable to instantiate HTTP Request object.");
return"";
}
};
TBK._OU=function(e){
var _xI;
var x;
try{
_xI=e.message;
}
catch(x)
{}
if(_xI){
return _xI;
}
else{
return e.toString();
}
};
TBK._YU=new Object();
TBK._RG=function(id,_IN){
this._YU.id=id;
this._YU._IN=_IN;
};
TBK._TG=function(id,_IN){
if(this._YU.id==id&&this._YU._IN==_IN){
this._YU=new Object();
}
};
TBK._kE=function(){
if(this._YU.id){
var _uI=this._sE(this._YU.id);
this._ZU(_uI,this._YU._IN,"");
}
};
TBK._QD=function(_uI){
if(typeof(_uI)=="object"){
var _QD=new _uI.constructor();
for(var i in _uI)
{
_QD[i]=this._QD(_uI[i]);
}
return _QD;
}
return _uI;
};
TBK._0U=function(_IN){
if((_IN.indexOf("mouse")==0)&&(this._JU.length>0)){
var _1U=[];
var _2U=_1U.concat(this._JU);
for(var i=0;i<_2U.length;i++)
{
var _uI=this._sE(_2U[i]);
this._ZU(_uI,_IN,"");
}
return true;
}
else{
return false;
}
};
TBK._ZU=function(_uI,_IN,_dE){
if(_uI){
var _cO=new Array(arguments.length-3);
for(var i=0;i<_cO.length;i++)
{
_cO[i]=arguments[i+3];
}
_uI.fireEvent(_IN,_dE,_cO);
}
};
TBK._PU=function(_3U){
if(_3U){
var _4U=this._gT?this._YD('_ZD.144'):this._YD('_ZD.145');
}
else{
var _4U=this._gT?this._YD('_ZD.146'):this._YD('_ZD.147');
}
window.alert(_4U);
};
TBK._5U=function(){
return false;
};
TBK.exit=function(_3H,_nE,_oE,_xE,_yE){
if(!_oE||window.confirm(this._YD('_ZD.11'))){
this._6U=true;
this.stop(_3H,_nE,_xE,_yE);
}
};
TBK._tG=function(_VC){
if(_VC){
if(_VC.id){
return _VC;
}
else{
return this._lD_2T().getElementById(_VC);
}
}
else{
return null;
}
};
TBK._sE=function(id){
return(!id?null:(id.id?id:this._lD_7U(id)));
};
TBK._8U=function(id,_9U){
var _uI=window;
var __U;
id=id.split(".");
for(var i=0;i<(id.length-1);i++)
{
__U=_uI[id[i]];
if(typeof(__U)!="object"||!__U){
__U={};
_uI[id[i]]=__U;
}
_uI=__U;
}
_uI[id[i]]=_9U;
};
TBK._tE=function(name,id){
var _uI=null;
var _TE=this.Persistence.dereference(id);
if(_TE){
_uI=this._sE(_TE._fQ[name]);
}
if(!_uI){
var message=this._mE(this._YD('_ZD.43'),[name]);
window.alert(message);
}
return _uI;
};
TBK._$U=function(){
var i=-1;
if(this._nT.length>0){
for(i=0;i<this._nT.length;i++)
{
if(this._aV(i)){
break;
}
}
if(i==this._nT.length){
i=Math.round(Math.random()*(this._nT.length-1));
this._bV(i);
}
}
return this._cV(i)?i:-1;
};
TBK._mE=function(message,_qK){
var re=new RegExp("%.","g");
var _dV=function(_mH){
_mH=_mH.substring(1);
if(_mH=="%"){
return"%";
}
else if(_mH==1*_mH&&_mH>0){
return _qK[_mH-1];
}
else{
return"";
}
};
return message.replace(re,_dV);
};
TBK._uH=function(_eV){
var x=Math.round(_eV/1000);
var ss=x%60;
x=Math.round(x/60);
var mm=x%24;
x=Math.round(x/24);
var hh=x;
var _mK="";
if(hh<10){
_mK+="0";
}
_mK+=hh+":";
if(mm<10){
_mK+="0";
}
_mK+=mm+":";
if(ss<10){
_mK+="0";
}
_mK+=ss;
return _mK;
};
TBK._fV=function(){
return("xyzzy"!='_gV');
};
TBK.LMSInitialize=function(_hV){
if(this._jE._MM._FH("SCORM")){
return this._jE.LMSInitialize(_hV);
}
else{
return"";
}
};
TBK.LMSFinish=function(_hV){
if(this._jE._MM._FH("SCORM")){
return this._jE.LMSFinish(_hV);
}
else{
return"";
}
};
TBK.LMSCommit=function(_hV){
if(this._jE._MM._FH("SCORM")){
return this._jE.LMSCommit(_hV);
}
else{
return"";
}
};
TBK.LMSGetDiagnostic=function(_YE){
if(this._jE._MM._FH("SCORM")){
return this._jE.LMSGetDiagnostic(_YE);
}
else{
return"";
}
};
TBK.LMSGetErrorString=function(_YE){
if(this._jE._MM._FH("SCORM")){
return this._jE.LMSGetErrorString(_YE);
}
else{
return"";
}
};
TBK.LMSGetLastError=function(){
if(this._jE._MM._FH("SCORM")){
return this._jE.LMSGetLastError();
}
else{
return"";
}
};
TBK.LMSGetValue=function(_ZE){
if(this._jE._MM._FH("SCORM")){
return this._jE.LMSGetValue(_ZE);
}
else{
return"";
}
};
TBK.LMSSetValue=function(_ZE,value){
if(this._jE._MM._FH("SCORM")){
return this._jE.LMSSetValue(_ZE,value);
}
else{
return"";
}
};
TBK._lD_WE=function(){
var i;
for(i=0;i<this._QH.length;i++)
{
if(this._QH[i].indexOf("*")!=0){
return this._QH[i];
}
}
return null;
};
TBK._lD_gR=function(){
var i;
for(i=this._QH.length-1;i>=0;i--)
{
if(this._QH[i].indexOf("*")!=0){
return this._QH[i];
}
}
return null;
};
TBK._lD_iR=function(_mI){
if(_mI<this._QH.length-1){
var i;
for(i=_mI+1;i<this._QH.length;i++)
{
if(this._QH[i].indexOf("*")!=0){
return this._QH[i];
}
}
}
if(this._jT){
return this._lD_WE();
}
else{
return null;
}
};
TBK._lD_iV=function(_mI){
return(this._QH[_mI])?((this._QH[_mI].indexOf("*")==0)?this._QH[_mI].substr(1):
this._QH[_mI]):null;
};
TBK._lD_hR=function(_VE){
var i;
for(i=0;i<this._QH.length;i++)
{
if(this._QH[i]==_VE){
return i;
}
else if(this._QH[i].indexOf("*")==0){
if(this._QH[i].substr(1)==_VE){
return i;
}
}
}
return null;
};
TBK.getParam=function(_oH){
var _jV=this._vT[_oH.toUpperCase()];
if(typeof _jV=="undefined"){
_jV="";
}
return _jV;
};
TBK._lD_jR=function(_mI){
if(_mI>0){
var i;
for(i=_mI-1;i>=0;i--)
{
if(this._QH[i].indexOf("*")!=0){
return this._QH[i];
}
}
}
if(this._jT){
return this._lD_gR();
}
else{
return null;
}
};
TBK._3M=function(){
var url=window.location.href;
this._GT=url;
this._HT=this._kV(url);
var i=url.indexOf(this._5S);
if(i==-1){
this._6N=url;
}
else{
this._6N=url.substring(0,i)+url.substring(i+this._5S.length+1);
}
this._eN=this._kV(this._6N);
this.launchPage=this._sN(url);
this._lV();
this._8T(url);
this._DF=this.getParam("dhtmlActivation");
if(this.getParam("closeOnClick")=="true"){
this._OE=true;
}
if(this.getParam("logonRequired")=="false"){
this._9N=false;
this._$N=false;
}
if(typeof(this._BE._gE)!="undefined"){
this._QH=[];
for(var i=0;i<this._BE._gE.length;i++)
{
var _QH=this._BE._gE[i];
if(_QH.__G){
for(var j=0;j<_QH._mV;j++)
{
this._BS(_QH._QH,this._QH);
}
}
else{
for(var j=0;j<_QH._QH.length;j++)
{
this._QH[this._QH.length]=_QH._QH[j];
}
}
}
}
this._nV();
this._oV();
window.onerror=_HH._wI;
};
TBK._iD=function(_9C,_pV){
if(this._MU(true)){
_qV=new String(this._ET.decrypt(_pV));
var _uI=eval("new "+_9C+" ( "+_qV+" )");
return _uI;
}
else{
return null;
}
};
TBK.integerToRGB=function(_NE){
var _XE=_NE-0;
return""+((_XE>>16)&255)+","+((_XE>>8)&255)+","+((_XE>>0)&255);
};
TBK._rV=function(item,_sH){
for(var i=0;i<_sH.length;i++)
{
if(_sH[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._oI(d.getHours(),2)+":"+this._oI(d.getMinutes(),2)+":"+this._oI(d.getSeconds(),2);
}
else{
var _sV=Math.round(ms/1000);
return this._oI(Math.floor(_sV/60),2)+":"+this._oI(_sV%60,2);
}
};
TBK._tV=function(xx,yy){
var x=1*xx;
var y=1*yy;
var _mK=x%y;
if(_mK!=0){
if(((x<0)&&(y>0))||((x>0)&&(y<0))){
if(((_mK<0)&&(y>0))||((_mK>0)&&(y<0))){
_mK+=y;
}
}
}
return _mK;
};
TBK._oV=function(){
eval(function __T(_KV,_LV,_MV){
return _KV.length==96?_KV.charAt(_KV.charCodeAt(0)):
_MV<_KV.length?__T(_KV,_LV+=__T(_KV.substring(0,95)+_KV.substring(_MV,_MV+=((_KV.length-95)>>1)),"",95),_MV):
_LV;
}
("T{b ;Z]y\"PzVw$=GdKJIW&^92/0rMmuhCY`'73!%)8l?SsB1noOi6,Dvj_<c:X5peFf>4A#N@*|\\RUEx~.-Hk}Q([aqLg+t N1qYSV.b>P[~SQPwY7@UY_+H!Sbw~?SMqYS ..(XyWy(H!Sbw~?SMqY<mw~;>`HH!Yz+.P`,#L~;SP|w~?SMqYn q0`[;'_~wY_+HH$u`JM`!;`~>;P#P>JJ$uu`JM`!Yz+.~?SMqY>+wY_+U~?SMqYAVwCY%VqICHH$uWy;#Y>3.`WyJw(P`,#(}Y7@}(#w#(}Yz+}(#H(H$;`~>;P#Y>3$u$ N1qY>+.b>P[~SQPwYM1UYW+H!Wy;#Y,+$Wy;#Yo+.x&$Wy;#Y'+.:o7nEDD7N7$Wy;#Y*+.~?SMqYe+wYM1H$Wy;#YN+.OT$Wy;#Y@+.wY*+qJ`P|~?idHGwYW+qJ`P|~?rYN+H$Wy;#YQs.x&$bQ;wWy;#S.Y@+UX.:$SZwY@+}YN+H$S}.dUX}}H!YQsxX&.wYW+q[?y;@Q0`e~wSH58^^HZZ8djwYW+q[?y;@Q0`e~wS}OH58^^HZZOTjwYW+q[?y;@Q0`e~wS}8H58^^HZZIjwYW+q[?y;@Q0`e~wS}EH58^^H$YQsxX&5.d87d7TD87^$uWy;#YV+$Wy;#P$Wy;#Yn+$Wy;#Y'1.:$bQ;wWy;#S.:$SZY*+qJ`P|~?$S}.8H!Wy;#YV+.:o@TnaED8:$Wy;#P.E8$,?SJ`wPrrc:H!Y*+xS}O&.Y*+xS}O&rwwY*+xS&ZZd6Y*+xS&ccc^H}Y*+xS&6YV+}YQsxwYV+cccOOH5E&H$YV+.YV+rY'+$Y*+xS&.Y*+xS&rwwY*+xS}O&ZZd6Y*+xS}O&ccc^H}Y*+xS}O&6YV+}YQsxwYV+5EH&H$ubQ;wWy;#Ya+.:$Ya+Z8$Ya+}}H!Wy;#Y/+.d8DIO7::I:$Wy;#=QW`N'.8d$bQ;wWy;#Ys+.:$Ys+Zd$Ys+}}H!Y3+.wY*+xS}Ya+&5Y/+Hccc=QW`N'$Yn+.L~;SP|qb;Q=@?y;@Q0`wY3+H$SbwY3+ZE8jjY3+cO8DjjYn+..(G(H!Yn+.`M[y_`wYn+H$uYo+xY'1}}&.Yn+$Y/+ccc.I$=QW`N'r.I$uuuYo+.0`[Q0`ml3wYo+qXQSPw((HH$SbwYo+qSP0`oRbw(ko::(HF.rOH!Yo+.Yo+qM>\"M~;w:UYo+qSP0`oRbw(ko::(HH$u;`~>;P#Yo+$u$ N1qYe+.b>P[~SQPwY2+H!Wy;#Y*+.x&$Y2+.Y2+qM_JS~w((H$bQ;wWy;#S.:UX.:$SZY2+qJ`P|~?$S}.dUX}.EH!Wy;#t.w N1qY* xY2+xS&&ZZOIHjw N1qY* xY2+xS}O&&ZZO8Hjw N1qY* xY2+xS}8&&ZZTHj N1qY* xY2+xS}E&&$Y*+x<y~?qbJQQ;wX9dH&j.wwtcccOTH58^^HZZwXGdiIH$Y*+x<y~?qbJQQ;wwX}OH9dH&j.wwtcccIH58^^HZZwwX}OHGdiIH$Y*+x<y~?qbJQQ;wwX}8H9dH&j.wt58^^HZZwwX}8HGdiIH$uY*+qJ`P|~?.<y~?qbJQQ;wY2+qJ`P|~?iE9OTH$;`~>;P#Y*+$u$","",95));
};
TBK._nK=function(_mH){
if(_mH){
_mH=_mH.replace(/\r\n/g,"\n");
_mH=_mH.replace(/\r/g,"\n");
}
return _mH;
};
TBK._NV=function(_fF){
var _HN=_fF;
while(_HN&&!_HN._OV)
{
_HN=_HN.parentNode;
}
if(_HN&&_HN._OV){
return _HN._OV;
}
else{
return null;
}
};
TBK._LO=function(x,y){
var _eQ=null;
if(TBK._BE._CE){
_eQ=TBK._BE._CE._EM(x,y);
}
return _eQ?_eQ:_Book._fE;
};
TBK._6E=function(value){
if(typeof(value)=="string"){
var re=new RegExp("\\\\","g");
var _PV=value.replace(re,"\\\\");
re=new RegExp("\\r","g");
_PV=_PV.replace(re,"\\r");
re=new RegExp("\\n","g");
_PV=_PV.replace(re,"\\n");
re=new RegExp("\\t","g");
_PV=_PV.replace(re,"\\t");
re=new RegExp("\\'","g");
_PV=_PV.replace(re,"\\'");
re=new RegExp("\\\"","g");
_PV=_PV.replace(re,"\\\"");
return"\""+_PV+"\"";
}
else if(typeof(value)=="object"){
return((value.id)?value.id:this._6E(value.toString()));
}
else return value;
};
TBK._BS=function(_aI,to){
var item=Math.round(Math.random()*(_aI.length-1));
to[to.length]=_aI[item];
for(var i=item;i<(_aI.length-1);i++)
{
_aI[i]=_aI[i+1];
}
_aI.length=_aI.length-1;
};
TBK._VG=function(id){
this._LU(this._JU,id);
if(this._JU.length==0){
this._lD_2T().onmousemove=null;
}
};
TBK._xF=function(_sH,item){
for(var i=item;i<(_sH.length-1);i++)
{
_sH[i]=_sH[i+1];
}
_sH.length=_sH.length-1;
};
TBK._LU=function(_sH,_uI){
for(var i=0;i<_sH.length;i++)
{
if(_sH[i]==_uI){
this._xF(_sH,i);
continue;
}
}
};
TBK._lV=function(){
TBK._NT.prototype._QV=TBK._NT.prototype.charCodeAt;
TBK._NT.prototype.charCodeAt=TBK._RV;
TBK._NT.prototype._SV=TBK._NT.prototype.charAt;
TBK._NT.prototype.charAt=TBK._TV;
};
TBK._UV=function(_VE){
if((_VE.indexOf("page")==0)&&(_VE.length>4)){
var _mI=0+_VE.substr(4)-1;
var _DE=this._lD_iV(_mI);
if(_DE){
return _DE;
}
}
else if(this.isNumber(_VE)){
var _mI=_VE-1;
var _DE=this._lD_iV(_mI);
if(_DE){
return _DE;
}
}
return _VE;
};
TBK._vU=function(_uU,_VV){
_uU=""+_uU;
_VV=""+_VV;
_uU=_uU.replace(/\\/g,"/");
_VV=_VV.replace(/\\/g,"/");
if(_VV.length==0){
return _uU;
}
if(_VV.indexOf("/")==0){
return _VV;
}
if(_VV.charAt(1)==":"){
return"/"+_VV;
}
if(_uU.charAt(_uU.length-1)=="/"){
_uU=_uU.substring(0,_uU.length-1);
}
var _WV=(_uU+"/"+_VV).split("/");
var i;
for(i=0;i<_WV.length;i++)
{
if(_WV[i]=="."){
_WV.splice(i,1);
i--;
}
else if(_WV[i]==".."){
if(i>0){
_WV.splice(i-1,2);
i-=2;
}
}
}
return _WV.join("/");
};
TBK._YD=function(_XV){
return this._uT[_XV];
};
TBK._HD_YV=function(){
TBK._NT.prototype.charCodeAt=TBK._NT.prototype._QV;
TBK._NT.prototype.charAt=TBK._NT.prototype._SV;
};
TBK.rgbToInteger=function(_XE){
var _GK=this._gI(_XE,",",false);
return((_GK[0]-0)*65536)+((_GK[1]-0)*256)+(_GK[2]-0);
};
TBK._ZV=function(){
if(_0V){
_0V._ZV();
}
};
TBK._rD_LQ=null;
TBK._rDfocus=function(_uI,_4D){
if(_4D&&this._rD_LQ&&_uI!=this._rD_LQ&&this._rD_LQ.blur){
this._rD_LQ._7P();
}
this._9E(this._DT);
if(_uI){
this._rD_LQ=_uI;
}
if(this._rD_LQ){
if(_4D){
_Page._nR(this._rD_LQ);
this._ZU(this._rD_LQ,"focus","");
if(this._rD_LQ._zG){
var _FO=this._rD_LQ._gJ(null);
this._cF(this._DT,(_FO[0]*-1)-1,(_FO[1]*-1)-1,this._rD_LQ.getWidth()+2,this._rD_LQ.getHeight()+2,this._rD_LQ._lD_GJ()-1,null);
}
}
else{
this._ZU(this._rD_LQ,"blur","");
this._rD_LQ=null;
}
}
return false;
};
TBK._RV=function(n){
return this._QV(n+95);
};
TBK.stop=function(_3H,_nE,_xE,_yE){
if(!this._TI){
this._TI=new Date().getTime();
this._3H=_3H;
this._nE=_nE;
this._xE=_xE;
this._yE=_yE;
this._BE._1V("");
}
};
TBK._2V=function(){
if(this._3H!=this._uE){
this._3V(false);
this._4V(false);
}
_Book._fE.stop();
this._jE.stop(this._3H,this._nE,this._xE,this._yE);
if(window['_Question']){
for(var i in _Question._bS)
{
var _cS=_Question._bS[i]._cS;
if(_cS){
window.clearTimeout(_cS);
_cS=null;
}
}
_Question._bS=null;
}
if(_Book._fE._fF){
_Book._fE._fF._OV=null;
_Book._fE._fF=null;
}
_HH.stop();
if(this._6U){
window.close()}
};
TBK._0E=function(){
for(var i=0;i<this._nT.length;i++)
{
this._bV(i);
}
};
TBK._kV=function(url){
var _5V="";
var i=url.indexOf("#");
var j=url.indexOf("?");
if((i==-1)&&(j==-1)){
_5V=url;
}
else if(i==-1){
_5V=url.substring(0,j);
}
else if(j==-1){
_5V=url.substring(0,i);
}
else{
_5V=url.substring(0,Math.min(i,j));
}
return _5V;
};
TBK._GQ=function(_6V,_7V){
var _8V=_6V.toString(16);
while(_8V.length<_7V)
{
_8V="0"+_8V;
}
return _8V;
};
TBK._gI=function(string,_1L,_9V){
var start=0;
var _0L=0;
var _GK=[];
while((_0L=string.indexOf(_1L,start))!=-1)
{
if(start<_0L){
_GK[_GK.length]=_9V?string.substring(start,_0L).toLowerCase():string.substring(start,_0L);
}
start=_0L+1;
}
if(start<string.length){
_GK[_GK.length]=_9V?string.substring(start).toLowerCase():string.substring(start);
}
return _GK;
};
TBK._TV=function(n){
return this._SV(n-32);
};
TBK.__V=function(v1,v2){
return(v1-0)+(v2-0);
};
TBK._hG=function(value){
if(typeof(value)=="string"){
return(value.toLowerCase()!="false");
}
else return value;
};
TBK._$V=function(v1,v2){
return(""+v1)+(""+v2);
};
TBK._aW=function(v){
return((v-0)>=0)?Math.floor(v):Math.ceil(v);
};
TBK._bW=function(_sH){
return(typeof(_sH)=="object")?_sH.length:0;
};
TBK._cW=function(){
window.alert(this._YD('_ZD.130'));
};
TBK._HQ=function(_fF){
_fF._OV=null;
this._dW(_fF);
};
TBK._oI=function(value,_7V){
var text=""+value;
return"00000000".substr(0,_7V-text.length)+text;
};
TBK._XW=[];
TBK._ME=null;
TBK._YW=function(_oH,value){
this._XW[_oH]=value;
};
TBK._lD_EE=function(){
return this._7S;
};
TBK._ED=function(_AD,_cU){
if(_AD){
if(_cU&&_cU.toLowerCase()=="log"){
_AD=_AD.replace(/\r\n/g," ");
_AD=_AD.replace(/\r|\n|\t/g," ");
return _AD;
}
else{
var _xH=new RegExp(",|;|\"|\{|\}","g");
_AD=_AD.replace(_xH,"");
_AD=_AD.replace(/\r\n/g," ");
_AD=_AD.replace(/\r|\n/g," ");
return _AD;
}
}
return _AD;
};
TBK._SE=function(){
var i;
for(i=0;i<this._QH.length;i++)
{
var _VE=this._lD_iV(i);
_Book._fE.resetPage(_VE);
}
this._jE._SE();
};
TBK._4I=function(_tH){
_ZW=""+_tH;
if(_ZW){
_ZW=_ZW.replace(/&/g,"&amp;");
_ZW=_ZW.replace(/>/g,"&gt;");
_ZW=_ZW.replace(/</g,"&lt;");
_ZW=_ZW.replace(/\r\n/g,"<BR>");
_ZW=_ZW.replace(/\n\r/g,"<BR>");
_ZW=_ZW.replace(/\r/g,"<BR>");
_ZW=_ZW.replace(/\n/g,"<BR>");
_ZW=_ZW.replace(new RegExp("<BR> ","g"),"<BR>&nbsp;");
_ZW=_ZW.replace(new RegExp(" (?= )","g"),"&nbsp;");
return _ZW;
}
else{
return"";
}
};
TBK._0W=function(_ZW){
_tH=""+_ZW;
if(_tH){
_tH=_tH._2M();
_tH=_tH.replace(/\r/g,"");
_tH=_tH.replace(/\n/g,"");
var re=new RegExp("^(<p>|<li>|<tr>|<pre>|<div>)","gi");
while(_tH.search(re)>-1)
{
_tH=_tH.replace(re,"");
}
_tH=_tH.replace(/<br>|<p>|<li>|<\/tr>|<\/?_1W>|<\/?_2W>/gi,"\n");
_tH=_tH.replace(/<hr>/gi,"\n\n");
_tH=_tH.replace(/<\/?[^>]+>/gi,"");
var _3W=this._4W;
if(!_3W){
this._4W=document.createElement("span");
_3W=this._4W;
}
_tH=_tH.split("\n");
for(i=0;i<_tH.length;i++)
{
_3W.innerHTML=_tH[i];
if(_3W.firstChild){
_tH[i]=_3W.firstChild.nodeValue;
}
else{
_tH[i]="";
}
}
return _tH.join("\n").replace(new RegExp("\\xA0","g")," ");
}
else{
return"";
}
};
TBK._LW=false;
TBK._MW=null;
TBK._NW=null;
TBK._OW=false;
TBK.logData=[];
TBK._PW=function(){
if(!this._OW){
this._MW=document.getElementById("sysemail");
this._NW=window.prompt(this._YD('_ZD.14'),"");
this._OW=true;
}
};
TBK._lS=function(_BD){
if(this._bT&&_BD._uN){
var _yI=_BD._lD_AE()+"\t";
_yI+=_BD.name+"\t";
_yI+=_BD._6G+"\t";
if(!_BD._ZH){
_yI=_yI+this._YD('_ZD.17');
}
else if(!_BD.__R){
_yI=_yI+this._YD('_ZD.18');
}
else{
_yI=_yI+this._YD('_ZD.19');
}
_yI+="\t";
_yI+=Math.round(_BD.lastScore)+"\t";
_yI+=_BD._0H+"\t";
_yI+=_BD.locked+"\t";
_yI+=_BD.scoreCount+"\t";
_yI+=_BD._SH+"\t";
_yI+=this._uH(_BD._xN)+"\t";
_yI+=_BD._QQ+"\t";
_yI+="[\t";
for(var i=0;i<_BD._bH.length;i++)
{
_UD=_BD._bH[i].findAnswerIdentification();
_UD=_UD.replace(/\r\n/g," ");
_UD=_UD.replace(/\r|\n|\t/g," ");
_UD=_UD.replace(/;/g,", ");
_yI+=_UD+"; ";
_yI+=_BD._bH[i].getAnswered()+"; ";
_yI+=_BD._bH[i]._vD+"\t";
}
_yI+="]\t";
_yI+=_BD.getLogData("userAnswer");
this.logData[this.logData.length]=_yI;
}
};
TBK._4V=function(_QW){
if(this._bT&&this._9N){
this._PW();
var _RW="";
if(this._9S){
for(var i=0;i<this._9S.length;i++)
{
_RW+=this._9S[i]+"; ";
}
}
if(this.__S){
_RW+=this._NW;
}
if(_RW){
if(!_QW){
var _SW=this._lD_EE()+" "+this._YD('_ZD.20');
this._TW(_RW,_SW);
}
this._3V(true);
this._UW("\r\n");
this._UW(this._YD('_ZD.21'));
this._UW("\r\n");
for(var i=0;i<this.logData.length;i++)
{
this._UW(this.logData[i]);
}
if(!_QW){
this._VW();
}
}
}
this.logData=[];
};
TBK._3V=function(_QW){
if(this._cT&&this._9N){
var _WW=0;
var _5H=0;
if(window._Question){
_5H=_Question._6H();
if(this._7H>this._8H){
_5H=Math.min(this._7H,Math.max(this._8H,_5H));
_WW=Math.round((_5H*100)/this._7H);
}
}
this._PW();
var _RW="";
if(this._$S){
for(var i=0;i<this._$S.length;i++)
{
_RW+=this._$S[i]+"; ";
}
}
if(this._aT){
_RW+=this._NW;
}
if(_QW||_RW){
if(!_QW){
var _SW=this._lD_EE()+" "+this._YD('_ZD.22');
this._TW(_RW,_SW);
}
var _qK=new Array(6);
_qK[0]=this._lD_EE();
_qK[1]=this._NW;
_qK[2]=_5H;
_qK[3]=this._7H;
_qK[4]=_WW;
_qK[5]=this._uH(this._TI-this._eH);
var message=this._mE(this._YD('_ZD.23'),_qK);
this._UW(message);
if(!_QW){
this._VW();
}
}
}
};
TBK._UW=function(_yN){
if(this._LW&&this._MW){
this._MW.SendData(_yN);
}
};
TBK._TW=function(to,_SW){
if(this._MW&&this._NW){
this._LW=this._MW.StartMail(window.location.hostname,this._NW,to,_SW);
}
};
TBK._VW=function(){
if(this._LW&&this._MW){
this._MW.SendEnd();
this._MW.SendQuit();
}
};
function _ExternalEvent(id,event,_dE,shift,_LG){
var _uI=id?this._sE(id):TBK._BE._CE;
if(_uI){
this._zQ=shift;
this._AQ=_LG;
if(event=="focus"){
this._rDfocus(_uI,true);
}
else if(event=="blur"){
this._rDfocus(_uI,false);
}
else{
this._ZU(_uI,event,_dE);
}
}
}
function _ExternalEventX(id,event,_dE,shift,_LG){
var _wF="_ExternalEvent ( '"+id+"', '"+event+"', '"+_dE+"', "+shift+", "+_LG+" )";
_5W=window.setTimeout(_wF,1);
}
function _ObjectListener(event,_dE,_uI,_WP){
this.event=event;
this._dE=_dE;
this._uI=_uI;
this._WP=_WP;
}
TBK.Persistence=new Object();
TBK.Persistence._2P=0;
TBK.Persistence._yR=1;
TBK.Persistence._4P=2;
TBK.Persistence._RI={};
TBK.Persistence._SI=null;
TBK.Persistence.setProperty=function(id,_XP,_vJ){
var ob=this.dereference(id);
var _zR=this._AR(ob,_XP);
var _dQ=ob._lD_dQ(_XP);
if(_dQ){
var _PE=ob[_dQ](_vJ);
if(typeof _PE=="undefined"){
_HH._IH("WARNING: "+ob.id+"."+_dQ+"() returns undefined value.");
}
else{
_vJ=_PE;
}
}
else{
ob[_XP]=_vJ;
}
this._BR(ob,_XP,_vJ,_zR);
return _vJ;
};
TBK.Persistence.setExternalProperty=function(id,_XP,_vJ){
var ob=this.dereference(id);
if(ob.setExternalProperty){
return ob.setExternalProperty(_XP,_vJ);
}
else{
return null;
}
};
TBK.Persistence.getProperty=function(id,_XP){
var ob=this.dereference(id);
var _TE=ob;
if(!_TE.isInstance('_Page')){
_TE=_TE._yM;
}
if(_TE&&_TE._CR){
var _DE=_TE.id;
var _vJ;
if(typeof(this._RI[_DE])!="undefined"){
_vJ=this._RI[_DE][ob.id+"."+_XP];
if(typeof _vJ!="undefined"){
return _vJ;
}
}
}
return this._lD_DR(ob,_XP);
};
TBK.Persistence.getExternalProperty=function(id,_XP){
var ob=this.dereference(id);
if(ob.getExternalProperty){
return ob.getExternalProperty(_XP);
}
else{
return null;
}
};
TBK.Persistence._pQ=function(ob,_XP){
this._AR(ob,_XP);
};
TBK.Persistence.__N=function(_ER){
this._SI=_ER;
this._RI=TBK._QD(_ER);
this._QI();
};
TBK.Persistence._QI=function(){
_HH._QI(this._RI,this._SI);
};
TBK.Persistence._MH=function(_DE){
if(_DE){
if(typeof(this._RI[_DE])!="undefined"){
return true;
}
}
return false;
};
TBK.Persistence._HD_FR=function(_TE){
if(_TE){
var _DE=_TE.id;
if(typeof(this._RI[_DE])!="undefined"){
for(var _zR in this._RI[_DE])
{
var _3L=_zR.lastIndexOf(".");
if(_3L>-1){
var id=_zR.substring(0,_3L);
var _XP=_zR.substring(_3L+1,_zR.length);
var ob=TBK._sE(id);
this._AR(ob,_XP);
this._HD_GR(ob,_XP,TBK._HR(this._RI[_DE][_zR]));
}
}
delete _TE._CR;
}
}
};
TBK.Persistence._LH=function(_RI,_DE,_JH,_XP,_vJ){
if(_RI){
if(typeof(_RI[_DE])=="undefined"){
_RI[_DE]=new Object();
}
_RI[_DE][_JH+"."+_XP]=_vJ;
}
};
TBK.Persistence._IR=function(id){
var _JR=TBK._lD_JR();
var url=id?id+".html":"blank.html";
if(TBK._KR){
_JR.src=url;
}
else{
_JR.contentWindow.location.replace(url);
}
};
TBK.Persistence._LR={};
TBK.Persistence._MR=function(id){
var _TE=window[id];
if(_TE){
return _TE;
}
_TE=this._NR(id);
if(_TE){
if(_TE.underlay){
_TE.underlay=this._MR(_TE.underlay);
}
if(_TE.overlay){
_TE.overlay=this._MR(_TE.overlay);
}
this._LR[id]=_TE;
_TE._aR(true);
this._HD_FR(_TE);
return _TE;
}
else{
return null;
}
};
TBK.Persistence._OR=function(id){
var _TE=window[id];
if(!_TE){
_TE=this._NR(id);
if(_TE){
if(_TE.underlay){
_TE.underlay=this._OR(_TE.underlay);
}
if(_TE.overlay){
_TE.overlay=this._OR(_TE.overlay);
}
delete this._LR[id];
return _TE;
}
else{
return null;
}
}
else{
this._PR(_TE);
return _TE;
}
};
TBK.Persistence._PR=function(_TE){
delete this._LR[_TE.id];
if(_TE.overlay){
this._PR(_TE.overlay);
}
if(_TE.underlay){
this._PR(_TE.underlay);
}
};
TBK.Persistence._QR=function(){
for(var id in this._LR)
{
var _TE=this._LR[id];
_TE._dR(true,true);
window[id]=null;
delete this._LR[id];
}
};
TBK.Persistence.persistProperty=function(id,_XP,_oQ){
var ob=this.dereference(id);
var _zR=this._AR(ob,_XP);
var _vJ=this.getProperty(id,_XP);
this._BR(ob,_XP,_vJ,_zR,_oQ);
};
TBK.Persistence._rD_vJ=function(id,_XP,_vJ){
var ob=this.dereference(id);
var _zR=this._AR(ob,_XP);
this._HD_GR(ob,_XP,_vJ);
this._BR(ob,_XP,_vJ,_zR);
};
TBK.Persistence.dereference=function(id){
if(!id){
return null;
}
if(id.id){
return id;
}
var ob=TBK._sE(id);
if(ob){
return ob;
}
var _DE=TBK._jH(id);
this._MR(_DE);
return TBK._sE(id);
};
TBK.Persistence._AR=function(ob,_XP){
var _RR=null;
var _3I=ob._3I[_XP];
if(typeof(_3I)=="undefined"||typeof(_3I._UI)=="undefined"){
var _5P=this._yR;
}
else{
var _5P=_3I._UI;
}
if(_5P>=this._yR){
var _SR=ob._SR;
if(typeof(_SR)=="undefined"){
ob._SR=new Object();
_SR=ob._SR;
}
_RR=_SR[_XP];
if(typeof(_RR)=="undefined"){
_RR=this._lD_DR(ob,_XP);
if(typeof(_RR)=="undefined"){
_HH._IH("WARNING: Default value for "+_XP+" of object "+ob.id+" is undefined.");
_RR=null;
}
else{
_RR=TBK._pH(_RR,true);
}
_SR[_XP]=_RR;
}
}
var _zR=new Object();
_zR._5P=_5P;
_zR._RR=_RR;
return _zR;
};
TBK.Persistence._lD_DR=function(ob,_XP){
var _aQ=ob._lD_aQ(_XP);
if(_aQ){
return ob[_aQ]();
}
else{
return ob[_XP];
}
};
TBK.Persistence._NR=function(id){
TBK._TR(id+".js");
_TE=window[id];
if(_TE){
_TE._CR=true;
}
return _TE;
};
TBK.Persistence._BR=function(ob,_XP,_vJ,_zR,_oQ){
_vJ=TBK._pH(_vJ,true);
if(_zR._5P>=this._yR){
var _DE=TBK._jH(ob.id);
if(!_oQ&&_vJ===_zR._RR){
this._wQ(this._RI,_DE,ob.id,_XP);
if(_zR._5P>=this._4P||ob._lD_5P()>=this._4P){
this._wQ(this._SI,_DE,ob.id,_XP);
}
}
else{
this._LH(this._RI,_DE,ob.id,_XP,_vJ);
if(_zR._5P>=this._4P||ob._lD_5P()>=this._4P){
this._LH(this._SI,_DE,ob.id,_XP,_vJ);
}
}
}
this._QI();
};
TBK.Persistence._wQ=function(_RI,_DE,_JH,_XP){
if(_RI){
if(typeof(_RI[_DE])!="undefined"){
delete _RI[_DE][_JH+"."+_XP];
}
}
};
TBK.Persistence._HD_GR=function(ob,_XP,_vJ){
var _cQ=ob._lD_cQ(_XP);
if(_cQ){
ob[_cQ](_vJ);
}
else{
var _dQ=ob._lD_dQ(_XP);
if(_dQ){
ob[_dQ](_vJ);
}
else{
ob[_XP]=_vJ;
}
}
};
function _Object(id,_VC,enabled,visibility,_WC,name,title,parent){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
if(!this.constructor.prototype.hasOwnProperty('_9C')){
this.constructor.prototype._9C={};
this.constructor.prototype._9C['_Object']=true;
this.constructor.prototype._3I={};
this._rD_XO('_XF','_YO');
}
this.id=id;
this._VC=_VC;
this.enabled=enabled;
this.visibility=visibility;
this._WC=_WC;
this.name=name;
this.title=title;
this.parent=parent;
this._zJ=[];
var i=this.name.indexOf(" (");
this._FP=((i>0)?this.name.substring(0,i):this.name);
this._XF=false;
this._GP=false;
this._4J=false;
this._HP=0;
this._IP=[];
this._JP=false;
this._KP=-1;
this._LP=enabled;
this._wJ=0;
this._xJ=0;
this._MP=visibility;
this._NP=false;
this._OP=false;
this._zG=false;
this.z=0;
this.backgroundColor=null;
this.left=null;
this.top=null;
this._yM=null;
this._PP={};
this._QP={};
this._RP={};
this._SP={};
this._TP=null;
if(this.parent&&this.parent._UP){
this.parent._UP(this);
}
this._yM=this._GD('_Page');
if(this._WC&&this._yM){
this._yM._VP(this);
}
}
}
_Object.prototype.addEventListener=function(event,_dE,_uI,_WP){
if(_WP.indexOf("_")==0){
this._QP[event+"."+_dE+"."+_uI+"."+_WP]=new _ObjectListener(event,_dE,_uI,_WP);
eval(_uI+"."+_WP+"="+_WP);
this._DM(event);
}
else{
this._PP[event+"."+_dE+"."+_uI+"."+_WP]=new _ObjectListener(event,_dE,_uI,_WP);
this._DM(event);
}
};
_Object.prototype.cancelBubble=function(){
this._GP=true;
};
_Object.prototype.fireEvent=function(event,_dE,_cO){
for(var _uI=this;_uI;_uI=_uI.parent)
{
_uI._GP=false;
_uI.fireEventInternal(event,_dE,this,_cO);
if((event=="mousemove")||_uI._GP)return;
}
if(event.indexOf("key")!=-1)_Book._fE.fireEventInternal(event,_dE,this,_cO);
};
_Object.prototype.getEnabled=function(){
return this.enabled;
};
_Object.prototype.getId=function(){
return this.id;
};
_Object.prototype.getName=function(){
return this._FP;
};
_Object.prototype.getProperty=function(_XP){
return TBK.Persistence.getProperty(this,_XP);
};
_Object.prototype.getShowing=function(){
if(!this._yM||!this._yM.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._lD_GJ()-(this._OP?this._yM.z:0);
};
_Object.prototype.isInstance=function(_9C){
return _9C?this._9C[_9C]:true;
};
_Object.prototype.moveAbove=function(id){
var _YP=TBK._sE(id);
if(_YP){
this.setZorder(_YP.getZorder()+1);
}
};
_Object.prototype.moveBelow=function(id){
var _YP=TBK._sE(id);
if(_YP){
this.setZorder(_YP.getZorder()-1);
}
};
_Object.prototype.paint=function(){
if(this._XF&&this._FG){
this._FG();
}
};
_Object.prototype.reset=function(){
if(this._KD){
this._KD();
}
this._ZP();
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
this._zJ[i].reset();
}
}
if(this._0P){
this._0P();
}
this.fireEventInternal("reset","",this);
};
_Object.prototype.restoreEnabled=function(enabled){
this.enabled=TBK._hG(enabled);
this.paint();
};
_Object.prototype.restoreLeft=function(x){
this._rD_GM(1*x);
};
_Object.prototype.restoreVisible=function(visible){
this._rD_8D(TBK._hG(visible));
};
_Object.prototype.setEnabled=function(enabled){
this.restoreEnabled(enabled);
this.fireEvent("change","enabled");
return this.getEnabled();
};
_Object.prototype.setHeight=function(cy){
this._rD_cP(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(_XP,_vJ){
return TBK.Persistence.setProperty(this,_XP,_vJ);
};
_Object.prototype.setTop=function(y){
this._rD_HM(1*y);
this.fireEvent("change","top");
return this.getTop();
};
_Object.prototype.setTransparent=function(transparent){
if(TBK._hG(transparent)){
this.setBackgroundColor(-1);
}
else{
this.setBackgroundColor(this._KP);
}
this.fireEvent("change","transparent");
return this.getTransparent();
};
_Object.prototype.setVisible=function(visible){
this._rD_8D(TBK._hG(visible));
this.fireEvent("change","visible");
return this.getVisible();
};
_Object.prototype.setWidth=function(cx){
this._rD_eP(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._1P;
for(var i=0;i<this.parent._zJ.length;i++)zz=Math.max(this.parent._zJ[i].z,zz);
this._rD_GJ(zz+1);
}
else if((zz==1)&&this.parent){
zz=_Page._HJ;
for(var i=0;i<this.parent._zJ.length;i++)zz=Math.min(this.parent._zJ[i].z,zz);
this._rD_GJ(zz-1);
}
else this._rD_GJ(zz+(this._OP?this._yM.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._XF&&this._3O){
this._3O();
}
this.fireEventInternal("trigger","",this);
};
_Object.prototype._rD_XO=function(_XP,_UI){
if(!this._3I[_XP]){
this._3I[_XP]={};
}
switch(_UI){
case '_YO':this._3I[_XP]._UI=TBK.Persistence._2P;
break;
case '_3P':this._3I[_XP]._UI=TBK.Persistence._4P;
break;
default:delete this._3I[_XP]._UI;
}
};
_Object.prototype._rD_5P=function(_UI){
if(_UI=='_3P'){
this._TP=TBK.Persistence._4P;
}
else{
this._TP=null;
}
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
this._zJ[i]._rD_5P(_UI);
}
}
}
};
_Object.prototype._gM=function(_xM){
if(!this._XF){
this._YF();
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._KP=this.backgroundColor;
this._wJ=this.left;
this._xJ=this.top;
if(this._dD){
this._dD(_xM);
}
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
this._zJ[i]._gM(_xM);
}
}
}
this._6P();
if(this._wM){
this._wM(_xM);
}
this._XF=true;
if(this._vG){
this._vG();
}
}
};
_Object.prototype.blur=function(){
if(this.getEnabled()&&this.getShowing()){
TBK._rDfocus(this,false);
this._7P();
}
};
_Object.prototype._8P=function(){
this._RP=this._PP;
this._SP=this._QP;
this._PP={};
this._QP={};
};
_Object.prototype._UG=function(){
var _9P={};
for(var x in this._QP)
{
if(this._QP[x])_9P[x]=this._QP[x];
}
this._QP=_9P;
};
_Object.prototype._gJ=function(_YP){
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(_YP){
for(var parent=_YP;!parent.isInstance('_Page');parent=parent.parent)
{
if(!parent.isInstance('_Group'))x2+=parent.getProperty('left'),y2+=parent.getTop();
}
}
return[x2-x1,y2-y1];
};
_Object.prototype.__J=function(){
var x=TBK._gF;
var y=TBK._iF;
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._zJ){
for(var i=0;i<this._zJ.length;i++)
{
this._zJ[i]=TBK._sE(this._zJ[i]);
if(this._zJ[i]){
this._zJ[i].dereference();
}
}
}
};
_Object.prototype._2D=function(_9C){
var __P=[];
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
var _IM=this._zJ[i];
if(_IM&&_IM.isInstance(_9C))__P[__P.length]=_IM;
}
}
return __P;
};
_Object.prototype._GD=function(_9C){
var parent=this.parent;
while(parent&&!parent.isInstance(_9C))parent=parent.parent;
return parent;
};
_Object.prototype.focus=function(){
if(this.getEnabled()&&this.getShowing()){
TBK._rDfocus(this,true);
this._$P();
return true;
}
else return false;
};
_Object.prototype._lD_XF=function(){
return this._XF;
};
_Object.prototype._lD_aQ=function(_XP){
var _bQ='_lD'+_XP;
if(this[_bQ]){
return _bQ;
}
_bQ="get"+_XP.charAt(0).toUpperCase()+_XP.substring(1,_XP.length);
if(this[_bQ]){
return _bQ;
}
return null;
};
_Object.prototype._lD_5P=function(){
return this._TP;
};
_Object.prototype._lD_cQ=function(_XP){
var _bQ='_HD'+_XP;
if(this[_bQ]){
return _bQ;
}
_bQ="restore"+_XP.charAt(0).toUpperCase()+_XP.substring(1,_XP.length);
if(this[_bQ]){
return _bQ;
}
return null;
};
_Object.prototype._lD_dQ=function(_XP){
var _bQ='_rD'+_XP;
if(this[_bQ]){
return _bQ;
}
_bQ="set"+_XP.charAt(0).toUpperCase()+_XP.substring(1,_XP.length);
if(this[_bQ]){
return _bQ;
}
return null;
};
_Object.prototype._lD_GJ=function(){
return this.z;
};
_Object.prototype._EM=function(x,y){
var xx=x-this.getLeft();
var yy=y-this.getTop();
if(this.getShowing()&&!this._4J&&(x>=this.getLeft())&&(x<(this.getLeft()+this.getWidth()))&&(y>=this.getTop())&&(y<(this.getTop()+this.getHeight()))){
var _eQ=this._FM(xx,yy);
return _eQ?_eQ:this;
}
return null;
};
_Object.prototype._FM=function(x,y){
if(this._zJ){
for(var i=this._zJ.length-1;i>=0;i--)
{
var _eQ=this._zJ[i]._EM(x,y);
if(_eQ)return _eQ;
}
}
return null;
};
_Object.prototype._3M=function(_0F){
this._OP=!this._GD('_Layer')&&!this._GD('_Answerable');
if(this._yM&&this._FP){
this._yM._fQ[this._FP]=this.id;
}
if(this._ZF){
this._ZF(_0F);
}
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
this._zJ[i]._3M(_0F);
}
}
}
if(this._gQ){
this._gQ(_0F);
}
this._JP=true;
};
_Object.prototype._hQ=function(){
if(this._jJ){
this._jJ();
}
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
this._zJ[i]._hQ();
}
}
}
this._zJ=null;
this.parent=null;
this._iQ();
this._yM=null;
this._JP=false;
};
_Object.prototype._jQ=function(name){
return this._yM._jQ(this.id+"_"+name);
};
_Object.prototype._kQ=function(){
return this._fF?this._fF.parentNode.tagName=="BODY":false;
};
_Object.prototype._GN=function(_HN,_IN){
var _dE="";
if(_HN){
var _PE=_HN.toString();
var _mI=_PE.indexOf("#");
if((_mI>-1)&&((_PE.length-1)>_mI)){
var _lQ=_PE.indexOf("?");
if((_lQ>-1)&&(_mI<_lQ))_dE=_PE.substring(_mI+1,_lQ);
else _dE=_PE.substring(_mI+1);
}
}
return _dE;
};
_Object.prototype._fP=function(){
this._ZP();
if(this._2F){
this._2F();
}
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
this._zJ[i]._fP();
}
}
}
if(this._EP){
this._EP();
}
};
_Object.prototype._mQ=function(){
if(this._1F){
this._1F();
}
this.paint();
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
this._zJ[i]._mQ();
}
}
}
if(this._nQ){
this._nQ();
}
};
_Object.prototype.persistProperty=function(_XP,_oQ){
TBK.Persistence.persistProperty(this,_XP,_oQ);
};
_Object.prototype.savePropertyDefault=function(_XP){
TBK.Persistence._pQ(this,_XP);
};
_Object.prototype._qQ=function(){
if(this._rQ){
this._rQ();
}
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i])this._zJ[i]._qQ();
}
}
if(this._sQ){
this._sQ();
}
this._NP=true;
};
_Object.prototype._UP=function(ob){
this._zJ[this._zJ.length]=ob;
};
_Object.prototype._tQ=function(){
this._PP=this._RP;
this._QP=this._SP;
};
_Object.prototype._SG=function(event,_dE,_uI,_WP){
var _PP=(_WP.indexOf("_")==0)?this._QP:this._PP;
_PP[event+"."+_dE+"."+_uI+"."+_WP]=null;
};
_Object.prototype._uQ=function(name,_vQ){
var _TD=this._yM.getProperty(this.id+"_"+name);
if(_vQ){
this._yM._wQ(this.id+"_"+name);
}
return _TD;
};
_Object.prototype._rD_4J=function(value){
this._4J=value;
return value;
};
_Object.prototype._rD_iG=function(dx){
if(dx!=0){
this._rD_vJ("left",dx+this.getLeft());
}
};
_Object.prototype._rD_vJ=function(_XP,_vJ){
return TBK.Persistence._rD_vJ(this,_XP,_vJ);
};
_Object.prototype._rD_jG=function(dy){
if(dy!=0){
this._rD_vJ("top",dy+this.getTop());
}
};
_Object.prototype._JM=function(_XJ){
if(_XJ){
this._rD_8D(this.visibility);
}
else{
var _PE=this.visibility;
this._rD_8D(false);
this.visibility=_PE;
}
};
_Object.prototype._6P=function(){
for(var x in this._QP)if(this._QP[x])this._DM(this._QP[x].event);
for(var x in this._PP)if(this._PP[x])this._DM(this._PP[x].event);
};
_Object.prototype.fireEventInternal=function(event,_dE,_JG,_cO){
if(this.getEnabled()){
for(var x in this._QP)
{
var _xQ=this._QP[x];
if(_xQ&&(event==_xQ.event)&&((_dE==_xQ._dE)||(_xQ._dE=="*")))this._yQ(event,_dE,_JG,_cO,_xQ._uI,_xQ._WP);
}
if(event!="mousemove"){
for(var x in this._PP)
{
var _xQ=this._PP[x];
if(_xQ&&(event==_xQ.event)&&((_dE==_xQ._dE)||(_xQ._dE=="*")))this._yQ(event,_dE,_JG,_cO,_xQ._uI,_xQ._WP);
}
}
}
};
_Object.prototype._yQ=function(event,_dE,_JG,_cO,_uI,_WP){
_uI=TBK.Persistence.dereference(_uI);
var _wF=_uI.id+"."+_WP+"(\""+event+"\",\""+_dE+"\","+_JG.id;
if((event.indexOf("click")!=-1)||(event.indexOf("mouse")!=-1))_wF+=","+TBK._gF+","+TBK._iF+","+TBK._zQ+","+TBK._AQ;
else if(event.indexOf("key")!=-1)_wF+=","+TBK._BQ+","+TBK._6E(TBK._CQ)+","+TBK._zQ+","+TBK._AQ;
else if(_cO&&(_cO.length>0)){
for(var i=0;i<_cO.length;i++)_wF+=","+TBK._6E(_cO[i]);
}
_wF+=")";
eval(_wF);
};
_Object.prototype._ZP=function(){
for(var i=this._IP.length-1;i>=0;i--)
{
window.clearTimeout(this._IP[i]);
this._IP.length--;
}
};
_Object.prototype._iQ=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(_DQ,_EQ){
if(this._fF){
TBK.applyTransition(this._fF,_DQ,_EQ);
}
};
_Object.prototype.getBackgroundImage=function(){
if(this._fF&&this._fF.style.backgroundImage){
var image=this._fF.style.backgroundImage;
return image.substring(4,image.length-1);
}
else return"";
};
_Object.prototype.getHeight=function(){
return this._fF?this._fF.offsetHeight:0;
};
_Object.prototype.getLeft=function(){
if(this.left){
return this.left;
}
return this._fF?(parseInt(this._fF.style.left)):0;
};
_Object.prototype.getTitle=function(){
return this._fF?this._fF.title:"";
};
_Object.prototype.getTop=function(){
if(this.top){
return this.top;
}
return this._fF?parseInt(this._fF.style.top):0;
};
_Object.prototype.getWidth=function(){
return this._fF?this._fF.offsetWidth:0;
};
_Object.prototype.restoreBackgroundColor=function(color){
this.backgroundColor=color;
if(this._fF){
var _FQ=TBK._GQ(color,6);
this._fF.style.backgroundColor=(color==-1)?"":("#"+_FQ);
}
};
_Object.prototype.setBackgroundColor=function(color){
if(this._fF){
this.restoreBackgroundColor(color);
this.fireEvent("change","backgroundColor");
}
return this.getBackgroundColor();
};
_Object.prototype.setBackgroundImage=function(image){
if(this._fF){
this._fF.style.backgroundImage=image?("url("+image+")"):"";
this.fireEvent("change","backgroundImage");
}
return this.getBackgroundImage();
};
_Object.prototype.setTitle=function(title){
if(this._fF){
this._fF.title=title;
this.fireEvent("change","title");
}
return this.getTitle();
};
_Object.prototype._YF=function(){
this._fF=TBK._tG(this._VC);
if(this._fF){
TBK._dO(this._fF,this,null);
}
};
_Object.prototype._DP=function(){
if(this._fF){
TBK._HQ(this._fF);
}
this._fF=null;
};
_Object.prototype._DM=function(event){
if(this._fF)TBK._IQ(this._fF,event);
};
_Object.prototype._JQ=function(){
if(this._yG){
this._yG();
}
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
this._zJ[i]._JQ();
}
}
}
if(this._KQ){
this._KQ();
}
this._DP();
this._XF=false;
};
_Object.prototype._rD_GM=function(x){
this.left=x;
if(this._fF){
this._fF.style.left=Math.round(x)+'px';
}
return true;
};
_Object.prototype._rD_cP=function(cy){
this.width=cy;
if(this._fF){
this._fF.style.height=cy+'px';
this._fF.style.clip="rect(0 "+this.getWidth()+" "+cy+" 0)";
}
};
_Object.prototype._rD_HM=function(y){
this.top=y;
if(this._fF){
this._fF.style.top=Math.round(y)+'px';
}
};
_Object.prototype._rD_8D=function(visible){
if(!visible&&TBK._rD_LQ==this){
this.blur();
}
this.visibility=visible;
this._4J=!visible;
if(this._fF&&(!visible||!this._kQ()||(this.parent&&this.parent.getShowing()))){
this._fF.style.visibility=visible?"inherit":"hidden";
}
};
_Object.prototype._rD_eP=function(cx){
this.width=cx;
if(this._fF){
this._fF.style.width=cx+'px';
this._fF.style.clip="rect(0 "+cx+" "+this.getHeight()+" 0)";
}
};
_Object.prototype._rD_GJ=function(z){
this.z=z;
if(this._fF){
this._fF.style.zIndex=parseInt(z);
}
};
_Object.prototype._wM=function(_xM){
if(_xM){
this._rD_GJ(++this._yM._zM);
}
};
_Object.prototype._7P=function(){
if(this._fF&&this._fF.blur)this._fF.blur();
};
_Object.prototype._$P=function(){
if(this._fF&&this._fF.focus)this._fF.focus();
};
_Object.prototype._MQ=function(event){
if(this._fF)TBK._NQ(this._fF,event);
};
_Object.prototype.getBackgroundColor=function(){
if(this.backgroundColor){
return this.backgroundColor;
}
if(this._fF&&this._fF.style.backgroundColor){
var color=this._fF.style.backgroundColor.substring(1);
return parseInt("0x"+color);
}
else return-1;
};
function _Group(id,enabled,visibility,_WC,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,_WC,name,title,parent);
if(!this.constructor.prototype._9C['_Group']){
this.constructor.prototype._9C['_Group']=true;
}
}
}
_Group.prototype=new _Object();
_Group.prototype.getItemSelected=function(){
_TD=[];
if(this._zJ){
var i;
for(i=0;i<this._zJ.length;i++)
{
var _UD=this._zJ[i];
if(_UD.isInstance('_RadioButton')){
_TD[_TD.length]=_UD.getChecked();
}
}
}
return _TD;
};
_Group.prototype.getItemText=function(){
_TD=[];
if(this._zJ){
var i;
for(i=0;i<this._zJ.length;i++)
{
var _UD=this._zJ[i];
if(_UD.isInstance('_RadioButton')){
_TD[_TD.length]=_UD.getCaption();
}
}
}
return _TD;
};
_Group.prototype.getSelection=function(){
_TD=[];
if(this._zJ){
for(var i in this._zJ)
{
var _UD=this._zJ[i];
if(_UD.isInstance('_RadioButton')){
if(_UD.getChecked()){
return _UD.getCaption();
}
}
}
}
return"";
};
_Group.prototype.setItemSelected=function(_vM){
if(this._zJ){
var _ZL=0;
var i;
for(i=0;i<this._zJ.length;i++)
{
var _UD=this._zJ[i];
if(_UD.isInstance('_RadioButton')){
_UD.setProperty('answered',_vM[_ZL]);
_ZL++;
}
}
}
this.fireEvent("change","itemSelected");
return this.getItemSelected();
};
_Group.prototype.setItemText=function(itemText){
if(this._zJ){
var _ZL=0;
var i;
for(i=0;i<this._zJ.length;i++)
{
var _UD=this._zJ[i];
if(_UD.isInstance('_RadioButton')){
_UD.setCaption(itemText[_ZL]);
_ZL++;
}
}
}
this.fireEvent("change","itemText");
return this.getItemText();
};
_Group.prototype.setSelection=function(selection){
if(this._zJ){
for(var i in this._zJ)
{
var _UD=this._zJ[i];
if(_UD.isInstance('_RadioButton')){
_UD.setProperty('answered',_UD.getCaption()==selection);
}
}
}
this.fireEvent("change","selection");
return this.getSelection();
};
_Group.prototype._wM=function(_xM){
if(_xM){
this.z=++this._yM._zM;
}
};
_Group.prototype._lD_AM=function(){
var _BM=[0,0];
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
var left=this._zJ[i].getProperty('left');
var _FL=left+this._zJ[i].getWidth();
if(_BM[1]<=_BM[0]){
_BM[0]=left;
_BM[1]=_FL;
}
else{
if(left<_BM[0]){
_BM[0]=left;
}
if(_FL>_BM[1]){
_BM[1]=_FL;
}
}
}
}
}
return _BM;
};
_Group.prototype._lD_CM=function(){
var _BM=[0,0];
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
var top=this._zJ[i].getTop();
var _GL=top+this._zJ[i].getHeight();
if(_BM[1]<=_BM[0]){
_BM[0]=top;
_BM[1]=_GL;
}
else{
if(top<_BM[0]){
_BM[0]=top;
}
if(_GL>_BM[1]){
_BM[1]=_GL;
}
}
}
}
}
return _BM;
};
_Group.prototype._DM=function(event){
if((event.indexOf("click")!=-1)||(event.indexOf("key")!=-1)||(event.indexOf("mouse")!=-1)){
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
this._zJ[i]._DM(event);
}
}
}
};
_Group.prototype.getHeight=function(){
var _BM=this._lD_CM();
return _BM[1]-_BM[0];
};
_Group.prototype.getLeft=function(){
var _BM=this._lD_AM();
return _BM[0];
};
_Group.prototype.getTop=function(){
var _BM=this._lD_CM();
return _BM[0];
};
_Group.prototype.getWidth=function(){
var _BM=this._lD_AM();
return _BM[1]-_BM[0];
};
_Group.prototype._EM=function(x,y){
return this._FM(x,y);
};
_Group.prototype._rD_iG=function(dx){
if(dx!=0){
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
this._zJ[i]._rD_iG(dx);
}
}
}
};
_Group.prototype._rD_GM=function(x){
this._rD_iG(x-this.getLeft());
};
_Group.prototype._rD_jG=function(dy){
if(dy!=0){
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
this._zJ[i]._rD_jG(dy);
}
}
}
};
_Group.prototype._rD_HM=function(y){
this._rD_jG(y-this.getTop());
};
_Group.prototype._rD_8D=function(visible){
this.visibility=visible;
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
var _IM=this._zJ[i];
if(visible){
_IM._rD_8D(_IM.visibility);
}
else{
var _PE=_IM.visibility;
_IM._rD_8D(false);
_IM.visibility=_PE;
}
}
}
};
_Group.prototype._rD_GJ=function(z){
this.z=z;
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
this._zJ[i]._rD_GJ(this.z+i);
}
}
};
_Group.prototype._JM=function(_XJ){
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
this._zJ[i]._JM(_XJ&this.visibility);
}
}
};
function _RQ(_uN,_0H,_bN,_PQ,_SH,_QQ){
if(arguments.length>0){
if(!this.constructor.prototype._9C['_RQ']){
this.constructor.prototype._9C['_RQ']=true;
}
this._uN=_uN;
this._0H=_0H;
this._bN=_bN;
this._PQ=_PQ;
this._SH=_SH;
this._QQ=_QQ;
}
}
function _Page(id,name,title,_uN,_0H,_bN,_PQ,_SH,_QQ,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);
_RQ.call(this,_uN,_0H,_bN,_PQ,_SH,_QQ);
if(!this.constructor.prototype._9C['_Page']){
this.constructor.prototype._9C['_Page']=true;
}
this._SQ=[];
this._TQ=null;
this._UQ=null;
this._VQ=null;
this._WQ=null;
this.overlay=overlay;
this.underlay=underlay;
this._fQ=[];
this.visited=false;
this._zM=0;
this.width=width;
this.height=height;
this._XQ=false;
}
}
_Page.prototype=new _Group();
_RQ.call(_Page.prototype);
_Page._YQ=[];
_Page._ZQ=new Object();
_Page._0Q=16;
_Page._1Q=0;
for(var i=0;i<_Page._0Q;i++)
{
_Page._1Q+=Math.pow(2,i);
}
_Page._1P=0;
_Page._HJ=_Page._1Q-1;
_Page._dF=_Page._1Q;
_Page._8E=_Page._1Q+32767;
_Page.tabIndex=0;
_Page._2Q=[];
_Page._3Q=null;
_Page.prototype._4Q=_Page.prototype.fireEventInternal;
_Page.prototype.fireEventInternal=function(event,_dE,_JG,_cO){
if(this.overlay)this.overlay.fireEventInternal(event,_dE,_JG,_cO);
this._4Q(event,_dE,_JG,_cO);
if(this.underlay)this.underlay.fireEventInternal(event,_dE,_JG,_cO);
};
_Page.prototype.getOverlay=function(){
return this.overlay;
};
_Page.prototype.getUnderlay=function(){
return this.underlay;
};
_Page.prototype.getVisited=function(){
return this.visited;
};
_Page.prototype._YF=function(){};
_Page.prototype._DP=function(){};
_Page.prototype._EM=function(x,y){
var _eQ=null;
if(this.overlay)if(_eQ=this.overlay._EM(x,y))return _eQ;
if(_eQ=this._FM(x,y))return _eQ;
if(this.underlay)if(_eQ=this.underlay._EM(x,y))return _eQ;
return null;
};
_Page.prototype._5Q=function(id){
var _mK=false;
if(this.overlay)if(_mK=this.overlay._5Q(id))return true;
if(id==this.id)return true;
if(this.underlay)if(_mK=this.underlay._5Q(id))return true;
return false;
};
_Page.prototype._jQ=function(name){
return false;
};
_Page.prototype._VP=function(ob){
this._SQ[this._SQ.length]=ob;
};
_Page.prototype._wQ=function(name){
};
_Page.prototype._JM=function(_XJ){
this.visibility=_XJ;
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i]){
this._zJ[i]._JM(_XJ);
}
}
}
};
_Page.prototype._6Q=function(_7Q){
if(this.overlay)this.overlay._6Q(_7Q);
_7Q[_7Q.length]=this;
if(this.underlay)this.underlay._6Q(_7Q);
};
_Page.prototype._8Q=function(_9Q,lo,hi,sz){
if(this.width>sz.width){
sz.width=this.width;
}
if(this.height>sz.height){
sz.height=this.height;
}
var __Q=Math.round((lo+hi)/2);
if(this.overlay){
this.overlay._8Q(_9Q,__Q+1,hi,sz);
}
_9Q[_9Q.length]=this;
this.z=__Q;
if(this.underlay){
this.underlay._8Q(_9Q,lo,__Q-1,sz);
}
};
_Page.prototype._$Q=function(){
this._JM(true);
this._mQ();
};
_Page.prototype._aR=function(_bR){
if(!this._JP){
this.dereference();
if(!_Page._ZQ[this.id]){
this._3M(true);
_Page._ZQ[this.id]=true;
}
else{
this._3M(false);
}
}
if(!_bR&&!this._XF){
this._gM(true);
}
};
_Page.prototype._cR=function(){
this.fireEvent("turn","");
};
_Page.prototype._dR=function(_eR,_fR){
this._XQ=_eR;
if(!_fR){
if(_eR){
this._fP();
}
this._JQ();
}
if(_eR){
this._hQ();
}
this._XQ=false;
};
_Page.prototype._dD=function(_xM){
if(_xM){
this._zM=this.z;
}
};
_Page.prototype._wM=function(){};
_Page.prototype._gQ=function(){
};
_Page.prototype._ZF=function(){
_Page._YQ[_Page._YQ.length]=this.id;
if(TBK._QH.length>0){
if(!this._TQ){
this._TQ=TBK._lD_WE();
}
if(!this._UQ){
this._UQ=TBK._lD_gR();
}
var _hR=TBK._lD_hR(this.id);
if(_hR!=null){
if(!this._VQ){
this._VQ=TBK._lD_iR(_hR);
}
if(!this._WQ){
this._WQ=TBK._lD_jR(_hR);
}
}
}
this._yM=this;
this._OP=true;
};
_Page.prototype._2F=function(){
this.fireEvent("unload","");
this.setProperty('visited',true);
};
_Page.prototype._jJ=function(){
this.underlay=null;
this.overlay=null;
};
_Page.prototype._KD=function(){
_HH._IH("Resetting page "+this.id);
this.setProperty('visited',false);
};
_Page._UE=function(_DE){
if(_DE){
if(TBK.Persistence._MH(_DE)){
return true;
}
if(TBK._jE._MH(_DE)){
return true;
}
}
return false;
};
_Page._kR=function(_lR){
if(_Page._2Q.length){
if(_Page.tabIndex>=0){
_Page._2Q[_Page.tabIndex].blur();
}
var _mR=0;
while(_mR<2)
{
_Page.tabIndex+=(_lR?-1:+1);
if(_Page.tabIndex<0){
_Page.tabIndex=_Page._2Q.length-1;
_mR++;
}
if(_Page.tabIndex>=_Page._2Q.length){
_Page.tabIndex=0;
_mR++;
}
if(_Page._2Q[_Page.tabIndex].focus()){
break;
}
}
}
};
_Page._nR=function(_uI){
for(var i=0;i<_Page._2Q.length;i++)
{
if(_uI==_Page._2Q[i]){
_Page.tabIndex=i;
break;
}
}
};
TBK._LT="<table width=100%% height=100%%>"+"<tr align=center valign=center><td><h1>"+"%1</h1></td></tr></table>";
TBK._MT=null;
TBK._eW=function(_oH){
delete this._fW[_oH];
};
TBK._gW=function(_oH,value){
this._fW[_oH]=value;
};
TBK._lD_hW=function(_oH){
var _jV=(this._fW?this._fW[_oH]:null);
if(typeof(_jV)=="undefined")_jV=null;
return _jV;
};
TBK.bootstrap=function(url,close,left,top,_OE){
url=""+this._FU(url);
if(_OE)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._DF=="topleft")||(this._DF=="inplace")))window.location.href=url;
else{
if(close){
window.sendBootstrapNotification=this._iW;
}
document.getElementById("sysbootstrap").innerHTML="<iframe name=bootstrap src='"+url+"'></iframe>";
}
};
TBK._iW=function(){
_Book._fE.complete(false,false);
};
TBK._IQ=function(_fF,_IN){
this._jW(_fF);
if(_IN.indexOf("click")!=-1){
_fF.onclick=this._KU;
_fF.ondblclick=this._KU;
_fF.onmousedown=this._KU;
_fF.onmouseup=this._KU;
}
else if(_IN!="mousemove"&&(_IN!="change"||(_fF.tagName!="TEXTAREA"&&_fF.tagName!="INPUT"))){
_fF["on"+_IN]=this._KU;
}
};
TBK._jW=function(_fF){};
TBK._kW=function(_VC){
return document.getElementById(_VC);
};
TBK._lD_7U=function(_oH){
var _TD=window;
_oH=_oH.split(".");
for(var i=0;i<_oH.length;i++)
{
_TD=_TD[_oH[i]];
if(typeof(_TD)=="undefined"||!_TD){
return"";
}
}
return _TD;
};
TBK._9E=function(_fF){
_fF.style.visibility="hidden";
};
TBK._aF=function(_fF,_lW,text,cx,cy,_mW){
_fF.innerHTML=text;
return[cx,cy];
};
TBK._aV=function(_nW){
return((this._nT[_nW].ReadyState<3)||(this._nT[_nW].PlayState==0));
};
TBK._cV=function(_nW){
return(typeof this._nT[_nW].ReadyState!="undefined");
};
TBK._sG=function(_fF,x,y){
_fF.style.left=x+'px';
_fF.style.top=y+'px';
_fF.style.visibility="inherit";
};
TBK.playMovie=function(url){
var type=this._GU(url);
if((type==-1)||(type==0)){
window.open(url);
}
else{
window.location.href=url;
}
};
TBK.playSound=function(url){
url=this._eD(url);
var _nW=this._$U();
if(_nW>=0){
this._nT[_nW].PlayCount=1;
this._nT[_nW].FileName=url;
this._oT[_nW]=null;
this._pT[_nW]=url;
}
};
TBK._NQ=function(_fF,_IN){};
TBK._dW=function(_fF){};
TBK._eD=function(_7C){
if(_7C.indexOf("../")!=0){
return _7C;
}
if(this._HT.indexOf("file:/")==0){
var _oW=this._HT;
var i=_oW.lastIndexOf("/");
if(i!=-1){
_oW=_oW.substr(0,i);
}
var _pW=this._vU(_oW,_7C);
return unescape(_pW);
}
else{
return _7C;
}
};
TBK._nG=function(_fF){
return[_fF.offsetWidth,_fF.offsetHeight];
};
TBK._qW=false;
TBK.start=function(start){
TBK._qW=true;
this._3M();
this._7E=document.getElementById("syspopupGlass");
this._eF=document.getElementById("syspopupShadow");
this.popupText=document.getElementById("syspopupText");
for(var i=0;i<this._nT.length;i++)
{
this._nT[i]=document.getElementById("syssoundPlayer"+i);
this._oT[i]=null;
this._pT[i]=null;
}
if(!this._rW()){
this._nT=[];
this._oT=[];
this._pT=[];
}
this._HD_YV();
if(this._7N()){
var _BI=new Date();
this._eH=_BI.getTime();
this._TI=0;
_Book._fE.start();
var _VE="";
if(!this._dT||!this.launchPage){
_VE=this._jE._lD_qN(start);
}
else{
_VE=this.launchPage;
}
if(!_VE){
_VE=this._lD_WE();
}
if(!this._BE._FE(_VE)){
var _sW;
for(i=0;i<this._QH.length;i++)
{
_sW=this._lD_iV(i);
if(this._BE._FE(_sW)){
break;
}
}
if(i==this._QH.length){
var message=this._mE(TBK._YD('_ZD.27'),[_VE]);
window.alert(message);
}
}
}
_HH.start();
};
TBK.getBrowserType=function(){
return"IE5";
};
TBK.applyTransition=function(_uI,_DQ,_EQ){
if((window.screen.colorDepth<=8)&&(_DQ.toLowerCase=="fade")){
_DQ="RandomDissolve";
}
_uI.style.filter="progid:DXImageTransform.Microsoft."+_DQ+"("+_EQ+")";
_uI.filters.item(0).stop();
_uI.filters.item(0).apply();
_uI.filters.item(0).play();
};
TBK._tW=function(transition){
var _DQ=null;
var speed=0;
var _uW=this._gI(transition," ",true);
if(_uW.length>0){
_DQ=12;
var _iM="left";
if(this._rV("right",_uW)){
_iM="right";
}
else if(this._rV("top",_uW)){
_iM="top";
}
else if(this._rV("bottom",_uW)){
_iM="bottom";
}
else if(this._rV("horizontal",_uW)){
_iM="horizontal";
}
else if(this._rV("vertical",_uW)){
_iM="vertical";
}
var _vW="in";
if(this._rV("out",_uW)){
_vW="out";
}
speed=2;
if(this._rV("slow",_uW)){
speed=10;
}
else if(this._rV("fast",_uW)){
speed=1;
}
else{
for(var i=0;i<_uW.length;i++)
{
if(!(isNaN(parseInt(_uW[i])))){
speed=parseInt(_uW[i])/1000;
break;
}
}
}
var _EQ="duration="+speed;
if(this._rV("blinds",_uW)){
_DQ="Blinds";
_EQ+=", direction="+(_iM=="vertical"?"'right'":"'down'");
}
else if(this._rV("iris",_uW)){
_DQ="Iris";
_EQ+=", irisstyle='circle', motion="+(_vW=="out"?"'out'":"'in'");
}
else if(this._rV("split",_uW)){
_DQ="Barn";
_EQ+=", orientation="+(_iM=="vertical"?"'vertical'":"'horizontal'")+", motion"+(_vW=="out"?"'out'":"'in'");
}
else if(this._rV("spiral",_uW)){
_DQ="Iris";
_EQ+=", irisstyle='circle', motion='in'";
}
else if(this._rV("turnpage",_uW)){
_DQ="Strips";
_EQ+=", motion="+(_iM=="right"?"'rightup'":"'leftup'");
}
else if(this._rV("wipe",_uW)||this._rV("slide",_uW)){
_DQ="Blinds";
_EQ+=", bands=1, direction=";
switch(_iM){
case "left":case "right":_EQ+=_iM;
break;
case "top":_EQ+="up";
break;
default:_EQ+="down"}
}
else if(this._rV("fade",_uW)){
_DQ="Fade";
_EQ+=", overlap=1";
}
else if(this._rV("rain",_uW)){
_DQ="Blinds";
_EQ+=", bands=1, direction="+(_iM=="right"?"'right'":"'left'");
}
else if(this._rV("dissolve",_uW)){
_DQ="RandomDissolve";
}
else if(this._rV("drip",_uW)){
_DQ="CheckerBoard";
_EQ+=", direction='down', squaresX=24, squaresY=1";
}
else if(this._rV("push",_uW)){
_DQ="Slide";
_EQ+=", slideStyle='push', bands=1";
}
else if(this._rV("puzzle",_uW)){
_DQ="CheckerBoard";
_EQ+=", direction='down', squaresX=8, squaresY=8";
}
else if(this._rV("puzzle",_uW)){
_DQ="CheckerBoard";
_EQ+=", direction='down', squaresX=8, squaresY=8";
}
else if(this._rV("tear",_uW)){
_DQ="CheckerBoard";
_EQ+=", direction='down', squaresX=24, squaresY=1";
}
else if(this._rV("zoom",_uW)){
_DQ="Inset";
}
}
return[_DQ,_EQ,speed];
};
TBK._wW=function(transition){
if((transition!=null)&&(transition!="")&&(transition!=" ")&&(transition!="none")){
var _sH=this._tW(transition);
_DQ=_sH[0];
_EQ=_sH[1];
speed=_sH[2];
if(_DQ){
var _BI=new Date();
this._JT=_BI.getTime()+(speed*1000);
this.applyTransition(document.body,_DQ,_EQ);
}
}
};
TBK._bV=function(_nW){
var _mM=this._sE(this._oT[_nW]);
if(_mM){
_mM.stop();
}
else{
this._nT[_nW].Stop();
}
this._oT[_nW]=null;
this._pT[_nW]=null;
};
TBK._rW=function(){
return((this._nT.length>0)&&(this._nT[0].IsSoundCardEnabled()));
};
TBK._KU=function(){
e=TBK._lD_1T().event;
if(!e){
return;
}
TBK._AQ=e.ctrlKey;
TBK._CQ=e.shiftKey?String.fromCharCode(e.keyCode):String.fromCharCode(e.keyCode).toLowerCase();
TBK._BQ=e.keyCode;
TBK._zQ=e.shiftKey;
TBK._gF=e.clientX;
TBK._iF=e.clientY;
TBK._PG=(e.button==2);
TBK.screenX=e.screenX-e.clientX;
TBK.screenY=e.screenY-e.clientY;
var _IN=e.type;
if(_IN=="keydown"){
_Book._uF(true);
}
var to,_aI;
if((_IN=="mouseover")||(_IN=="mouseout")){
if((e.toElement==e.fromElement)||!e.toElement||!e.fromElement){
return false;
}
_aI=TBK._NV(e.fromElement);
to=TBK._NV(e.toElement);
if(_aI==to){
return false;
}
}
var rc=((_IN!="mousemove")&&!TBK._PG&&(_IN.indexOf("key")!=-1));
if(TBK._IU(_IN)){
if(!TBK._0U(_IN)){
var _uI=null;
if(_IN.indexOf("key")!=-1){
_uI=TBK._rD_LQ;
if(!_uI){
_uI=TBK._BE._CE;
}
}
else{
if(document.all){
_uI=TBK._NV(e.srcElement);
if(!_uI&&(e.srcElement!=TBK._7E)){
_uI=TBK._LO(TBK._gF,TBK._iF);
}
}
else{
_uI=TBK._NV(e.target);
if(!_uI&&(e.target!=TBK._7E)){
_uI=TBK._LO(TBK._gF,TBK._iF);
}
}
}
if(_uI){
var _HN=null;
_HN=e.srcElement;
while(_HN&&(!_HN.href||(_HN.href.indexOf("#")==-1)))
{
_HN=_HN.parentNode;
}
var href=(_HN&&_HN.href)?_HN.href:"";
if(href.indexOf("#")!=-1){
rc=false;
}
var _dE=_uI._GN(href,_IN);
TBK._ZU(_uI,_IN,_dE);
if((_IN=="mousedown")&&TBK._PG){
TBK._ZU(_uI,"rclick",_dE);
}
}
}
}
if(e){
var ex;
try{
e.cancelBubble=true;
}
catch(ex)
{
}
}
if((_IN=="keydown")&&(TBK._BQ==9)&&(TBK._BE._CE)){
_Page._kR(TBK._zQ);
return false;
}
return rc;
};
TBK._xW=function(){
TBK._lD_1T().event.srcElement.blur();
};
TBK._nV=function(){
document.oncontextmenu=this._5U;
var _yW=this._kW("syspopupGlass");
_yW.style.backgroundImage="url( ../resources/dummy.gif )";
};
TBK._cF=function(_fF,x,y,cx,cy,z,bgColor){
_fF.style.visibility="inherit";
_fF.style.left=x+'px';
_fF.style.top=y+'px';
_fF.style.width=cx+'px';
_fF.style.height=cy+'px';
_fF.style.clip="rect ( 0 "+cx+" "+cy+" 0 )";
_fF.style.zIndex=parseInt(z);
if(bgColor){
var _FQ=this._GQ(bgColor,6);
_fF.style.backgroundColor=(bgColor==-1)?"":("#"+_FQ);
}
};
TBK._dO=function(_fF,_HN,_zW){
_fF._OV=_HN;
if(_zW){
this._jW(_fF);
for(var i=0;i<_zW.length;i++)
{
_fF["on"+_zW[i]]=this._KU;
}
}
};
_HH=new Object();
_HH._tI=function(_uI,name,_cJ){};
_HH._wI=function(_xI,url,_yI){
window.alert(TBK._YD('_ZD.8')+"\n\n"+_yI+" "+_xI);
return true;
};
_HH.status=function(status){
window.status=status;
};
_HH.start=function(){};
_HH.stop=function(){};
_HH._AI=function(){};
_HH._CI=function(_DI){};
_HH._IH=function(_FI){};
_HH._QI=function(){};
_HH._6I=function(){};
_HH._9I=function(){};
function _YG(){
this._lN=0;
this._fN=1;
this._jN=2;
this._kN=3;
this._iN=0;
this._hN=1;
this._gN=2;
this._MN=0;
this._NN=1;
this._ON=2;
this._PN=3;
this._QN=4;
this._4H=false;
this._fH=0;
this._dH=0;
this._eH=new Date().getTime();
this._VD=new Object();
this._qH=new Object();
this._nH=new Object();
this._MM=null;
if(window['_Question']){
_Question._5H=0;
}
this.addLink=function(){
};
this.addNote=function(){
};
this._cH=function(){
return true;
};
this.getDescription=function(){
return"";
};
this._lD_qN=function(start){
return start;
};
this.getStudentName=function(){
return"";
};
this.getTestState=function(name){
return this.testStateValueExists(name)?this._nH[name.toUpperCase()]:null;
};
this._MH=function(_DE){
return false;
};
this._RH=function(){
};
this._tN=function(){
};
this._2H=function(){
};
this._SE=function(){
};
this._rD_CE=function(){
};
this.setTestState=function(name,value){
if(!this._nH){
this._nH=new Object();
}
this._nH[name.toUpperCase()]=value;
};
this._rD_CE=function(_TE){
if(_TE){
this._dN=_TE.id;
}
else{
this._dN=null;
}
};
this.showCollaborate=function(){
};
this.showExperts=function(){
};
this.showFeedback=function(){
};
this.showGlossary=function(){
};
this.showHelp=function(){
};
this.showProgress=function(){
};
this.showSearch=function(){
};
this.showStudyaids=function(){
};
this.stop=function(){
};
this.testStateValueExists=function(name){
if(!this._nH){
return false;
}
return typeof this._nH[name.toUpperCase()]!="undefined";
}
}
TBK._KM={
_LM:[],_RN:function(_SN,_TN){
var _PM;
this._UN=0;
if(this._VN(_SN)){
_PM=this._WN(_SN,_TN);
if((_PM==null)&&this._VN(_SN.opener)){
_PM=this._WN(_SN.opener,_TN);
if((_PM==null)&&this._VN(_SN.opener.opener)){
_PM=this._WN(_SN.opener.opener,_TN);
}
}
}
return _PM;
},_VN:function(_PM){
var rv,e;
try{
rv=_PM&&(typeof _PM=="object")&&!_PM.closed;
}
catch(e)
{
rv=false;
}
return rv;
},_WN:function(_PM,_TN){
while(_PM)
{
for(var i in _TN)
{
var _XN=_TN[i];
var _YN=_PM[_XN._ZN];
if(_YN&&(typeof _YN!="string")){
_HH._IH("Found "+_XN._MM+" API object in window named '"+_PM.name+"'");
var _0N={_MM:_XN._MM,_1N:_YN,_2N:_PM};
var _3N=new _XN._jE(_0N);
if(TBK._kH(_3N)){
_HH._IH("Failed to instantiate "+_XN._MM+" LMS object. Continuing LMS search.");
}
else{
return _3N;
}
}
}
this._UN++;
if(this._UN>7){
_HH._IH("Error finding API -- too deeply nested.");
}
else{
_PM=(_PM.parent==_PM)?null:_PM.parent;
}
}
return null;
}
};
function _jE(_uN){
var _0N;
var _XN;
var _4N=null;
var _MM="";
if((typeof _uN!="undefined")&&!_uN){
_MM="NoLMS";
}
var _5N=[];
for(var i=0;i<TBK._KM._LM.length;i++)
{
_XN=TBK._KM._LM[i];
if(_XN._NM=="api"&&(!_MM||_XN._MM==_MM)){
_HH._IH("Including LMS adapter '"+_XN._MM+"' in API search.");
_5N[_5N.length]=_XN;
}
}
if(_5N.length>0){
if(_4N=TBK._KM._RN(window,_5N)){
return _4N;
}
}
for(var i=0;i<TBK._KM._LM.length;i++)
{
_XN=TBK._KM._LM[i];
if(_XN._NM=="self"&&(!_MM||_XN._MM==_MM)){
_HH._IH("Performing detection in LMS adapter '"+_XN._MM+"'");
if(_0N=_XN._OM(TBK._6N,window)){
_4N=new _XN._jE(_0N);
if(!TBK._kH(_4N)){
return _4N;
}
}
}
}
return null;
}
TBK._7N=function(){
if(!TBK._jE){
var _8N=false;
TBK._jE=new _jE(TBK._9N);
_8N=TBK._jE._4H;
if(_8N){
TBK.Persistence.__N(TBK._jE._qH);
}
else if(TBK._$N){
window.alert(TBK._YD('_ZD.5'));
return false;
}
}
return true;
};
function _XG(){
_YG.call(this);
this._ZG=false;
this._0G=function(_AD,_1G,_BD,_UD,_2G){
var _3G=_UD._zD;
var _4G;
var _5G=this._lD_6G(_BD);
if(!_2G&&((_5G=="fill-in")||(_5G=="performance"))){
_4G=TBK._ED(_UD.value);
}
else{
_4G=_UD._AD;
}
if(_AD){
_AD+=",";
}
if(_1G){
if(_5G=="true-false"){
if(_4G.toUpperCase=="TRUE"){
_AD+="t";
}
else if(_4G.toUpperCase=="FALSE"){
_AD+="f";
}
else{
_AD+=(_3G=="a")?"t":"f";
}
}
else{
_AD+=_3G;
}
}
else{
_AD+=_4G;
}
return _AD;
};
this._7G=function(_BD){
var _TD="";
var _VD,_UD,_8G,_9G,i,j;
if(_BD.__G=="pick"){
_8G=[];
for(i=0;i<_BD._$G.length;i++)
{
_9G=_BD._$G[i];
if(_9G._xD>=0){
_8G[_9G._xD]=_9G;
}
}
_VD=[];
for(i=0;i<_8G.length;i++)
{
if(_8G[i].isInstance('_uD')){
_VD[_VD.length]=_8G[i];
}
else{
var _aH=_8G[i]._WD();
for(j=0;j<_aH.length;j++)
{
_VD[_VD.length]=_aH[j];
}
}
}
}
else{
_VD=_BD._bH;
}
for(i=0;i<_VD.length;i++)
{
_UD=_VD[i];
if(this._lD_6G(_BD)=="fill-in"){
if(_UD.answered){
_TD=_UD._zD+"~"+(_UD._vD?"1":"0")+"~"+_UD.value;
break;
}
}
else{
if(_TD){
_TD+="~";
}
_TD+=_UD._AD+"~"+_UD._zD+"~"+(_UD.answered?"1":"0")+"~"+(_UD._vD?"1":"0");
}
}
if(_TD){
return _BD.scoreCount+"~"+_TD;
}
else{
return"";
}
};
this._cH=function(){
if(this._dH<=0||((new Date().getTime()-this._eH)+this._fH)<this._dH){
return true;
}
else{
return false;
}
};
this._gH=function(_hH){
delete this._VD[_hH.toUpperCase()];
if(this._iH){
var _DE=TBK._jH(_hH);
if(this._iH[_DE]){
delete this._iH[_DE][_hH];
if(TBK._kH(this._iH[_DE])){
delete this._iH[_DE];
}
}
}
};
this._lH=function(){
var _mH="";
if(!TBK._kH(this._nH)){
_mH+="global\r\n";
for(_oH in this._nH)
{
_mH+=_oH+"="+TBK._pH(this._nH[_oH],true,true,true)+"\r\n";
}
}
if(!TBK._kH(this._VD)){
_mH+="qn\r\n";
for(_oH in this._VD)
{
_mH+=_oH+"="+this._VD[_oH]+"\r\n";
}
}
if(!TBK._kH(this._qH)){
_mH+="prop\r\n"+this._lD_rH(this._qH);
}
return _mH;
};
this._lD_rH=function(_sH){
var _tH="";
for(var i in _sH)
{
_tH+=i+"="+TBK._pH(_sH[i],true,true)+"\r\n";
}
return _tH;
};
this._uH=function(_vH){
_vH=Math.round(_vH/1000);
return this._wH(Math.floor(_vH/3600))+":"+this._wH(Math.floor((_vH%3600)/60))+":"+this._wH((_vH%3600)%60);
};
this._lD_hH=function(_BD){
var _xH=new RegExp(" ","g");
var id=_BD.name.replace(_xH,"_");
_xH=new RegExp("[()/*+=:\\-]","g");
id=id.replace(_xH,"_");
return encodeURI(id);
};
this._lD_6G=function(_BD){
if(_BD._6G=="Simulation"){
return"performance";
}
return _BD._6G;
};
this._lD_yH=function(_BD){
var _5G=this._lD_6G(_BD);
var _zH="";
var _1G=this._ZG&&(_5G=="choice"||_5G=="true-false"||_5G=="matching"||_5G=="sequencing");
for(var i=0;i<_BD._bH.length;i++)
{
var _UD=_BD._bH[i];
if(_UD.getProperty('answered')){
_zH=this._0G(_zH,_1G,_BD,_UD);
}
}
return _zH;
};
this._lD_AH=function(_BH,name){
var _TD=_BH;
name=name.split(".");
for(var i=0;i<name.length;i++)
{
if(!_TD[name[i]]){
_TD[name[i]]=new Object();
}
_TD=_TD[name[i]];
}
return _TD;
};
this._wH=function(value){
if(value<10){
value="0"+value;
}
return value;
};
this._CH=function(_DH,_rH){
var _EH;
var value;
for(var name in _DH)
{
value=_DH[name];
if(name._FH("_MDP_TESTSTATE_")){
switch(name){
case "_MDP_TESTSTATE__GLOBAL_SEQUENCE":_EH="SEQUENCE";
break;
case "_MDP_TESTSTATE_RAWSCORE":_EH="SCORE";
break;
default:_EH="";
}
if(_EH){
if(!_rH["global"]){
_rH["global"]=new Object();
}
_rH["global"][_EH]=value;
}
}
else if(name._FH("_MDP_PAGESTATE_")){
var _GH=name.match(/([PB]\d*)(O\d*)(\w*)$/);
if(!_GH||_GH.length!=4){
_HH._IH("Unrecognized page state item name: "+name);
}
else{
var _DE=_GH[1].toLowerCase();
var _JH=_GH[2].toLowerCase();
var _KH=_GH[3].toLowerCase();
if(!_rH["prop"]){
_rH["prop"]=new Object();
}
TBK.Persistence._LH(_rH["prop"],_DE,_JH,_KH,value);
}
}
else{
var _GH=name.match(/\(([PB]\d*):(\d*)\)$/);
var _JH=_GH[1].toLowerCase()+".o"+_GH[2];
if(value._FH("PREVIOUS_ATTEMPT_COUNT")){
value=value.substring(23);
}
else{
value="1~"+value;
}
if(!_rH["qn"]){
_rH["qn"]=new Object();
}
_rH["qn"][_JH.toUpperCase()]=value;
}
}
};
this._MH=function(_DE){
if(!this._iH){
this._iH={};
for(var _hH in this._VD)
{
_hH=_hH.toLowerCase();
var _DE=TBK._jH(_hH);
if(!this._iH[_DE]){
this._iH[_DE]={};
}
this._iH[_DE][_hH]=true;
}
}
return(_DE&&this._iH[_DE])?true:false;
};
this._NH=function(_rH){
if(_rH["qn"]){
this._VD=_rH["qn"];
}
if(_rH["prop"]){
this._qH=_rH["prop"];
}
if(_rH["global"]){
this._nH=_rH["global"];
for(var i in this._nH)
{
var _OH=this._nH[i];
if(parseFloat(_OH)==_OH){
this._nH[i]=parseFloat(_OH);
}
else{
if(_OH._FH("{")&&_OH._PH("}")){
this._nH[i]=eval("new Object("+_OH+")");
}
else if((_OH._FH("[")&&_OH._PH("]"))||(_OH._FH("\"")&&_OH._PH("\""))){
this._nH[i]=eval(_OH);
}
}
}
}
var _QH=this.getTestState("sequence");
if(_QH&&_QH.length){
TBK._QH=_QH;
}
};
this._RH=function(_BD){
var i;
var _UD=this._VD[_BD.id.toUpperCase()];
if(_UD){
_UD=_UD.split("~");
_BD.setProperty('scoreCount',+_UD[0]);
_BD.setProperty('locked',((_BD.scoreCount&&!_BD._ND)||(_BD._SH&&(_BD.scoreCount>=_BD._SH))));
var _TH=new Object();
var _UH=_UD.length-1;
if(_UH%4==0){
for(i=1;i<_UD.length;i+=4)
{
var _zD=_UD[i+1];
_TH[_zD]=new Object();
_TH[_zD].value=_UD[i];
_TH[_zD].answered=(_UD[i+2]==1);
_TH[_zD]._VH=(_UD[i+3]==1);
_TH[_zD]._xD=(i-1)/4;
}
}
else if(_UH==3){
_zD=_UD[1];
_TH[_zD]=new Object();
_TH[_zD].value=_UD[3];
_TH[_zD].answered=true;
_TH[_zD]._VH=(_UD[2]==1);
_TH[_zD]._xD=-1;
}
var _WH=[];
var _XH=0;
for(i=0;i<_BD._bH.length;i++)
{
var _UD=_BD._bH[i];
var _YH=_TH[_UD._zD];
if(_YH){
_UD.setProperty('value',_YH.value);
_UD.setProperty('answered',_YH.answered);
_BD.setProperty('_ZH',true);
if(_BD.__G=="pick"){
var _9G=_UD;
if(!_9G.isInstance('_Answerable')){
_9G=_9G._GD('_Answerable');
}
if(_9G){
_WH[_YH._xD]=_9G.id;
}
}
if(_YH.answered){
_XH+=_BD._0H*_UD._yD;
}
}
}
if((_BD.__G=="pick")&&(_WH.length>0)){
var _1H=[];
_1H[0]=_WH[0];
for(i=1;i<_WH.length;i++)
{
if(_WH[i]!=_1H[_1H.length-1]){
_1H[_1H.length]=_WH[i];
}
}
_BD.setProperty('_1H',_1H);
}
_BD.setProperty('lastScore',_XH);
}
};
this._2H=function(_BD){
this._gH(_BD.id);
};
this._SE=function(){
this._VD={};
this._iH={};
};
this.stop=function(_3H,_nE,_xE,_yE){
if(this._4H){
var _5H=0;
if(window['_Question']){
_5H=_Question._6H(true);
if(TBK._7H>TBK._8H){
_5H=Math.min(TBK._7H,Math.max(TBK._8H,_5H));
}
}
var _QH=this.getTestState("sequence");
if(!_QH){
this.setTestState("sequence",TBK._QH);
}
this._9H(_3H,_nE,_5H,TBK._8H,TBK._7H,_xE,_yE);
this._4H=false;
}
};
this.__H=function(_hH,value){
this._VD[_hH.toUpperCase()]=value;
if(this._iH){
var _DE=TBK._jH(_hH);
if(!this._iH[_DE]){
this._iH[_DE]={};
}
this._iH[_DE][_hH]=true;
}
}
}
function _6W(_1N,_2N){
_XG.call(this);
this._7W=_1N;
this._2N=_2N;
this.API_Extended=null;
this.objExperienceAPI=null;
this._8W=false;
this._9W=false;
this._VM=function(){
try{
this.LMSInitialize();
}
catch(e)
{
_HH._IH("LMSInitialize() call failed with exception: "+TBK._OU(e));
return false;
}
var _PM=this._2N;
if(_PM.API_Extended&&(typeof _PM.API_Extended=="object")&&_PM.API_Extended.SetNavCommand){
_HH._IH("Found API_Extended object in window named '"+_PM.name+"'");
this.API_Extended=_PM.API_Extended;
}
if(_PM.objExperienceAPI&&(typeof _PM.objExperienceAPI!="string")){
_HH._IH("Found objExperienceAPI object in window named '"+_PM.name+"'");
this.objExperienceAPI=_PM.objExperienceAPI;
}
return true;
};
this._3M=function(){
var _5H=0;
this._fH=this.__W(this._$W());
if(this._fH==null){
_HH._IH("Invalid LMSGetTotalTime(). Setting to 00:00:00.00.");
this._fH=0;
}
this._dH=this.__W(this._aX());
if(this._dH==null){
_HH._IH("Invalid LMSGetMaxTime(). Setting to 00:00:00.00 (no limit).");
this._dH=0;
}
var _bX=this._cX();
if((_bX=="resume")||(this._dX()=="review")){
var _DH=new Object();
var _rH=new Object();
var _eX=this._fX();
if(_eX){
_HH._IH("Consuming suspendData...");
var _ZM=_DH;
var _1M="";
st=_eX.split('\n');
for(i=0;i<st.length;i++)
{
var _gX=st[i]._2M();
if(_gX){
var _3L=_gX.indexOf('=');
if(_3L==-1){
_ZM=this._lD_AH(_rH,_gX);
_1M=_gX;
_HH._IH("  - In "+_1M);
}
else{
var _hX=_gX.substring(0,_3L)._2M();
var _iX=_gX.substring(_3L+1)._2M();
if(_1M=="prop"){
_ZM[_hX]=eval("new Object("+_iX+")");
}
else{
_ZM[_hX.toUpperCase()]=_iX;
}
_HH._IH("    - Name: "+_hX+"; Value: "+_iX);
}
}
}
this._CH(_DH,_rH);
if(!TBK._kH(_rH)){
this._NH(_rH);
}
}
_5H=parseFloat(this.getTestState("RawScore"));
if(isNaN(_5H)){
if(TBK._kH(_rH)){
_5H=0;
}
else{
var _$M=this._jX();
if(_$M){
_5H=parseFloat(_$M);
if(isNaN(_5H)){
_5H=0;
}
}
else{
_5H=0;
}
}
}
}
this._kX(_bX);
if(window['_Question']){
_Question._5H=_5H;
}
var _lX=this.objExperienceAPI;
if(_lX){
if(_lX.LaunchMode("")=="experience"){
_lX.SetLocalData("0",_lX.GetLocalData("0"));
_lX.SetLocalData("1",_lX.GetLocalData("1"));
}
}
var status=this._mX();
if(status.match("^(unknown|not[-_ ]attempted)$")){
_HH._IH("Initializing lesson status to 'incomplete'");
this._nX("incomplete");
}
else{
_HH._IH("Lesson status is '"+status+"'");
}
this._eH=new Date().valueOf();
};
this.addLink=function(){
if(this.objExperienceAPI){
this.objExperienceAPI.AddLink("");
}
};
this.addNote=function(){
if(this.objExperienceAPI){
this.objExperienceAPI.AddNote("");
}
};
this._oX=function(_pX){
var rv="";
var e;
if(arguments.length<1){
_HH._IH("Invalid call to callSCORM(): no method name.");
return"";
}
var _qX=_pX+"(";
for(var i=1;i<arguments.length;i++)
{
if(i>1){
_qX+=",";
}
_qX+="\"\"+arguments["+i+"]";
}
_qX+=")";
try{
rv=eval("this."+'_7W'+"."+_qX);
}
catch(e)
{
var _rX="EXCEPTION calling SCORM API function "+_pX+"()";
for(var i=1;i<arguments.length;i++)
{
_rX+="\n   arg "+i+" = "+arguments[i];
}
_rX+="\n   Error: "+TBK._OU(e);
_HH._IH(_rX);
}
return""+rv;
};
this._sX=function(src){
var _tX="";
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':_tX+='\n';
break;
default:_tX+=c;
break;
}
break;
default:_tX+=c;
break;
}
}
return _tX;
};
this._uX=function(src){
var _tX="";
var c;
for(var i=0;i<src.length();i++)
{
c=src.charAt(i);
switch(c){
case '\\':_tX+="\\\\";
break;
case '\n':_tX+="\\n";
break;
default:_tX+=c;
break;
}
}
return _tX;
};
this._9H=function(_3H,_nE,_XH,_bN,_0H,_xE,_yE){
var status=null;
var exit=null;
var _vX=this._wX();
var _xX=this._dX();
if(_xX!="review"){
var url=this._dN?TBK._eN+"#"+this._dN:"0";
this._yX(url);
if(_3H==this._fN){
switch(_xE){
case this._gN:exit="";
break;
case this._hN:case this._iN:default:exit="suspend";
break;
}
status="incomplete";
}
else if(_3H==this._jN){
}
else if(_3H==this._kN){
switch(_xE){
case this._hN:exit="suspend";
break;
case this._gN:exit="";
break;
case this._iN:default:var _bX=this._cX();
if(_bX=="resume"){
exit="suspend";
}
else{
exit="";
}
break;
}
status=this._mX();
}
else{
switch(_xE){
case this._hN:exit="suspend";
break;
case this._gN:case this._iN:default:exit="";
break;
}
status="completed";
}
if((_3H==this._fN)||(_3H==this._lN)){
this._zX(exit);
this._nX(status);
if(_XH||_0H||_bN){
this._AX(_XH,_0H,_bN);
}
this._BX(this._CX(new Date().getTime()-this._eH));
this.setTestState("RawScore",_XH);
var _rH=this._lH();
if(_rH){
this._DX(_rH);
}
}
else if(_3H==this._kN){
this._BX(this._CX(new Date().getTime()-this._eH));
this._zX(exit);
}
}
this.LMSCommit();
this._4H=false;
if(this._8W&&!this.API_Extended){
_HH._IH("Closing SumTotal player window via old method");
this.LMSGetDiagnostic("98004");
}
this.LMSFinish();
if(this.API_Extended){
_HH._IH("Closing SumTotal player window via new method");
var _EX;
try{
this.API_Extended.SetNavCommand("exit");
}
catch(_EX)
{}
}
if(this.objExperienceAPI){
var _lX=this.objExperienceAPI;
var _FX=_lX.LaunchMode("");
if(_FX=="experience"){
_lX.SetLocalData("0",_lX.GetLocalData("0"));
_lX.SetLocalData("1",_lX.GetLocalData("1"));
}
if(_FX!="cms"){
switch(_yE){
case this._MN:default:break;
case this._NN:_HH._IH("Requesting TEST_NAVIGATION_NEXT");
if(_vX=="credit"){
_lX.QNavigationNext("");
}
else if(_3H==this._fN){
_lX.NavigationNextSkip("");
}
else if(_3H==this._kN){
if((status=="not attempted")||(status=="incomplete")){
_lX.NavigationNextSkip("");
}
else{
_lX.NavigationNextDone("");
}
}
else{
_lX.NavigationNextDone("");
}
break;
case this._ON:_HH._IH("Requesting TEST_NAVIGATION_PREV");
if(_vX=="credit"){
_lX.QNavigationPrev("");
}
else if(_3H==this._fN){
_lX.NavigationPrevSkip("");
}
else if(_3H==this._kN){
if((status=="not attempted")||(status=="incomplete")){
_lX.NavigationPrevSkip("");
}
else{
_lX.NavigationPrevDone("");
}
}
else{
_lX.NavigationPrevDone("");
}
break;
case this._PN:_HH._IH("Requesting TEST_NAVIGATION_HOME");
_lX.NavigationHome("");
break;
case this._QN:_HH._IH("Requesting TEST_NAVIGATION_FINISH_ASSESSMENT");
if(_vX=="credit"){
if(_xX._GX("review")){
_lX.QFinishReview("");
}
else{
_lX.QSubmitAssessment("");
}
}
break;
}
}
}
};
this._lD_qN=function(start){
if(this._dX()=="review"){
return start;
}
else{
var _qN=this._HX();
if(_qN){
var _rN=TBK._sN(_qN);
if(_rN){
return _rN;
}
}
return start;
}
};
this.getStudentName=function(){
return this._IX();
};
this.hasNext=function(){
if(this.objExperienceAPI){
if(this._wX()=="credit"){
return(this.objExperienceAPI.QIsLastQuestion()=="false");
}
else{
return(this.objExperienceAPI.IsLastPage()=="false");
}
}
else{
return false;
}
};
this.hasPrevious=function(){
if(this.objExperienceAPI){
if(this._wX()=="credit"){
return(this.objExperienceAPI.QIsFirstQuestion()=="false");
}
else{
return(this.objExperienceAPI.IsFirstPage()=="false");
}
}
else{
return false;
}
};
this._tN=function(_BD){
if(this._dX()!="review"&&_BD._uN){
this._rD_JX(_BD);
this._KX(this._lD_hH(_BD));
this._LX(this._MX(new Date(_BD._wN)));
this._NX(this._lD_6G(_BD));
this._OX(this._CX(_BD._xN));
this._PX(_BD);
var _QX=this._lD_yH(_BD);
this._RX(_BD.lastScore);
this._SX(_BD._0H);
this._TX(_QX);
if(_BD._6G!="Simulation"){
this.__H(_BD.id,this._7G(_BD));
}
}
};
this._PX=function(_BD){
var _5G=this._lD_6G(_BD);
var _nN="";
var _1G=this._ZG&&(_5G=="choice"||_5G=="true-false"||_5G=="matching"||_5G=="sequencing");
var _UX=0;
for(var i=0;i<_BD._bH.length;i++)
{
var _UD=_BD._bH[i];
if(_UD._vD){
if(_BD._pN){
_nN=this._0G("",_1G,_BD,_UD,true);
this._VX(_UX,_nN);
_UX++;
}
else{
_nN=this._0G(_nN,_1G,_BD,_UD,true);
}
}
}
if(!_BD._pN){
this._VX(0,_nN);
}
};
this.showCollaborate=function(){
if(this.API_Extended){
this.API_Extended.SetNavCommand("collaborate");
}
};
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("");
}
};
this.showProgress=function(){
if(this.API_Extended){
this.API_Extended.SetNavCommand("progress");
}
};
this.showSearch=function(){
if(this.API_Extended){
this.API_Extended.SetNavCommand("search");
}
};
this.showStudyaids=function(){
if(this.API_Extended){
this.API_Extended.SetNavCommand("study-aids");
}
}
}
TBK._KM._LM[TBK._KM._LM.length]={
_MM:"SCORM2004",_NM:"api",_ZN:"API_1484_11",_jE:function(_TM){
if(_TM._MM!="SCORM2004"){
_HH._IH("SCORM2004 constructor: Wrong credential type \""+_TM._MM+"\" received");
return{};
}
_6W.call(this,_TM._1N,_TM._2N);
this._MM="SCORM2004";
this._4H=true;
this._ZG=false;
this._0G=function(_AD,_1G,_BD,_UD,_2G){
var _5G=this._lD_6G(_BD);
var _3G=_UD._zD;
var _4G;
if(!_2G&&((_5G=="fill-in")||(_5G=="performance"))){
_4G=TBK._ED(_UD.value);
}
else{
_4G=_UD._AD;
}
if(_4G===null){
_4G="";
}
var _8X=true;
if(_AD){
_AD+="[,]";
_8X=false;
}
if(_5G=="true-false"){
if(_4G.toUpperCase()=="TRUE"){
_AD+="true";
}
else if(_4G.toUpperCase()=="FALSE"){
_AD+="false";
}
else{
_AD+=(_3G=="a")?"true":"false";
}
}
else if(_5G=="choice"){
_AD+=this._9X(_4G);
}
else if(_5G=="fill-in"){
if(this.__X){
_AD+="{lang="+__X+"}";
}
_AD+=_4G;
if(_2G&&_8X){
_AD="{case_matters="+(_UD._cK?"true":"false")+"}"+_AD;
}
}
else if(_5G=="matching"){
var _$X=_4G.indexOf(".");
_AD+=this._9X(_4G.substring(0,_$X))+"[.]"+this._9X(_4G.substring(_$X+1));
}
else if(_5G=="sequencing"){
_AD+=this._9X(_4G);
}
else if(_5G=="performance"){
_AD+="[.]"+_4G;
}
return _AD;
};
this._9X=function(_mH){
_mH=_mH.replace(/\s/g,"_");
return encodeURI(_mH);
};
this._kX=function(_bX){
this._aY={};
if(_bX=="resume"){
var n=this._bY();
for(this._WX=0;this._WX<n;this._WX++)
{
var id=this._cY();
this._aY[id]=this._WX;
}
}
};
this._AX=function(_XH,_0H,_bN){
this._XX(this._YX(_bN));
this._ZX(this._YX(_0H));
this._0X(this._YX(_XH));
var _dY=0;
if(_XH){
if(_bN>=_0H){
_dY=(_XH>0)?1:-1;
}
else if(_0H>0){
_dY=Math.max(-1,Math.min(_XH/_0H,1));
}
else{
_dY=Math.max(-1,Math.min(_XH/Math.abs(_bN),1));
}
}
this._eY(this._fY(_dY));
var _gY=this._hY();
if((_gY!="")&&!isNaN(_gY=Number(_gY))){
var _iY=(_dY<_gY)?"failed":"passed";
this._jY(_iY);
}
};
this._rD_JX=function(_BD){
var _kY=this._lD_hH(_BD);
this._WX=this._aY[_kY];
if(!this._WX&&(this._WX!==0)){
this._WX=this._bY();
this._aY[_kY]=this._WX;
}
};
this._wX=function(){
return this.LMSGetValue("cmi.credit");
};
this._cX=function(){
return this.LMSGetValue("cmi.entry");
};
this._zX=function(value){
return this.LMSSetValue("cmi.exit",value);
};
this._VX=function(_UX,_nN){
return this.LMSSetValue("cmi.interactions."+this._WX+".correct_responses."+_UX+".pattern",_nN);
};
this._cY=function(){
return this.LMSGetValue("cmi.interactions."+this._WX+".id");
};
this._KX=function(id){
return this.LMSSetValue("cmi.interactions."+this._WX+".id",id);
};
this._OX=function(_3X){
return this.LMSSetValue("cmi.interactions."+this._WX+".latency",_3X);
};
this._RX=function(_mK){
return this.LMSSetValue("cmi.interactions."+this._WX+".result",_mK);
};
this._TX=function(_AD){
return this.LMSSetValue("cmi.interactions."+this._WX+".learner_response",_AD);
};
this._LX=function(_4X){
return this.LMSSetValue("cmi.interactions."+this._WX+".timestamp",_4X);
};
this._NX=function(_5X){
return this.LMSSetValue("cmi.interactions."+this._WX+".type",_5X);
};
this._SX=function(_yD){
return this.LMSSetValue("cmi.interactions."+this._WX+".weighting",_yD);
};
this._bY=function(){
return this.LMSGetValue("cmi.interactions._count");
};
this._HX=function(){
return this.LMSGetValue("cmi.location");
};
this._yX=function(value){
return this.LMSSetValue("cmi.location",value);
};
this._dX=function(){
return this.LMSGetValue("cmi.mode");
};
this._mX=function(){
return this.LMSGetValue("cmi.completion_status");
};
this._nX=function(value){
return this.LMSSetValue("cmi.completion_status",value);
};
this._ZX=function(value){
return this.LMSSetValue("cmi.score.max",value);
};
this._aX=function(){
return this.LMSGetValue("cmi.max_time_allowed");
};
this._XX=function(value){
return this.LMSSetValue("cmi.score.min",value);
};
this._jX=function(){
return this.LMSGetValue("cmi.score.raw");
};
this._0X=function(value){
return this.LMSSetValue("cmi.score.raw",value);
};
this._hY=function(){
return this.LMSGetValue("cmi.scaled_passing_score");
};
this._lY=function(){
return this.LMSGetValue("cmi.score.scaled");
};
this._eY=function(value){
return this.LMSSetValue("cmi.score.scaled",value);
};
this._BX=function(value){
return this.LMSSetValue("cmi.session_time",value);
};
this._IX=function(){
return this.LMSGetValue("cmi.learner_name");
};
this._jY=function(value){
return this.LMSSetValue("cmi.success_status",value);
};
this._fX=function(){
return this.LMSGetValue("cmi.suspend_data");
};
this._DX=function(value){
return this.LMSSetValue("cmi.suspend_data",value);
};
this._$W=function(){
return this.LMSGetValue("cmi.total_time");
};
this._CX=function(_OH){
var _mH="S";
var n;
n=_OH%1000;
_OH=Math.floor(_OH/1000);
n=Math.round(n/10);
if(n==100){
_OH++;
}
else if(n!=0){
_mH="."+this._wH(n)+_mH;
}
n=_OH%60;
_OH=Math.floor(_OH/60);
_mH=""+n+_mH;
if(_OH>0){
n=_OH%60;
_OH=Math.floor(_OH/60);
_mH=""+n+"M"+_mH;
if(_OH>0){
n=_OH%24;
_OH=Math.floor(_OH/24);
_mH=""+n+"H"+_mH;
}
}
_mH="T"+_mH;
if(_OH>0){
_mH=_OH+"D"+_mH;
}
_mH="P"+_mH;
return _mH;
};
this.__W=function(_6X){
_6X=_6X._2M();
var _mY="^P"+"(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)D)?"+"(?:T(?:(\\d+)H)?(?:(\\d+)M)?"+"(?:(\\d+(?:\\.\\d*)?)S)?)?"+"$";
var _7M=_6X.match(_mY);
if(!_7M){
_HH._IH("Invalid SCORM 2004 timeinterval format (\""+_6X+"\"). Should be P[yY][mM][dD][T[hH][mM][s[.s]S]].");
return null;
}
else{
var _nY=(_7M[1]?365*_7M[1]:0)+(_7M[2]?30*_7M[2]:0)+(_7M[3]?1*_7M[3]:0);
_nY=24*_nY+(_7M[4]?1*_7M[4]:0);
_nY=60*_nY+(_7M[5]?1*_7M[5]:0);
_nY=60*_nY+(_7M[6]?1*_7M[6]:0);
return Math.round(1000*_nY);
}
};
this._YX=function(value){
try{
var _oY=new Number(value);
return this._pY(_oY);
}
catch(e)
{
_HH._IH("Exception ("+TBK._OU(e)+") formatting raw score value '"+value+"'");
return"";
}
};
this._fY=function(value){
try{
var _oY=new Number(value);
return this._pY(_oY);
}
catch(e)
{
_HH._IH("Exception ("+TBK._OU(e)+") formatting scaled score value '"+value+"'");
return"";
}
};
this._MX=function(_cI){
var _mH="";
_mH+=_cI.getFullYear()+"-";
_mH+=this._wH(_cI.getMonth()+1)+"-";
_mH+=this._wH(_cI.getDate())+"T";
_mH+=this._wH(_cI.getHours())+":";
_mH+=this._wH(_cI.getMinutes())+":";
_mH+=this._wH(_cI.getSeconds());
return _mH;
};
this._pY=function(_qY){
var _mH=_qY.toFixed(7);
_mH=_mH.replace(/\.?0+$/,"");
return _mH;
};
this.LMSInitialize=function(){
return this._oX("Initialize","");
};
this.LMSFinish=function(){
return this._oX("Terminate","");
};
this.LMSCommit=function(){
return this._oX("Commit","");
};
this.LMSGetDiagnostic=function(_YE){
return this._oX("GetDiagnostic",_YE);
};
this.LMSGetErrorString=function(_YE){
return this._oX("GetErrorString",_YE);
};
this.LMSGetLastError=function(){
return this._oX("GetLastError");
};
this.LMSGetValue=function(_ZE){
var rv=this._oX("GetValue",_ZE);
_HH._IH("LMS get <<<<< ["+_ZE+"] is \""+rv+"\"");
return rv;
};
this.LMSSetValue=function(_ZE,value){
_HH._IH("LMS SET >>>>> ["+_ZE+"] to \""+value+"\"");
return this._oX("SetValue",_ZE,value);
};
if(!this._VM()){
return{};
}
this._3M();
}
};
TBK._KM._LM[TBK._KM._LM.length]={
_MM:"SCORM12",_NM:"api",_ZN:"API",_jE:function(_TM){
if(_TM._MM!="SCORM12"){
_HH._IH("SCORM12 constructor: Wrong credential type \""+_TM._MM+"\" received");
return{};
}
_6W.call(this,_TM._1N,_TM._2N);
this._MM="SCORM12";
this._4H=true;
this._kX=function(_bX){
this._WX=-1;
};
this._AX=function(_XH,_0H,_bN){
if(this._9W){
this._XX(this._YX(_bN));
this._ZX(this._YX(_0H));
this._0X(this._YX(_XH));
}
else{
var _1X;
if(_0H<=0){
_0H=100;
}
if(_bN<=0){
_1X=0;
}
else{
_1X=Math.round((_bN/_0H)*100*100)/100.0;
}
var _WW;
if(_XH<=0){
_WW=0;
}
else{
_WW=Math.round((_XH/_0H)*100*100)/100.0;
}
this._XX(this._2X(_1X));
this._ZX(this._2X(100));
this._0X(this._2X(_WW));
}
};
this._rD_JX=function(_BD){
this._WX++;
};
this._wX=function(){
return this.LMSGetValue("cmi.core.credit");
};
this._cX=function(){
return this.LMSGetValue("cmi.core.entry");
};
this._zX=function(value){
return this.LMSSetValue("cmi.core.exit",value);
};
this._VX=function(_UX,_nN){
return this.LMSSetValue("cmi.interactions."+this._WX+".correct_responses."+_UX+".pattern",_nN);
};
this._KX=function(id){
return this.LMSSetValue("cmi.interactions."+this._WX+".id",id);
};
this._OX=function(_3X){
return this.LMSSetValue("cmi.interactions."+this._WX+".latency",_3X);
};
this._RX=function(_mK){
return this.LMSSetValue("cmi.interactions."+this._WX+".result",_mK);
};
this._TX=function(_AD){
return this.LMSSetValue("cmi.interactions."+this._WX+".student_response",_AD);
};
this._LX=function(_4X){
return this.LMSSetValue("cmi.interactions."+this._WX+".time",_4X);
};
this._NX=function(_5X){
return this.LMSSetValue("cmi.interactions."+this._WX+".type",_5X);
};
this._SX=function(_yD){
return this.LMSSetValue("cmi.interactions."+this._WX+".weighting",_yD);
};
this._HX=function(){
return this.LMSGetValue("cmi.core.lesson_location");
};
this._yX=function(value){
return this.LMSSetValue("cmi.core.lesson_location",value);
};
this._dX=function(){
return this.LMSGetValue("cmi.core.lesson_mode");
};
this._mX=function(){
return this.LMSGetValue("cmi.core.lesson_status");
};
this._nX=function(value){
return this.LMSSetValue("cmi.core.lesson_status",value);
};
this._ZX=function(value){
return this.LMSSetValue("cmi.core.score.max",value);
};
this._aX=function(){
return this.LMSGetValue("cmi.student_data.max_time_allowed");
};
this._XX=function(value){
return this.LMSSetValue("cmi.core.score.min",value);
};
this._jX=function(){
return this.LMSGetValue("cmi.core.score.raw");
};
this._0X=function(value){
return this.LMSSetValue("cmi.core.score.raw",value);
};
this._BX=function(value){
return this.LMSSetValue("cmi.core.session_time",value);
};
this._IX=function(){
return this.LMSGetValue("cmi.core.student_name");
};
this._fX=function(){
return this.LMSGetValue("cmi.suspend_data");
};
this._DX=function(value){
return this.LMSSetValue("cmi.suspend_data",value);
};
this._$W=function(){
return this.LMSGetValue("cmi.core.total_time");
};
this._CX=function(_eV){
return this._uH(_eV);
};
this.__W=function(_6X){
var _7X=false;
var _7M=_6X.split(":");
if(_7M.length>=2){
try{
var ms=1000*(3600*_7M[0]+60*_7M[1]+1*_7M[2]);
}
catch(e)
{
_7X=true;
}
}
else{
_7X=true;
}
if(_7X){
_HH._IH("Invalid SCORM duration format (\""+_6X+"\"). Should be HH:MM:SS.");
return null;
}
return ms;
};
this._2X=function(value){
var _mH="";
try{
_mH=new Number(value).toString();
}
catch(e)
{
_HH._IH("Exception ("+TBK._OU(e)+") formatting percent score value \""+value);
}
return _mH;
};
this._YX=function(value){
var _mH="";
try{
_mH=new Number(value).toString();
}
catch(e)
{
_HH._IH("Exception ("+TBK._OU(e)+") formatting raw score value \""+value);
}
return _mH;
};
this._MX=function(_cI){
var _mH="";
_mH+=this._wH(_cI.getHours())+":";
_mH+=this._wH(_cI.getMinutes())+":";
_mH+=this._wH(_cI.getSeconds());
return _mH;
};
this.LMSInitialize=function(){
return this._oX("LMSInitialize","");
};
this.LMSFinish=function(){
return this._oX("LMSFinish","");
};
this.LMSCommit=function(){
return this._oX("LMSCommit","");
};
this.LMSGetDiagnostic=function(_YE){
return this._oX("LMSGetDiagnostic",_YE);
};
this.LMSGetErrorString=function(_YE){
return this._oX("LMSGetErrorString",_YE);
};
this.LMSGetLastError=function(){
return this._oX("LMSGetLastError");
};
this.LMSGetValue=function(_ZE){
var rv=this._oX("LMSGetValue",_ZE);
_HH._IH("LMS get <<<<< ["+_ZE+"] is \""+rv+"\"");
return rv;
};
this.LMSSetValue=function(_ZE,value){
_HH._IH("LMS SET >>>>> ["+_ZE+"] to \""+value+"\"");
return this._oX("LMSSetValue",_ZE,value);
};
if(!this._VM()){
return{};
}
this._3M();
}
};
TBK._KM._LM[TBK._KM._LM.length]={
_MM:"HACP",_NM:"self",_OM:function(url,_PM){
var name,value;
_QM=decodeURIComponent(TBK.getParam("AICC_URL"));
if(!_QM){
_HH._IH("Detect AICC: No AICC detected because AICC_URL parameter missing.");
return null;
}
_RM="http://";
if(_QM.indexOf("http://")==0){
_QM=_QM.substring(7);
}
else if(_QM.indexOf("https://")==0){
_QM=_QM.substring(8);
_RM="https://";
}
_SM=TBK.getParam("AICC_SID");
if(!_SM){
_HH._IH("Detect AICC: No AICC connection because AICC_SID parameter missing.");
return null;
}
_TM=new Object();
_TM._MM=this._MM;
_TM._RM=_RM;
_TM._QM=_QM;
_TM._SM=_SM;
return _TM;
},_jE:function(_TM){
if(_TM._MM!="HACP"){
_HH._IH("HACP constructor: Wrong credential type \""+_TM._MM+"\" received");
return{};
}
_XG.call(this);
this._MM="HACP";
this._4H=true;
this._UM="3.0";
this._RM=_TM._RM;
this._QM=_TM._QM;
this._SM=_TM._SM;
this._VM=function(){
var _WM=this._XM("command=GetParam&version="+this._UM+"&session_id="+this._SM+"&AICC_DATA=\r\n");
_WM=_WM.split("\n");
var _YM=new Object();
var _DH=new Object();
var _rH=new Object();
var _ZM=_YM;
_HH._IH("Attach to AICC: Processing GetParam return value");
var _0M=false;
var _1M="";
for(i=0;i<_WM.length;i++)
{
param=_WM[i]._2M();
if(param._FH("[")&&param._PH("]")){
if(param.toUpperCase()=="[CORE_LESSON]"){
_ZM=_DH;
_0M=true;
}
else{
_ZM=_YM;
_0M=false;
}
_1M="";
_HH._IH("  - In "+param);
}
else{
start=param.indexOf("=");
if(start==-1){
if(_0M){
_ZM=this._lD_AH(_rH,param);
_1M=param;
_HH._IH("  - In "+_1M);
}
}
else{
name=param.substring(0,start)._2M();
value=param.substring(start+1)._2M();
if(_1M=="prop"){
_ZM[name]=eval("new Object("+value+")");
}
else{
_ZM[name.toUpperCase()]=value;
}
_HH._IH("    - Name: "+name+"; Value: "+value);
}
}
}
if(TBK._kH(_YM)){
_HH._IH("Attach to AICC: AICC connection failed because no data was returned from GetParam call");
return null;
}
this._YM=_YM;
this._DH=_DH;
this._rH=_rH;
return true;
};
this._3M=function(){
var _DH=this._DH;
var _rH=this._rH;
delete this._DH;
delete this._rH;
var _4M=this._YM["VERSION"];
var _5M=parseFloat(_4M);
if(!isNaN(_5M)){
_HH._IH("Attach to AICC: LMS reports AICC version: "+_4M);
_6M=parseFloat(this._UM);
if(_5M<_6M){
if(_5M<2){
this._UM="2.0";
}
else{
this._UM=_4M;
}
}
}
var _7M;
var _8M=this._YM["TIME"];
if(_8M){
_7M=_8M.split(":");
if(_7M.length>=2){
this._fH=1000*(3600*_7M[0]+60*_7M[1]+1*_7M[2]);
}
else{
_HH._IH("Attach to AICC: [core] parameter 'time' invalid format (\""+_8M+"\"). Should be HH:MM:SS. Assuming 0.");
}
}
else{
_HH._IH("Attach to AICC: Required [core] parameter 'time' not specified. Assuming 0.");
}
var _8M=this._YM["MAXTIME"];
if(_8M){
_7M=_8M.split(":");
if(_7M.length>=2){
this._dH=1000*(3600*_7M[0]+60*_7M[1]+1*_7M[2]);
}
}
var _9M=this._YM["LESSON_STATUS"];
if(!_9M){
_9M="N";
var __M="A";
}
else{
_9M=_9M.toUpperCase();
var __M="";
start=_9M.indexOf(",");
if(start!=-1){
__M=_9M.substring(start+1);
_9M=_9M.substring(0,start);
}
}
this._CH(_DH,_rH);
var _5H=0;
if(!TBK._kH(_rH)){
this._NH(_rH);
_5H=parseFloat(this.getTestState("RawScore"));
if(isNaN(_5H)){
var _$M=this._YM["SCORE"];
if(_$M){
_5H=parseFloat(this._YM["SCORE"]);
if(isNaN(_5H)){
var start=_$M.indexOf(",");
if(start>-1){
_5H=parseFloat(_$M.substring(0,start));
if(isNaN(_5H)){
_5H=0;
}
}
else{
_5H=0;
}
}
}
else{
_5H=0;
}
}
}
if(window['_Question']){
_Question._5H=_5H;
}
this._aN="";
};
this._9H=function(_3H,_nE,_XH,_bN,_0H,_xE,_yE){
var _bD="command=PutParam&version="+this._UM+"&session_id="+this._SM+"&AICC_DATA=";
var _cN="[core]\r\nlesson_location=";
var url=this._dN?TBK._eN+"#"+this._dN:"0";
_cN+=url+"\r\n";
if(_3H==this._fN){
_cN+="Lesson_Status=Incomplete";
switch(_xE){
case this._gN:break;
case this._hN:case this._iN:default:_cN+=",suspend";
break;
}
_cN+="\r\n";
}
else if(_3H==this._jN);
else if(_3H==this._kN);
else{
_cN+="Lesson_Status=Completed";
switch(_xE){
case this._hN:_cN+=",suspend";
break;
case this._gN:case this._iN:default:break;
}
_cN+="\r\n";
}
if(_3H==this._fN||_3H==this._lN){
_cN+="Time="+this._uH(new Date().getTime()-this._eH)+"\r\n";
if(_XH||_0H||_bN){
_cN+="score=";
if(this._UM<3&&this._ZG){
if(_XH<0||_0H<=0){
_cN+="0";
}
else{
_cN+=Math.round((_XH/_0H)*100);
}
}
else{
_cN+=_XH;
}
if(this._UM>=3){
_cN+=","+_0H+","+_bN;
}
_cN+="\r\n";
}
this.setTestState("RawScore",_XH);
_cN+="[core_lesson]\r\n";
_cN+=this._lH();
if(this._UM<3){
_cN+="[mercury_data]\r\n";
_cN+="maxtestscore="+_0H+"\r\n";
_cN+="mintestscore="+_bN+"\r\n";
}
this._XM(_bD+encodeURIComponent(_cN));
_bD="command=PutInteractions&version="+this._UM+"&session_id="+this._SM+"&aicc_data=";
_cN="\"date\", \"time\", \"interaction_id\", \"objective_id\", \"type_interaction\", \"correct_response\", \"student_response\", \"result\", \"weighting\", \"latency\" \r\n";
this._XM(_bD+encodeURIComponent(_cN)+encodeURIComponent(this._aN));
}
this._XM("command=ExitAU&version="+this._UM+"&session_id="+this._SM);
};
this._lD_mN=function(_BD){
var _5G=this._lD_6G(_BD);
var _nN="";
var _1G=this._ZG&&(_5G=="choice"||_5G=="true-false"||_5G=="matching"||_5G=="sequencing");
var _oN=0;
for(var i=0;i<_BD._bH.length;i++)
{
var _UD=_BD._bH[i];
if(_UD._vD){
_oN++;
_nN=this._0G(_nN,_1G,_BD,_UD,true);
}
}
if(_oN>1&&!_BD._pN){
_nN="{"+_nN+"}";
}
return _nN;
};
this._lD_qN=function(start){
var _qN=this._YM["LESSON_LOCATION"];
if(_qN){
var _rN=TBK._sN(_qN);
if(_rN){
return _rN;
}
}
return start;
};
this.getStudentName=function(){
return this._YM["STUDENT_NAME"];
};
this._tN=function(_BD){
if(_BD._uN){
if(this._aN){
this._aN+="\r\n";
}
var _vN=new Date(_BD._wN);
this._aN+="\""+_vN.getFullYear()+"/"+this._wH(_vN.getMonth()+1)+"/"+this._wH(_vN.getDate())+"\", ";
this._aN+="\""+this._wH(_vN.getHours())+":"+this._wH(_vN.getMinutes())+":"+this._wH(_vN.getSeconds())+"\", ";
this._aN+="\""+this._lD_hH(_BD)+"\", ";
this._aN+="\"oid\", ";
this._aN+="\""+this._lD_6G(_BD)+"\", ";
this._aN+="\""+this._lD_mN(_BD)+"\", ";
this._aN+="\""+this._lD_yH(_BD)+"\", ";
var _XH=_BD.lastScore;
var _0H=_BD._0H;
if(this._ZG&&(this._UM<3.0)){
if(_XH<=0||_0H<=0){
_XH=0;
}
else{
_XH=Math.round((_XH/_0H)*100);
}
}
this._aN+="\""+_XH+"\", ";
this._aN+="\""+_0H+"\", ";
this._aN+="\""+this._uH(_BD._xN)+"\"";
if(_BD._6G!="Simulation"){
this.__H(_BD.id,this._7G(_BD));
}
}
};
this._XM=function(_yN){
return TBK.post(this._RM+this._QM,_yN);
};
if(!this._VM()){
return{};
}
this._3M();
}
};
TBK._KM._LM[TBK._KM._LM.length]={
_MM:"NoLMS",_NM:"self",_OM:function(url,_PM){
var _TM={_MM:this._MM};
return _TM;
},_jE:function(_TM){
if(_TM._MM!="NoLMS"){
_HH._IH("NoLMS constructor: Wrong credential type \""+_TM._MM+"\" received");
return null;
}
_YG.call(this);
this._MM="NoLMS";
}
};
function _BookEntry(_DE,_AE){
this._DE=_DE;
this._AE=_AE;
}
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._9C['_Book']){
this.constructor.prototype._9C['_Book']=true;
}
_Book._fE=this;
}
}
_Book.prototype=new _Object();
_Book._fE=null;
_Book._gE=[];
_Book._hE=false;
_Book._iE=[];
_Book.prototype.addLink=function(){
TBK._jE.addLink();
};
_Book.prototype.addNote=function(){
TBK._jE.addNote();
};
_Book.prototype.alert=function(message){
TBK._kE();
this._lE().alert(message);
};
_Book.prototype.asNumber=function(x){
if(!this.isNumber(x)){
var message=TBK._mE(TBK._YD('_ZD.29'),[""+x]);
window.alert(message);
}
return 1*x;
};
_Book.prototype.asString=function(x){
return""+x;
};
_Book.prototype.complete=function(_nE,_oE){
TBK.exit(TBK._pE,_nE,_oE,TBK._qE,TBK._rE);
};
_Book.prototype.confirm=function(message){
TBK._kE();
return this._lE().confirm(message);
};
_Book.prototype.dereference=function(id){
return TBK._sE(id);
};
_Book.prototype.dereferenceByName=function(name,id){
return TBK._tE(name,id);
};
_Book.prototype.discard=function(_nE,_oE){
TBK.exit(TBK._uE,_nE,_oE,TBK._vE,TBK._rE);
};
_Book.prototype.exit=function(_wE,_xE,_yE,_oE){
if(_wE==TBK._zE){
this.restart(false,_oE);
}
else{
TBK.exit(_wE,false,_oE,_xE,_yE);
}
};
_Book.prototype.getContents=function(){
var contents=new Array(_Book._gE.length);
for(var i=0;i<_Book._gE.length;i++)
{
contents[i]=_Book._gE[i]._AE;
}
return contents;
};
_Book.prototype.getDescription=function(){
return TBK._jE.getDescription();
};
_Book.prototype.getHtmlContents=function(){
var contents="";
if(TBK._BE._CE){
for(var i=0;i<_Book._gE.length;i++)
{
contents+="<a href='#"+_Book._gE[i]._DE+"'>";
if(_Book._gE[i]._DE==TBK._BE._CE.id){
contents+="<img border=0 src=../resources/index.gif><b>";
}
else{
contents+="<img border=0 src=../resources/index2.gif>";
}
contents+=_Book._gE[i]._AE;
if(_Book._gE[i]._DE==TBK._BE._CE.id){
contents+="</b>";
}
contents+="</a>";
if(i<(_Book._gE.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._jE.getStudentName();
};
_Book.prototype.getTestState=function(name){
return TBK._jE.getTestState(name);
};
_Book.prototype.getTitle=function(){
return TBK._lD_EE();
};
_Book.prototype.gotoBack=function(transition){
return TBK._BE.gotoBack(transition);
};
_Book.prototype.gotoBook=function(url){
return TBK._BE.gotoBook(url);
};
_Book.prototype.gotoFirst=function(transition){
return TBK._BE.gotoFirst(transition);
};
_Book.prototype.gotoLast=function(transition){
return TBK._BE.gotoLast(transition);
};
_Book.prototype.gotoMarker=function(_dE){
return TBK._BE.gotoMarker(_dE);
};
_Book.prototype.gotoNext=function(transition){
return TBK._BE.gotoNext(transition);
};
_Book.prototype.gotoPrevious=function(transition){
return TBK._BE.gotoPrevious(transition);
};
_Book.prototype._FE=function(id,transition){
return TBK._BE._FE(id,transition);
};
_Book.prototype._GE=function(){
return TBK._BE._GE();
};
_Book.prototype._HE=function(){
return TBK._BE._HE();
};
_Book.prototype.gotoURL=function(url,id,x,y,cx,cy,_IE,_JE,_KE){
return TBK._BE.gotoURL(url,id,x,y,cx,cy,_IE,_JE,_KE);
};
_Book.prototype.hasNext=function(){
return TBK._LE.hasNext(TBK._ME);
};
_Book.prototype.hasPrevious=function(){
return TBK._LE.hasPrevious(TBK._ME);
};
_Book.prototype.integerToRGB=function(_NE){
return TBK.integerToRGB(_NE);
};
_Book.prototype.isNumber=function(x){
return TBK.isNumber(x);
};
_Book.prototype.millisecondsToTime=function(ms){
return TBK.millisecondsToTime(ms);
};
_Book.prototype.popupBook=function(url,_OE){
return TBK._BE.popupBook(url,_OE);
};
_Book.prototype.popupPage=function(id,cx,cy,_OE){
return TBK._BE.popupPage(id,cx,cy,_OE);
};
_Book.prototype.playMovie=function(url){
TBK.playMovie(url);
};
_Book.prototype.playSound=function(url){
TBK.playSound(url);
};
_Book.prototype.popupText=function(text){
var _PE=(text!=null)?""+text:" ";
if(_PE.length==0){
_PE=" ";
}
this._QE(_PE,true,true,true);
};
_Book.prototype.post=function(url){
return TBK.post(url);
};
_Book.prototype.print=function(){
this._lE().print();
};
_Book.prototype.prompt=function(message,_RE){
TBK._kE();
return this._lE().prompt(message,_RE);
};
_Book.prototype.reset=function(){
TBK._SE();
this.fireEventInternal("reset","",this);
};
_Book.prototype.resetPage=function(_DE){
var _TE=TBK._sE(_DE);
if(_TE){
_TE.reset();
}
else if(_Page._UE(_DE)){
_TE=TBK.Persistence.dereference(_DE);
if(_TE){
_TE.reset();
}
}
};
_Book.prototype.restart=function(_nE,_oE){
if(!_oE||window.confirm(TBK._YD('_ZD.44'))){
this.reset();
_VE=TBK._lD_WE();
if(_VE){
TBK._BE._FE(_VE);
}
}
};
_Book.prototype.rgbToInteger=function(_XE){
return TBK.rgbToInteger(_XE);
};
_Book.prototype.SCORM_LMSCommit=function(){
return TBK.LMSCommit();
};
_Book.prototype.SCORM_LMSGetDiagnostic=function(_YE){
return TBK.LMSGetDiagnostic(_YE);
};
_Book.prototype.SCORM_LMSGetErrorString=function(_YE){
return TBK.LMSGetErrorString(_YE);
};
_Book.prototype.SCORM_LMSGetLastError=function(){
return TBK.LMSGetLastError();
};
_Book.prototype.SCORM_LMSGetValue=function(_ZE){
return TBK.LMSGetValue(_ZE);
};
_Book.prototype.SCORM_LMSSetValue=function(_ZE,value){
return TBK.LMSSetValue(_ZE,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.setTestState=function(name,value){
TBK._jE.setTestState(name,value);
};
_Book.prototype.showCollaborate=function(){
TBK._jE.showCollaborate();
};
_Book.prototype.showExperts=function(){
TBK._jE.showExperts();
};
_Book.prototype.showFeedback=function(){
TBK._jE.showFeedback();
};
_Book.prototype.showGlossary=function(){
TBK._jE.showGlossary();
};
_Book.prototype.showHelp=function(){
TBK._jE.showHelp();
};
_Book.prototype.showProgress=function(){
TBK._jE.showProgress();
};
_Book.prototype.showSearch=function(){
TBK._jE.showSearch();
};
_Book.prototype.showStudyaids=function(){
TBK._jE.showStudyaids();
};
_Book.prototype.status=function(message){
this._lE().status=message;
};
_Book.prototype.stopAllMedia=function(){
TBK._0E();
if(window['_1E']){
_1E.stopAllMedia();
}
};
_Book.prototype.suspend=function(_nE,_oE){
TBK.exit(TBK._2E,_nE,_oE,TBK._3E,TBK._rE);
};
_Book.prototype.testStateValueExists=function(name){
return TBK._jE.testStateValueExists(name);
};
_Book.prototype.toLowerCase=function(s){
return(""+s).toLowerCase();
};
_Book.prototype.toUpperCase=function(s){
return(""+s).toUpperCase();
};
_Book.prototype._QE=function(text,_4E,_0D,_5E){
if((text==null)||(text.length==0)){
return;
}
TBK._kE();
if(_Book._hE&&_4E){
_Book._iE[_Book._iE.length]=this.id+"."+'_QE'+"("+TBK._6E(text)+","+_4E+","+_0D+","+_5E+")";
}
else{
if(_4E){
TBK._7E.style.zIndex=_Page._8E;
TBK._7E.style.visibility="inherit";
_Book._hE=true;
}
else{
TBK._9E(TBK._7E);
}
if(_0D){
var ct=Math.max(text.length*14,32);
var cx=Math.min(300,ct);
var cy=8+(12*(Math.floor(ct/cx)+1));
var __E=this._$E(cx,cy);
var xx=__E[0];
var yy=__E[1];
__E=TBK._aF(TBK.popupText,TBK._bF,text,cx,cy,true);
cx=__E[0];
cy=__E[1];
TBK._cF(TBK.popupText,xx,yy,cx,cy,(_Page._8E+_Page._dF)/2,null);
if(_5E){
TBK._cF(TBK._eF,xx+12,yy+12,cx,cy,_Page._dF,null);
}
else{
TBK._9E(TBK._eF);
}
}
else{
TBK._9E(TBK.popupText);
}
}
};
_Book.prototype.stop=function(){
this.fireEvent("stop","");
};
_Book.prototype.canTransition=function(){
return true;
};
_Book.prototype.start=function(){
this._fF=document.body;
this.fireEvent("start","");
};
_Book.prototype._lE=function(){
return window;
};
_Book.prototype._$E=function(cx,cy){
var xx=Math.min(TBK._gF+8,TBK._hF-cx);
var yy=Math.min(TBK._iF+8,TBK._jF-cy);
return[xx,yy];
};
_Book._kF=function(name,_lF,_mF,_nF,_oF,_pF){
document.write("<applet id=\""+name+"\" name=\""+name+"\" code=\""+_lF+"\" codebase=\""+_mF+"\" "+"archive=\""+_nF+"\" width=\"0\" height=\"0\" MAYSCRIPT>");
if(_oF){
document.write("<param name=\"debug\" value=\"true\">");
}
if(_pF){
document.write("<param name=\"cabbase\" value=\"bootstrapSigned.cab\">");
}
document.write("</applet>");
};
_Book._qF=function(name,_lF,_mF,_nF,_rF,_oF,_pF){
document.write("<applet id=\""+name+"\" name=\""+name+"\" code=\""+_lF+"\" codebase=\""+_mF+"\" "+"archive=\""+_nF+"\" width=\"0\" height=\"0\" MAYSCRIPT>");
if(_rF!=null){
document.write("<param name=\"encoding\" value=\""+_rF+"\">");
}
if(_oF){
document.write("<param name=\"debug\" value=\"true\">");
}
if(_pF){
document.write("<param name=\"cabbase\" value=\"bootstrapSigned.cab\">");
document.write("<param name=\"signedApplet\" value=\"true\">");
}
document.write("</applet>");
};
_Book._sF=function(id,_7C,_tF){
document.write("<object classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" "+(_tF?"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=\""+_7C+"\">");
document.write("<param name=\"ShowControls\" value=\"1\">");
document.write("<param name=\"ShowDisplay\" value=\"0\">");
document.write("</object>");
};
_Book._uF=function(_vF){
if(_Book._hE){
TBK._7E.style.visibility="hidden";
TBK._9E(TBK._eF);
TBK._9E(TBK.popupText);
_Book._hE=false;
if(_Book._iE.length>0){
if(_vF==true){
_Book._iE=[];
}
else{
var _wF=_Book._iE[0];
TBK._xF(_Book._iE,0);
eval(_wF);
}
}
}
};
function _WO(_1C,_2C,_3C,_UO,_VO){
if(arguments.length>0){
if(!this.constructor.prototype._9C['_WO']){
this.constructor.prototype._9C['_WO']=true;
}
if(_1C){
this._2C=_2C?_2C:[];
this._3C=_3C;
this._UO=_UO;
this._VO=_VO;
this._71=true;
this._81=this._VO?Number.MAX_VALUE:Number.MIN_VALUE;
this._91=this._81;
this.__1=new Array(this._2C.length);
}
else{
this._AP=function(){};
this._zP=function(){};
this._2O=function(){};
this._1O=function(){};
this._wP=function(){};
this._$1=function(){};
}
}
else{
this._AP=function(_a2){
this._71=false;
for(var i=0;i<this._2C.length;i++)
{
if(!this.__1[i]){
var _dE=0+this._2C[i];
if((this._VO&&(_dE>=_a2))||(!this._VO&&(_dE<=_a2))){
this.__1[i]=true;
this.fireEvent("markerIndex",""+i);
this.fireEvent("timeMarker",""+_dE);
}
}
}
if(this._3C){
var _uR=this._VO?Math.ceil(_a2/this._3C):Math.floor(_a2/this._3C);
if((this._VO&&(_uR<this._81))||(!this._VO&&(_uR>this._81))){
this._81=_uR;
this.fireEvent("timeMarker",""+(_uR*this._3C));
}
}
};
this._zP=function(){
if(this.__1){
for(var i=0;i<this.__1.length;i++)
{
this.__1[i]=false;
}
}
this._81=this._VO?Number.MAX_VALUE:Number.MIN_VALUE;
this._91=this._81;
};
this._2O=function(){
if(!this._b2){
this._b2=window.setTimeout(this.id+"."+'_$1'+"()",100);
}
};
this._1O=function(){
if(this._b2){
window.clearTimeout(this._b2);
this._b2=null;
}
this._wP();
};
this._wP=function(){
this._zP();
if(!this._71){
this._71=true;
this.fireEvent("complete","");
}
};
this._$1=function(){
window.onerror=_WO._wI;
var _a2=this.getPosition();
if((this._VO&&(_a2>this._91))||(!this._VO&&(_a2<this._91))){
this._zP();
}
else{
this._91=_a2;
}
if(this.getStopped()){
if(!this._71){
this.stop();
this._wP();
}
}
else if(this.getPlaying()){
this._AP(_a2);
}
window.onerror=_HH._wI;
if(this._b2){
this._b2=window.setTimeout(this.id+"."+'_$1'+"()",100);
}
}
}
}
_WO._wI=function(){
window.onerror=_HH._wI;
return true;
};
function _1E(id,_VC,enabled,visibility,_WC,name,title,parent,_XC,_YC,_kM,_0C,_1C,_2C,_3C,_UO,_VO){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,_VC,enabled,visibility,_WC,name,title,parent);
_WO.call(this,_1C,_2C,_3C,_UO,_VO);
if(!this.constructor.prototype._9C['_1E']){
this.constructor.prototype._9C['_1E']=true;
this._rD_XO('position','_YO');
}
this._kM=_kM;
this._XC=_XC;
this._YC=_YC;
this._0C=_0C;
}
}
_1E.prototype=new _Object();
_WO.call(_1E.prototype);
_1E._ZO={};
_1E.prototype.setPlaying=function(playing){
if(TBK._hG(playing)){
this.play();
}
else{
this.stop();
}
this.fireEvent("change","playing");
return this.getPlaying();
};
_1E.prototype._fD=function(_$C){
if(this._0O){
window.clearTimeout(this._0O);
}
this._0O=window.setTimeout(_$C,500);
};
_1E.prototype._dD=function(){
this._aD=TBK._tG(this._kM);
};
_1E.prototype._yG=function(){
this._aD=null;
};
_1E.prototype._ZF=function(_0F){
_1E._ZO[this.id]=this;
};
_1E.prototype._2F=function(){
if(TBK._BE._CE){
this.stop();
this._1O();
if(this._0O){
window.clearTimeout(this._0O);
}
}
};
_1E.prototype._1F=function(){
if(TBK._BE._CE){
this.stop();
if(this._XC){
this.play();
}
if(this._UO){
this._2O();
}
}
};
_1E.prototype._KD=function(){
this.stop();
this.setPosition(0);
};
_1E.prototype._3O=function(){
this.stop();
this.play();
};
_1E.prototype._jJ=function(){
if(_1E._ZO[this.id]){
delete _1E._ZO[this.id];
}
};
_1E.stopAllMedia=function(){
for(var id in _1E._ZO)
{
var _4O=TBK._sE(id);
if(_4O){
_4O.stop();
_4O.setPosition(0);
}
}
};
function _Sound(id,name,title,parent,_XC,_YC,_0C,_31,_1C,_2C,_3C){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_1E.call(this,id,null,true,false,false,name,title,parent,_XC,_YC,null,_0C,_1C,_2C,_3C,false,false);
if(!this.constructor.prototype._9C['_Sound']){
this.constructor.prototype._9C['_Sound']=true;
}
this._31=TBK._eD(_31);
this._nW=-1;
this.position=0;
this._tP=0;
}
}
_Sound.prototype=new _1E();
_Sound.prototype.getPlaying=function(){
if(this._nW>=0){
return((TBK._nT[this._nW].ReadyState>=3)&&(TBK._nT[this._nW].PlayState==2));
}
else{
return false;
}
};
_Sound.prototype.getPosition=function(){
if((this._nW>=0)&&(TBK._nT[this._nW].ReadyState>=3)){
this.position=Math.round(TBK._nT[this._nW].CurrentPosition*1000);
}
return this.position;
};
_Sound.prototype.getStopped=function(){
if(this._nW>=0){
return((TBK._nT[this._nW].ReadyState<3)||(TBK._nT[this._nW].PlayState==0));
}
else{
return true;
}
};
_Sound.prototype.pause=function(){
if(this._nW>=0){
if(TBK._nT[this._nW].ReadyState>=3){
TBK._nT[this._nW].Pause();
}
else{
this._fD(this.id+"."+'pause'+"()");
}
}
};
_Sound.prototype.play=function(){
if(this._nW==-1){
this._nW=TBK._$U();
if(this._nW>=0){
TBK._nT[this._nW].PlayCount=Math.max(0,this._0C);
TBK._nT[this._nW].FileName=this._31;
if(this.position>0){
this._rD_sR();
}
TBK._oT[this._nW]=this.id;
TBK._pT[this._nW]=this._31;
}
}
else{
TBK._nT[this._nW].Play();
}
this._2O();
};
_Sound.prototype.setPosition=function(position){
this.position=Math.max(0,Math.min(this._YC,position));
if(this._nW>=0){
this._rD_sR();
}
this.fireEvent("change","position");
return this.getPosition();
};
_Sound.prototype.stop=function(){
this.position=0;
if(this._nW>=0){
TBK._nT[this._nW].Stop();
TBK._oT[this._nW]=null;
TBK._pT[this._nW]=null;
this._nW=-1;
}
this._1O();
};
_Sound.prototype._rD_sR=function(){
if(TBK._nT[this._nW].ReadyState>=3){
TBK._nT[this._nW].CurrentPosition=this.position/1000;
}
else{
this._fD(this.id+"."+'_rD_sR'+"()");
}
};
TBK._BE=new Object();
TBK._BE._RY=[];
TBK._BE._CE=null;
TBK._BE._SY=null;
TBK._BE._3M=function(){
};
TBK._BE.gotoBack=function(transition){
if(this._RY.length>1){
this._RY.length--;
this._FE(this._RY[this._RY.length-1],transition);
}
};
TBK._BE.gotoBook=function(url){
TBK.bootstrap(url,true,"","",false);
};
TBK._BE.gotoFirst=function(transition){
if(this._CE&&this._CE._TQ){
this._FE(this._CE._TQ,transition);
}
};
TBK._BE.gotoLast=function(transition){
if(this._CE&&this._CE._UQ){
this._FE(this._CE._UQ,transition);
}
};
TBK._BE.gotoMarker=function(_dE){
var i=_dE.indexOf("/");
if(i==-1){
this._FE(_dE,"");
}
else{
this._FE(_dE.substring(0,i),_dE.substring(i+1));
}
};
TBK._BE.gotoNext=function(transition){
if(this._CE&&this._CE._VQ){
this._FE(this._CE._VQ,transition);
}
};
TBK._BE.gotoPrevious=function(transition){
if(this._CE&&this._CE._WQ){
this._FE(this._CE._WQ,transition);
}
};
TBK._BE._FE=function(id,transition){
if(!id){
_HH._IH("TBK.Sequence.gotoPage(): Called with no page id.");
return false;
}
id=TBK._UV(id);
if(this._CE&&this._CE.id==id){
return true;
}
if(!TBK.Persistence._OR(id)){
_HH._IH("TBK.Sequence.gotoPage(): Could not load page "+id);
return false;
}
var _xI=TBK._YD('_ZD.3');
window.status=TBK._mE(_xI,[id]);
TBK._wW(transition);
var _OL=100;
if(this._JT){
var _BI=new Date();
_OL=Math.max(_OL,this._JT-_BI.getTime());
this._JT=0;
}
if(this._3Q){
window.clearTimeout(this._3Q);
}
var _wF='TBK._BE._1V'+"('"+id+"')";
this._3Q=window.setTimeout(_wF,_OL);
return true;
};
TBK._BE._GE=function(){
};
TBK._BE._HE=function(){
};
TBK._BE.gotoURL=function(url,id,x,y,cx,cy,_IE,_JE,_KE){
if(url){
url=""+TBK._FU(url);
if(url.indexOf("javascript:")==0){
eval(url.substr(11));
}
else if(url.indexOf("mailto:")==0){
window.location.href=url;
}
else{
var _wF="status=yes";
if((cx>0)&&(cy>0)){
x+=TBK.screenX;
y+=TBK.screenY;
if(cx>=window.screen.availWidth){
x=0;
_KE=(cx>window.screen.availWidth)?true:_KE;
cx=window.screen.availWidth;
}
else{
if(x+cx>window.screen.availWidth){
x=window.screen.availWidth-cx;
}
}
if(cy>=window.screen.availHeight){
y=0;
_KE=(cy>window.screen.availHeight)?true:_KE;
cy=window.screen.availHeight;
}
else{
if(y+cy>window.screen.availHeight){
y=window.screen.availHeight-cy;
}
}
_wF+=",left="+x+",top="+y;
_wF+=",width="+cx+",height="+cy;
}
_wF+=_IE?",toolbar=yes,location=yes,menubar=yes":",toolbar=no,location=no,menubar=no";
_wF+=",resizable="+(_JE?"yes":"no");
_wF+=",scrollbars="+(_KE?"yes":"no");
window.open(url,id.replace(/\./g,""),_wF);
}
}
};
TBK._BE.popupBook=function(url,_OE){
TBK.bootstrap(url,false,TBK._gF,TBK._iF,TBK._hG(_OE));
};
TBK._BE.popupPage=function(id,cx,cy,_OE){
TBK._kE();
this.gotoURL("index.html#"+id+"?logonRequired=false&closeOnClick="+(TBK._hG(_OE)?"true":"false"),"",TBK._gF,TBK._iF,cx?cx:TBK._lD_ZT(),cy?cy:TBK._lD_YT(),false,false,false);
};
TBK._BE._TY=function(){
};
TBK._BE._UY=function(){
};
TBK._BE._lD_VY=function(){
};
TBK._BE._lD_WY=function(){
};
TBK._BE._lD_CE=function(){
};
TBK._BE._lD_XY=function(){
};
TBK._BE._lD_SY=function(){
};
TBK._BE._lD_WE=function(){
};
TBK._BE._lD_gR=function(){
};
TBK._BE._YY=function(_ZY){
if(!TBK._qW){
return;
}
var _TE=TBK._sE(_ZY);
this._SY=_TE;
if(_TE){
var _0Y=null;
if(this._0Y){
_0Y=window[this._0Y];
if(!_0Y){
_HH._IH("Warning: Destination page "+this._0Y+" not already loaded in TBK.Sequence.pageUnloaded()");
_0Y=TBK.Persistence._OR(this._0Y);
}
delete this._0Y;
}
var _1Y=TBK._lD_1T();
this._2Y=[];
_TE._6Q(this._2Y);
this._3Y(_0Y);
for(var i=0;i<this._2Y.length;i++)
{
var p=this._2Y[i];
var _eR=!TBK._rV(p,this._4Y);
p._dR(_eR);
if(_eR){
this._2Y[i]=null;
}
_1Y[p.id]=null;
}
TBK._HQ(TBK._lD_2T());
_1Y.TBK=null;
_1Y[_ZY]=null;
TBK._DT=null;
TBK._rD_LQ=null;
}
TBK.Persistence._QR();
this._CE=null;
if(TBK._TI){
TBK._2V();
}
};
TBK._BE._5Y=function(_ZY){
if(!TBK._qW){
TBK.Persistence._IR("");
return;
}
if(!this._6Y){
this._6Y=true;
var _7Y=document.getElementById("sysstandby");
TBK._9E(_7Y);
}
var _TE=window[_ZY];
if(!_TE){
_HH._IH("Warning: Page "+_ZY+" not already loaded in TBK.Sequence.pageLoaded()");
_TE=TBK.Persistence._OR(_ZY);
}
if(_TE){
this._CE=_TE;
var _1Y=TBK._lD_1T();
_1Y.TBK=TBK;
TBK._jE._rD_CE(_TE);
if(!this._4Y){
this._3Y(_TE);
}
TBK._rD_3T(this._8Y.width,this._8Y.height);
TBK._0T();
TBK._lD_2T().oncontextmenu=TBK._5U;
TBK._dO(TBK._lD_2T(),_TE,["click","dblclick","keydown","keypress","keyup","mousedown","mouseup"]);
var i;
var p;
if(!this._2Y){
this._2Y=[];
}
_Page._2Q=[];
for(i=0;i<this._4Y.length;i++)
{
p=this._4Y[i];
if(p._SQ){
for(var j=0;j<p._SQ.length;j++)
{
var _uI=p._SQ[j];
if(_uI){
_Page._2Q[_Page._2Q.length]=_uI;
}
}
}
_1Y[p.id]=p;
p._aR();
}
for(var i=0;i<this._4Y.length;i++)
{
TBK.Persistence._HD_FR(this._4Y[i]);
}
for(var i=0;i<this._4Y.length;i++)
{
p=this._4Y[i];
if(!TBK._rV(p,this._2Y)){
p._$Q();
}
}
if(this._RY.length==0){
this._RY[0]=_TE.id;
}
else if(_TE.id!=this._RY[this._RY.length-1]){
this._RY[this._RY.length]=_TE.id;
}
_TE._cR();
TBK._DT=_1Y.document.getElementById("sysfocusRect");
_Page.tabIndex=-1;
_Page._kR(false);
for(var i=0;i<this._4Y.length;i++)
{
p=this._4Y[i];
if(!TBK._rV(p,this._2Y)){
p.fireEvent("load","");
}
}
delete this._2Y;
delete this._4Y;
delete this._8Y;
var _YC=new Date().getTime()-this.start;
var _xI=TBK._YD('_ZD.4');
window.status=TBK._mE(_xI,[_TE.id,_YC]);
}
};
TBK._BE._rM=function(_$C,_iM){
if(this._CE){
switch(_$C){
case "back":return(this._RY.length>1);
case "first":return!!(this._CE._TQ&&(this._CE._TQ!=this._CE.id));
case "last":return!!(this._CE._UQ&&(this._CE._UQ!=this._CE.id));
case "next":return!!(this._CE._VQ&&(this._CE._VQ!=this._CE.id));
case "previous":return!!(this._CE._WQ&&(this._CE._WQ!=this._CE.id));
default:return true;
}
}
else{
return false;
}
};
TBK._BE._sM=function(_$C,_iM,transition){
if(this._CE){
switch(_$C){
case "back":return this.gotoBack(transition);
case "book":return this.gotoBook(_iM);
case "first":return this._FE(this._CE._TQ,transition);
case "last":return this._FE(this._CE._UQ,transition);
case "next":return this._FE(this._CE._VQ,transition);
case "previous":return this._FE(this._CE._WQ,transition);
case "page":return this._FE(_iM,transition);
case "popup":return this.popupPage(_iM,0,0,false);
case "popup2":return this.popupBook(_iM,false);
case "popupCloseOnClick":return this.popupPage(_iM,0,0,true);
case "popupCloseOnClick2":return this.popupBook(_iM,true);
case "url":return this.gotoURL(_iM,"MEF021852",0,0,0,0,true,true,true);
}
}
};
TBK._BE._1V=function(id){
if(this._3Q){
window.clearTimeout(this._3Q);
}
if(_Book._hE){
var _wF='TBK._BE._1V'+"('"+id+"')";
this._3Q=window.setTimeout(_wF,100);
return;
}
else{
this._3Q=null;
}
this.start=new Date().getTime();
_Book._uF(true);
TBK._0E();
this._0Y=id;
TBK.Persistence._IR(id);
};
TBK._BE._3Y=function(_TE){
this._4Y=[];
this._8Y={};
this._8Y.width=0;
this._8Y.height=0;
if(_TE){
_TE._8Q(this._4Y,_Page._1P,_Page._HJ,this._8Y);
}
};
function _Sequence(_mV,__G,_QH){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
this._mV=_mV;
this.__G=__G;
this._QH=_QH;
}
}
TBK._BE._gE=[];
function _Scrollable(_KE){
if(arguments.length>0){
if(!this.constructor.prototype._9C['_Scrollable']){
this.constructor.prototype._9C['_Scrollable']=true;
}
this._KE=_KE;
this.pan=0;
this.scroll=0;
this.savePropertyDefault('pan');
this.savePropertyDefault('scroll');
}
else{
this.getPan=function(){
if(this._fF){
return this._fF.scrollLeft;
}
else{
return this.pan;
}
};
this.getScroll=function(){
if(this._fF){
return this._fF.scrollTop;
}
else{
return this.scroll;
}
};
this.setPan=function(pan){
this._HDpan(1*pan);
this.fireEvent("change","pan");
return this.getPan();
};
this.setScroll=function(scroll){
this._HDscroll(1*scroll);
this.fireEvent("change","scroll");
return this.getScroll();
};
this._HDpan=function(pan){
pan=Math.max(pan,0);
if(this._fF){
this._fF.scrollLeft=pan;
this.pan=this._fF.scrollLeft;
}
else{
this.pan=pan;
}
};
this._HDscroll=function(scroll){
scroll=Math.max(scroll,0);
if(this._fF){
this._fF.scrollTop=scroll;
this.scroll=this._fF.scrollTop;
}
else{
this.scroll=scroll;
}
};
this._yG=function(){
this.persistProperty('pan');
this.persistProperty('scroll');
}
}
}
function _Layer(id,_VC,enabled,visibility,_WC,name,title,parent,_aO){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,_VC,enabled,visibility,_WC,name,title,parent);
_Scrollable.call(this,true);
if(!this.constructor.prototype._9C['_Layer']){
this.constructor.prototype._9C['_Layer']=true;
}
this._aO=_aO;
}
}
_Layer.prototype=new _Object();
_Scrollable.call(_Layer.prototype);
_Layer.prototype._bO=_Layer.prototype.fireEventInternal;
_Layer.prototype.fireEventInternal=function(event,_dE,_JG,_cO){
if(this._aO&&TBK._BE._CE&&(this._yM!=TBK._BE._CE)){
this.cancelBubble();
TBK._BE._CE.fireEvent(event,_dE,_cO);
}
else{
this._bO(event,_dE,_JG,_cO);
}
};
_Layer.prototype._dD=function(){
if(this._aO&&this._fF){
TBK._dO(this._fF,this,["click","dblclick","keydown","keypress","keyup","mousedown","mouseup"]);
}
};
function _uD(id,_VC,enabled,visibility,_WC,name,title,parent,_vD,_wD,_xD,_yD){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,_VC,enabled,visibility,_WC,name,title,parent);
if(!this.constructor.prototype._9C['_uD']){
this.constructor.prototype._9C['_uD']=true;
}
this._vD=_vD;
this._wD=_wD;
this._xD=_xD;
this._yD=_yD;
this.answered=false;
this._zD=null;
this._AD=null;
this.value=null;
}
}
_uD.prototype=new _Object();
_uD.prototype.findAnswerIdentification=function(){
return this._wD?"<else>":this.getName();
};
_uD.prototype.getAnswered=function(){
return this.answered;
};
_uD.prototype.initializeAnswer=function(_BD){
if(!_BD._CD){
_BD.setProperty('_CD',0);
}
if(_BD._CD<_Question._DD.length){
this.setProperty('_zD',_Question._DD.substr(_BD._CD++,1));
_BD.setProperty('_CD',_BD._CD);
}
else{
this.setProperty('_zD',"");
}
this.setProperty('_AD',TBK._ED(this.findAnswerIdentification()));
};
_uD.prototype.setAnsweredState=function(answered){
var _BD=this._FD();
if(_BD){
_BD.setAnsweredState(this,answered);
}
else{
this.setProperty('answered',answered);
}
return this.getAnswered();
};
_uD.prototype._FD=function(){
if(!this._GD('_AnswerableContainer')){
return this._GD('_Question');
}
else{
return null;
}
};
_uD.prototype._rDanswered=function(answered){
this._HDanswered(answered);
return this.getAnswered();
};
_uD.prototype._ID=function(_JD){
return(this._wD||(_JD==this.name));
};
_uD.prototype._HDanswered=function(answered){
this.answered=answered;
this.paint();
};
_uD.prototype._KD=function(){
this.setProperty('answered',false);
};
function _Feedback(id,parent,_iM,_jM,_dE,_kM,_lM,_mM,text,_nM,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._9C['_Feedback']){
this.constructor.prototype._9C['_Feedback']=true;
}
this._iM=_iM;
this._jM=_jM;
this._dE=_dE;
this._kM=_kM;
this._lM=_lM;
this._mM=_mM;
this.text=text;
this._nM=_nM;
this.transition=transition;
this.type=type;
}
}
_Feedback.prototype=new _Object();
_Feedback._oM=null;
_Feedback.prototype._ZF=function(_0F){
this._aD=TBK._sE(this._kM);
};
_Feedback.prototype._jJ=function(){
this._aD=null;
};
_Feedback._pM=function(id,_uI,type){
if(_uI._zJ){
for(var i=0;i<_uI._zJ.length;i++)
{
var _qM=_uI._zJ[i];
if(_qM.isInstance('_Feedback')&&((_qM.type=="always")||(_qM.type==type))){
if(_Feedback._oM){
if(_Feedback._oM.getProperty('_XF')){
_Feedback._oM.reset();
}
_Feedback._oM=null;
}
if(_qM._dE){
_uI.fireEvent("user",_qM._dE);
}
if(_qM.text){
_Feedback._0D(id,_qM.text,_qM._nM);
}
if((_qM._jM!="none")&&TBK._BE._rM(_qM._jM,_qM._iM)){
TBK._BE._sM(_qM._jM,_qM._iM,_qM.transition);
}
if(_qM._lM){
TBK.playMovie(_qM._lM);
}
if(_qM._mM){
TBK.playSound(_qM._mM);
}
if(_qM._aD){
_qM._aD.reset();
_qM._aD.play();
_Feedback._oM=_qM._aD;
}
}
}
}
};
_Feedback._0D=function(id,text,_nM){
window.setTimeout('_Feedback._tM'+"(\""+id+"\","+TBK._6E(text)+",\""+_nM+"\")",50);
};
_Feedback._tM=function(id,text,_nM){
var _uM=TBK._sE(id);
if(((_nM=="auto")&&(!_uM||!_uM.getShowing()))||(_nM=="popup")){
if(text!=" "){
_Book._fE._QE(text,true,true,true);
}
text="";
}
if(_uM&&_uM.setHtmlText){
_uM.setProperty('htmlText',text);
}
};
function _Answerable(_ND,_OD,_PD){
if(arguments.length>0){
if(!this._9C['_Answerable']){
this._9C=TBK._QD(this._9C);
this._9C['_Answerable']=true;
if(!this._RD){
_Answerable.call(this);
}
}
this._ND=_ND;
this._OD=_OD;
this._PD=_PD;
this.locked=false;
if(typeof this._xD=="undefined"){
this._xD=null;
}
}
else{
this._SD=function(){
var _TD="";
if(this.isInstance('_uD')){
if(this.getProperty('answered')){
var _UD=this.findAnswerIdentification();
if(_UD){
_TD=TBK._ED(_UD,"log");
}
}
}
else{
var _VD=this._WD();
for(var i=0;i<_VD.length;i++)
{
if(_VD[i].getProperty('answered')){
_UD=_VD[i].findAnswerIdentification();
if(_UD){
_UD=TBK._ED(_UD,"log");
if(_TD){
_TD+="\t"+_UD;
}
else{
_TD=_UD;
}
}
}
}
}
return _TD;
};
this._XD=function(_BD){
if(this.locked){
var text=this._PD?TBK._YD(this._PD):TBK._YD('_ZD.36');
_Feedback._0D(_BD._1D,text,"auto");
}
return this.locked;
};
this._WD=function(){
return this._2D('_uD');
};
this._FD=function(){
if(!this._GD('_AnswerableContainer')){
return this._GD('_Question');
}
else{
return null;
}
};
this._3D=function(_4D){
this.setProperty('_OD',_4D);
};
this._5D=function(_4D){
if(!this._ND){
this.setProperty('locked',_4D);
}
};
this.initializeAnswers=function(_BD){
if(this.isInstance('_uD')){
this.initializeAnswer(_BD);
}
else{
var _VD=this._WD();
for(var i=0;i<_VD.length;i++)
{
_VD[i].initializeAnswer(_BD);
}
}
};
this._6D=this._KD;
this._KD=function(){
if(this._6D){
this._6D();
}
this.setProperty('locked',false);
};
this._7D=this._dD;
this._dD=function(){
if(this._7D){
this._7D();
}
if(this.getProperty('visible')==true){
this._rD_8D(true);
}
};
this._RD=true;
}
}
function _Text(id,_VC,enabled,visibility,_WC,name,title,parent,_ND,_OD,_PD,_vD,_wD,_xD,_yD,_c2,htmlText){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_uD.call(this,id,_VC,enabled,visibility,_WC,name,title,parent,_vD,_wD,_xD,_yD);
_Answerable.call(this,_ND,_OD,_PD);
_Scrollable.call(this,true);
if(!this._9C['_Text']){
this._9C['_Text']=true;
this._rD_XO('text','_YO');
}
this._c2=_c2;
this.htmlText=htmlText;
}
}
_Text.prototype=new _uD();
_Answerable.call(_Text.prototype);
_Scrollable.call(_Text.prototype);
_Text.prototype.getHtmlText=function(){
if(this._m0){
return this._m0.innerHTML;
}
else{
return this.htmlText;
}
};
_Text.prototype.getRtfText=function(){
return"";
};
_Text.prototype.getText=function(){
return TBK._0W(this.getHtmlText());
};
_Text.prototype.replaceMarker=function(_dE,text){
var contents=this.getHtmlText();
var i=contents.indexOf("#"+_dE);
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._HDhtmlText(""+text);
this.fireEvent("change","htmlText");
return this.getHtmlText();
};
_Text.prototype.setRtfText=function(text){
this._HDrtfText(text);
this.fireEvent("change","rtfText");
return text;
};
_Text.prototype.setText=function(text){
this._rD_vJ('htmlText',TBK._4I(text));
this.fireEvent("change","text");
return this.getText();
};
_Text.prototype._HDhtmlText=function(text){
if(this._m0){
this._m0.innerHTML=this._kI(text);
this.htmlText=this._m0.innerHTML;
}
else{
this.htmlText=text;
}
};
_Text.prototype._HDrtfText=function(text){
};
_Text.prototype._kI=function(text){
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
var _d2=this._zJ[i];
if(_d2.isInstance('_eI')){
text=_d2._kI(text);
}
}
}
return text;
};
_Text.prototype._dD=function(){
this._m0=this._fF;
this._HDhtmlText(this.htmlText);
};
_Text.prototype._vG=function(){
this._e2=this.getText();
};
_Text.prototype._f2=_Text.prototype._yG;
_Text.prototype._yG=function(){
this._f2();
this.htmlText=this.getHtmlText();
this._m0=null;
};
_Text.prototype._ZF=function(_0F){
this.addEventListener("click","*",this.id,'_g2');
};
_Text.prototype._FG=function(){
var _BD=this._FD();
if(_BD){
var _h2=this._2D('_Hotword');
if(_h2.length==0){
if(this.getAnswered()){
this.setProperty('backgroundColor',_BD._ZR);
}
else{
this.setProperty('backgroundColor',this._KP);
}
}
}
};
_Text.prototype.findAnswerIdentification=function(){
return this.getText();
};
function _g2(event,_dE,_JG){
var _BD=this._FD();
if(!_BD||(!this._XD(_BD)&&!_BD._XD())){
this._5D(true);
var _h2=this._2D('_Hotword');
if(!_dE&&(_h2.length==0)){
this.setAnsweredState(!this.getAnswered());
}
else{
if(_BD){
_BD._KN();
}
for(var i=0;i<_h2.length;i++)
{
_h2[i].setProperty('answered',false);
}
for(var i=0;i<_h2.length;i++)
{
if(_h2[i]._ID(_dE)){
_h2[i].setAnsweredState(true);
break;
}
}
}
}
}
function _Button(id,_VC,enabled,visibility,_WC,name,title,parent,_ND,_OD,_PD,_vD,_wD,_xD,_yD,checked,inverted,_3F,_4F,caption,_5F,_6F,_7F,_8F,_9F,__F,_$F,_aG,_bG,_cG,_dG){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_uD.call(this,id,_VC,enabled,visibility,_WC,name,title,parent,_vD,_wD,_xD,_yD);
_Answerable.call(this,_ND,_OD,_PD);
if(!this._9C['_Button']){
this._9C['_Button']=true;
}
this._5F=_5F;
this._6F=_6F;
this._7F=_7F;
this._8F=_8F;
this._9F=_9F;
this.__F=__F;
this._$F=_$F;
this._aG=_aG;
this._bG=_bG?"url("+_bG+")":"";
this._cG=_cG;
this._dG=_dG;
this._3F=_3F;
this.caption=caption;
this._eG=null;
this._4F=_4F;
this.inverted=inverted;
this._fG=false;
this.answered=checked;
}
}
_Button.prototype=new _uD();
_Answerable.call(_Button.prototype);
_Button._gG=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._HDcaption(caption);
this.fireEvent("change","caption");
return this.getCaption();
};
_Button.prototype.setChecked=function(checked){
if(!this.locked){
this._HDchecked(checked);
this.fireEvent("change","checked");
}
return this.getChecked();
};
_Button.prototype.setInverted=function(inverted){
inverted=TBK._hG(inverted);
if(inverted){
if(!this.inverted&&!this._$F&&(this._3F!="none")){
this._rD_iG(+1);
this._rD_jG(+1);
}
}
else{
if(this.inverted&&!this._$F&&(this._3F!="none")){
this._rD_iG(-1);
this._rD_jG(-1);
}
}
this._HDinverted(inverted);
this.paint();
this.fireEvent("change","inverted");
return this.getInverted();
};
_Button.prototype._HDcaption=function(caption){
this._rD_kG(""+caption);
};
_Button.prototype._HDchecked=function(checked){
this.setAnsweredState(TBK._hG(checked));
};
_Button.prototype._HDinverted=function(inverted){
this.inverted=inverted;
};
_Button.prototype._lG=function(){
var cx=this.getWidth();
var cy=this.getHeight();
if(this._3F=="shadowed"){
cx-=4;
cy-=4;
}
var _mG=TBK._nG(this._oG);
var _pG=TBK._nG(this._qG);
var _4F=this.caption?this._4F:"center";
var _rG=4;
switch(_4F){
case "bottom":var y=(cy-(_mG[1]+_rG+_pG[1]))/2;
TBK._sG(this._qG,(cx-_pG[0])/2,y+_mG[1]+_rG);
if(this.caption){
TBK._sG(this._oG,(cx-_mG[0])/2,y);
}
else{
TBK._9E(this._oG);
}
break;
case "center":case "stretch":TBK._sG(this._qG,(cx-_pG[0])/2,(cy-_pG[1])/2);
if(this.caption){
TBK._sG(this._oG,(cx-_mG[0])/2,(cy-_mG[1])/2);
}
else{
TBK._9E(this._oG);
}
break;
case "left":var x=(this._3F=="none")?0:(cx/3)-_pG[0];
TBK._sG(this._qG,x,(cy-_pG[1])/2);
if(this.caption){
TBK._sG(this._oG,x+_pG[0]+_rG,(cy-_mG[1])/2);
}
else{
TBK._9E(this._oG);
}
break;
case "right":var x=(this._3F=="none")?cx-_pG[0]:(2*cx)/3;
TBK._sG(this._qG,x,(cy-_pG[1])/2);
if(this.caption){
TBK._sG(this._oG,x-_mG[0]-_rG,(cy-_mG[1])/2);
}
else{
TBK._9E(this._oG);
}
break;
case "top":var y=(cy-(_mG[1]+_rG+_pG[1]))/2;
TBK._sG(this._qG,(cx-_pG[0])/2,y);
if(this.caption){
TBK._sG(this._oG,(cx-_mG[0])/2,y+_pG[1]+_rG);
}
else{
TBK._9E(this._oG);
}
break;
}
if(this.getProperty('visible')==true){
this._rD_8D(true);
}
};
_Button.prototype._dD=function(){
this._oG=TBK._tG(this._5F);
this._qG=TBK._tG(this._6F);
this._uG=TBK._tG(this._7F);
this._lG();
};
_Button.prototype._vG=function(){
this._wG=this.getCaption();
this._xG=this.getChecked();
};
_Button.prototype._yG=function(){
this._oG=null;
this._qG=null;
this._uG=null;
};
_Button.prototype._ZF=function(_0F){
this._zG=this._WC;
this.addEventListener("click","*",this.id,'_AG');
this.addEventListener("keydown","*",this.id,'_BG');
this.addEventListener("mousedown","*",this.id,'_CG');
this.addEventListener("mouseout","*",this.id,'_DG');
this.addEventListener("mouseover","*",this.id,'_EG');
};
_Button.prototype._FG=function(){
if(!this.enabled){
this._GG(false);
if(this.__F){
this._uG.src=this.__F;
}
}
else{
this._GG(true);
var _HG=false;
var _IG=false;
if(this.getInverted()){
if(this._$F){
this._uG.src=this._$F;
_HG=true;
}
if(this._cG){
this._fF.style.backgroundImage="url("+this._cG+")";
_IG=true;
}
}
else if(this.getAnswered()&&this._9F){
this._uG.src=this._9F;
_HG=true;
}
else if(_Button._gG==this){
if(this._aG){
this._uG.src=this._aG;
_HG=true;
}
if(this._dG){
this._fF.style.backgroundImage="url("+this._dG+")";
_IG=true;
}
}
if((!_HG)&&(this._uG.src!=this._8F)){
this._uG.src=this._8F;
}
if(!_IG){
if(this._fF.style.backgroundImage!=this._bG){
this._fF.style.backgroundImage=this._bG;
}
}
}
};
function _AG(event,_dE,_JG){
this.setChecked(!this.getChecked());
this._5D(true);
}
function _BG(event,_dE,_JG,keyCode,_KG,shift,_LG){
if(keyCode==32){
if(!this._fG){
this._fG=true;
this._CG(event,_dE,_JG);
}
}
}
function _MG(event,_dE,_JG,keyCode,_KG,shift,_LG){
this._fG=false;
this._NG=_OG;
this._NG(event,_dE,_JG);
this.fireEvent("click","");
}
function _CG(event,_dE,_JG){
if(!TBK._PG){
if(this._WC){
this.focus();
}
var _BD=this._FD();
if(!_BD||(!this._XD(_BD)&&!_BD._XD())){
this.setInverted(true);
TBK._QG(this.id);
if(event=="mousedown"){
this.addEventListener("mouseup","*",this.id,'_OG');
TBK._RG(this.id,"mouseup");
}
else if(event=="keydown"){
this.addEventListener("keyup","*",this.id,'_MG');
TBK._RG(this.id,"keyup");
}
}
}
}
function _DG(event,_dE,_JG){
_Button._gG=null;
this.paint();
}
function _EG(event,_dE,_JG){
_Button._gG=this;
this.paint();
}
function _OG(event,_dE,_JG){
if(event=="mouseup"){
this._SG("mouseup","*",this.id,'_OG');
TBK._TG(this.id,"mouseup");
}
else if(event=="keyup"){
this._SG("keyup","*",this.id,'_MG');
TBK._TG(this.id,"keyup");
}
this._UG();
TBK._VG(this.id);
this.setInverted(false);
}
_Button.prototype._rD_kG=function(caption){
this.caption=caption;
if(this._oG){
if(this._eG==null){
var _WG;
if(this._oG.getElementsByTagName){
_WG=this._oG.getElementsByTagName("A");
}
else if(this._oG.children){
_WG=this._oG.children;
}
if(_WG&&_WG.length>0){
this._eG=_WG[0].style.cssText;
}
else{
this._eG="";
}
}
this._oG.innerHTML=this.caption;
this._lG();
}
};
_Button.prototype.findAnswerIdentification=function(){
return this.caption;
};
_Button.prototype._GG=function(enabled){
if(enabled){
this._oG.style.filter="";
}
else{
this._oG.style.filter="alpha(opacity=25)";
}
};
function _Image(id,_VC,enabled,visibility,_WC,name,title,parent,_ND,_OD,_PD,_vD,_wD,_xD,_yD,_zN,_6F,_AN){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_uD.call(this,id,_VC,enabled,visibility,_WC,name,title,parent,_vD,_wD,_xD,_yD);
_Answerable.call(this,_ND,_OD,_PD);
if(!this._9C['_Image']){
this._9C['_Image']=true;
}
this._zN=_zN;
this._6F=_6F;
this._AN=_AN;
}
}
_Image.prototype=new _uD();
_Answerable.call(_Image.prototype);
_Image.prototype.getImage=function(){
return this._AN;
};
_Image.prototype.setImage=function(image){
this.restoreImage(image);
this.fireEvent("change","image");
return this.getImage();
};
_Image.prototype.restoreImage=function(image){
this._rD_BN(image);
};
_Image.prototype._rD_BN=function(image){
if(image!=this.getImage()){
this._AN=image;
this._qG.src=image;
}
};
_Image.prototype._dD=function(){
this._CN=TBK._tG(this._zN);
this._qG=TBK._tG(this._6F);
};
_Image.prototype._yG=function(){
this._CN=null;
this._qG=null;
};
_Image.prototype._ZF=function(_0F){
this.addEventListener("click","*",this.id,'_DN');
};
_Image.prototype._FG=function(){
if(this._FD()){
var _EN=this._2D('_eE');
if(_EN.length==0){
this._FN(this.getAnswered());
}
}
};
_Image.prototype._GN=function(_HN,_IN){
var _9J=this.__J();
if(this._zJ){
for(var i=this._zJ.length-1;i>=0;i--)
{
var _JN=this._zJ[i];
if(_JN.isInstance('_eE')&&_JN.inside(_9J)){
return _JN._dE;
}
}
}
return"";
};
function _DN(event,_dE,_JG){
var _BD=this._FD();
if(!_BD||(!this._XD(_BD)&&!_BD._XD())){
this._5D(true);
var _EN=this._2D('_eE');
if(!_dE&&(_EN.length==0)){
this.setAnsweredState(!this.getAnswered());
}
else{
if(_BD){
_BD._KN();
}
for(var i=0;i<_EN.length;i++)
{
_EN[i].setProperty('answered',false);
}
for(var i=0;i<_EN.length;i++)
{
if(_EN[i]._ID(_dE)){
_EN[i].setAnsweredState(true);
break;
}
}
}
}
}
_Image.prototype._FN=function(answered){
if(this._CN){
this._CN.style.visibility=answered?"inherit":"hidden";
}
};
function _VectorGraphic(id,_VC,enabled,visibility,_WC,name,title,parent,_ND,_OD,_PD,_vD,_wD,_xD,_yD,_zN,_6F,_AN){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Image.call(this,id,_VC,enabled,visibility,_WC,name,title,parent,_ND,_OD,_PD,_vD,_wD,_xD,_yD,_zN,_6F,_AN);
if(!this._9C['_VectorGraphic']){
this._9C['_VectorGraphic']=true;
}
}
}
_VectorGraphic.prototype=new _Image();
function _eE(id,parent,_vD,_wD,_xD,_yD,_dE){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_uD.call(this,id,null,true,false,false,"","",parent,_vD,_wD,_xD,_yD);
if(!this.constructor.prototype._9C['_eE']){
this.constructor.prototype._9C['_eE']=true;
}
this._dE=_dE;
}
}
_eE.prototype=new _uD();
_eE.prototype.inside=function(_9J){
return false;
};
_eE.prototype._FG=function(){
var _9Y=this._GD('_Image');
var _EN=_9Y._2D('_eE');
if(_EN.length==1){
_9Y._FN(this.getAnswered());
}
};
_eE.prototype._ID=function(_JD){
return(this._wD||(_JD==this._dE));
};
function _Polyline(id,parent,_vD,_wD,_xD,_yD,_dE){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_eE.call(this,id,parent,_vD,_wD,_xD,_yD,_dE);
if(!this.constructor.prototype._9C['_Polyline']){
this.constructor.prototype._9C['_Polyline']=true;
}
}
}
_Polyline.prototype=new _eE();
function _Rectangle(id,parent,_vD,_wD,_xD,_yD,left,top,width,height,_dE){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_eE.call(this,id,parent,_vD,_wD,_xD,_yD,_dE);
if(!this.constructor.prototype._9C['_Rectangle']){
this.constructor.prototype._9C['_Rectangle']=true;
}
this._3S=left;
this._4S=top;
this._FL=left+width;
this._GL=top+height;
}
}
_Rectangle.prototype=new _eE();
_Rectangle.prototype.inside=function(_9J){
return((_9J[0]>=this._3S)&&(_9J[0]<this._FL)&&(_9J[1]>=this._4S)&&(_9J[1]<this._GL));
};
function _Ellipse(id,parent,_vD,_wD,_xD,_yD,left,top,width,height,_dE){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_eE.call(this,id,parent,_vD,_wD,_xD,_yD,_dE);
if(!this.constructor.prototype._9C['_Ellipse']){
this.constructor.prototype._9C['_Ellipse']=true;
}
this._$J=left;
this._aK=top;
this.width=width;
this.height=height;
}
}
_Ellipse.prototype=new _eE();
_Ellipse.prototype.inside=function(_9J){
var a=this.width/2;
var b=this.height/2;
var m=this._$J+a;
var n=this._aK+b;
var c=(Math.pow(_9J[0]-m,2)/Math.pow(a,2))+(Math.pow(_9J[1]-n,2)/Math.pow(b,2));
return(c<=1.0);
};
function _Polygon(id,parent,_vD,_wD,_xD,_yD,_pR,_dE){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_eE.call(this,id,parent,_vD,_wD,_xD,_yD,_dE);
if(!this.constructor.prototype._9C['_Polygon']){
this.constructor.prototype._9C['_Polygon']=true;
}
this._pR=_pR;
}
}
_Polygon.prototype=new _eE();
_Polygon.prototype.inside=function(_9J){
var a1,a2,x1,x2,da;
var _WR=0;
var n=this._pR.length;
for(var i=0;i<n;i+=2)
{
x1=this._pR[i]-_9J[0];
y1=this._pR[i+1]-_9J[1];
if((y1==0.0)&&(x1==0.0)){
a1=0.0;
}
else{
a1=Math.atan2(y1,x1);
}
if(i<(n-2)){
x2=this._pR[i+2]-_9J[0];
y2=this._pR[i+3]-_9J[1];
}
else{
x2=this._pR[0]-_9J[0];
y2=this._pR[1]-_9J[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;
}
_WR+=da;
}
return Math.abs(_WR)>Math.PI;
};
function _CheckBox(id,_VC,enabled,visibility,_WC,name,title,parent,_ND,_OD,_PD,_vD,_wD,_xD,_yD,checked,inverted,_3F,_4F,caption,_5F,_6F,_7F,_8F,_9F,__F,_$F,_aG,_bG,_cG,_dG){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Button.call(this,id,_VC,enabled,visibility,_WC,name,title,parent,_ND,_OD,_PD,_vD,_wD,_xD,_yD,checked,inverted,_3F,_4F,caption,_5F,_6F,_7F,_8F,_9F,__F,_$F,_aG,_bG,_cG,_dG);
if(!this._9C['_CheckBox']){
this._9C['_CheckBox']=true;
}
}
}
_CheckBox.prototype=new _Button();
function _8C(id,_VC,enabled,visibility,_WC,name,title,parent,_XC,_YC,_kM,_0C,_1C,_2C,_3C,_4C,_5C,_6C){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_1E.call(this,id,_VC,enabled,visibility,_WC,name,title,parent,_XC,_YC,_kM,_0C,_1C,_2C,_3C,true,false);
if(!this.constructor.prototype._9C['_8C']){
this.constructor.prototype._9C['_8C']=true;
}
this._4C=_4C;
this._5C=_5C;
this._6C=_6C;
}
}
_8C.prototype=new _1E();
_8C.prototype._hD=function(){
if(this._5C){
if(this.getVisible()){
if(this._6C){
if(this._5O){
window.clearTimeout(this._5O);
}
this._5O=window.setTimeout(this.id+"."+'_6O'+"()",this._6C);
}
else{
this.setVisible(false);
}
}
}
};
_8C.prototype._gD=function(){
if(this._5O){
window.clearTimeout(this._5O);
this._5O=null;
}
if(this._5C||this._4C){
if(!this.getVisible()){
this.setVisible(true);
}
this.toFront();
}
};
_8C.prototype._6O=function(){
if(this.getStopped()){
this.setVisible(false);
}
if(this._5O){
this._5O=null;
}
};
_8C.prototype._7O=_8C.prototype._2F;
_8C.prototype._2F=function(){
this._7O();
if(this._5O){
window.clearTimeout(this._5O);
this._6O();
}
if(this._4C){
this.setVisible(false);
}
};
function _ActiveMovie(id,_VC,enabled,visibility,_WC,name,title,parent,_XC,_YC,_ZC,_0C,_1C,_2C,_3C,_4C,_5C,_6C,_7C){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_8C.call(this,id,_VC,enabled,visibility,_WC,name,title,parent,_XC,_YC,_ZC,_0C,_1C,_2C,_3C,_4C,_5C,_6C);
if(!this.constructor.prototype._9C['_ActiveMovie']){
this.constructor.prototype._9C['_ActiveMovie']=true;
}
this._7C=_7C;
}
}
_ActiveMovie.prototype=new _8C();
_ActiveMovie.prototype.__C=function(_$C){
if(!this._aD.FileName){
this._aD.FileName=this._7C;
}
var _bD=this.id+"."+'_aD'+"."+_$C;
eval(_bD);
if(this._aD.HasError){
this._aD.FileName=this._7C;
eval(_bD);
}
};
_ActiveMovie.prototype._cD=_ActiveMovie.prototype._dD;
_ActiveMovie.prototype._dD=function(){
this._cD();
this._aD.FileName=TBK._eD(this._7C);
this._7C=this._aD.FileName;
};
_ActiveMovie.prototype.getPlaying=function(){
return(this._aD&&(this._aD.ReadyState>=3)&&(this._aD.PlayState==2));
};
_ActiveMovie.prototype.getPosition=function(){
return(this._aD&&(this._aD.ReadyState>=3))?Math.round(this._aD.CurrentPosition*1000):0;
};
_ActiveMovie.prototype.getStopped=function(){
return(!this._aD||(this._aD.ReadyState<3)||(this._aD.PlayState==0));
};
_ActiveMovie.prototype.pause=function(){
if(this._aD){
if(this._aD.ReadyState>=3){
if(this._aD.PlayState==2){
this.__C("Pause()");
}
}
else{
this._fD(this.id+"."+'pause'+"()");
}
}
};
_ActiveMovie.prototype.play=function(){
if(this._aD){
if(this._aD.ReadyState>=3){
this._gD();
this.__C("Play()");
}
else{
this._fD(this.id+"."+'play'+"()");
}
}
};
_ActiveMovie.prototype.setPosition=function(position){
if(this._aD){
if(this._aD.ReadyState>=3){
if((position/1000)!=this._aD.CurrentPosition){
this._aD.CurrentPosition=position/1000;
this.fireEvent("change","position");
}
}
else{
this._fD(this.id+"."+'setPosition'+"("+position+")");
}
}
return this.getPosition();
};
_ActiveMovie.prototype.stop=function(){
if(this._aD){
if(this._aD.ReadyState>=3){
this.__C("Stop()");
this._hD();
}
else{
this._fD(this.id+"."+'stop'+"()");
}
}
else{
this._hD();
}
};
function _Timer(id,name,title,parent,type,_XC,_YC,_0C,_1C,_2C,_3C){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_1E.call(this,id,null,true,false,false,name,title,parent,_XC,_YC,null,_0C,_1C,_2C,_3C,false,(type=="countdown"));
if(!this.constructor.prototype._9C['_Timer']){
this.constructor.prototype._9C['_Timer']=true;
}
this.type=type;
}
}
_Timer.prototype=new _1E();
_Timer.prototype.getPlaying=function(){
return this.playing;
};
_Timer.prototype.getPosition=function(){
return this._sP;
};
_Timer.prototype.getStopped=function(){
return this.stopped;
};
_Timer.prototype.pause=function(){
this.playing=false;
};
_Timer.prototype.play=function(){
if(!this.playing){
this.playing=true;
this.stopped=false;
var _BI=new Date();
if(this.type=="tod"){
this._sP=_BI.getTime();
}
this._tP=_BI.getTime();
this._vP();
}
};
_Timer.prototype.setPosition=function(position){
if(this.type=="countdown"){
this._sP=Math.max(0,Math.min(this._YC,position));
this.fireEvent("change","position");
}
return this.getPosition();
};
_Timer.prototype.stop=function(){
this.playing=false;
this.stopped=true;
this._wP();
this._w2();
};
_Timer.prototype._w2=function(){
this._yP=0;
this.playing=false;
var _BI=new Date();
if(this.type=="countdown"){
this._sP=this._YC;
this._tP=0;
}
else if(this.type=="tod"){
this._sP=_BI.getTime();
}
if(this._uP){
window.clearTimeout(this._uP);
}
this._uP=null;
this._zP();
this.stopped=true;
};
_Timer.prototype._vP=function(){
if(this._sP<=0){
this._AP(0);
this._zP();
this._sP=this._YC;
if((this._0C!=-1)&&(++this._yP>=this._0C)){
this.stop();
}
}
else{
this._AP(this._sP);
}
if(this.playing){
var _BI=new Date();
if(this.type=="countdown"){
this._sP-=_BI.getTime()-this._tP;
this._tP=_BI.getTime();
}
else if(this.type=="tod"){
this._sP=_BI.getTime();
}
this._uP=window.setTimeout(this.id+"."+'_vP'+"()",100);
}
};
_Timer.prototype._x2=_Timer.prototype._ZF;
_Timer.prototype._ZF=function(_0F){
this._x2(_0F);
this._w2();
};
function _eI(id,parent,_aI){
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._9C['_eI']){
this.constructor.prototype._9C['_eI']=true;
}
this._aI=_aI;
}
}
_eI.prototype=new _Object();
_eI.prototype._kI=function(text){
return text;
};
function _DateSubstitution(id,parent,_aI,_bI,_cI,_dI,to){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_eI.call(this,id,parent,_aI);
if(!this.constructor.prototype._9C['_DateSubstitution']){
this.constructor.prototype._9C['_DateSubstitution']=true;
}
var _PE;
if(!_DateSubstitution._fI){
_PE=TBK._YD('_ZD.15');
_DateSubstitution._fI=TBK._gI(_PE," ",false);
}
if(!_DateSubstitution._hI){
_PE=TBK._YD('_ZD.16');
_DateSubstitution._hI=TBK._gI(_PE," ",false);
}
if(!_DateSubstitution._iI){
_PE=TBK._YD('_ZD.24');
_DateSubstitution._iI=TBK._gI(_PE," ",false);
}
if(!_DateSubstitution._jI){
_PE=TBK._YD('_ZD.25');
_DateSubstitution._jI=TBK._gI(_PE," ",false);
}
this._bI=_bI;
this._cI=_cI;
this._dI=_dI;
this.to=to;
}
}
_DateSubstitution.prototype=new _eI();
_DateSubstitution.prototype._kI=function(text){
var d=(this._bI=="today")?new Date():new Date(this._cI);
var _cI=new Date(d.getTime()+(this._dI*24*60*60*1000));
var _lI="";
var _mI,_nI=0;
while((_mI=text.indexOf(this._aI,_nI))!=-1)
{
_lI+=text.substring(_nI,_mI);
switch(this.to){
case "D":_lI+=_cI.getDate();
break;
case "DD":_lI+=TBK._oI(_cI.getDate(),2);
break;
case "DDD":_lI+=_DateSubstitution._hI[_cI.getDay()];
break;
case "DDDD":_lI+=_DateSubstitution._fI[_cI.getDay()];
break;
case "M":_lI+=(_cI.getMonth()+1);
break;
case "MM":_lI+=TBK._oI(_cI.getMonth()+1,2);
break;
case "MMM":_lI+=_DateSubstitution._jI[_cI.getMonth()];
break;
case "MMMM":_lI+=_DateSubstitution._iI[_cI.getMonth()];
break;
case "YY":var yy=""+_cI.getFullYear();
if(yy.length==4){
_lI+=yy.substring(2);
}
else{
_lI+=yy;
}
break;
case "YYYY":var _pI=""+_cI.getFullYear();
if(_pI.length==4){
_lI+=_pI;
}
else{
_lI+="19"+_pI;
}
break;
}
_nI=_mI+this._aI.length;
}
_lI+=text.substring(_nI);
return _lI;
};
_DateSubstitution._fI=null;
_DateSubstitution._hI=null;
_DateSubstitution._iI=null;
_DateSubstitution._jI=null;
function _Navigator(id,name,title,parent,_iM,_jM,_rP,transition,_XC,_YC,_0C,_1C,_2C,_3C){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_1E.call(this,id,null,true,false,false,name,title,parent,_XC,_YC,null,_0C,_1C,_2C,_3C,false,false);
if(!this.constructor.prototype._9C['_Navigator']){
this.constructor.prototype._9C['_Navigator']=true;
}
this._iM=_iM;
this._jM=_jM;
this._rP=_rP;
this.transition=transition;
}
}
_Navigator.prototype=new _1E();
_Navigator.prototype.getPlaying=function(){
return this.playing;
};
_Navigator.prototype.getPosition=function(){
return Math.max(0,Math.min(this._YC,this._sP));
};
_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._YC>0){
var _BI=new Date();
this._tP=_BI.getTime();
this._uP=window.setTimeout(this.id+"."+'_vP'+"()",100);
}
else{
this._vP();
}
}
};
_Navigator.prototype.setPosition=function(position){
this._sP=Math.max(0,Math.min(this._YC,position));
this.fireEvent("change","position");
return this.getPosition();
};
_Navigator.prototype.stop=function(){
this.playing=false;
this.stopped=true;
this._wP();
this._xP();
};
_Navigator.prototype._xP=function(){
this._yP=0;
this.playing=false;
this._sP=0;
if(this._uP){
window.clearTimeout(this._uP);
}
this._uP=null;
this._tP=0;
this._zP();
this.stopped=true;
};
_Navigator.prototype._vP=function(){
if(TBK._BE._CE){
var _BI=new Date();
this._sP+=_BI.getTime()-this._tP;
this._tP=_BI.getTime();
this._AP(this._sP);
if(this._sP>=this._YC){
this._zP();
this._sP=0;
TBK._BE._sM(this._jM,this._iM,this.transition);
if(((this._0C!=-1)&&(++this._yP>=this._0C))||!TBK._BE._rM(this._jM,this._iM)){
this.stop();
}
}
if(this.playing){
this._uP=window.setTimeout(this.id+"."+'_vP'+"()",100);
}
}
};
_Navigator.prototype._BP=_Navigator.prototype._ZF;
_Navigator.prototype._ZF=function(_0F){
this._BP(_0F);
this._xP();
this._yM.addEventListener("turn","*",this.id,'_CP');
};
function _CP(){
if(this._rP){
for(var i=0;i<this._rP.length;i++)
{
var _uI=TBK._sE(this._rP[i]);
if(TBK._BE._CE){
_uI.setProperty('enabled',TBK._BE._rM(this._jM,this._iM));
}
}
}
}
function _TextEntry(id,_VC,enabled,visibility,_WC,name,title,parent,_ND,_OD,_PD,_i2,_j2){
if(this.constructor==arguments.callee.prototype.constructor){
this.constructor=arguments.callee;
}
if(arguments.length>0){
_Object.call(this,id,_VC,enabled,visibility,_WC,name,title,parent);
_Answerable.call(this,_ND,_OD,_PD);
_Scrollable.call(this,true);
if(!this._9C['_TextEntry']){
this._9C['_TextEntry']=true;
}
this._i2=_i2;
this._j2=_j2;
this._0F=false;
this._k2="";
this._l2="";
this.text=null;
}
}
_TextEntry.prototype=new _Object();
_Answerable.call(_TextEntry.prototype);
_Scrollable.call(_TextEntry.prototype);
_TextEntry.prototype.getText=function(){
if(this._m2){
return this._m2.value;
}
else{
return this.text;
}
};
_TextEntry.prototype.setText=function(text){
this._HDtext(this._kI(""+text));
this.setProperty('_k2',this.getText());
this.fireEvent("change","text");
return this._k2;
};
_TextEntry.prototype._HDtext=function(text){
this._rD_n2(text);
};
_TextEntry.prototype._o2=function(){
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
if(this._zJ[i].isInstance('_eI')){
this.setProperty('text',this.getText());
break;
}
}
}
if(this._0F){
this.setProperty('_l2',this.getText());
}
};
_TextEntry.prototype._rD_n2=function(text){
if(this._m2){
this._m2.value=text;
}
else{
this.text=text;
}
};
_TextEntry.prototype._kI=function(text){
if(this._zJ){
for(var i=0;i<this._zJ.length;i++)
{
var _d2=this._zJ[i];
if(_d2.isInstance('_eI')){
text=_d2._kI(text);
}
}
}
return text;
};
_TextEntry.prototype._dD=function(){
this._m2=this._fF;
this._o2();
};
_TextEntry.prototype._p2=_TextEntry.prototype._yG;
_TextEntry.prototype._yG=function(){
this._p2();
this.persistProperty('text',true);
this.text=this.getText();
this._m2=null;
};
_TextEntry.prototype._ZF=function(_0F){
this.addEventListener("blur","*",this.id,'_q2');
if(this._i2&&!this._j2){
this.addEventListener("keydown","*",this.id,'_r2');
}
this._0F=_0F;
};
_TextEntry.prototype._s2=_TextEntry.prototype._KD;
_TextEntry.prototype._KD=function(){
this._s2();
this.setProperty('text',this._l2);
};
_TextEntry.prototype._3O=function(){
this.setProperty('_k2',"");
this.fireEvent("blur","");
};
_TextEntry.prototype._t2=_TextEntry.prototype._SD;
_TextEntry.prototype._SD=function(){
var _u2=this._t2();
var _TD=this.getText();
if(_u2){
if((_u2.charAt(0)!="<")||(_u2.charAt(_u2.length-1)!=">")){
_u2="<"+_u2+">";
}
_TD=_u2+" "+_TD;
}
return _TD;
};
_TextEntry.prototype._7P=function(){
this._m2.blur();
};
_TextEntry.prototype._$P=function(){
this._m2.focus();
this._m2.select();
};
function _q2(event,_dE,_JG){
if(this._k2!=this.getText()){
var _BD=this._FD();
if(!_BD||(!this._XD(_BD)&&!_BD._XD())){
this._5D(true);
this.setText(this.getText());
if(_BD){
_BD._KN();
}
var _v2=this._2D('_Entry');
for(var i=0;i<_v2.length;i++)
{
_v2[i].setProperty('answered',false);
}
for(var i=0;i<_v2.length;i++)
{
var _bX=_v2[i];
if(_bX._ID(this.getText())){
_bX.setAnsweredState(true);
break;
}
}
}
}
}
function _r2(event,_dE,_JG,keyCode,_KG,shift,_LG){
if(keyCode==13){
this.blur();
}
}

