function API(){}function API_1484_11(){}function setJSON(e,t){e.search("d")>-1?setElementArray(e,t):setElement(e,t)}function setElementArray(element,value){for(var parts=element.split("."),tempdm=dm;0!=parts.length;){var x=parts.shift();void 0==tempdm[x]&&(tempdm[x]=isNaN(parts[0])?{}:[{}]),tempdm=tempdm[x]}var the_string=element.toJSONArrayPattern();eval("dm."+the_string+' = "'+value+'"')}function setElement(element,value){for(var parts=element.split("."),tempdm=dm;0!=parts.length;){var x=parts.shift();tempdm[x]=void 0==tempdm[x]?{}:tempdm[x],tempdm=tempdm[x]}eval("dm."+element.toString()+' = "'+value+'"')}var score=null,time=null,status=null,success=null;API.prototype.LMSInitialize=function(){var e;e=$.browser.msie&&$.browser.version.substr(0,$.browser.version.indexOf("."))<=8?document.querySelectorAll(".fancybox-iframe")[0].contentWindow.location.href:document.getElementsByClassName("fancybox-iframe")[0].contentWindow.location.href;var t=new RegExp("/[0-9]+/"),n=t.exec(e),r=n[0].split("/"),o=r[1];return $.ajax({type:"GET",url:"./service/tracking/getevents.do?event=openwbt&status=open&oid="+o,dataType:"json",xhrFields:{withCredentials:!0},success:function(){}}),!0},API.prototype.LMSFinish=function(e){return this.LMSCommit(e),this.CloseWindow(),!0},API.prototype.LMSGetValue=function(element){var ret="";try{if(element.search("_count")>-1){var str=element.toJSONArrayPattern().replace("_count","length"),val=eval("dm."+str);return val}return eval("dm."+element.toJSONArrayPattern())}catch(e){}return ret},API.prototype.LMSSetValue=function(e,t){var n;n=$.browser.msie&&$.browser.version.substr(0,$.browser.version.indexOf("."))<=8?document.querySelectorAll(".fancybox-iframe")[0].contentWindow.location.href:document.getElementsByClassName("fancybox-iframe")[0].contentWindow.location.href;var r=new RegExp("/[0-9]+/"),o=r.exec(n),i=o[0].split("/"),s=i[1];return setJSON(e,t),"cmi.suspend_data"!=e&&("cmi.score.raw"!=e&&"cmi.core.score.raw"!=e||window.score==t||(window.score=t,$.ajax({type:"GET",url:"./service/tracking/getevents.do?event="+e+"&status="+t+"&oid="+s,dataType:"json",xhrFields:{withCredentials:!0},success:function(){}})),"cmi.session_time"!=e&&"cmi.core.session_time"!=e||window.time==t||(window.time=t,$.ajax({type:"GET",url:"./service/tracking/getevents.do?event="+e+"&status="+t+"&oid="+s,dataType:"json",xhrFields:{withCredentials:!0},success:function(){}})),"cmi.completion_status"!=e&&"cmi.core.completion_status"!=e&&"cmi.core.lesson_status"!=e||window.status==t||(window.status=t,$.ajax({type:"GET",url:"./service/tracking/getevents.do?event="+e+"&status="+t+"&oid="+s,dataType:"json",xhrFields:{withCredentials:!0},success:function(){}})),"cmi.success_status"!=e&&"cmi.core.success_status"!=e||window.success==t||(window.success=t,$.ajax({type:"GET",url:"./service/tracking/getevents.do?event="+e+"&status="+t+"&oid="+s,dataType:"json",xhrFields:{withCredentials:!0},success:function(){}}))),"true"},API.prototype.LMSCommit=function(){return!0},API.prototype.LMSGetLastError=function(){return"0"},API.prototype.LMSGetErrorString=function(){},API.prototype.LMSGetDiagnostic=function(){},API.prototype.CloseWindow=function(){$=window.parent.jQuery,"undefined"!=typeof jQuery&&($=jQuery),$("a.refresh.current").data("clicked")||($(".fancybox-close:visible").click(),$("a.refresh.current").data("clicked",!0).focus().click())},window.API=new API,API_1484_11.prototype.Initialize=window.API.LMSInitialize,API_1484_11.prototype.Terminate=function(e){return this.Commit(e),this.CloseWindow(),!0},API_1484_11.prototype.GetValue=window.API.LMSGetValue,API_1484_11.prototype.SetValue=window.API.LMSSetValue,API_1484_11.prototype.Commit=window.API.LMSCommit,API_1484_11.prototype.GetLastError=window.API.LMSGetLastError,API_1484_11.prototype.GetErrorString=window.API.LMSGetErrorString,API_1484_11.prototype.GetDiagnostic=window.API.LMSGetDiagnostic,API_1484_11.prototype.CloseWindow=window.API.CloseWindow,window.API_1484_11=new API_1484_11;var dm={};String.prototype.toJSONArrayPattern=function(){for(var e=this.split("."),t=[];e.length>0;){var n=e.shift();isNaN(n)&&(e.length>0&&!isNaN(e[0])&&(n=n+"["+e.shift()+"]"),t.push(n))}return t.join(".")};