// JavaScript Document /* **************************************************** */ /* W A R N I N G */ /* **************************************************** */ /* */ /* @author Instructus Media, Ltd. */ /* @copyright Copyright© 2013 */ /* Instructus Media, Ltd., All rights reserved. */ /* info@instructusmedia.com */ /* */ /* Reuse of this code or any part of this interface */ /* other than to develop courseware for the */ /* United States Department of Veterans Affairs */ /* is stricly prohibited. */ /* Use permitted under special license. */ /* See the License.txt file for license information. */ /* This block must remain. */ /* */ /* Version 1.1.2.3 - 08/08/2013 */ /* */ /* Hybrid cookie/Instruo development template API */ /* Created 11/10/2010 IMLFileId: 1.2 Hybrid */ /* */ /* **************************************************** */ var _0x87c4=["","\x3F","\x6F\x70\x65\x6E\x65\x72","\x69\x73\x4D\x79\x49\x6E\x73\x74\x72\x75\x6F","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x63\x6D\x69\x2E\x63\x6F\x72\x65\x2E\x73\x74\x75\x64\x65\x6E\x74\x5F\x6E\x61\x6D\x65","\x73\x65\x61\x72\x63\x68","\x3D","\x73\x70\x6C\x69\x74","\x26\x6E\x62\x73\x70\x3B","\x20","\x72\x65\x70\x6C\x61\x63\x65","\x2C","\x69\x6E\x64\x65\x78\x4F\x66","\x2D\x31","\x73\x74\x75\x64\x65\x6E\x74\x6E\x61\x6D\x65","\x63\x6D\x69\x2E\x63\x6F\x72\x65\x2E\x6C\x65\x73\x73\x6F\x6E\x5F\x73\x74\x61\x74\x75\x73","\x6E\x6F\x74\x20\x61\x74\x74\x65\x6D\x70\x74\x65\x64","\x75\x6E\x6B\x6E\x6F\x77\x6E","\x69\x6E\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x44\x6F\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x67\x6F\x20\x62\x61\x63\x6B\x20\x74\x6F\x20\x74\x68\x65\x20\x6C\x61\x73\x74\x20\x70\x61\x67\x65\x20\x79\x6F\x75\x20\x77\x65\x72\x65\x20\x6F\x6E\x20\x65\x61\x72\x6C\x69\x65\x72\x3F","\x42\x6F\x6F\x6B\x6D\x61\x72\x6B","\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x63\x6F\x6E\x74\x65\x6E\x74","\x66\x72\x61\x6D\x65\x73","\x72\x65\x76\x69\x65\x77","\x62\x6F\x6F\x6B\x6D\x61\x72\x6B","\x72\x65\x6C\x6F\x61\x64","\x63\x6D\x69\x2E\x63\x6F\x72\x65\x2E\x65\x78\x69\x74","\x73\x75\x73\x70\x65\x6E\x64","\x67\x65\x74\x54\x69\x6D\x65","\x30\x30\x3A\x30\x30\x3A\x30\x30\x2E\x30","\x63\x6D\x69\x2E\x63\x6F\x72\x65\x2E\x73\x65\x73\x73\x69\x6F\x6E\x5F\x74\x69\x6D\x65","\x63\x6D\x69\x2E\x63\x6F\x72\x65\x2E\x6C\x65\x73\x73\x6F\x6E\x5F\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x63\x6D\x69\x2E\x63\x6F\x72\x65\x2E\x73\x63\x6F\x72\x65\x2E\x72\x61\x77","\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64","\x63\x6D\x69\x2E\x73\x75\x73\x70\x65\x6E\x64\x5F\x64\x61\x74\x61","\x41\x50\x49","\x6C\x65\x6E\x67\x74\x68","\x74\x6F\x70","\x74\x72\x75\x65","\x66\x61\x6C\x73\x65","\x0A","\x28\x5B\x5E\x3F\x3D\x26\x5D\x2B\x29\x28\x3D\x28\x5B\x5E\x26\x5D\x2A\x29\x29\x3F","\x67","\x26","\x7E","\x73\x75\x62\x73\x74\x72","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x67\x65\x74\x4D\x6F\x6E\x74\x68","\x73\x65\x74\x4D\x6F\x6E\x74\x68","\x63\x6F\x6F\x6B\x69\x65","\x6D\x61\x73\x74\x65\x72\x3D","\x3B\x65\x78\x70\x69\x72\x65\x73\x3D","\x3B\x70\x61\x74\x68\x3D","\x3B","\x72\x6F\x75\x6E\x64","\x2E","\x30","\x3A","\x2F","\x6C\x61\x73\x74\x49\x6E\x64\x65\x78\x4F\x66","\x70\x61\x74\x68\x6E\x61\x6D\x65"];var _NoError=0;var _GeneralException=101;var _GeneralInitializationFailure=102;var _AlreadyInitialized=103;var _ContentInstanceTerminated=104;var _GeneralTerminationFailure=111;var _TerminationBeforeInitialization=112;var _TerminationAfterTermination=113;var _ReceivedDataBeforeInitialization=122;var _ReceivedDataAfterTermination=123;var _StoreDataBeforeInitialization=132;var _StoreDataAfterTermination=133;var _CommitBeforeInitialization=142;var _CommitAfterTermination=143;var _GeneralArgumentError=201;var _GeneralGetFailure=301;var _GeneralSetFailure=351;var _GeneralCommitFailure=391;var _UndefinedDataModelElement=401;var _UnimplementedDataModelElement=402;var _DataModelElementValueNotInitialized=403;var _DataModelElementIsReadOnly=404;var _DataModelElementIsWriteOnly=405;var _DataModelElementTypeMismatch=406;var _DataModelElementValueOutOfRange=407;var _Debug=false;var strLastPage=_0x87c4[0];var apiHandle=null;var bUnloaded=false;var bLoaded=false;var bmLoaded=false;var strSuspendData=_0x87c4[1];var strBookmark=_0x87c4[0];var startDate;var reloaded=false;var localMode=false;function doLoad(){if(bLoaded){return ;} ;var _0x1557x26=getAPIHandle();if(_0x1557x26==null||((window[_0x87c4[2]])!=null&& typeof (window[_0x87c4[2]][_0x87c4[3]])==_0x87c4[4])){localMode=true;bLoaded=true;} else {doInitialize();bLoaded=true;var _0x1557x27=doGetValue(_0x87c4[5]);var _0x1557x28=location[_0x87c4[6]];_0x1557x28=_0x1557x28[_0x87c4[8]](_0x87c4[7]);student_name=unescape(_0x1557x28[1]);if((student_name!=_0x87c4[4])&&(student_name!=_0x87c4[0])){student_name=student_name[_0x87c4[11]](_0x87c4[9],_0x87c4[10]);var _0x1557x29=student_name[_0x87c4[13]](_0x87c4[12]);if(_0x1557x29!=_0x87c4[14]){var _0x1557x2a=student_name[_0x87c4[8]](_0x87c4[12]);sname=_0x1557x2a[1]+_0x87c4[10]+_0x1557x2a[0];} else {sname=student_name;} ;SetNameValue(_0x87c4[15],sname);} else {sname=_0x87c4[0];} ;var _0x1557x2b=doGetValue(_0x87c4[16]);if((_0x1557x2b==_0x87c4[17]||_0x1557x2b==_0x87c4[18])){doSetValue(_0x87c4[16],_0x87c4[19]);} ;strSuspendData=doGetSuspendData();if(strSuspendData==_0x87c4[0]){strSuspendData=_0x87c4[1];} ;bUnloaded=false;startTimer();} ;} ;function doBookmark(){if(!localMode){if(bUnloaded==true){return ;} ;var strBookmark=doGetBookmark();if(strBookmark!=null&&strBookmark!=_0x87c4[0]&& typeof (strBookmark)!=_0x87c4[4]){var _0x1557x2d=confirm(_0x87c4[20],_0x87c4[21]);if(_0x1557x2d==true){window[_0x87c4[25]][_0x87c4[24]][_0x87c4[23]][_0x87c4[22]]=strBookmark;} else {SetNameValue(_0x87c4[26],_0x87c4[0]);window[_0x87c4[25]][_0x87c4[24]][_0x87c4[23]][_0x87c4[22]]=window[_0x87c4[25]][_0x87c4[24]][_0x87c4[23]][_0x87c4[22]];} ;} ;bmLoaded=true;} else {if(GetNameValue(_0x87c4[27])!=_0x87c4[0]){var _0x1557x2d=confirm(_0x87c4[20],_0x87c4[21]);if(_0x1557x2d==true){window[_0x87c4[25]][_0x87c4[24]][_0x87c4[23]][_0x87c4[22]]=GetNameValue(_0x87c4[27]);} else {SetNameValue(_0x87c4[26],_0x87c4[0]);SetNameValue(_0x87c4[27],_0x87c4[0]);window[_0x87c4[25]][_0x87c4[24]][_0x87c4[23]][_0x87c4[22]]=window[_0x87c4[25]][_0x87c4[24]][_0x87c4[23]][_0x87c4[22]];} ;} ;bmLoaded=true;} ;} ;function reloadContent(){if(!localMode){top[_0x87c4[25]][0][_0x87c4[23]][_0x87c4[28]]();} ;} ;function doUnload(){if(!localMode){if(bUnloaded==true){return ;} ;computeTime();doCommit();doSetValue(_0x87c4[29],_0x87c4[30]);doTerminate();bUnloaded=true;bLoaded=false;} ;} ;function startTimer(){startDate= new Date()[_0x87c4[31]]();} ;function computeTime(){if(startDate!=0){var _0x1557x32= new Date()[_0x87c4[31]]();var _0x1557x33=((_0x1557x32-startDate)/1000);var _0x1557x34=convertTotalSeconds(_0x1557x33);} else {_0x1557x34=_0x87c4[32];} ;doSetValue(_0x87c4[33],_0x1557x34);} ;function doGetBookmark(){if(!localMode){if(bLoaded==false){return ;} ;return doGetValue(_0x87c4[34]);} ;} ;function doSetBookmark(_0x1557x37){if(!localMode){if(bLoaded==false){return ;} ;if(bmLoaded==false){return ;} else {strLastPage=_0x1557x37;strBookmark=_0x1557x37;return doSetValue(_0x87c4[34],_0x1557x37);} ;} else {if(bLoaded==false){return ;} ;SetNameValue(_0x87c4[27],_0x1557x37);} ;} ;function doSaveBookmark(_0x1557x37){if(!localMode){if(bLoaded==false){return ;} ;strLastPage=_0x1557x37;strBookmark=_0x1557x37;} ;} ;function doSetScore(_0x1557x37){if(!localMode){if(bLoaded==false){return ;} ;doSetValue(_0x87c4[35],_0x1557x37);doCommit();} ;} ;function doSetStatus(_0x1557x37){if(!localMode){if(bLoaded==false){return ;} ;doSetValue(_0x87c4[16],_0x1557x37);doCommit();} ;} ;function doSetComplete(){if(!localMode){if(bLoaded==false){return ;} ;doSetValue(_0x87c4[16],_0x87c4[36]);doCommit();} ;} ;function doSetSuspendData(_0x1557x37){if(!localMode){if(bLoaded==false){return ;} ;return doSetValue(_0x87c4[37],_0x1557x37);} ;} ;function doGetSuspendData(){if(!localMode){if(bLoaded==false){return ;} ;return doGetValue(_0x87c4[37]);} ;} ;function getAPIHandle(){if(apiHandle==null){apiHandle=getAPI();} ;return apiHandle;} ;function findAPI(_0x1557x40){if(_0x1557x40[_0x87c4[38]]!=null){return _0x1557x40[_0x87c4[38]];} ;if(_0x1557x40[_0x87c4[39]]>0){for(var _0x1557x41=0;_0x1557x41<_0x1557x40[_0x87c4[39]];_0x1557x41++){var _0x1557x42=findAPI(_0x1557x40[_0x87c4[25]][_0x1557x41]);if(_0x1557x42!=null){return _0x1557x42;} ;} ;} ;return null;} ;function getAPI(){var _0x1557x42=findAPI(this[_0x87c4[40]]);if(_0x1557x42==null){if( typeof (this[_0x87c4[40]][_0x87c4[2]])!=_0x87c4[4]){if(this[_0x87c4[40]][_0x87c4[2]]!=null){_0x1557x42=findAPI(this[_0x87c4[40]][_0x87c4[2]][_0x87c4[40]]);} ;} ;} ;return _0x1557x42;} ;function doInitialize(){if(localMode){return _0x87c4[41];} ;var _0x1557x26=getAPIHandle();if(_0x1557x26==null){return _0x87c4[42];} ;var _0x1557x45=_0x1557x26.LMSInitialize(_0x87c4[0]);if(_0x1557x45!=_0x87c4[41]){var _0x1557x46=ErrorHandler();} ;return _0x1557x45;} ;function doCommit(){if(localMode){return _0x87c4[41];} ;if(bLoaded==false){return ;} ;var _0x1557x26=getAPIHandle();if(_0x1557x26==null){return _0x87c4[42];} else {var _0x1557x45=_0x1557x26.LMSCommit(_0x87c4[0]);if(_0x1557x45!=_0x87c4[41]){var _0x1557x46=ErrorHandler();} ;} ;return _0x1557x45;} ;function doTerminate(){if(localMode){return _0x87c4[41];} ;var _0x1557x26=getAPIHandle();if(_0x1557x26==null){return _0x87c4[42];} else {var _0x1557x45=_0x1557x26.LMSFinish(_0x87c4[0]);if(_0x1557x45!=_0x87c4[41]){var _0x1557x46=ErrorHandler();} ;} ;return _0x1557x45;} ;function doGetValue(_0x1557x4a){if(!localMode){if(bLoaded==false){return ;} ;var _0x1557x26=getAPIHandle();if(_0x1557x26==null){return _0x87c4[0];} else {var _0x1557x4b=_0x1557x26.LMSGetValue(_0x1557x4a);var _0x1557x4c=_0x1557x26.LMSGetLastError();if(_0x1557x4c!=_NoError){var _0x1557x4d=_0x1557x26.LMSGetErrorString(_0x1557x4c);return _0x87c4[0];} else {return _0x1557x4b;} ;} ;} ;} ;function doSetValue(_0x1557x4a,_0x1557x4b){if(!localMode){if(bLoaded==false){return ;} ;var _0x1557x26=getAPIHandle();if(_0x1557x26==null){return ;} else {var _0x1557x45=_0x1557x26.LMSSetValue(_0x1557x4a,_0x1557x4b);if(_0x1557x45!=_0x87c4[41]){var _0x1557x46=ErrorHandler();} ;} ;return ;} ;} ;function doLMSGetLastError(){if(!localMode){var _0x1557x26=getAPIHandle();if(_0x1557x26==null){return _GeneralError;} ;return _0x1557x26.LMSGetLastError();} ;} ;function doLMSGetErrorString(_0x1557x51){if(!localMode){var _0x1557x26=getAPIHandle();return _0x1557x26.LMSGetErrorString(_0x1557x51);} ;} ;function doGetDiagnostic(_0x1557x51){if(!localMode){var _0x1557x26=getAPIHandle();return _0x1557x26.LMSGetDiagnostic(_0x1557x51);} ;} ;function LMSIsInitialized(){if(!localMode){var _0x1557x26=getAPIHandle();if(_0x1557x26==null){return false;} else {var _0x1557x4b=_0x1557x26.LMSGetValue(_0x87c4[5]);var _0x1557x4c=_0x1557x26.LMSGetLastError();if(_0x1557x4c==_NotInitialized){return false;} else {return true;} ;} ;} ;} ;function ErrorHandler(){if(!localMode){var _0x1557x26=getAPIHandle();if(_0x1557x26==null){return ;} ;var _0x1557x4c=_0x1557x26.LMSGetLastError();if(_0x1557x4c!=_NoError){var _0x1557x4d=_0x1557x26.LMSGetErrorString(_0x1557x4c);if(_Debug==true){_0x1557x4d+=_0x87c4[43];_0x1557x4d+=_0x1557x26.LMSGetDiagnostic(null);} ;alert(_0x1557x4d);} ;return _0x1557x4c;} ;} ;function SetNameValue(_0x1557x56,_0x1557x37){if(!localMode){var _0x1557x57= new Object();strSuspendData[_0x87c4[11]]( new RegExp(_0x87c4[44],_0x87c4[45]),function (_0x1557x58,_0x1557x59,_0x1557x5a,_0x1557x5b){_0x1557x57[_0x1557x59]=_0x1557x5b;} );_0x1557x57[_0x1557x56]=_0x1557x37;var _0x1557x5c=_0x87c4[1];for(var _0x1557x5d in _0x1557x57){_0x1557x5c=_0x1557x5c+_0x1557x5d+_0x87c4[7]+_0x1557x57[_0x1557x5d]+_0x87c4[46];} ;if(_0x1557x5c==strSuspendData){} else {strSuspendData=_0x1557x5c;doSetSuspendData(strSuspendData);doCommit();} ;} else {var _0x1557x5e=GetMasterValue();if(_0x1557x5e[_0x87c4[39]]>0){var _0x1557x5f=_0x1557x5e[_0x87c4[13]](_0x1557x56+_0x87c4[7]);if(_0x1557x5f>-1){var _0x1557x60=_0x1557x5e[_0x87c4[13]](_0x87c4[47],_0x1557x5f);var _0x1557x61=_0x1557x5e[_0x87c4[48]](0,_0x1557x5f);_0x1557x61+=_0x1557x5e[_0x87c4[49]](_0x1557x60+1,_0x1557x5e[_0x87c4[39]]);_0x1557x5e=_0x1557x61;} ;} ;_0x1557x5e+=_0x1557x56+_0x87c4[7]+_0x1557x37+_0x87c4[47];var _0x1557x62= new Date();_0x1557x62[_0x87c4[51]](_0x1557x62[_0x87c4[50]]()+6);document[_0x87c4[52]]=_0x87c4[53]+_0x1557x5e+_0x87c4[54]+_0x1557x62+_0x87c4[55]+getPathName()+_0x87c4[56];} ;} ;function GetNameValue(_0x1557x56){if(!localMode){var _0x1557x57= new Object();strSuspendData[_0x87c4[11]]( new RegExp(_0x87c4[44],_0x87c4[45]),function (_0x1557x58,_0x1557x59,_0x1557x5a,_0x1557x5b){_0x1557x57[_0x1557x59]=_0x1557x5b;} );if(_0x1557x57[_0x1557x56]){return _0x1557x57[_0x1557x56];} else {return _0x87c4[0];} ;} else {var _0x1557x64=_0x87c4[0];var _0x1557x5e=GetMasterValue();if(_0x1557x5e[_0x87c4[39]]>0){var _0x1557x65=_0x1557x5e[_0x87c4[13]](_0x1557x56+_0x87c4[7]);if(_0x1557x65!=-1){_0x1557x65=_0x1557x65+_0x1557x56[_0x87c4[39]]+1;var _0x1557x66=_0x1557x5e[_0x87c4[13]](_0x87c4[47],_0x1557x65);if(_0x1557x66==-1){_0x1557x66=_0x1557x5e[_0x87c4[39]];} ;_0x1557x64=unescape(_0x1557x5e[_0x87c4[49]](_0x1557x65,_0x1557x66));} ;} ;return _0x1557x64;} ;} ;function convertTotalSeconds(_0x1557x68){var _0x1557x69=(_0x1557x68%60);_0x1557x68-=_0x1557x69;var _0x1557x6a=(_0x1557x68%3600);_0x1557x68-=_0x1557x6a;_0x1557x69=Math[_0x87c4[57]](_0x1557x69*100)/100;var _0x1557x6b= new String(_0x1557x69);var _0x1557x6c=_0x1557x6b;var _0x1557x6d=_0x87c4[0];if(_0x1557x6b[_0x87c4[13]](_0x87c4[58])!=-1){_0x1557x6c=_0x1557x6b[_0x87c4[49]](0,_0x1557x6b[_0x87c4[13]](_0x87c4[58]));_0x1557x6d=_0x1557x6b[_0x87c4[49]](_0x1557x6b[_0x87c4[13]](_0x87c4[58])+1,_0x1557x6b[_0x87c4[39]]);} ;if(_0x1557x6c[_0x87c4[39]]<2){_0x1557x6c=_0x87c4[59]+_0x1557x6c;} ;_0x1557x6b=_0x1557x6c;if(_0x1557x6d[_0x87c4[39]]){_0x1557x6b=_0x1557x6b+_0x87c4[58]+_0x1557x6d;} ;if((_0x1557x68%3600)!=0){var _0x1557x6e=0;} else {var _0x1557x6e=(_0x1557x68/3600);} ;if((_0x1557x6a%60)!=0){var _0x1557x6f=0;} else {var _0x1557x6f=(_0x1557x6a/60);} ;if(( new String(_0x1557x6e))[_0x87c4[39]]<2){_0x1557x6e=_0x87c4[59]+_0x1557x6e;} ;if(( new String(_0x1557x6f))[_0x87c4[39]]<2){_0x1557x6f=_0x87c4[59]+_0x1557x6f;} ;var _0x1557x64=_0x1557x6e+_0x87c4[60]+_0x1557x6f+_0x87c4[60]+_0x1557x6b;return _0x1557x64;} ;function getPathName(){var _0x1557x71=location[_0x87c4[63]][_0x87c4[62]](_0x87c4[61]);var _0x1557x72=location[_0x87c4[63]][_0x87c4[49]](0,_0x1557x71+1);return _0x1557x72;} ;function GetMasterValue(){var _0x1557x64=_0x87c4[0];if(document[_0x87c4[52]][_0x87c4[39]]>0){var _0x1557x65=document[_0x87c4[52]][_0x87c4[13]](_0x87c4[53]);if(_0x1557x65!=-1){var _0x1557x66=document[_0x87c4[52]][_0x87c4[13]](_0x87c4[56],_0x1557x65);if(_0x1557x66==-1){_0x1557x66=document[_0x87c4[52]][_0x87c4[39]];} ;_0x1557x64=unescape(document[_0x87c4[52]][_0x87c4[49]](_0x1557x65+7,_0x1557x66));} ;} ;return _0x1557x64;} ;doLoad();