/* 
﻿Copyright © 1998, 2012, Oracle and/or its affiliates.  All rights reserved.*/ 
var dlg_parent,dialogh_ref,device_dpi,dialog2_html,modal_dialog,dlg_width,dlg_height,dlg_autosizeheight=false,callback_end="",isopened=false;function setParent(d){dlg_parent=d}function Click1(){closeDialog();$("#graydiv").remove()}function getDPI(){return device_dpi}function setWidth(d,e){$(d).css("width",e)}function setHeight(d,e){$(d).css("height",e)}function getFullWidth(){return IsIE7()?$(window).width():document.body.scrollWidth}
function getFullHeight(){return IsIE7()?$(window).height():document.body.scrollHeight}function setPadding(d,e,f){s="<div style='padding:"+e+"px'";if(f&&f!="")s+=" class='"+f+"'";s+=">"+d+"</div>";return s}
function getContentSize(d){var e={width:0,height:0};o=$("<div style='display:visible;position:absolute;top:0px;left:0px;' id='04A98DB973UPK'>"+d+"</div>");$("body").append(o);e.width=$("#04A98DB973UPK").outerWidth(true);e.height=$("#04A98DB973UPK").outerHeight(true);$("#04A98DB973UPK").remove();return e}function showDialog3(d,e,f,g,j,l,m,q,r){showDialog2(d,e,f,g,j,l,m,q);$("body").append("<div id='04A98DB974UPK'>"+r+"</div>")}
function showDialog2(d,e,f,g,j,l,m,q){dlg_autosizeheight=j==-1?true:false;dialog2_html=d;showDialog("",e,f,g,j,l,m,"",q)}
function showDialog(d,e,f,g,j,l,m,q,r){isopened=true;if(m==0)m=96;if(e!=-1)e=PtToPx(e,m);if(f!=-1)f=PtToPx(f,m);g=PtToPx(g,m);j=PtToPx(j,m);dlg_width=g;dlg_height=j;device_dpi=m;dialogh_ref=d;modal_dialog=l;if(e==-1||f==-1){centerx=$(window).width()/2-g/2+$(document).scrollLeft();centery=$(window).height()/2-j/2+$(document).scrollTop()}else{centerx=e;centery=f}mainref=r?dialogh_ref:q&&q!=""?q+"dialog1.html":"../dialog1.html";if(d=="")mainref="../dialog2.html";d=getFullWidth();e=getFullHeight();l?
$(document.body).append('<div id="scrollarea" scrolling="no" style="display:visible;position:absolute; top:0px; left: 0px; overflow:auto; z-index: 100;width:'+d+"px;height:"+e+'px;"></div>'):$(document.body).append('<div id="scrollarea" scrolling="yes"  style="overflow:auto; z-index: 99;" onclick="Click1();"></div>');if(e<j)centery=0;$(document.body).append('<div id="ehandlerdiv" style="display:none;position:absolute; top:0px; left: 0px; width:100%; height:100%; display:none; z-index: 999;"></div>');
l?$(document.body).append('<div id="graydiv" scrolling="yes" class="pointerdiv" style="display:none;z-index: 99;width:'+d+"px;height:"+e+'px;"></div>'):$(document.body).append('<div id="graydiv" scrolling="yes" class="pointerdiv2" style="display:none;z-index: 99;" onclick="Click1();"></div>');$("#graydiv").show();$("#scrollarea").append('<div id="draggable" style="visibility:hidden;position:absolute; left:'+centerx+"px; top:"+centery+"px; width: "+g+"px; height: "+j+'px;z-index: 998; overflow:hidden;">');
$("#draggable").append('<iframe id="if1" scrolling="no" src="'+mainref+'" frameborder="0" style="width: 100%; height: 100%; margin:0px; padding:0px; position: absolute;top: 0px; left: 0px; background-color: white;"></iframe>')}function isOpenDialog(){return isopened}function removeDiv(d){$(d).remove()}function appendDiv(d){$(document.body).append(d)}
function resizeDialog(){var d=getFullWidth(),e=getFullHeight();$("#graydiv").css("width",d+"px");$("#graydiv").css("height",e+"px");$("#scrollarea").css("width",d+"px");$("#scrollarea").css("height",e+"px")}function closeDialog(){$("#ehandlerdiv").remove();$("#draggable").remove();$("#04A98DB974UPK").remove();$("#graydiv").remove();$("#scrollarea").remove();isopened=false;if(dlg_parent)callback_end&&dlg_parent.eval(callback_end);else callback_end&&eval(callback_end)}
function setOnCloseEvent(d){callback_end=d}function getOnCloseEvent(){return callback_end}function getDialog2Content(){return dialog2_html};function filterHTML(d){d=replaceString("&","&amp;",d);d=replaceString("<","&lt;",d);return d=replaceString(">","&gt;",d)}function replaceString(d,e,f){if(f!=null)return f.replace(RegExp(d,"g"),e)}function PtToPx(d,e){return d*e/72}function PxToPt(d,e){return d/e*72}function getDPICookie(){var d=new Cookie(document,"UPKDpiDailyWarning","today","/");d.Load();if(d.DPIdailyWarning==1)return true;d.DPIdailyWarning=1;d.Store();return false};var Escape={};Escape.SafeUri_EscapeCharacter="/";Escape.SafeUri_UnsafeCharacters=["<",">",'"',"'","%",";","(",")","&","+"];Escape.SafeUriEscape=function(d){return Escape.__Escape(d,1)};Escape.SafeUriUnEscape=function(d){return Escape.__UnEscape(d,1)};Escape.MyEscape=function(d){return Escape.__Escape(d,0)};Escape.MyUnEscape=function(d){return Escape.__UnEscape(d,0)};
Escape.__Escape=function(d,e){for(var f="",g=0;g<d.length;g++){ss=d.substr(g,1);if(e==0?Escape.__Normal_Contains(ss):!Escape.__SafeUri_Contains(ss))f+=ss;else{ss=d.charCodeAt(g);a="0000"+ss.toString(16).toUpperCase();f+=(e==0?"$":Escape.SafeUri_EscapeCharacter)+a.substr(a.length-4)}}return f};
Escape.__UnEscape=function(d,e){for(var f="",g=false,j=0;j<d.length;j++)if(g){ss=d.substr(j,4);f+=String.fromCharCode(parseInt("0x"+ss));j+=3;g=false}else{ss=d.substr(j,1);if(ss==(e==0?"$":Escape.SafeUri_EscapeCharacter))g=true;else f+=ss}return f};Escape.__Normal_Contains=function(d){return d>="0"&&d<="9"||d>="a"&&d<="z"||d>="A"&&d<="Z"};
Escape.__SafeUri_Contains=function(d){for(var e=Escape.SafeUri_UnsafeCharacters.length,f=0;f<e;f++)if(d==Escape.SafeUri_UnsafeCharacters[f])return true;if(d==Escape.SafeUri_EscapeCharacter)return true;return false};function UrlParser(){this.params=[];this.safemode=false}UrlParser.prototype.Clone=function(){var d=new UrlParser;d.params=[];d.safemode=this.safemode;for(var e in this.params)if(this.params[e]!=null)d.params[e]=this.params[e];return d};
UrlParser.prototype.Parse=function(){var d,e;d=document.location.hash.substring(1);d=d.split("&");if(d.length==0||d[0]==""){d=document.location.search.substring(1);d=d.split("&")}if(d.length>0)if(d[0].toLowerCase().substr(0,3)=="su="){this.safemode=true;d=d[0].substr(3);d=Escape.SafeUriUnEscape(d);d=d.split("&")}for(var f=0;f<d.length;f++){e=d[f];if(e.length!=0){var g=e.split("=");if(g.length==2)this.params[g[0].toLowerCase()]=g[1];else if(g.length<2)this.params[g[0].toLowerCase()]="";else this.params[g[0].toLowerCase()]=
e.substr(g[0].length+1)}}};UrlParser.prototype.GetSafeMode=function(){return this.safemode};UrlParser.prototype.SetSafeMode=function(d){this.safemode=d};UrlParser.prototype.GetParameter=function(d){return this.params[d.toLowerCase()]};UrlParser.prototype.AddParameter=function(d,e){this.params[d.toLowerCase()]=e};UrlParser.prototype.RemoveParameter=function(d){this.params[d.toLowerCase()]=null};UrlParser.prototype.ClearParameterList=function(){this.params=null;this.params=[]};
UrlParser.prototype.BuildParameterList=function(d){d="";var e=true,f;for(f in this.params){var g=this.params[f];if(g!=null){if(e==false)d+="&";e=false;d+=g.length==0?f:f+"="+this.params[f]}}if(this.safemode)d="su="+Escape.MyEscape(d);return d};
UrlParser.prototype.GetCorrectUrl=function(d,e){if(!this.safemode)return d;var f,g=d.indexOf("#");if(g==-1)g=d.indexOf("?");if(g>=0){var j=d.substring(g+1);f=j.split("&");if(f[0].toLowerCase().substr(0,3)=="su=")return d;return d.substring(0,g+1)+"su="+Escape.SafeUriEscape(j)}else return d+(e?"":"?su=")};var _simulate_120_dpi=false;function IsTouchDevice(){return window.Touch}function IsMacOs(){return k=navigator.userAgent.indexOf("Macintosh")>=0}function IsFF3(){if(this.navigator)if(this.navigator.userAgent)if(this.navigator.userAgent.indexOf("Firefox/3")>0)return true;return false}function IsFF(){var d=new BrowserInfo;GetBrowserInfo(d);return d.name=="Firefox"}function IsFF4(){var d=new BrowserInfo;GetBrowserInfo(d);if(d.name!="Firefox")return false;return d.version==4}
function checkFFVersion(d){var e=new BrowserInfo;GetBrowserInfo(e);if(e.name!="Firefox")return false;return e.version==d}function IsSafari(){var d=new BrowserInfo;GetBrowserInfo(d);return d.name=="Safari"||d.name=="Chrome"}function IsExplorer(){var d=new BrowserInfo;GetBrowserInfo(d);return d.name=="MSIE"}function IsIE7(){var d=new BrowserInfo;GetBrowserInfo(d);if(d.name!="MSIE")return false;return d.version==7}
function IsIE8(){var d=new BrowserInfo;GetBrowserInfo(d);if(d.name!="MSIE")return false;return d.version==8||d.trident&&d.tridentVersion==4}function IsIE9(){var d=new BrowserInfo;GetBrowserInfo(d);if(d.name!="MSIE")return false;return d.version==9||d.trident&&d.tridentVersion==5}function IsIE10(){var d=new BrowserInfo;GetBrowserInfo(d);if(d.name!="MSIE")return false;return d.version==10||d.trident&&d.tridentVersion==6}
function IsActiveXEnabled(){var d=null;try{d=!!new ActiveXObject("htmlfile")}catch(e){d=false}return d}function IsIE10Modern(){if(IsIE10()==false)return false;return!IsActiveXEnabled()}function IsiOS(){p=navigator.platform;if(p==="iPad"||p==="iPad Simulator"||p==="iPhone"||p==="iPod")return true;return false}function IsiOS5(){p=navigator.userAgent;return p.indexOf("CPU OS 5_")>=0}function IsiOS6(){p=navigator.userAgent;return p.indexOf("CPU OS 6_")>=0}
function IsSoundSupported(){if(IsiOS())return false;swfobject.getFlashPlayerVersion();return true}function BrowserInfo(){this.name="";this.subversion=this.version=0;this.trident=false;this.tridentVersion=0}
function GetBrowserInfo(d){s=navigator.userAgent;k=-1;if(s.indexOf("Chrome")>=0){d.name="Chrome";k=s.indexOf("Chrome")+7}else if(s.indexOf("Opera")>=0){d.name="Opera";k=s.indexOf("Opera")+6}else if(s.indexOf("Firefox")>=0){d.name="Firefox";k=s.indexOf("Firefox")+8}else if(s.indexOf("Safari")>=0){d.name="Safari";k=s.indexOf("Version")+8}else if(s.indexOf("MSIE")>=0){d.name="MSIE";k=s.indexOf("MSIE")+5;var e=s.indexOf("Trident/");if(e>=0){d.trident=true;d.tridentVersion=parseInt(s.substr(e+8))}}else{d.name=
"other";d.version=0;return}d.version=parseInt(s.substr(k));d.subversion=parseInt(s.substr(k+2,1))}function IsSupportedBrowser(){var d=new BrowserInfo;GetBrowserInfo(d);k=false;if(d.name=="MSIE"&&d.version>=7)k=true;if(d.name=="Firefox"&&(d.version>=3&&d.subversion>=5||d.version>=4))k=true;if(d.name=="Safari"&&d.version>=4)k=true;if(d.name=="Chrome"&&d.version>=18)k=true;return k}
function getDIV(d){try{if(document.all)return document.all(d);else if(document.getElementById)return document.getElementById(d);else if(document.layers){var e=document.layers.screen.document.layers[d];e||(e=document.layers[d]);return e}return 0}catch(f){return null}}
function getDIVstyle(d){try{if(document.all)return document.all(d).style;else if(document.getElementById){if(document.getElementById(d).style!=null)return document.getElementById(d).style}else if(document.layers){var e=document.layers.screen.document.layers[d];e||(e=document.layers[d]);return e}return 0}catch(f){return null}}function shiftTo(d,e,f){d=getDIVstyle(d);if(d.moveTo)d.moveTo(e,f);else{d.left=e+"px";d.top=f+"px"}}
function getUniWidth(d){try{var e=getDIV(d),f;if(d.style.width)f=parseInt(d.style.width);else if(d.style.pixelWidth)f=d.style.pixelWidth;else if(d.offsetWidth)f=d.offsetWidth;else if(document.defaultView&&document.defaultView.getComputedStyle)f=document.defaultView.getComputedStyle(e,"").getPropertyValue("width");if(typeof f=="string")f=parseInt(f);return f}catch(g){return null}}
function getUniHeight(d){try{var e=getDIV(d),f;if(d.style.height)f=parseInt(d.style.height);else if(d.style.pixelHeight)f=d.style.pixelHeight;else if(d.offsetHeight)f=d.offsetHeight;else if(document.defaultView&&document.defaultView.getComputedStyle)f=document.defaultView.getComputedStyle(e,"").getPropertyValue("height");if(typeof f=="string")f=parseInt(f);return f}catch(g){return null}}
function getClientWidth(d){try{var e=getDIV(d);return e.clientWidth?e.clientWidth:parseInt(e.width)}catch(f){return d.offsetWidth}}function getClientHeight(d){try{var e=getDIV(d);return e.clientHeight?e.clientHeight:parseInt(e.height)}catch(f){return d.offsetHeight}}function getObjHeight(d){d=getDIV(d);return d.clip?d.clip.height:d.offsetHeight}function getObjWidth(d){d=getDIV(d);return d.clip?d.clip.width:d.offsetWidth}
function getObjLeft(d){try{var e=getDIVstyle(d);return e.pixelLeft?e.pixelLeft:parseInt(e.left)}catch(f){return parseInt(d.offsetLeft)}}function getObjTop(d){try{var e=getDIVstyle(d);return e.pixelTop?e.pixelTop:parseInt(e.top)}catch(f){return parseInt(d.offsetTop)}}function getInsideWindowWidth(){return window.innerWidth?window.innerWidth:document.body.clientWidth}function getInsideWindowHeight(){return window.innerHeight?window.innerHeight:document.body.clientHeight}
function getScrollLeft(){return window.pageXOffset||window.pageXOffset==0?window.pageXOffset:document.body.scrollLeft}function getScrollTop(){return window.pageYOffset||window.pageYOffset==0?window.pageYOffset:document.body.scrollTop}function show(d,e){getDIVstyle(d).visibility="visible";if(e&&IsiOS())try{playMode=="S"&&showActObj.type=="Input"&&$("#"+d+" input").attr("readonly",true)}catch(f){}}function hide(d){getDIVstyle(d).visibility="hidden"}var __DPIwidth=0;
function getDpiInfo(){var d=document.getElementById("DPIInfoDiv");if(d!=null){__DPIwidth=d.clientWidth;__DPIwidth!=0&&document.getElementsByTagName("body")[0].removeChild(d)}return _simulate_120_dpi==true?120:__DPIwidth}function initDpiInfo(){document.write('<div id="DPIInfoDiv" style="visibility:hidden; width: 72pt; height: 1pt;">DPIINFODIV</div>')}function checkIEDPI(){return true};var isOnLink=false;
function ShowInfoBlock(d){try{playMode!=null&&playMode!=""&&PlayStop()}catch(e){}var f=false;d=Escape.MyUnEscape(d);if(d.indexOf("odrel://")==0)d=resolve(d);for(var g=d;g.substr(0,3)=="../";)g=g.substr(3);if(g.substr(36)=="/index.html")f=true;if(f){f=screen.availWidth;f=(f-PlayerConfig.InfoWidth)/2;g=screen.availHeight;g=(g-PlayerConfig.InfoHeight)/2;id=window.open(d,"","top="+g+",left="+f+",width="+PlayerConfig.InfoWidth+",height="+PlayerConfig.InfoHeight+"toolbar=1,scrollbars=1,statusbar=1,resizable=1,fullscreen=0")}else{iw=PlayerConfig.InfoWidth;
ih=PlayerConfig.InfoHeight;if(PlayerConfig.InfoWidth2)if(PlayerConfig.InfoWidth2.length>0)iw=PlayerConfig.InfoWidth2;if(PlayerConfig.InfoHeight2)if(PlayerConfig.InfoHeight2.length>0)ih=PlayerConfig.InfoHeight2;f=screen.availWidth;f=(f-iw)/2;g=screen.availHeight;g=(g-ih)/2;id=window.open(d,"","top="+g+",left="+f+",width="+iw+",height="+ih+"toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,fullscreen=0")}setTimeout("Center("+f+","+g+")",500)}function OnLink(){isOnLink=true}
function OffLink(){isOnLink=false}var globalloc="";function MakeAbsolute(d){if(d.toLowerCase().substr(0,7)=="mailto:")return d;var e="";if(globalloc.length==0)for(globalloc=location.href;globalloc.indexOf("\\")!=-1;)globalloc=globalloc.replace("\\","/");e=globalloc;var f=e.indexOf("#");if(f<0)f=e.indexOf("?");if(f>=0)e=e.substr(0,f);f=e.lastIndexOf("/");return f!=-1&&d.indexOf("//")==-1?e.substr(0,f+1)+d:d}var id;function Center(d,e){try{id.focus();id.moveTo(d,e)}catch(f){}};var _workerFunction="",_errorFunction="",_extraInfo="",_req,_url;
function AbsUrl(d){for(var e=0;e<d.length;e++){c=d.substr(e,1);if(c==":")return d}base=window.location.href;e=base.indexOf("?");var f=base.indexOf("#");if(e>=0||f>=0)base=e>=0&&f>=0?base.substr(0,e<f?e:f):e>=0?base.substr(0,e):base.substr(0,f);if(d.substr(0,3)=="../"){e=base.lastIndexOf("/");for(base=base.substr(0,e);d.substr(0,3)=="../";){e=base.lastIndexOf("/");base=base.substr(0,e);d=d.substr(3)}}else{if(d.substr(0,1)=="/")d=d.substr(1);e=base.lastIndexOf("/");base=base.substr(0,e)}return base=
base+"/"+d}function LoadXMLDoc(d,e,f,g){_workerFunction=e;_errorFunction=f;_extraInfo=g;_url=AbsUrl(d);_req=null;try{if(window.location.href.substr(0,7).toLowerCase()=="http://"||window.location.href.substr(0,8).toLowerCase()=="https://")_req=new XMLHttpRequest}catch(j){}finally{if(_req==null)_req=new ActiveXObject("Microsoft.XMLHTTP")}_req.onreadystatechange=state_Change;_req.open("GET",_url,true);_req.send(null)}
function state_Change(){if(_req.readyState==4)if(_req.status==200)eval(_workerFunction+"(_req,_extraInfo)");else if(_req.status==0){if(_req.responseXML.documentElement==null){var d=new ActiveXObject("Microsoft.XMLDOM");d.async=false;d.loadXML(_req.responseText);_req={};_req.responseXML=d}eval(_workerFunction+"(_req,_extraInfo)")}else if(_url.substr(0,3)=="../")LoadXMLDoc(_url.substr(3),_workerFunction,_errorFunction,_extraInfo);else if(_errorFunction.length>0){alert(_url+" not found. Logged...");
eval(_errorFunction+"(_extraInfo)")}else alert("Problem retrieving data: "+_req.statusText)}var _returnFunction="",_nodes,_nodesArray=[];function LoadXMLDocArray(d,e,f,g,j){_returnFunction=e;_nodeName=g;j?LoadXMLDoc(d,"XMLDocArrayWorker2",f,g):LoadXMLDoc(d,"XMLDocArrayWorker",f,g)}
function XMLDocArrayWorker(d,e){_nodesArray=[];_nodes=d.responseXML.getElementsByTagName(e);for(var f=0;f<_nodes.length;f++){n=_nodes[f];(s=n.textContent?n.textContent:n.text)||(s="");k=s.length;if(k>=2)if(s.substr(0,1)=='"'&&s.substr(k-1,1)=='"')s=ss=s.substr(1,k-2);_nodesArray[_nodesArray.length]=s}sfn=_returnFunction+"(_nodesArray)";setTimeout(sfn,1)}
function XMLDocArrayWorker2(d,e){_nodesArray=[];_nodes=d.responseXML.getElementsByTagName(e);for(var f=0;f<_nodes.length;f++){n=_nodes[f];xmlname=n.attributes[0].nodeValue;xmltext="";for(var g=0;g<n.childNodes.length;g++)if(n.childNodes[g].xml)xmltext+=n.childNodes[g].xml;else{var j=new XMLSerializer;xmltext+=j.serializeToString(n.childNodes[g])}_nodesArray[_nodesArray.length]=xmlname+"="+xmltext}sfn=_returnFunction+"(_nodesArray)";setTimeout(sfn,1)};var LMS_PASSED="passed",LMS_FAILED="failed",LMS_COMPLETED="completed",LMS_INCOMPLETE="incomplete",LMS_NOT_ATTEMPTED="not attempted";Date.prototype.toSCORM=function(){return this.getFullYear()+"-"+("0"+(this.getMonth()+1)).slice(-2)+"-"+("0"+this.getDate()).slice(-2)+"T"+("0"+this.getHours()).slice(-2)+":"+("0"+this.getMinutes()).slice(-2)+":"+("0"+this.getSeconds()).slice(-2)};
function LmsComBase(d){this.status_obj=null;this.ordinal_number=0;this.credit=this.student_name=this.student_id=this.end_date=this.start_date="";this.lesson_status=LMS_NOT_ATTEMPTED;this.time=this.score=this.core_vendor=this.original_lesson_data=this.lesson_data=this.lesson_location=this.lesson_flag="";this.idle_time=0;this.guid=this.owner=null;this.bigsco=this.session_active=false;if(d!=null){this.Copy(d);this.ParentLmsCom=d}this.object_type_name="LmsComBase"}
LmsComBase.prototype.GetOrdinalNumber=function(){return this.ordinal_number};LmsComBase.prototype.SetOrdinalNumber=function(d){this.ordinal_number=d};LmsComBase.prototype.Copy=function(d){this.student_id=d.student_id;this.student_name=d.student_name;this.credit=d.credit;this.lesson_status=d.lesson_status;this.bigsco=d.bigsco;this.lesson_data=d.lesson_data;this.lesson_location=d.lesson_location};
LmsComBase.prototype.Begin=function(){this.start_date=(new Date).getTime();this.session_active&&alert(R_lmscom_already_active);return this.session_active=true};LmsComBase.prototype.End=function(){this.session_active||alert(R_lmscom_inactive);this.end_date=(new Date).getTime();this.session_active=false;return true};LmsComBase.prototype.LoadAPIAdapter=function(d){d()};LmsComBase.prototype.SendCompletionInfo=function(){};
LmsComBase.prototype.NotifyParent=function(){var d=this.ParentLmsCom;d&&!d.owner.closed&&d.owner.ListenChildClose&&d.owner.ListenChildClose()};LmsComBase.prototype.getReportedLessonStatus=function(){return this.lesson_status===LMS_PASSED?LmsConfig.ReportOnPass:this.lesson_status===LMS_FAILED?LmsConfig.ReportOnFail:this.lesson_status};LmsComBase.prototype.computeTime=function(d,e){return this.convertTotalSeconds((e-d-this.idle_time)/1E3)};
LmsComBase.prototype.convertTotalSeconds=function(d){var e=d%60;d-=e;var f=d%3600;d-=f;e=Math.round(e*100)/100;var g=e=new String(e);if(e.indexOf(".")!=-1){g=e.substring(0,e.indexOf("."));e.substring(e.indexOf(".")+1,e.length)}if(g.length<2)g="0"+g;e=g;d=d%3600!=0?0:d/3600;f=f%60!=0?0:f/60;if((new String(d)).length<2)d="0"+d;if((new String(f)).length<2)f="0"+f;return d+":"+f+":"+e};LmsComBase.prototype.GetBookmark=function(d){if(this.ParentLmsCom)return this.ParentLmsCom.GetBookmark(d);return 0};
LmsComBase.prototype.doGetUPKValue=function(d){if(this.ParentLmsCom)return this.ParentLmsCom.doGetUPKValue(d);return""};LmsComBase.prototype.doSetUPKValue=function(d,e){this.ParentLmsCom&&this.ParentLmsCom.doSetUPKValue(d,e)};LmsComBase.prototype.doUPKCommit=function(){this.ParentLmsCom&&this.ParentLmsCom.doUPKCommit()};LmsComBase.prototype.setInteraction=function(d,e){if(this.ParentLmsCom)return this.ParentLmsCom.setInteraction(d,e)};
LmsComBase.prototype.getAnsweredQuestions=function(){if(this.ParentLmsCom)return this.ParentLmsCom.getAnsweredQuestions();return{}};LmsComBase.prototype.setObjective=function(d,e){this.ParentLmsCom&&this.ParentLmsCom.setObjective(d,e)};LmsComBase.prototype.requestContinue=function(){this.ParentLmsCom&&this.ParentLmsCom.requestContinue()};LmsComBase.prototype.IsConnected=function(){if(this.ParentLmsCom)return this.ParentLmsCom.IsConnected();return false};
LmsComBase.prototype.OpenBasicStatus=function(){this.status_obj=new LmsBasicStatus;this.status_obj.status=this.lesson_status;return this.status_obj};
LmsComBase.prototype.OpenTopicStatus=function(d,e){this.status_obj=new LmsTopicStatus;this.status_obj.setRequiredMode(d,e);lmslog.addEntry(0,"OpenTopicStatus","RequiredMode",this.status_obj.requiredMode);this.status_obj.isScored=!!d.K;var f;f=GetTopLevelLmsMode()=="LMS"?d:e;this.status_obj.setModeavail("S",f.S);this.status_obj.setModeavail("T",f.T);this.status_obj.setModeavail("K",f.K);this.status_obj.setModeavail("D",f.D);this.status_obj.setModeavail("P",f.P);this.status_obj.setModeavail("E",f.E);
lmslog.addEntry(0,"OpenTopicStatus","SeeIt",this.status_obj.getModeavail("S"));lmslog.addEntry(0,"OpenTopicStatus","TryIt",this.status_obj.getModeavail("T"));lmslog.addEntry(0,"OpenTopicStatus","KnowIt",this.status_obj.getModeavail("K"));lmslog.addEntry(0,"OpenTopicStatus","DoIt",this.status_obj.getModeavail("D"));lmslog.addEntry(0,"OpenTopicStatus","PrintIt",this.status_obj.getModeavail("P"));lmslog.addEntry(0,"OpenTopicStatus","TestIt",this.status_obj.getModeavail("E"));if(this.bigsco){this.status_obj.savedStatus=
this.lesson_data.charAt(0);this.lesson_data=this.lesson_data.substring(1)}this.status_obj.initTopicstat(this.lesson_data);return this.status_obj};
LmsComBase.prototype.OpenTopicLaunchStatus=function(d,e,f){this.status_obj=new LmsTopicLaunchStatus(d);this.status_obj.setRequiredMode(e,f);lmslog.addEntry(0,"OpenTopicLaunchStatus","RequiredMode",this.status_obj.requiredMode);this.status_obj.isScored=e.indexOf("K")!=-1;d=GetTopLevelLmsMode()=="LMS"?e:f;this.status_obj.setModeavail("S",d.indexOf("S")!=-1);this.status_obj.setModeavail("T",d.indexOf("T")!=-1);this.status_obj.setModeavail("K",d.indexOf("K")!=-1);this.status_obj.setModeavail("D",d.indexOf("D")!=
-1);this.status_obj.setModeavail("P",d.indexOf("P")!=-1);this.status_obj.setModeavail("E",d.indexOf("E")!=-1);lmslog.addEntry(0,"OpenTopicLaunchStatus","SeeIt",this.status_obj.getModeavail("S"));lmslog.addEntry(0,"OpenTopicLaunchStatus","TryIt",this.status_obj.getModeavail("T"));lmslog.addEntry(0,"OpenTopicLaunchStatus","KnowIt",this.status_obj.getModeavail("K"));lmslog.addEntry(0,"OpenTopicLaunchStatus","DoIt",this.status_obj.getModeavail("D"));lmslog.addEntry(0,"OpenTopicLaunchStatus","PrintIt",
this.status_obj.getModeavail("P"));lmslog.addEntry(0,"OpenTopicLaunchStatus","TestIt",this.status_obj.getModeavail("E"));this.status_obj.initTopicstat(this.lesson_data);return this.status_obj};LmsComBase.prototype.OpenQuestionStatus=function(){this.status_obj=new LmsQuestionStatus;this.status_obj.status=LMS_NOT_ATTEMPTED;this.status_obj.savedStatus=this.lesson_data?Stat2Lms(this.lesson_data):LMS_NOT_ATTEMPTED;return this.status_obj};
LmsComBase.prototype.OpenAssessmentStatus=function(d,e){this.status_obj=new LmsAssessmentStatus;this.status_obj.hash=e;var f=this.lesson_data,g,j=null;if(f)if(this.bigsco)j=e;else{var l=f.indexOf("@");if(l>0){g=parseInt(f.substring(0,l));j=f.substring(l+1,l+g+1).replace(/ /g,"+");f=f.substring(l+g+1)}}if(e===j&&f.length===d+1){this.status_obj.savedStatus=f.charAt(0);this.status_obj.status=f.charAt(0)==="I"?LMS_INCOMPLETE:LMS_NOT_ATTEMPTED;for(g=0;g<d;g++)this.status_obj.questionstatus[g]=f.charAt(g+
1)}else{if(f&&!this.bigsco){this.status_obj.stateDiscarded=true;this.status_obj.savedStatus=f.charAt(0)}else this.status_obj.savedStatus="N";this.status_obj.status=LMS_NOT_ATTEMPTED;for(g=0;g<d;g++)this.status_obj.questionstatus[g]="N"}return this.status_obj};LmsComBase.prototype.OpenTOCStatus=function(d,e){var f=new LmsTOCStatus;this.status_obj=f;var g=new TOCState(d,e);f.setTocState(g);this.lesson_data!=null&&this.lesson_data.length>0&&g.DeserializeTOC(this.lesson_data);return f};
LmsComBase.prototype.SaveStatus=function(){this.status_obj&&this.status_obj.Save(this)};LmsComBase.prototype.utGetModeIndex=function(){this.ParentLmsCom&&this.ParentLmsCom.utGetModeIndex()};LmsComBase.prototype.utPushModeIndex=function(){this.ParentLmsCom&&this.ParentLmsCom.utPushModeIndex()};LmsComBase.prototype.utPopModeIndex=function(){this.ParentLmsCom&&this.ParentLmsCom.utPopModeIndex()};LmsComBase.prototype.utRecordType=function(d){this.ParentLmsCom&&this.ParentLmsCom.utRecordType(d)};
LmsComBase.prototype.utRecordStartTime=function(d){this.ParentLmsCom&&this.ParentLmsCom.utRecordStartTime(d)};LmsComBase.prototype.utRecordEndTime=function(d){this.ParentLmsCom&&this.ParentLmsCom.utRecordEndTime(d)};LmsComBase.prototype.utRecordCompletionStatus=function(d){this.ParentLmsCom&&this.ParentLmsCom.utRecordCompletionStatus(d)};LmsComBase.prototype.utRecordSuccessStatus=function(d){this.ParentLmsCom&&this.ParentLmsCom.utRecordSuccessStatus(d)};
LmsComBase.prototype.utRecordScoreScaled=function(d){this.ParentLmsCom&&this.ParentLmsCom.utRecordScoreScaled(d)};LmsComBase.prototype.utRecordFrameViewed=function(d){this.ParentLmsCom&&this.ParentLmsCom.utRecordFrameViewed(d)};function LmsComScorm12(){this.allow_launch=false;this.object_type_name="LmsComScorm12"}LmsComScorm12.prototype=new LmsComBase;LmsComScorm12.prototype.constructor=LmsComScorm12;LmsComScorm12.prototype.BaseClass=LmsComBase.prototype;
LmsComScorm12.prototype.Begin=function(){LmsComScorm12.prototype.BaseClass.Begin.call(this);lmslog.addEntry(0,"LmsComScorm12.Begin","","Start");if(this.API==null){this.allow_launch=true;return false}if(this.API.LMSInitialize("")=="false"){var d=this.API.LMSGetLastError(),e=this.API.LMSGetErrorString(d)+"\n"+this.API.LMSGetDiagnostic("");this.API=null;lms_ConnectionLost(d+" "+e);lmslog.addEntry(0,"LmsComScorm12.Begin","",e);return false}this.lesson_status=this.original_lesson_status=this.doLMSGetValue("cmi.core.lesson_status");
this.lesson_data=this.doLMSGetValue("cmi.suspend_data");this.lesson_location=this.doLMSGetValue("cmi.core.lesson_location");this.student_id=this.doLMSGetValue("cmi.core.student_id");this.student_name=this.doLMSGetValue("cmi.core.student_name");this.allow_launch=true;lmslog.addEntry(0,"LmsComScorm12.Begin","","LMS session started");return true};
LmsComScorm12.prototype.End=function(){LmsComScorm12.prototype.BaseClass.End.call(this);lmslog.addEntry(0,"LmsComScorm12.End","","Start");if(!this.allow_launch)return false;this.allow_launch=false;if(this.API==null)return false;this.lesson_status==LMS_INCOMPLETE?this.doLMSSetValue("cmi.core.exit","suspend"):this.doLMSSetValue("cmi.core.exit","");this.doLMSSetValue("cmi.core.session_time",this.computeTime(this.start_date,this.end_date));this.lesson_data&&this.doLMSSetValue("cmi.suspend_data",this.lesson_data);
this.lesson_location&&this.doLMSSetValue("cmi.core.lesson_location",this.lesson_location);this.SendCompletionInfo(true);if(this.API&&this.API.LMSFinish("")=="false"){var d=this.API.LMSGetLastError(),e=this.API.LMSGetErrorString(d)+"\n"+this.API.LMSGetDiagnostic("");this.API=null;lms_ConnectionLost(d+" "+e);lmslog.addEntry(0,"LmsComScorm12.End","",e);return false}this.API=null;lmslog.addEntry(0,"LmsComScorm12.End","","LMS session terminated");return true};
LmsComScorm12.prototype.SendCompletionInfo=function(d){if(this.lesson_status===LMS_NOT_ATTEMPTED)this.original_lesson_status===LMS_NOT_ATTEMPTED?this.doLMSSetValue("cmi.core.lesson_status",LMS_INCOMPLETE):this.doLMSSetValue("cmi.core.lesson_status",this.original_lesson_status);else this.doLMSSetValue("cmi.core.lesson_status",this.getReportedLessonStatus());if(this.score!==""){this.doLMSSetValue("cmi.core.score.raw",this.score);this.doLMSSetValue("cmi.core.score.min","0");this.doLMSSetValue("cmi.core.score.max",
"100")}d||this.doLMSCommit()};LmsComScorm12.prototype.LoadAPIAdapter=function(d){this.API=null;if(GetLmsComFactory())this.API=GetLmsComFactory().scorm_api_12;d()};LmsComScorm12.prototype.IsConnected=function(){return this.API!=null};LmsComScorm12.prototype.ErrorCodes={NoError:0,GeneralException:101,ElementCannotHaveChildren:202,ElementNotAnArray:203,NotInitialized:301,NotImplemented:401,InvalidSetValue:402,ElementIsReadOnly:403,ElementIsWriteOnly:404,IncorrectDataType:405};
LmsComScorm12.prototype.doLMSGetValue=function(d){if(this.API==null)return"";var e=this.API.LMSGetValue(d),f=this.API.LMSGetLastError();if(f!=this.ErrorCodes.NoError){e=this.API.LMSGetErrorString(f);lms_ConnectionLost(f+" "+e+", "+d);lmslog.addEntry(0,"doLMSGetValue","",R_scorm_getvalfail+d+" "+e);return""}lmslog.addEntry(1,"doLMSGetValue",d,e);return e};
LmsComScorm12.prototype.doLMSSetValue=function(d,e){if(this.API==null)return"false";if(this.API.LMSSetValue(d,e)=="false"){var f=this.API.LMSGetLastError();if(f!=this.ErrorCodes.NoError&&f!=this.ErrorCodes.NotImplemented){var g=this.API.LMSGetErrorString(f);lms_ConnectionLost(f+" "+g+", "+d+", "+e);lmslog.addEntry(0,"doLMSSetValue","",R_scorm_setvalfail+d+":"+e+" "+g);return"false"}}lmslog.addEntry(1,"doLMSSetValue",d,e);return"true"};
LmsComScorm12.prototype.doLMSCommit=function(){if(this.API==null)return"false";if(this.API.LMSCommit("")=="false"){var d=this.API.LMSGetLastError(),e=this.API.LMSGetErrorString(d);lms_ConnectionLost(d+" "+e);lmslog.addEntry(0,"doLMSCommit","",e);this.API=null;return"false"}lmslog.addEntry(1,"doLMSCommit","","");return"true"};function LmsComScorm2004(){this.allow_launch=false;this.object_type_name="LmsComScorm2004";this.lesson_data_location="cmi.suspend_data"}LmsComScorm2004.prototype=new LmsComBase;
LmsComScorm2004.prototype.constructor=LmsComScorm2004;LmsComScorm2004.prototype.BaseClass=LmsComBase.prototype;
LmsComScorm2004.prototype.Begin=function(){LmsComScorm2004.prototype.BaseClass.Begin.call(this);lmslog.addEntry(0,"LmsComScorm2004.Begin","","Start");if(this.API==null){this.allow_launch=true;return false}if(this.API.Initialize("")=="false"){var d=this.API.GetLastError(),e=this.API.GetErrorString(d)+"\n"+this.API.GetDiagnostic("");this.API=null;lms_ConnectionLost(d+" "+e);lmslog.addEntry(0,"LmsComScorm2004.Begin","",e);return false}this.lesson_status=this.doGetValue("cmi.completion_status");if(this.lesson_status===
"unknown")this.lesson_status=LMS_NOT_ATTEMPTED;else if(this.lesson_status===LMS_COMPLETED){d=this.doGetValue("cmi.success_status");if(d===LMS_PASSED||d===LMS_FAILED)this.lesson_status=d}this.original_lesson_status=this.lesson_status;this.lesson_data=this.doGetValue(this.lesson_data_location);this.lesson_location=this.doGetValue("cmi.location");this.student_id=this.doGetValue("cmi.learner_id");this.student_name=this.doGetValue("cmi.learner_name");this.allow_launch=true;lmslog.addEntry(0,"LmsComScorm2004.Begin",
"","LMS session started");return true};
LmsComScorm2004.prototype.End=function(){LmsComScorm2004.prototype.BaseClass.End.call(this);lmslog.addEntry(0,"LmsComScorm2004.End","","Start");if(!this.allow_launch)return false;this.allow_launch=false;if(this.API==null)return false;this.lesson_status==LMS_INCOMPLETE?this.doSetValue("cmi.exit","suspend"):this.doSetValue("cmi.exit","normal");this.doSetValue("cmi.session_time",this.computeTime(this.start_date,this.end_date));this.lesson_data&&this.doSetValue(this.lesson_data_location,this.lesson_data);
this.lesson_location&&this.doSetValue("cmi.location",this.lesson_location);this.SendCompletionInfo(true);if(this.API&&this.API.Terminate("")=="false"){var d=this.API.GetLastError(),e=this.API.GetErrorString(d)+"\n"+this.API.GetDiagnostic("");this.API=null;lms_ConnectionLost(d+" "+e);lmslog.addEntry(0,"LmsComScorm2004.End","",e);return false}this.API=null;lmslog.addEntry(0,"LmsComScorm2004.End","","LMS session terminated");return true};
LmsComScorm2004.prototype.LoadAPIAdapter=function(d){this.API=null;if(GetLmsComFactory())this.API=GetLmsComFactory().scorm_api_2004;d()};
LmsComScorm2004.prototype.SendCompletionInfo=function(d){var e=this.getReportedLessonStatus();if(e===LMS_NOT_ATTEMPTED)e=this.original_lesson_status;if(e==LMS_PASSED||e==LMS_FAILED){this.doSetValue("cmi.success_status",e);this.doSetValue("cmi.completion_status",LMS_COMPLETED)}else this.doSetValue("cmi.completion_status",e);if(this.score!==""){this.doSetValue("cmi.score.raw",this.score);this.doSetValue("cmi.score.scaled",this.score/100);this.doSetValue("cmi.score.min","0");this.doSetValue("cmi.score.max",
"100")}d||this.doCommit()};LmsComScorm2004.prototype.convertTotalSeconds=function(d){var e=d%60;d-=e;var f=d%3600;d-=f;e=Math.round(e*100)/100;var g=e=new String(e);if(e.indexOf(".")!=-1){g=e.substring(0,e.indexOf("."));e.substring(e.indexOf(".")+1,e.length)}if(g.length<2)g="0"+g;e=g;d=d%3600!=0?0:d/3600;f=f%60!=0?0:f/60;if((new String(d)).length<2)d="0"+d;if((new String(f)).length<2)f="0"+f;return"PT"+d+"H"+f+"M"+e+"S"};LmsComScorm2004.prototype.IsConnected=function(){return this.API!=null};
LmsComScorm2004.prototype.ErrorCodes={NoError:0,GeneralException:101,GeneralInitializationFailure:102,AlreadyInitialized:103,ContentInstanceTerminated:104,GeneralTerminationFailure:111,TerminationBeforeInitialization:112,TerminationAfterTermination:113,RetrieveDataBeforeInitialization:122,RetrieveDataAfterTermination:123,StoreDataBeforeInitialization:132,StoreDataAfterTermination:133,CommitBeforeInitialization:142,CommitAfterTermination:143,GeneralArgumentError:201,GeneralGetFailure:301,GeneralSetFailure:351,
GeneralCommitFailure:391,UndefinedDataModelElement:401,UnimplementedDataModelElement:402,DataModelElementValueNotInitialized:403,DataModelElementIsReadOnly:404,DataModelElementIsWriteOnly:405,DataModelElementTypeMismatch:406,DataModelElementValueOutOfRange:407,DataModelDependencyNotEstablished:408,KPathTimeout:1501};
LmsComScorm2004.prototype.doGetValue=function(d){if(this.API==null)return"";var e=this.API.GetValue(d),f=this.API.GetLastError();if(f!=this.ErrorCodes.NoError&&f!=this.ErrorCodes.DataModelElementValueNotInitialized)if(f==this.ErrorCodes.KPathTimeout&&this.object_type_name=="LmsComKPath"){lmslog.addEntry(0,"doGetValue","","KCenter timeout");f=this.API.GetValue("upk.idle_time");lmslog.addEntry(0,"doGetValue","upk.idle_time",f);this.idle_time+=f;lmslog.addEntry(0,"doGetValue","idle_time",this.idle_time);
return this.doGetValue(d)}else{e=this.API.GetErrorString(f);lms_ConnectionLost(f+" "+e+", "+d);lmslog.addEntry(0,"doGetValue","",R_scorm_getvalfail+d+" "+e);return""}lmslog.addEntry(1,"doGetValue",d,e);return e};
LmsComScorm2004.prototype.doSetValue=function(d,e){if(this.API==null)return"false";if(this.API.SetValue(d,e)=="false"){var f=this.API.GetLastError();if(f!=this.ErrorCodes.NoError&&f!=this.ErrorCodes.UnimplementedDataModelElement)if(f==this.ErrorCodes.KPathTimeout&&this.object_type_name=="LmsComKPath"){lmslog.addEntry(0,"doSetValue","","KCenter timeout");f=this.API.GetValue("upk.idle_time");lmslog.addEntry(0,"doSetValue","upk.idle_time",f);this.idle_time+=f;lmslog.addEntry(0,"doSetValue","idle_time",
this.idle_time);return this.doSetValue(d,e)}else{var g=this.API.GetErrorString(f);lms_ConnectionLost(f+" "+g+", "+d+", "+e);lmslog.addEntry(0,"doSetValue","",R_scorm_setvalfail+d+":"+e+" "+g);return"false"}}lmslog.addEntry(1,"doSetValue",d,e);return"true"};
LmsComScorm2004.prototype.doCommit=function(){if(this.API==null)return"false";if(this.API.Commit("")=="false"){var d=this.API.GetLastError(),e=this.API.GetErrorString(d);if(d==this.ErrorCodes.KPathTimeout&&this.object_type_name=="LmsComKPath"){lmslog.addEntry(0,"doCommit","","KCenter timeout");d=this.API.GetValue("upk.idle_time");lmslog.addEntry(0,"doCommit","upk.idle_time",d);this.idle_time+=d;lmslog.addEntry(0,"doCommit","idle_time",this.idle_time);return this.doCommit()}else{this.API=null;lms_ConnectionLost(d+
" "+e);lmslog.addEntry(0,"doCommit","",e);return"false"}}lmslog.addEntry(1,"doCommit","","");return"true"};function LmsComKPath(d){this.allow_launch=false;if(d!=null){this.Copy(d);this.ParentLmsCom=d}this.object_type_name="LmsComKPath";this.lesson_data_location="upk.sco_data"}LmsComKPath.prototype=new LmsComScorm2004;LmsComKPath.prototype.constructor=LmsComKPath;LmsComKPath.prototype.BaseClass=LmsComScorm2004.prototype;
LmsComKPath.prototype.Begin=function(){lmslog.addEntry(0,"LmsComKPath.Begin","","Start");var d=LmsComKPath.prototype.BaseClass.Begin.call(this);this.doSetValue("upk.launch_from",GetTopLevelLmsMode());lmslog.addEntry(0,"LmsComKPath.Begin","","LMS session started");return d};
LmsComKPath.prototype.SendCompletionInfo=function(d){var e=this.getReportedLessonStatus();if(e===LMS_NOT_ATTEMPTED)this.doSetValue("cmi.completion_status",LMS_NOT_ATTEMPTED);else{if(e==LMS_PASSED||e==LMS_FAILED){this.doSetValue("cmi.success_status",e);this.doSetValue("cmi.completion_status",LMS_COMPLETED)}else this.doSetValue("cmi.completion_status",e);if(this.score!==""){this.doSetValue("cmi.score.raw",this.score);this.doSetValue("cmi.score.scaled",this.score/100);this.doSetValue("cmi.score.min",
"0");this.doSetValue("cmi.score.max","100")}d||this.doCommit()}};LmsComKPath.prototype.LoadAPIAdapter=function(d){if(this.API)d();else{var e=findKPathAPIFrame(window);if(e&&e.LoadRuntime&&this.guid){this.deferred_callback=d;var f=this;e.LoadRuntime(this.guid,0,0,0,function(g,j,l,m){f.LoadAPIAdapterCallback(g,j,l,m)})}else d()}};
LmsComKPath.prototype.LoadAPIAdapterCallback=function(d,e,f,g){if(d=="succeeded"&&e==this.guid){this.API=f.GetAPI();lmslog.addEntry(0,"LoadAPIAdapterCallback","","KPath adapter bound");try{this.deferred_callback()}catch(j){}}else{if(d=="no SCO")this.API=null;else alert(R_scorm_noapi+" "+g);lmslog.addEntry(0,"LoadAPIAdapterCallback","",g);this.deferred_callback()}};LmsComKPath.prototype.doGetUPKValue=function(d){d=this.doGetValue(d);if(d==="")d=-1;return d};
LmsComKPath.prototype.doSetUPKValue=function(d,e){this.doSetValue(d,e)};LmsComKPath.prototype.doUPKCommit=function(){this.doCommit()};
LmsComKPath.prototype.setInteraction=function(d,e){if(this.API){var f=e.status_obj,g=this.doGetValue("cmi.interactions._count");if(d==-1)d=g;d>=g&&this.doSetValue("cmi.interactions."+d+".id",e.guid);this.doSetValue("cmi.interactions."+d+".type",f.getQuestionType());this.doSetValue("cmi.interactions."+d+".timestamp",(new Date).toSCORM());this.doSetValue("cmi.interactions."+d+".weighting","1");if(f.getResult()){this.doSetValue("cmi.interactions."+d+".learner_response",f.getLearnerResponse());this.doSetValue("cmi.interactions."+
d+".result",f.getResult())}this.doCommit();return d}};LmsComKPath.prototype.getAnsweredQuestions=function(){var d={};if(!this.API)return d;for(var e=this.doGetValue("cmi.interactions._count"),f=0;f<e;f++){var g=this.doGetValue("cmi.interactions."+f+".id");d[g]={index:f};d[g].weighting=this.doGetValue("cmi.interactions."+f+".weighting");d[g].result=this.doGetValue("cmi.interactions."+f+".result")}return d};
LmsComKPath.prototype.setObjective=function(d,e){if(this.API){this.doSetValue("cmi.objectives."+d+".id",e.objectiveGuid=="PRIMARYOBJ"?"PRIMARYOBJ":"OBJ_"+e.objectiveGuid);this.doSetValue("cmi.objectives."+d+".score.scaled",e.score/100);this.doSetValue("cmi.objectives."+d+".completion_status",e.completed?"completed":"incomplete");this.doSetValue("cmi.objectives."+d+".success_status",e.completed?"passed":"failed")}};
LmsComKPath.prototype.requestContinue=function(){this.doSetValue("adl.nav.request","continue")};LmsComKPath.prototype.utGetModeIndex=function(){this.mode_index=this.doGetValue("upk.modes._count")};LmsComKPath.prototype.utPushModeIndex=function(){this.saved_mode_index=this.mode_index;this.utGetModeIndex()};LmsComKPath.prototype.utPopModeIndex=function(){this.mode_index=this.saved_mode_index;delete this.saved_mode_index};
LmsComKPath.prototype.utRecordType=function(d){this.doSetValue("upk.modes."+this.mode_index+".type",d)};LmsComKPath.prototype.utRecordStartTime=function(d){this.doSetValue("upk.modes."+this.mode_index+".start_time",d.toSCORM())};LmsComKPath.prototype.utRecordEndTime=function(d){this.doSetValue("upk.modes."+this.mode_index+".end_time",d.toSCORM())};LmsComKPath.prototype.utRecordCompletionStatus=function(d){this.doSetValue("upk.modes."+this.mode_index+".completion_status",d)};
LmsComKPath.prototype.utRecordSuccessStatus=function(d){this.doSetValue("upk.modes."+this.mode_index+".success_status",d)};LmsComKPath.prototype.utRecordScoreScaled=function(d){this.doSetValue("upk.modes."+this.mode_index+".score.scaled",d)};LmsComKPath.prototype.utRecordFrameViewed=function(d){this.doSetValue("upk.modes."+this.mode_index+".frame_viewed",d);this.doSetValue("cmi.session_time",this.computeTime(this.start_date,(new Date).getTime()));this.doCommit()};
function LmsComAICC(d,e){this.allow_launch=false;this.aicc_url=d;this.aicc_sid=e;this.app=document.applets.GetHTTPPostData;this.object_type_name="LmsComAICC"}LmsComAICC.prototype=new LmsComBase;LmsComAICC.prototype.constructor=LmsComScorm12;LmsComAICC.prototype.BaseClass=LmsComBase.prototype;LmsComAICC.prototype.Begin=function(){LmsComAICC.prototype.BaseClass.Begin.call(this);lmslog.addEntry(0,"LmsComAICC.Begin","","Start");this.hacpGetparam();lmslog.addEntry(0,"LmsComAICC.Begin","","about to log paramvalues")};
LmsComAICC.prototype.End=function(){LmsComAICC.prototype.BaseClass.End.call(this);lmslog.addEntry(0,"LmsComAICC.End","","Start");if(!this.allow_launch)return false;this.allow_launch=false;var d=this.hacpGetpostdata();d="command=putparam&version="+LmsConfig.AiccVersion+"&session_id="+this.aicc_sid+"&aicc_data="+escape(d)+"&";lmslog.addEntry(0,"LmsComAICC.End","params",d);d=this.app.GetData(unescape(this.aicc_url),d);lmslog.addEntry(0,"LmsComAICC.End","strData",d);d="version="+LmsConfig.AiccVersion+
"&command=ExitAU&session_id="+this.aicc_sid+"&";lmslog.addEntry(0,"LmsComAICC.End","params",d);d=this.app.GetData(unescape(this.aicc_url),d);lmslog.addEntry(0,"LmsComAICC.End","strData",d)};var closingAmp=true;
LmsComAICC.prototype.hacpGetparam=function(){lmslog.addEntry(0,"hacpGetparam","","Start");var d="";d="version="+LmsConfig.AiccVersion+"&command=GetParam&session_id="+this.aicc_sid;if(closingAmp)d+="&";lmslog.addEntry(0,"hacpGetparam","params",d);d=this.app.GetData(unescape(this.aicc_url),d);lmslog.addEntry(0,"hacpGetparam","strData",d);var e,f,g=false;d+=" ";for(var j=d.split("\r"),l=0;l<j.length;l++){var m=j[l],q=trimValue(m.substring(0,m.indexOf("="))),r=trimValue(m.substring(m.indexOf("=")+1));
if(q.toLowerCase()=="error"){e=r;g=true}if(q.toLowerCase()=="error_text")f=r;if(q.toLowerCase()=="aicc_data"){this.aicc_data=d.substring(d.indexOf(m.substring(0,m.indexOf("=")))+m.substring(0,m.indexOf("=")).length+1);g=true}}if(g)if(e==0){j=get_group_content("core",this.aicc_data).split("\r");for(l=0;l<j.length;l++){m=j[l];q=trimValue(m.substring(0,m.indexOf("=")));r=trimValue(m.substring(m.indexOf("=")+1));if(q.toLowerCase()=="student_id")this.student_id=r;if(q.toLowerCase()=="student_name")this.student_name=
r;if(q.toLowerCase()=="lesson_status"){this.lesson_status=r.toLowerCase().charAt(0);if(r.indexOf(",")!=-1)this.lesson_flag=trimValue(r.substring(r.indexOf(",")+1)).toLowerCase();if(this.lesson_status=="p")this.lesson_status=LMS_PASSED;if(this.lesson_status=="c")this.lesson_status=LMS_COMPLETED;if(this.lesson_status=="f")this.lesson_status=LMS_FAILED;if(this.lesson_status=="i")this.lesson_status=LMS_INCOMPLETE;if(this.lesson_status=="n")this.lesson_status=LMS_NOT_ATTEMPTED;this.original_lesson_status=
this.lesson_status}if(q.toLowerCase()=="lesson_location")this.lesson_location=r;if(q.toLowerCase()=="credit")this.credit=r;if(q.toLowerCase()=="score")this.score=r;if(q.toLowerCase()=="time")this.time=r}this.lesson_data=this.lesson_status==LMS_INCOMPLETE||this.lesson_status==LMS_COMPLETED||this.lesson_status==LMS_PASSED||this.lesson_status==LMS_FAILED?trimValue(get_group_content("core_lesson",this.aicc_data)):"";this.core_vendor=trimValue(get_group_content("core_vendor",this.aicc_data));this.allow_launch=
true}else{alert(R_error_unexp+f);lmslog.addEntry(0,"hacpGetparam","","Unable to continue because of the following error: "+f)}else{alert(R_error_svr+unescape(this.aicc_url)+"\r\r - "+d);lmslog.addEntry(0,"hacpGetparam","","Unable to post to server "+unescape(this.aicc_url)+" - "+d)}};
LmsComAICC.prototype.hacpGetpostdata=function(){lmslog.addEntry(0,"hacpGetpostdata","","Start");var d="";d="[CORE]\r\n";d+="Lesson_Location=\r\n";var e=this.getReportedLessonStatus();if(e===LMS_NOT_ATTEMPTED)e=this.original_lesson_status;d+=this.lesson_status===LMS_INCOMPLETE?"Lesson_Status="+e+", suspend\r\n":"Lesson_Status="+e+"\r\n";lmslog.addEntry(0,"hacpGetpostdata","is_assess",this.is_assess);d+=this.score!==""?"Score="+this.score+"\r\n":"Score=\r\n";d+="Time="+this.computeTime(this.start_date,
this.end_date)+"\r\n";d+="[CORE_LESSON]\r\n";d+=this.lesson_data+"\r\n";lmslog.addEntry(0,"hacpGetpostdata","NewAiccData",d);return d};function get_group_content(d,e){for(var f="",g=e.split("\r"),j=false,l=0;l<g.length;l++){var m=trimValue(g[l]);if(m.substr(0,1)=="[")j=m.toLowerCase().indexOf("["+d.toLowerCase()+"]")>=0?true:false;else if(j)f+=m+"\r\n"}return f}
function trimValue(d){for(var e=0,f=d.length,g=0;g<d.length;g++)if(d.substr(g,1)!=" "&&d.substr(g,1)!="\t"&&d.substr(g,1)!="\n"&&d.substr(g,1)!="\r"){e=g;break}if(g==d.length)return"";for(g=d.length-1;g>0;g--)if(d.substr(g,1)!=" "&&d.substr(g,1)!="\t"&&d.substr(g,1)!="\n"&&d.substr(g,1)!="\r"){f=g;break}if(g==0)f=0;return d.substring(e,f+1)}LmsComAICC.prototype.IsConnected=function(){return true};function LmsComCookie(){this.allow_launch=false;this.object_type_name="LmsComCookie"}
LmsComCookie.prototype=new LmsComBase;LmsComCookie.prototype.constructor=LmsComCookie;LmsComCookie.prototype.BaseClass=LmsComBase.prototype;LmsComCookie.prototype.Begin=function(){LmsComCookie.prototype.BaseClass.Begin.call(this);if(this.toc_hash=window.toc_hash){var d=new Cookie(document,"Bookmark_"+this.toc_hash,30);d.Load();this.lesson_location=d.Location}};
LmsComCookie.prototype.End=function(){LmsComCookie.prototype.BaseClass.End.call(this);if(this.toc_hash){var d=new Cookie(document,"Bookmark_"+this.toc_hash,30);d.Load();d.Location=this.lesson_location;d.Store()}};LmsComCookie.prototype.GetBookmark=function(d){if(this.toc_hash=d){d=new Cookie(document,"Bookmark_"+this.toc_hash,30);d.Load();this.lesson_location=d.Location}return parseInt(this.lesson_location,10)};function LmsBasicStatus(){this.status=LMS_NOT_ATTEMPTED}
LmsBasicStatus.prototype.getStatus=function(){return this.status};LmsBasicStatus.prototype.setStatus=function(d){this.status=d};LmsBasicStatus.prototype.Save=function(d){d.lesson_status=this.status};LmsTopicStatus.prototype=new LmsBasicStatus;LmsTopicStatus.prototype.constructor=LmsTopicStatus;LmsTopicStatus.prototype.BaseClass=LmsBasicStatus.prototype;
function LmsTopicStatus(){this.score="";this.passed=false;this.modes=[];this.modes.S=new Mode("S");this.modes.T=new Mode("T");this.modes.K=new Mode("K");this.modes.D=new Mode("D");this.modes.P=new Mode("P");this.modes.E=new Mode("E");this.anylaunched=false}LmsTopicStatus.prototype.Save=function(d){d.lesson_data=d.bigsco?"":this.getStatusstring();d.lesson_status=this.getLMSStatus();d.score=this.getScore()};LmsTopicStatus.prototype.setModeavail=function(d,e){this.modes[d].avail=e};
LmsTopicStatus.prototype.getModeavail=function(d){return this.modes[d].avail};LmsTopicStatus.prototype.setModestatus=function(d,e){if(this.modes[d].avail)this.modes[d].complete=e;else lmslog.addEntry(0,"setModestatus","","Invalid call of setModestatus")};LmsTopicStatus.prototype.getModestatus=function(d){return this.modes[d].complete};LmsTopicStatus.prototype.setRequiredMode=function(d,e){this.requiredMode=GetTopLevelLmsMode()=="LMS"?this._getRequiredMode(d):this._getRequiredMode(e)};
LmsTopicStatus.prototype._getRequiredMode=function(d){for(var e=0;e<6;e++)if(d["EKTSPD".charAt(e)])return"EKTSPD".charAt(e);return"None"};LmsTopicStatus.prototype.GetRequiredMode=function(){return this.requiredMode};
LmsTopicStatus.prototype.initTopicstat=function(d){lmslog.addEntry(0,"initTopicstat","","Start");lmslog.addEntry(0,"initTopicstat","s string",d);lmslog.addEntry(0,"initTopicstat","s.length",d.length);if(d.length!=0){var e=d.split(",");for(d=0;d<=e.length-1;d++){lmslog.addEntry(0,"initTopicstat","f["+d+"]",e[d]);if(e[d].charAt(1)=="=")this.modes[e[d].charAt(0)].complete=this.modeIscomplete(e[d].substr(2,1));else if(e[d].substr(0,5)=="PASS=")this.passed=e[d].substr(5,1)=="0"?false:true;else if(e[d].substr(0,
6)=="SCORE=")this.score=e[d].substr(6)}}};LmsTopicStatus.prototype.clearTopicstat=function(){this.score="";this.passed=false;for(var d in this.modes)this.modes[d].complete=false};
LmsTopicStatus.prototype.getStatusstring=function(){lmslog.addEntry(0,"get_statusstring","","Start");var d="";for(x in this.modes){if(d.length!=0)d+=",";d+=this.modes[x].id+"="+(this.modes[x].complete?"C":"I")}if(this.modes.K.complete&&this.isScored)d+=",PASS="+(this.passed?"1":"0")+",SCORE="+this.score;lmslog.addEntry(0,"get_statusstring","dataString",d);return d};
LmsTopicStatus.prototype.getStatus=function(){var d="";if(this.isComplete())if(this.modes.K.avail&&this.isScored)d=this.passed?LMS_PASSED:LMS_FAILED;else{d=LMS_COMPLETED;if(this.savedStatus=="P"||this.savedStatus=="F")d=this.savedStatus}else{d=LMS_INCOMPLETE;if(this.savedStatus=="P"||this.savedStatus=="F"||this.savedStatus=="C")d=Stat2Lms(this.savedStatus)}return d};LmsTopicStatus.prototype.getLMSStatus=function(){if(this.isComplete()&&!this.anylaunched)return LMS_NOT_ATTEMPTED;return this.getStatus()};
LmsTopicStatus.prototype.getScore=function(){return this.score};LmsTopicStatus.prototype.isComplete=function(){lmslog.addEntry(0,"is_complete","","Start");var d=false;if(this.requiredMode==="None")d=true;else{var e=["E","K","T","S","P","D"];for(i=0;i<e.length;i++){if(this.modes[e[i]].complete)d=true;if(e[i]===this.requiredMode)break}}lmslog.addEntry(0,"is_complete","iscomp",d);return d};
LmsTopicStatus.prototype.modeIscomplete=function(d){var e=false;lmslog.addEntry(0,"modeIscomplete","","Start");if(d=="C")e=true;else if(d=="I")e=false;lmslog.addEntry(0,"modeIscomplete","ret",e);return e};LmsTopicStatus.prototype.isRequired=function(d){return this.requiredMode===d};LmsTopicLaunchStatus.prototype=new LmsTopicStatus;LmsTopicLaunchStatus.prototype.constructor=LmsTopicStatus;LmsTopicLaunchStatus.prototype.BaseClass=LmsTopicStatus.prototype;
function LmsTopicLaunchStatus(d){this.mode=this.modes[d];this.score="";this.passed=false;this.anylaunched=true}LmsTopicLaunchStatus.prototype.Save=function(d){this.BaseClass.Save.call(this,d)};LmsTopicLaunchStatus.prototype._getRequiredMode=function(d){for(var e=0;e<6;e++)if(d.indexOf("EKTSPD".charAt(e))!=-1)return"EKTSPD".charAt(e);return"None"};LmsTopicLaunchStatus.prototype.getResult=function(){return this.passed?"correct":"incorrect"};LmsTopicLaunchStatus.prototype.getQuestionType=function(){return"other"};
LmsTopicLaunchStatus.prototype.getLearnerResponse=function(){return""};function Mode(d){this.complete=this.avail=false;this.id=d}LmsQuestionStatus.prototype=new LmsBasicStatus;LmsQuestionStatus.prototype.constructor=LmsQuestionStatus;LmsQuestionStatus.prototype.BaseClass=LmsBasicStatus.prototype;function LmsQuestionStatus(){this.result=this.learner_response=this.question_type=null}LmsQuestionStatus.prototype.Save=function(d){d.lesson_status=this.status;d.lesson_data=Lms2Stat(this.getStatus())};
LmsQuestionStatus.prototype.getStatus=function(){return this.status===LMS_NOT_ATTEMPTED?this.savedStatus:this.status};LmsQuestionStatus.prototype.getQuestionType=function(){return this.question_type};LmsQuestionStatus.prototype.setQuestionType=function(d){return this.question_type=d};LmsQuestionStatus.prototype.getLearnerResponse=function(){return this.learner_response};LmsQuestionStatus.prototype.setLearnerResponse=function(d){return this.learner_response=d};
LmsQuestionStatus.prototype.getResult=function(){return this.result};LmsQuestionStatus.prototype.setResult=function(d){return this.result=d};LmsAssessmentStatus.prototype=new LmsBasicStatus;LmsAssessmentStatus.prototype.constructor=LmsAssessmentStatus;LmsAssessmentStatus.prototype.BaseClass=LmsBasicStatus.prototype;function LmsAssessmentStatus(){this.score="";this.questionstatus=[];this.stateDiscarded=false}
LmsAssessmentStatus.prototype.Save=function(d){d.lesson_status=this.status;d.score=this.status!=LMS_INCOMPLETE&&this.status!=LMS_NOT_ATTEMPTED?this.score:"";var e="";d.bigsco||(e=this.hash.length+"@"+this.hash);e+=this.status==LMS_NOT_ATTEMPTED?this.savedStatus:Lms2Stat(this.status);for(var f=0;f<this.questionstatus.length;f++)e+=this.questionstatus[f];d.lesson_data=e};LmsAssessmentStatus.prototype.getStatus=function(){return this.status===LMS_NOT_ATTEMPTED?Stat2Lms(this.savedStatus):this.status};
LmsAssessmentStatus.prototype.getLMSStatus=function(){return this.status};LmsAssessmentStatus.prototype.getScore=function(){return this.score};LmsAssessmentStatus.prototype.setScore=function(d){return this.score=d};LmsTOCStatus.prototype=new LmsBasicStatus;LmsTOCStatus.prototype.constructor=LmsTOCStatus;LmsTOCStatus.prototype.BaseClass=LmsBasicStatus.prototype;function LmsTOCStatus(){}LmsTOCStatus.prototype.getStatus=function(){return Stat2Lms(this.getTocState().GetStatus(0))};
LmsTOCStatus.prototype.Save=function(d){d.lesson_status=this.getStatus();var e=this.getTocState();d.lesson_data=e.SerializeTOC()};LmsTOCStatus.prototype.getTocState=function(){return this.tocstate};LmsTOCStatus.prototype.setTocState=function(d){return this.tocstate=d};function NodeState(){this.Status="N";this.Score=null;this.ChildrenStatus=""}function TOCState(d,e){this.NodeCounter=d;this.TocVersion=e;this.InitInLookupTable()}
TOCState.prototype.SetStatus=function(d,e){this.LookUpTable[d]||(this.LookUpTable[d]=new NodeState);this.LookUpTable[d].Status=e};TOCState.prototype.GetStatus=function(d){return this.LookUpTable[d].Status};TOCState.prototype.SetScore=function(d,e){this.LookUpTable[d]||(this.LookUpTable[d]=new NodeState);this.LookUpTable[d].Score=e};TOCState.prototype.GetScore=function(d){return this.LookUpTable[d].Score};
TOCState.prototype.SetChildren=function(d,e){this.LookUpTable[d]||(this.LookUpTable[d]=new NodeState);this.LookUpTable[d].ChildrenStatus=e};TOCState.prototype.GetChildren=function(d){return this.LookUpTable[d].ChildrenStatus};
TOCState.prototype.DeserializeTOC=function(d){var e=0,f,g=d.indexOf("@");if(g>0){e=parseInt(d.substring(0,g));f=d.substring(g+1,g+e+1);if(f==this.TocVersion){d=d.substring(g+e+2);g=d.indexOf("@");if(g>0){e=parseInt(d.substring(0,g));d=d.substring(g+1,g+e+1);if(d.length==e){d=this.RLESDecode(d);this.DeserializeLookUpTable(d)}}}}};
TOCState.prototype.DeserializeLookUpTable=function(d){for(var e=0,f="",g=0;g<d.length;g++){f=d.charAt(g);this.SetStatus(e,f);for(f="";g<d.length-1&&d.charAt(g+1)>="0"&&d.charAt(g+1)<="9";){g++;f+=d.charAt(g)}f.length>0&&this.SetScore(e,parseInt(f));if(g<d.length-1&&d.charAt(g+1)=="{"){f=d.indexOf("}",g+2);this.SetChildren(e,d.substring(g+2,f));g=f}e++}};
TOCState.prototype.SerializeTOC=function(){var d=this.RLESEncode(this.SerializeLookupTable());return this.TocVersion.length+"@"+this.TocVersion+" "+d.length+"@"+d};TOCState.prototype.SerializeLookupTable=function(){for(var d="",e=0;e<this.NodeCounter;e++){var f=this.LookUpTable[e].Status,g=this.LookUpTable[e].ChildrenStatus;f||(f="N");d+=f;if(g)d+="{"+g+"}"}return d};
TOCState.prototype.InitInLookupTable=function(){this.LookUpTable=[];for(var d=0;d<this.NodeCounter;d++)this.LookUpTable[d]=new NodeState;this.SetStatus(0,"I")};TOCState.prototype.RLESEncode=function(d){var e="",f=0,g="";e=d.charAt(0);for(var j=f=1;j<d.length;j++)if(d.charAt(j)==e)f++;else{if(f>2){g+="#";g+=f;g+=e}else g+=d.substring(j-f,j);e=d.charAt(j);f=1}if(f>2){g+="#";g+=f;g+=e}else g+=d.substring(j-f,j);return g};
TOCState.prototype.RLESDecode=function(d){for(var e="",f="",g=0;g<d.length;g++)if(d.charAt(g)=="#"){f="";for(g++;d.charAt(g)>="0"&&d.charAt(g)<="9";){f+=d.charAt(g);g++}f=parseInt(f);for(var j=0;j<f;j++)e+=d.charAt(g)}else e+=d.charAt(g);return e};function Lms2Stat(d){return d.charAt(0).toUpperCase()}function Stat2Lms(d){return[LMS_PASSED,LMS_FAILED,LMS_COMPLETED,LMS_INCOMPLETE,LMS_NOT_ATTEMPTED]["PFCIN".indexOf(d)]}
function LogEntry(d,e,f,g,j){this.logType=e;this.funcName=f;this.varName=g;this.msgValue=j;this.dateTime=(new Date).getTime()-d}LogEntry.prototype.GetTableRow=function(){var d="#006600";if(this.logType===1)d="#000033";var e=this.varName;if(e==="")e="&nbsp;";var f=this.msgValue;if(f==="")f="&nbsp;";var g="<tr>";g+="<td align='right'>"+this.dateTime/1E3+"</td>";g+="<td style='color:"+d+";'>"+this.funcName+"</td>";g+="<td>"+e+"</td>";g+="<td>"+f+"</td>";g+="</tr>";return g};
function Log(d){this.traceWindow=null;this.logArray=[];this.enabled=d;this.startDateTime=new Date;this.changed=true;this.windowReady=false;this.startLog()}Log.prototype.startLog=function(){if(this.enabled){this.addEntry(0,"initLog","","Log Intialized");this.openTraceWindow()}};Log.prototype.addEntry=function(d,e,f,g){if(this.enabled){this.logArray.push(new LogEntry(this.startDateTime.getTime(),d,e,f,g));this.changed=true;this.traceWindow&&this.windowReady&&this.traceWindow.UpdateTraceStack()}};
Log.prototype.writeLog=function(d,e){var f=e;if(f>this.logArray.length||f==0)f=this.logArray.length;var g="<table width='600'>";g+="<tr>";g+="<th colspan=4>Session start: "+this.startDateTime+"</th>";g+="</tr>";g+="<tr>";g+="<th>time</th>";g+="<th>function</th>";g+="<th>variable</th>";g+="<th>message</th>";g+="</tr>";var j;if(d==0)for(var l=this.logArray.length-f;l<this.logArray.length;l++){j=this.logArray[l];g+=j.GetTableRow(l)}else for(l=this.logArray.length-1;l>=this.logArray.length-f;l--){j=this.logArray[l];
g+=j.GetTableRow(l)}g+="</table>";this.changed=false;this.windowReady=true;return g};Log.prototype.writeDetails=function(d){return this.logArray[d].GetDetails()};Log.prototype.openTraceWindow=function(){if(this.traceWindow==null){this.changed=true;this.traceWindow=window.open(lms_path+"lmsdebug.html","_blank")}};function Cookie(d,e,f,g,j,l){this.$document=d;this.$name=e;if(f=="today"){d=new Date;d.setHours(23);d.setMinutes(59);d.setSeconds(59);this.$exp=d}else this.$exp=f?new Date((new Date).getTime()+f*864E5):null;this.$path=g?g:null;this.$domain=j?j:null;this.$secure=l?true:false}
Cookie.prototype.Store=function(){if(PlayerConfig.EnableCookies){var d="",e;for(e in this)if(!(e.charAt(0)=="$"||typeof this[e]=="function")){if(d!="")d+="&";d+=e+":"+escape(this[e])}d=this.$name+"="+d;if(this.$exp)d+="; expires="+this.$exp.toGMTString();if(this.$path)d+="; path="+this.$path;if(this.$domain)d+="; domain="+this.$domain;if(this.$secure)d+="; secure=";this.$document.cookie=d}};
Cookie.prototype.Load=function(){if(!PlayerConfig.EnableCookies)return false;var d=this.$document.cookie;if(d=="")return false;var e=d.indexOf(this.$name+"=");if(e==-1)return false;e+=this.$name.length+1;var f=d.indexOf(";",e);if(f==-1)f=d.length;d=d.substring(e,f).split("&");for(e=0;e<d.length;e++){f=d[e].split(":");this[f[0]]=unescape(f[1])}return true};
Cookie.prototype.Remove=function(){if(PlayerConfig.EnableCookies){var d=this.$name+"=";if(this.$path)d+="; path="+this.$path;if(this.$domain)d+="; domain="+this.$domain;d+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";this.$document.cookie=d}};var playerwindow=null;
function LaunchDoIt(d,e){var f=false,g=e,j=true;if(playerwindow)playerwindow.closed||(j=false);if(j){if(j=navigator.appName.indexOf("Microsoft")!=-1?true:false)try{if(!function(){var r=window.createPopup();r.show(1,1,1,1);var t=r.document.parentWindow.screenTop==1;r.hide();return!t}()&&!IsIE10Modern()){var l=false;if(g.substr(0,3)=="su="){g=Escape.SafeUriUnEscape(g.substr(3));l=true}g+="&popup=true";if(l)g="su="+Escape.SafeUriEscape(g);f=true}}catch(m){}if(f){d+="topicgc.html";g=typeof urlParser==
"undefined"?d+"?"+g:urlParser.GetCorrectUrl(d+"?"+g);playerwindow=window.open(g,"","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,left=1500")}else{d+="topicgcx.html";if(j){f=navigator.appVersion.split(";")[1];f=f.substr(6);f=parseFloat(f)}f=IsSafari()?screen.availWidth-361:screen.availWidth-290;j=screen.availHeight-450;l=IsSafari()?346:275;var q=400;if(PlayerConfig.EnableCookies){GICookie=new Cookie(document,"GICookie",365,"/",null,null);if(GICookie.Load())if(GICookie.Cleft>=
0&&GICookie.Ctop>=0&&GICookie.Cleft<screen.availWidth&&GICookie.Ctop<screen.availHeight){f=parseInt(GICookie.Cleft);j=parseInt(GICookie.Ctop);l=parseInt(GICookie.Cwidth);q=parseInt(GICookie.Cheight)}}g=typeof urlParser=="undefined"?d+"?"+g:urlParser.GetCorrectUrl(d+"?"+g);playerwindow=window.open(g,"","toolbar=0,scrollbars=0,location=1,statusbar=0,menubar=0,resizable=1,left="+f+",top="+j+",width="+l+",height="+q)}}else alert(R_toc_doit_err)};var statobj,isIE,isIE7=false,isIE8=false;isIE=navigator.appName.substring(0,8)=="Netscape"?false:true;
var launchPage=window.parent,topicID=launchPage.topicID,_myTableObj=null,_pmTableObj=null,_pmTableHeight=0,_hbordersize=10,showButtons=[],requiredModes=[],_inToc=false,_noBorder=false,lmsMode="",urlParser=null,showLaunchButton=false,isJumpInDialogOpen=false,conceptOnly=false,allowShowScoStatus=false,statusDisplayed=false,errorDisplayed=false,buttons=null,playModeButtonCount=0,playerWindow=null,doItPlayerStarted=false,bigSCOWindow=null,statusDescFirstDisplayed=true,ShowDescStatusBar,IsDescStatusBarOpen;
$(document).ready(function(){Init()});function LmsEventKeyDown(d){if(!d)d=window.event;code=d.keyCode;if(code==27)if(_inToc==true)parent.parent.isOpenDialog()&&parent.parent.closeDialog();else isOpenDialog()&&closeDialog()}
function Init(){if(IsSafari())document.onkeydown=LmsEventKeyDown;else document.onkeypress=LmsEventKeyDown;urlParser=new UrlParser;urlParser.Parse();_pmTableHeight=getObjectById("playmodetable").clientHeight;getObjectById("playmodetable").style.display="none";var d=(parent.assetType=="B"?parent.originalType:parent.assetType)+"_"+parent.topicID;if(parent.concept.length==0)if(parent.assetType=="B"||parent.assetType=="C")d=null;var e=new BrowserInfo;GetBrowserInfo(e);if(e.name=="MSIE")switch(e.version){case 7:isIE7=
true;break;case 8:isIE8=true}parent.document.title=DecodeTagElements(launchPage.topicName);_inToc=parent._lmsEnvironment=="TOC";showLaunchButton=Kpath_launch==false&&parent.assetType=="B"&&_inToc==false;lmsMode=parent.GetTopLevelLmsMode();_noBorder=_inToc||Kpath_launch&&lmsMode=="LMS"&&parent._lmsEnvironment=="LMS";e=_inToc&&parent.parent._see_also==true;if(UIComponents.BannerStatus&&lmsMode=="LMS"&&parent.assetType!="C"&&parent.assetType!="S"&&!(parent.assetType=="B"&&parent.originalType=="C"&&Kpath_launch==
true)&&!e)allowShowScoStatus=true;lms_InitPage(0,window.parent,d,"pageInit()")}function DecodeTagElements(d){d=replaceString("&lt;","<",d);return d=replaceString("&gt;",">",d)}
function pageInit(){statobj=document.LmsCom.status_obj;var d=parent._lmsParser.GetParameter("mode");if(d==null)d="";conceptOnly=parent._lmsParser.GetParameter("conceptonly")!=null;if(d.length>0)launchTopic(d);else{initResources();InitUIElements();_hbordersize=getObjectById("thorizontal1").clientHeight;if(_noBorder){$("#concept_div").css({right:0,bottom:0});getObjectById("tvertical1").style.display="none";getObjectById("tvertical2").style.display="none";getObjectById("tdownborder").style.display="none"}if(lmsMode==
"Cookie"||lmsMode=="KPT"){getObjectById("jumpinS").style.display="block";getObjectById("jumpinT").style.display="block";getObjectById("jumpinD").style.display="block"}if(UIComponents.ShowMoreTopics&&parent._lmsEnvironment=="DHTML"){d=getObjectById("ShowMoreTopics");d.style.display="block"}d=""+this.location;d=d.indexOf("localhost")>-1||d.indexOf("127.0.0.1")>-1;if(UIComponents.ShareLink&&lmsMode!="LMS"&&!d){d=getObjectById("ShareContentDiv");d.style.display="block"}d=launchPage.concept;if(d!=""){setTimeout('ShowConcept("'+
d+'")',1);if(IsTouchDevice())getObjectById("OpenConceptDiv").style.display="block"}initUiModes()}parent._lmsParser.GetParameter("close")!=null&&parent.close();if(conceptOnly)getObjectById("playmodetable").style.display="none";SetConceptTop();isIE7&&$(".arrowImg").css("float","none")}
function SetConceptTop(){var d=0;d+=$("#header2").height();d+=_hbordersize;if(IsDescStatusBarOpen)d+=$("#StatusDesc").height();$("#myTableDiv").css("top",d+"px");if($("#playmodetable").is(":visible"))d+=$("#playmodetable").height()+_hbordersize-1;var e=_noBorder?0:_hbordersize;$("#header2").width();$("#concept_div").css({top:d+"px",left:e+"px"})}
function initResources(){$("#HelpButton img").attr({alt:R_toctooltip_help,title:R_toctooltip_help});$("#prefsbutton img").attr({alt:R_toctooltip_preferences,title:R_toctooltip_preferences});$("#KPathLogOutButton img").attr({alt:R_toctooltip_kpathlogout,title:R_toctooltip_kpathlogout});$("#KPathPortalButton img").attr({alt:R_toctooltip_kpathportal,title:R_toctooltip_kpathportal});$("#AskAnExpert img").attr({alt:R_toctooltip_askexpert,title:R_toctooltip_askexpert});$("#ProvideFeedback img").attr({alt:R_toctooltip_providefeedback,
title:R_toctooltip_providefeedback});$("#CreateNoteButton img").attr({alt:R_toctooltip_createnote,title:R_toctooltip_createnote});$("#ViewNoteButton img").attr({alt:R_toctooltip_viewnote,title:R_toctooltip_viewnote});$("#SeeAlsoButton img").attr("alt",R_toc_seealso);$("#SeeAlsoButton span").html(NoWrap(R_toc_seealso));$("#ShowMoreTopics img").attr("alt",R_toctooltip_showmoretopics);$("#ShowMoreTopics span").html(NoWrap(R_toctooltip_showmoretopics));$("#ShowMoreTopics").attr("title",R_toctooltip_showmoretopics);
$("#ShareContentDiv img").attr("alt",R_share_content_text_link);$("#ShareContentDiv span").html(NoWrap(R_share_content_text_link));$("#ShareContentDiv").attr("title",R_share_content_tooltip);$("#OpenConceptDiv span").html(NoWrap(R_open_new_window_link));$("#status_label").html(NoWrap(R_attempt_label))}function DisplayStatusField(){$("#StatusFieldDiv").css("display","block");statusDisplayed=true}
function UpdateStatusField(d){statusDisplayed==false&&DisplayStatusField();$("#status_value").html(d).attr("title",d)}function getObjectById(d){return document.getElementById(d)}var lastConcept="",rcTimeout=null;function _RefreshConcept(){lastConcept!=""&&this.frames.myconceptframe.location.replace(AbsUrl(lastConcept))}function RefreshConcept(){try{clearTimeout(rcTimeout)}catch(d){}rcTimeout=setTimeout("_RefreshConcept();",300)}
function ShowConcept(d){if(d!=lastConcept){lastConcept=d;this.frames.myconceptframe.location.replace(AbsUrl(d))}}
function PlayButton(d,e,f,g,j){this.buttonObj=getObjectById(d);this.textObj=getObjectById(e);this.textObj.style.width="auto";this.textObj.style.display="block";this.textWidth=this.textObj.clientWidth;if(g!=null){this.asteriskObj=getObjectById(g);this.asteriskWidth=this.asteriskObj.clientWidth}if(f!=null){this.jumpinObj=getObjectById(f);this.jumpinWidth=this.jumpinObj.clientWidth}if(j!=null)this.requiredTextObj=getObjectById(j)}
function SetButtonTextWidth(d,e){d.textWidth=e;d.textObj.style.width=""+e+"px"}function Resize(){setTimeout("_Resize()",1)}function Resize0(){setTimeout("_Resize()",0)}
function InitButtons(){buttons=[];buttons[0]=null;buttons[1]=new PlayButton("btn1","seeittext","jumpinS","requiredAsteriskS","requiredTextS");buttons[2]=new PlayButton("btn2","tryittext","jumpinT","requiredAsteriskT","requiredTextT");buttons[3]=new PlayButton("btn3","knowittext",null,"requiredAsteriskK","requiredTextK");buttons[4]=new PlayButton("btn4","doittext","jumpinD","requiredAsteriskD","requiredTextD");buttons[5]=new PlayButton("btn9","testittext",null,"requiredAsteriskE","requiredTextE");
buttons[6]=new PlayButton("btn5","printittextPDF",null,"requiredAsteriskPDF","requiredTextPDF");buttons[7]=new PlayButton("btn6","printittextDOC",null,"requiredAsteriskDOC","requiredTextDOC");buttons[8]=new PlayButton("btn7","printittextHTML",null,"requiredAsteriskHTML","requiredTextHTML");buttons[9]=new PlayButton("btn8","BigSCOStartText",null,null,null)}
function _HResize(){if(checkIEDPI()!=false){if(_inToc==true)parent.parent.isOpenDialog&&parent.parent.isOpenDialog()==true&&parent.parent.resizeDialog();else isOpenDialog&&isOpenDialog()==true&&resizeDialog();if(!conceptOnly){if(_pmTableObj==null)_pmTableObj=getObjectById("playmodetable");_pmTableObj.style.height="1px";_pmTableObj.style.visibility="hidden";_pmTableObj.style.display=playModeButtonCount>0?"block":"none";if(playModeButtonCount>0){buttons==null&&InitButtons();for(var d=0,e=1;e<=9;e++)if(showButtons[e]==
true)if(d<buttons[e].textWidth)d=buttons[e].textWidth;for(e=1;e<=9;e++)showButtons[e]==true&&SetButtonTextWidth(buttons[e],d);var f=62+d;fullBarWidth=0;for(e=1;e<=9;e++)if(showButtons[e]==true)fullBarWidth+=f+2;if(_pmTableObj.clientWidth<fullBarWidth){getObjectById("seeittext").style.display="none";getObjectById("tryittext").style.display="none";getObjectById("knowittext").style.display="none";getObjectById("testittext").style.display="none";getObjectById("doittext").style.display="none";getObjectById("printittextPDF").style.display=
"none";getObjectById("printittextDOC").style.display="none";getObjectById("printittextHTML").style.display="none";getObjectById("BigSCOStartText").style.display="none"}else{getObjectById("seeittext").style.display="block";getObjectById("tryittext").style.display="block";getObjectById("knowittext").style.display="block";getObjectById("testittext").style.display="block";getObjectById("doittext").style.display="block";getObjectById("printittextPDF").style.display="block";getObjectById("printittextDOC").style.display=
"block";getObjectById("printittextHTML").style.display="block";getObjectById("BigSCOStartText").style.display="block"}var g=0;for(e=1;e<=9;e++)if(showButtons[e]==true){buttons[e].buttonObj.style.display="block";if(_pmTableObj.clientWidth<fullBarWidth){buttons[e].buttonObj.style.width="62px";buttons[e].buttonObj.style.left=""+g*64+"px";if(buttons[e].asteriskObj!=null)buttons[e].asteriskObj.style.left="45px";if(buttons[e].jumpinObj!=null)buttons[e].jumpinObj.style.left="50px";if(buttons[e].requiredTextObj!=
null)buttons[e].requiredTextObj.style.display="none"}else{buttons[e].buttonObj.style.width=""+f+"px";buttons[e].buttonObj.style.left=""+g*(f+2)+"px";if(buttons[e].asteriskObj!=null)buttons[e].asteriskObj.style.left=""+(d+45)+"px";if(buttons[e].jumpinObj!=null)buttons[e].jumpinObj.style.left=""+(d+50)+"px";if(buttons[e].requiredTextObj!=null){buttons[e].requiredTextObj.style.display=requiredModes[e]?"block":"none";buttons[e].requiredTextObj.style.width=""+d+"px"}}g++}else buttons[e].buttonObj.style.display=
"none"}_pmTableObj.style.visibility=playModeButtonCount>0?"visible":"hidden";_pmTableObj.style.height=""+_pmTableHeight+"px"}}}function _Resize(){if(checkIEDPI()!=false){_HResize();VResize()}}
function VResize(){if(checkIEDPI()!=false){if(IsDescStatusBarOpen){var d=getObjectById("StatusText");d=parseInt(d.clientHeight);getObjectById("StatusDesc").style.height=""+d+"px"}SetConceptTop();if(isIE7){var e=$("#concept_div");d=e.height();e=e.width();$("#myconceptframe").css({height:d+"px",width:e+"px"});e=$("#myTable");var f=e.height();e.css("height",d+f+"px")}}}function isModeAvailable(d){if(parent.assetType=="T")return statobj.getModeavail(d);return false}
function initUiModes(){playModeButtonCount=0;for(var d=1;d<=9;d++){showButtons[d]=false;requiredModes[d]=false}d=allowShowScoStatus;if(showLaunchButton){showButtons[9]=true;playModeButtonCount++}else{var e=false;if(isModeAvailable("S")){if(d&&statobj.isRequired("S")){getObjectById("requiredAsteriskS").style.display="block";getObjectById("btn1").title+=" "+R_title_required;requiredModes[1]=true}showButtons[1]=true;playModeButtonCount++}if(isModeAvailable("T")){if(d&&statobj.isRequired("T")){getObjectById("requiredAsteriskT").style.display=
"block";getObjectById("btn2").title+=" "+R_title_required;requiredModes[2]=true}showButtons[2]=true;playModeButtonCount++}if(isModeAvailable("E")){e=true;if(d){getObjectById("requiredAsteriskE").style.display="block";getObjectById("btn9").title+=" "+R_title_required;requiredModes[5]=true}showButtons[5]=true;playModeButtonCount++}if(isModeAvailable("K")){if(d&&e==false){getObjectById("requiredAsteriskK").style.display="block";getObjectById("btn3").title+=" "+R_title_required;requiredModes[3]=true}showButtons[3]=
true;playModeButtonCount++}if(isModeAvailable("D")){if(d&&statobj.isRequired("D")){getObjectById("requiredAsteriskD").style.display="block";getObjectById("btn4").title+=" "+R_title_required;requiredModes[4]=true}showButtons[4]=true;playModeButtonCount++}if(isModeAvailable("P")){e=launchPage.printitName.lastIndexOf(".");e=launchPage.printitName.substr(e+1);var f=statobj.isRequired("P");if(e=="pdf"){getObjectById("printitimagePDF").style.display="inline";getObjectById("printitimageDOC").style.display=
"none";getObjectById("printitimageHTML").style.display="none";if(d&&f){getObjectById("requiredAsteriskPDF").style.display="block";getObjectById("btn5").title+=" "+R_title_required;requiredModes[6]=true}showButtons[6]=true}else if(e=="doc"||e=="docx"){getObjectById("printitimagePDF").style.display="none";getObjectById("printitimageDOC").style.display="inline";getObjectById("printitimageHTML").style.display="none";if(d&&f){getObjectById("requiredAsteriskDOC").style.display="block";getObjectById("btn6").title+=
" "+R_title_required;requiredModes[7]=true}showButtons[7]=true}else{getObjectById("printitimagePDF").style.display="none";getObjectById("printitimageDOC").style.display="none";getObjectById("printitimageHTML").style.display="inline";if(d&&f){getObjectById("requiredAsteriskHTML").style.display="block";getObjectById("btn7").title+=" "+R_title_required;requiredModes[8]=true}showButtons[8]=true}playModeButtonCount++}}_Resize();window.onresize=Resize0}
function StartPlay(d,e,f,g){try{this.frames.myconceptframe.Sound_Stop()}catch(j){}s="Topic playing will be started from here.\r\nTopic: unknown\r\nPlayMode: "+d;s+=e?"\r\nFrom frame: "+e:"\r\nFrom beginning of topic";var l="Mode="+d;if(e)l+="&frame="+e;l+="&SpecMode=Y";if(!f||f==false){e=parent.urlParser.GetParameter("ctxex");if(e!=null)l+="&ctxex="+e}if(launchPage.printitName!="")l+="&printitname="+launchPage.printitName;g||(g="");if(g.length>0)g+="/";e=true;if(playerWindow&&playerWindow.closed==
false||doItPlayerStarted)e=false;if(e)if(d=="D"||d=="E"){doItPlayerStarted=true;g=g+"tpc/"+topicID+"/";if(d==="E")l+="&testit";LaunchDoIt(AbsUrl(g),l)}else if(d=="P"){d=launchPage.printitName.lastIndexOf(".");d=launchPage.printitName.substr(d+1);l=false;if(d=="html"||d=="htm")l=true;if(parent._lmsParser.GetParameter("dhtml")=="")parent.location.replace(AbsUrl(urlParser.GetCorrectUrl(""+g+"printit/"+launchPage.printitName)),"",l?"":"toolbar=0,location=0,statusbar=0,menubar=0,scrollbars=0");else playerWindow=
window.open(urlParser.GetCorrectUrl(g+"printit/"+launchPage.printitName),"",l?"":"toolbar=0,location=0,statusbar=0,menubar=0,scrollbars=0")}else{g=g+"tpc/"+topicID+"/topic.html?"+l;g=AbsUrl(g);playerWindow=window.open(urlParser.GetCorrectUrl(g),"","toolbar=0,location=0,statusbar=0,menubar=0,scrollbars=1,resizable=0,fullscreen=1,left=0,top=0,width="+screen.width+",height="+screen.height)}else alert(R_warning_other_player_instance)}function DoItFinished(){window.focus();doItPlayerStarted=false}
var _semaphore=true,__mode=null,__frame_id=null,__fromjumpin=null,__path=null;function launchTopic(d,e,f,g){if(statobj){if(d==null){d=__mode;e=__frame_id;f=__fromjumpin;g=__path}if(_semaphore==true){lms_LaunchTopic(d);if(isJumpInDialogOpen){_inToc?parent.parent.closeDialog():closeDialog();isJumpInDialogOpen=false}StartPlay(d,e,f,g)}_semaphore=true}else{if(d!=null){__mode=d;__frame_id=e;__fromjumpin=f;__path=g}setTimeout("launchTopic()",100)}}function Jumpin1(d){_semaphore=false;Jumpin(d)}
function Jumpin(d){var e="";e+="<div class='textWindows'>";e+="<span class='textWindows'>"+R_jumpin_header+"</span>";e+="</br></br><ul><li>";e+="<a class='textWindows' href='javascript:parent.launchTopic(\""+d+"\",null,true)'>"+R_jumpin_beginning+"</a>";e+="</li>";for(var f=parent.topicDescriptor.jumpInArray,g=0,j=f.length;g<j;g++)if(f[g].modes.indexOf(d)!=-1){e+="<li>";e+="<a class='textWindows' href='javascript:parent.launchTopic(\""+d+'","'+f[g].frame_id+"\",true)'>";e+=f[g].label;e+="</a>";e+=
"</li>"}e+="</ul><br>";e+="<a class='textWindows' href='javascript:parent.closeDialog()'>"+R_certificate_close+"</a>";e+="</div>";e+="";d=getObjectById("jumpin"+d);x=d.offsetLeft;y=d.offsetTop;for(p=d.offsetParent;p!=null;){x+=p.offsetLeft;y+=p.offsetTop;p=p.offsetParent}y+=20;cv=document.body.clientWidth;if(x+290>cv)x=cv-290;padding=5;e=setPadding(e,padding,"textWindows");contentsize=getContentSize(e);if(_inToc){x=parent.parent.getAbsoluteXPosInToc(x);y=parent.parent.getAbsoluteYPosInToc(y)}isJumpInDialogOpen=
true;_inToc?parent.parent.showDialog2(e,PxToPt(x,96),PxToPt(y,96),200,-1,false,96,true):showDialog2(e,PxToPt(x,96),PxToPt(y,96),200,-1,false,96,true)}
function updateUI(d){if(errorDisplayed==false){allowShowScoStatus&&UpdateStatusField(GetLocalizedStatus(d));if(showLaunchButton){var e=GetLocalizedBigSCOButtonText(d),f=getObjectById("BigSCOStartText");d=getObjectById("btn8");f.style.width="auto";var g=d.clientWidth-f.clientWidth;f.innerHTML=e;d.title=e;if(playModeButtonCount!=0){e=parseInt(f.clientWidth);SetButtonTextWidth(buttons[9],e);d.style.width=""+(e+g)+"px"}}}}
function updateNoteIcon(){var d=lms_IsNotesAvailable();if(d)if(lms_HasNoteAlready(parent.topicID)>0){getObjectById("ViewNoteButton").style.display="block";getObjectById("CreateNoteButton").style.display="none"}else{getObjectById("ViewNoteButton").style.display="none";getObjectById("CreateNoteButton").style.display="block"}return d}
function launchBigSco(){if(bigSCOWindow&&bigSCOWindow.closed==false)alert(R_warning_other_player_instance);else{if(typeof lms_stateDiscarded!="undefined"&&lms_stateDiscarded==true){alert(R_bigsco_changed_text);lms_stateDiscarded=false}bigSCOWindow=window.open(urlParser.GetCorrectUrl("./toc.html?sco=sco_"+parent.bigScoGuid))}}function OnQuestionContinue(){parent.OnQuestionContinue&&parent.OnQuestionContinue()}
function NoWrap(d){for(var e="",f=0,g=d.length;f<g;f++)e+=d.substr(f,1)==" "?"&nbsp;":d.substr(f,1);return e}function ShowHelp(){onHelp(GetBasePath())}function ShowPrefs(){var d=GetBasePath()+"/../preferences/preferences.html";if(lms_IsUserProfileAvailable()){var e=lms_GetUserProfileUrl();if(e!="")d+="?UserProfileUrl="+Escape.MyEscape(e)}_inToc?parent.parent.showDialog(d,-1,-1,450,380,true,96):showDialog(d,-1,-1,450,380,true,96)}
function showShareContent(){var d=GetBasePath()+"/sharecontent.html",e=this.location.href,f=e.indexOf("?");if(f>=0)e=e.substr(0,f);f=e.indexOf("/lmsui.html");if(f>=0)e=e.substr(0,f);f=e.lastIndexOf("/");var g="";if(f>=0){g=e.substr(f+1);e=e.substr(0,f)}e+="/dhtml_kp.html";d+="?base="+Escape.MyEscape(e);d+="&guid="+topicID;e=parent.assetType;d+="&topic="+(e=="T"?"1":"0");if(conceptOnly)d+="&conceptonly";if(e=="A")d+="&owner="+parent._lmsParser.GetParameter("owner");d+="&path="+g;g=PxToPt(650,96);e=
PxToPt(200,96);_inToc?parent.parent.showDialog(d,-1,-1,g,e,true,96):showDialog(d,-1,-1,g,e,true,96)}function openConcept(){window.open(AbsUrl(launchPage.concept))}function ReturnToKPathPortal(){var d=lms_GetKPathPortalUrl();parent.parent.location.replace(d)}
function CreateNote(){var d=lms_GetNoteUrl(parent.topicID);if(_inToc){parent.parent.setParent(self);parent.parent.setOnCloseEvent("OnNotesClosed()");parent.parent.showDialog(d,-1,-1,510,340,true,96)}else{setParent(self);setOnCloseEvent("OnNotesClosed()");showDialog(d,-1,-1,510,340,true,96)}}
function ViewNote(){var d=lms_GetNoteUrl(parent.topicID);if(_inToc){parent.parent.setParent(self);parent.parent.setOnCloseEvent("OnNotesClosed()");parent.parent.showDialog(d,-1,-1,510,340,true,96)}else{setParent(self);setOnCloseEvent("OnNotesClosed()");showDialog(d,-1,-1,510,340,true,96)}}function OnNotesClosed(){updateNoteIcon();_inToc&&parent.parent.Toc_onCloseDialog()}
function AskAnExpert(){var d=lms_GetMentoringUrl(parent.topicID);_inToc?parent.parent.showDialog(d,-1,-1,510,400,true,96):showDialog(d,-1,-1,510,400,true,96)}function ProvideFeedback(){var d=lms_GetFeedbackUrl(parent.topicID);_inToc?parent.parent.showDialog(d,-1,-1,510,400,true,96):showDialog(d,-1,-1,510,400,true,96)}
function getScrollBarWidth(){var d=document.createElement("p");d.style.width="100%";d.style.height="200px";var e=document.createElement("div");e.style.position="absolute";e.style.top="0px";e.style.left="0px";e.style.visibility="hidden";e.style.width="200px";e.style.height="150px";e.style.overflow="hidden";e.appendChild(d);document.body.appendChild(e);var f=d.offsetWidth;e.style.overflow="scroll";d=d.offsetWidth;if(f==d)d=e.clientWidth;document.body.removeChild(e);return f-d}
function ShowSeeAlso(){var d="",e="",f=parent.topicDescriptor,g;for(g in f.seealsolinks)if(f.seealsolinks[g].filtered!=true){var j;switch(f.seealsolinks[g].type.toLowerCase()){case "topic":j='background-position: -290px 0px; width:20px; height:18px; background-image: url("./img/treecontrol.png");';break;case "section":case "outline":j=f.seealsolinks[g].empty==true?'background-position: -307px 0px; width:20px; height:18px; background-image: url("./img/treecontrol.png");':'background-position: -232px 0px; width:20px; height:18px; background-image: url("./img/treecontrol.png");';
break;default:j=""}d+="<div><a href='javascript:parent.OpenSeeAlso(\""+f.seealsoroot+'",'+g+")'>";e+="<div><a href='javascript:parent.OpenSeeAlso(\""+f.seealsoroot+'",'+g+")'>";d+="<img src='./img/empty.gif' style='"+j+"vertical-align: text-bottom;' border='0' /></a>";e+="</a>";d+="<a class='tocFrameText' href='javascript:parent.OpenSeeAlso(\""+f.seealsoroot+'",'+g+")'>";e+="<a class='tocFrameText' href='javascript:parent.OpenSeeAlso(\""+f.seealsoroot+'",'+g+")'>";d+=filterHTML(f.seealsolinks[g].title)+
"</a></div>";e+=filterHTML(f.seealsolinks[g].title)+"</a></div>"}padding=5;d=setPadding(d,padding);_s=e=setPadding(e,padding);contentsize=getContentSize("<div style='overflow:auto'>"+_s+"</div>");if(contentsize.width>500)contentsize=getContentSize("<div style='width:500px;'>"+_s+"</div>");e=contentsize.width+padding+2;g=0;e+=36;g=(f.seealsolinks.length+1)*18;if(document.documentMode==7)g=(f.seealsolinks.length+1)*19;if(_myTableObj==null)_myTableObj=getObjectById("myTable");f=_myTableObj.clientHeight;
if(isIE7)f+=$("#concept_div").height();if(g>f){g=f;if(contentsize.width>500)contentsize=getContentSize("<div style='width:500px;'>"+_s+"</div>");else e+=getScrollBarWidth()}f=getObjectById("SeeAlsoButton");var l=getAbsolutePosition(f);j=l.x;l=l.y+f.clientHeight;if(_inToc){j=parent.parent.getAbsoluteXPosInToc(j);l=parent.parent.getAbsoluteYPosInToc(l)}j=j-e+f.offsetWidth;_inToc?parent.parent.showDialog2(d,PxToPt(j,96),PxToPt(l,96),PxToPt(e,96),PxToPt(g,96),false,96,true):showDialog2(d,PxToPt(j,96),
PxToPt(l,96),PxToPt(e,96),PxToPt(g,96),false,96,true)}function UpdateSeeAlso(d){getObjectById("SeeAlsoContainer").style.display=d&&IsTouchDevice()==null?"block":"none"}function getAbsolutePosition(d){var e={x:d.offsetLeft,y:d.offsetTop};if(d.offsetParent){d=getAbsolutePosition(d.offsetParent);e.x+=d.x;e.y+=d.y}return e}
function OpenSeeAlso(d,e){_inToc?parent.parent.closeDialog():closeDialog();var f=GetBasePath();window.open(urlParser.GetCorrectUrl(f+"/toc.html?seealso="+d+"&selectitem="+e),"SeeAlsoTocWnd").focus()}
function InitUIElements(){if(UIComponents.Preferences&&PlayerConfig.EnableCookies==true&&UserPrefs.EnablePreferences==true)getObjectById("prefsbutton").style.display="block";if(UIComponents.KPathLogout&&lms_IsKPathLogoutAvailable()&&lmsMode=="KPT")getObjectById("KPathLogOutButton").style.display="block";if(UIComponents.KPathPortal&&lms_IsKPathPortalAvailable())getObjectById("KPathPortalButton").style.display="block";var d=UIComponents.ProvideUserFeedback&&lms_IsFeedbackAvailable();if(d==true)getObjectById("ProvideFeedback").style.display=
"block";var e=UIComponents.AskAnExpert&&lms_IsMentoringAvailable();if(e==true)getObjectById("AskAnExpert").style.display="block";if((UIComponents.Notes&&updateNoteIcon())==true||e==true||d==true)getObjectById("NotesAndMentoring").style.display="block";if(UIComponents.SeeAlso&&parent.CheckSeeAlso()&&IsTouchDevice()==null)getObjectById("SeeAlsoContainer").style.display="block";if(UIComponents.Help&&IsTouchDevice()==null)getObjectById("HelpButton").style.display="block";LoadStatusBarState()}
function ShowNewToc(d){var e=GetBasePath();window.open(urlParser.GetCorrectUrl(e+"/toc.html?sac=sac_"+d),"SacTocWnd").focus()}function GetBasePath(){base=this.location.href;k=base.indexOf("?");if(k<0)k=base.indexOf("#");if(k>=0)base=base.substr(0,k);k=base.lastIndexOf("/");return b=base.substr(0,k)}
function GetLocalizedStatus(d){var e="";if(d==LMS_INCOMPLETE)e=R_status_incomplete;else if(d==LMS_COMPLETED)e=R_status_completed;else if(d==LMS_PASSED)e=R_status_passed;else if(d==LMS_FAILED)e=R_status_failed;else if(d===LMS_NOT_ATTEMPTED)e=R_status_notattempted;return e}function GetLocalizedBigSCOButtonText(d){var e=R_start_start;if(d==LMS_INCOMPLETE)e=R_start_continue;else if(d==LMS_COMPLETED||d==LMS_PASSED||d==LMS_FAILED)e=R_start_takeagain;return e}
function OnStatusClicked(){if(IsDescStatusBarOpen)CloseStatusDescBar();else{ShowDescStatusBar=true;if(errorDisplayed)ShowStatusDescBar(true,null);else{var d;if(parent.assetType=="T")d=R_status_inst_topic;else if(parent.assetType=="B")d=R_status_inst_bigsco;else if(parent.assetType=="A")d=R_status_inst_assessment;else if(parent.assetType=="Q")d=R_status_inst_question;ShowStatusDescBar(false,d)}}}
function ShowMoreTopics(){var d=this.location.href.lastIndexOf("/"),e=this.location.href.substr(0,d+1)+"toc.html?treeindex="+launchPage.treeIndex;if(IsTouchDevice()!=null)e=this.location.href.substr(0,d+1)+"../ipad.html";parent.location.replace(urlParser.GetCorrectUrl(e))}
function ConnectionLostEvent(d){errorDisplayed=true;UpdateStatusField(R_status_offline);d=R_status_inst_offline+"\n"+R_status_error_prefix+d;if(statusDescFirstDisplayed==true){var e="";e+="<div class='textWindows'>";e+="<a class='textWindows'>"+d+"</a>";e+="<br/>";e+="<a class='textWindows' href='javascript:parent.closeDialog()'>"+R_certificate_close+"</a>";e+="</div>";e+="";padding=5;e=setPadding(e,padding,"textWindows");_inToc?parent.parent.showDialog2(e,-1,-1,200,-1,false,96,true):showDialog2(e,
-1,-1,200,-1,false,96,true);statusDescFirstDisplayed=false}ShowDescStatusBar&&ShowStatusDescBar(true,d)}function ShowStatusDescBar(d,e){IsDescStatusBarOpen&&CloseStatusDescBar();var f=getObjectById("StatusText");if(e!=null)f.innerHTML=e;f.className="statustext "+(d?"statusbar_error statusbar_error_text":"statusbar statusbar_text");getObjectById("StatusDesc").style.display="block";IsDescStatusBarOpen=true;VResize()}
function CloseStatusDescBar(){if(IsDescStatusBarOpen!=false){getObjectById("StatusDesc").style.display="none";ShowDescStatusBar=IsDescStatusBarOpen=false;setTimeout("VResize()",1)}}function LoadStatusBarState(){var d=new Cookie(document,"PlayerStatusBarState","365","/");d.Load();ShowDescStatusBar=d.PlayerStatusBarOpen;if(typeof ShowDescStatusBar==="undefined"||ShowDescStatusBar==null)ShowDescStatusBar=true}
function SaveStatusBarState(){var d=new Cookie(document,"PlayerStatusBarState","365","/");d.Load();d.PlayerStatusBarOpen=ShowDescStatusBar;d.Store()}function OnLogOutClicked(){lms_KPathLogout()};var intPos=window.location.search.toLowerCase().indexOf("aicc_url"),intPos2=window.location.search.toLowerCase().indexOf("aicc_sid");function getOnlyPath(d){for(;d.indexOf("\\")!=-1;)d=d.replace("\\","/");return d.substr(0,d.lastIndexOf("/"))}
if(intPos>-1&&intPos2>-1){if(LmsConfig.AiccAppletPath==""){var currentPgPath=window.location.protocol+"//"+window.location.host+getOnlyPath(window.location.pathname);fullPath=currentPgPath+"/"+lms_path+"js"}else fullPath=LmsConfig.AiccAppletPath;document.write("<div style='position: absolute;'><applet NAME='GetHTTPPostData' codebase='"+fullPath+"' code='GetHTTPPostData.class' width='1' height='1' MAYSCRIPT></applet></div>")};function InsertRuntimeAPI(d){if(Kpath_launch==false)setTimeout(d,1);else{var e=findKPathAPIFrame(window);if(e==null){e=document.createElement("iframe");e.id="KPATH_API_FRAME";e.style.display="none";document.body.appendChild(e);if(d)if(navigator.appName=="Microsoft Internet Explorer")e.attachEvent("onload",d);else e.onload=d;e.src=Kpath_Runtime_API}else setTimeout(d,1)}}
function findKPathAPIFrame(d){var e=null,f=0,g=d;try{for(;g!=null;){e=g.document.getElementById("KPATH_API_FRAME");if(e!=null)return e.contentWindow;f++;if(f>7)break;if(g===g.parent)break;g=g.parent}if(d.top.opener!=null)return findKPathAPIFrame(d.top.opener)}catch(j){}return null}var _GlobalLmsComFactory=null;function GetLmsComFactory(){_GlobalLmsComFactory==null&&alert(R_initializelmscom_not_called);return _GlobalLmsComFactory}
function CheckForLMSAPI(){if(_lmsMode=="LMS"&&!(_GlobalLmsComFactory.api_type=="scorm2004"||_GlobalLmsComFactory.api_type=="scorm12"||_GlobalLmsComFactory.api_type=="aicc"||_GlobalLmsComFactory.api_type=="kpath"&&findKPathAPIFrame(window)))alert(R_scorm_noapi);_lmsMode=="KPT"&&!findKPathAPIFrame(window)&&alert(R_scorm_noapi)}function InitializeLmsCom(){_GlobalLmsComFactory=new LmsComFactory(window.location.search)}
function LmsComFactory(d){this.api_type="none";this.launch_arg=d;this.aicc_sid=this.aicc_url="";this.scorm_api_2004=this.scorm_api_12=null;d=this.launch_arg.substring(1).split("&");lmslog.addEntry(0,"LmsComFactory","strArgs",d);for(var e=0;e<d.length;e++){strArg=d[e];var f;f=this.CheckParam(strArg,"aicc_url=");if(f!="")this.aicc_url=f.substr(0,4).toLowerCase()!="http"?LmsConfig.AiccUrlProtocol+f:f;else{f=this.CheckParam(strArg,"aicc_sid=");if(f!="")this.aicc_sid=f}}if(LmsConfig.ScormVersion!=="1.2")this.scorm_api_2004=
this.FindScorm2004API();if(this.scorm_api_2004==null&&LmsConfig.ScormVersion!=="2004")this.scorm_api_12=this.FindScorm12API();if(this.aicc_url!=""&&this.aicc_sid!="")this.api_type="aicc";else if(Kpath_launch==true)this.api_type="kpath";else if(this.scorm_api_2004!=null)this.api_type="scorm2004";else if(this.scorm_api_12!=null)this.api_type="scorm12"}
LmsComFactory.prototype.CreateLmsCom=function(){if(this.api_type=="aicc")return new LmsComAICC(this.aicc_url,this.aicc_sid);else if(this.api_type=="scorm2004")return new LmsComScorm2004;else if(this.api_type=="kpath"){var d=new LmsComKPath;d.API=this.scorm_api_2004;return d}else if(this.api_type=="scorm12")return new LmsComScorm12;return PlayerConfig.EnableCookies?new LmsComCookie:new LmsComBase};
LmsComFactory.prototype.FindScorm12API=function(){try{var d=this.FindWindowScorm12API(window);if(d==null&&top.window.opener!=null&&!top.window.opener.closed)d=this.FindWindowScorm12API(top.window.opener);return d}catch(e){return null}};LmsComFactory.prototype.FindWindowScorm12API=function(d){for(var e=0;d.API==null&&d.parent!=null&&d.parent!=d;){e++;if(e>500){lmslog.addEntry(0,"FindScorm12API","",R_scorm_apideep);return null}d=d.parent}return d.API};
LmsComFactory.prototype.FindScorm2004API=function(){try{var d=this.FindWindowScorm2004API(window);if(d==null&&top.window.opener!=null&&!top.window.opener.closed)d=this.FindWindowScorm2004API(top.window.opener);return d}catch(e){return null}};LmsComFactory.prototype.FindWindowScorm2004API=function(d){for(var e=0;d.API_1484_11==null&&d.parent!=null&&d.parent!=d;){e++;if(e>500){lmslog.addEntry(0,"FindScorm2004API","",R_scorm_apideep);return null}d=d.parent}return d.API_1484_11};
LmsComFactory.prototype.CheckParam=function(d,e){var f=e.length,g="";if(d.substr(0,f).toLowerCase()==e)g=d.substring(f);return g};var _lmsMode=null,_lmsParser=null;
function InitLmsMode(d){if(_lmsParser==null){_lmsParser=new UrlParser;_lmsParser.Parse();if(d=="player"){if(_lmsParser.GetParameter("directlaunch")!=null)_lmsMode=Kpath_launch==true?"KPT":"Cookie"}else if(d=="lmstart"){if(_lmsParser.GetParameter("toc")==null)_lmsMode=_lmsParser.GetParameter("dhtml")!=null?Kpath_launch==true?"KPT":"Cookie":"LMS"}else if(d=="toc"){if(_lmsParser.GetParameter("sco")==null)_lmsMode=Kpath_launch==true?"KPT":"Cookie"}else alert(R_undefined_lms_source)}}
function GetTopLevelLmsMode(){return _GetTopLevelLmsMode(this)}function _GetTopLevelLmsMode(d){var e=d._lmsMode;if(e==null)return _GetTopLevelLmsMode(d.lms_store.parentW);return e}var lms_initialized=false,lms_store,lmslog;
function lms_InitPage(d,e,f,g){if(lms_initialized==true)setTimeout(g,1);else{__Ialert("lms_InitPage called with parameters:"+d+","+e+","+f+","+g);lms_store={window:window,childIndex:d,parentW:e,cguid:f,callbackfunction:g};if(!e||e.closed){lmslog=new Log(LmsConfig.DebugMode);InitializeLmsCom();InsertRuntimeAPI(lms_LoadRuntimeComplete)}else if(e.lms_initialized){lmslog=e.lmslog;setTimeout(lms_LoadRuntimeComplete,1)}}}
function lms_LoadRuntimeComplete(){__Ialert("lms_LoadRuntimeComplete() called");if(lms_store.parentW&&!lms_store.parentW.closed)lms_store.parentW.GetChildLmsCom(lms_store);else if(!lms_store.parentW&&!lms_store.cguid&&!window.bigScoItemCount)document.LmsCom=PlayerConfig.EnableCookies?new LmsComCookie:new LmsComBase;else{CheckForLMSAPI();document.LmsCom=_GlobalLmsComFactory.CreateLmsCom()}var d=document.LmsCom;d.guid=lms_store.cguid;d.owner=window;d.LoadAPIAdapter(lms_LoadAdapterComplete)}
function lms_UpdateUI(d){try{parent&&parent.updateUI&&parent.updateUI(d)}catch(e){}}var hasClosed=false;
function lms_ClosePage(d){__Ialert("lms_ClosePage() called");if(hasClosed!=true){hasClosed=true;var e=document.LmsCom;if(e&&e.session_active){var f=e.child;f&&f.session_active&&f.owner&&!f.owner.closed&&f.owner.lms_ClosePage(true);(f=e.ancillaryChild)&&f.session_active&&f.owner&&!f.owner.closed&&f.owner.lms_ClosePage(true);window._closePage&&_closePage();if(e.session_active){e.SaveStatus();e.End();e.NotifyParent()}d&&window.close()}}}
function lms_ConnectionLost(d){window.ConnectionLostEvent&&ConnectionLostEvent(d);lms_store.parentW&&!lms_store.parentW.closed&&lms_store.parentW.lms_ConnectionLost(d)}function lms_IsConnected(){var d=document.LmsCom;if(d)return d.IsConnected();return false}function lms_IsKPathLogoutAvailable(){return!!window.Kpath_logout_available}
function _logout(d){if(lms_store.parentW&&!lms_store.parentW.closed&&lms_store.parentW._logout)lms_store.parentW._logout(false);else if(window.Kpath_logout_URL)if(GetTopLevelLmsMode()=="LMS")window.parent.parent.location.replace(Kpath_logout_URL);else if(d)if(window.opener&&!window.opener.closed){d=window.opener.location.href;window.opener.location.replace(Kpath_logout_URL+"&RedirectURL="+escape(d));window.close()}else if(IsTouchDevice()){d=window.location.href.split("/").slice(0,5).join("/")+"/ipad.html";
window.location.replace(Kpath_logout_URL+"&RedirectURL="+escape(d))}else window.location.replace(Kpath_logout_URL);else{d=window.location.href.replace("?genctx","");window.location.replace(Kpath_logout_URL+"&RedirectURL="+escape(d))}}function lms_IsUserProfileAvailable(){__alert("lms_IsUserProfileAvailable() called");if(GetTopLevelLmsMode()!=="KPT")return false;return document.LmsCom.doGetUPKValue("upk.anonymous")=="0"}
function lms_GetUserProfileUrl(){__alert("lms_GetUserProfileUrl() called");if(Kpath_launch==false)return"";return Kpath_profile_URL+"?UPKLaunch=true"}function GetNoSound(){return lms_store.parentW&&!lms_store.parentW.closed?lms_store.parentW.GetNoSound():lms_store.noSound}function SetNoSound(d){lms_store.noSound=d}var _lms_show_all_alert=false;function __alert(d){if(_lms_show_alert||_lms_show_all_alert)alert(d+"\nfile: "+_lms_module_name)}
function __Ialert(d){if(_lms_show_alert||_lms_show_Ialert||_lms_show_all_alert)alert(d+"\nfile: "+_lms_module_name)};var lms_stateDiscarded=false;
function lms_LoadAdapterComplete(){__Ialert("lms_LoadAdapterComplete() called");var d=document.LmsCom,e=parent.assetType;if(Kpath_launch&&e==="B")e="C";if(e==="T"||e==="B")updateUI(d.status_obj.getStatus());if(e==="B")if(e=d.lesson_data){var f=e.indexOf("@");if(f>0){var g=parseInt(e.substring(0,f));lms_stateDiscarded=e.substring(f+1,f+g+1).replace(/ /g,"+")!==d.bigScoHash}else lms_stateDiscarded=true}else lms_stateDiscarded=false;lms_initialized=true;setTimeout(lms_store.callbackfunction,1)}
function GetChildLmsCom(d){__Ialert("lms_GetChildLmsCom() called");var e=document.LmsCom;if(d.childIndex===-1){var f=d.window.document.LmsCom=new LmsComBase;f.owner=d.window;e.ancillaryChild=f}else{f=d.window.document.LmsCom=new LmsComBase(e);f.owner=d.window;e.child=f}if(e.bigScoItemCount&&e.status_obj.getStatus()===LMS_NOT_ATTEMPTED){e.status_obj.setStatus(LMS_INCOMPLETE);e.SaveStatus();e.SendCompletionInfo();updateUI(LMS_INCOMPLETE)}}
function ListenChildClose(){__alert("lms_ListenChildClose() called");var d=document.LmsCom,e=d.child;if(e)if(lms_store.cguid&&lms_store.cguid.charAt(0)=="T"){var f=d.status_obj,g=e.status_obj;e=f.modes[e.status_obj.mode.id];e.complete=g.mode.complete;if(e.id=="D"||e.id=="E"){f.modes.S.complete=g.modes.S.complete;f.modes.T.complete=g.modes.T.complete;f.modes.P.complete=g.modes.P.complete}if(e.id=="K"){f.score=g.score;f.passed=g.passed}d.SaveStatus()}else{d.lesson_data=e.lesson_data;d.status_obj.setStatus(e.lesson_status);
d.SaveStatus();d.score=e.score;d.lesson_location=e.lesson_location}d.lesson_status!==LMS_NOT_ATTEMPTED&&updateUI(d.lesson_status);d.SendCompletionInfo();d.NotifyParent()}
function lms_LaunchTopic(d){__alert("lms_LaunchTopic("+d+") called");var e=document.LmsCom;e.status_obj.anylaunched=true;if(e.lesson_status===LMS_NOT_ATTEMPTED&&e.status_obj.isComplete()){e.status_obj.clearTopicstat();updateUI(LMS_INCOMPLETE);e.SendCompletionInfo()}if(d=="P"){e.utGetModeIndex();e.utRecordType("print_it");e.utRecordStartTime(new Date);e.utRecordEndTime(new Date);e.utRecordCompletionStatus(LMS_COMPLETED);e.status_obj.setModestatus("P",true);e.SaveStatus();updateUI(e.lesson_status);
e.SendCompletionInfo();e.NotifyParent()}}var _topLevelLmsMode="";function CheckKPTMode(){if(_topLevelLmsMode=="")_topLevelLmsMode=GetTopLevelLmsMode();return _topLevelLmsMode=="KPT"}function lms_IsKPathPortalAvailable(){__alert("lms_IsKPathPortalAvailable() called");if(CheckKPTMode()==false)return false;if(parent.urlParser.GetParameter("launchFromKPath")==null)return"";return lms_GetKPathPortalUrl().length>0}
function lms_GetKPathPortalUrl(){__alert("lms_GetKPathPortalUrl() called");if(Kpath_launch==false)return"";var d="";try{}catch(e){}return Kpath_home_URL}function lms_KPathLogout(){_logout(false)}function lms_IsMentoringAvailable(){__alert("lms_IsMentoringAvailable() called");if(CheckKPTMode()==false)return false;return document.LmsCom.doGetUPKValue("upk.mentoring_available")&&document.LmsCom.doGetUPKValue("upk.anonymous")=="0"}
function lms_GetMentoringUrl(){__alert("lms_GetMentoringUrl() called");return Kpath_base_URL+"/Mentoring/NewMentQuest.aspx?Path="+lms_store.parentW.location.href.split("?")[0]+"&GUID="+lms_store.cguid+"&FeedbackType=1"}function lms_IsFeedbackAvailable(){__alert("lms_IsFeedbackAvailable() called");if(CheckKPTMode()==false)return false;return document.LmsCom.doGetUPKValue("upk.feedback_available")&&document.LmsCom.doGetUPKValue("upk.anonymous")=="0"}
function lms_GetFeedbackUrl(){__alert("lms_GetFeedbackUrl() called");return Kpath_base_URL+"/Mentoring/NewMentQuest.aspx?Path="+lms_store.parentW.location.href.split("?")[0]+"&GUID="+lms_store.cguid+"&FeedbackType=2"}function lms_IsNotesAvailable(){__alert("lms_IsNotesAvailable() called");if(CheckKPTMode()==false)return false;return document.LmsCom.doGetUPKValue("upk.notes_available")&&document.LmsCom.doGetUPKValue("upk.anonymous")=="0"}
function lms_HasNoteAlready(){__alert("lms_HasNoteAlready() called");return document.LmsCom.doGetUPKValue("upk.has_note")}function lms_GetNoteUrl(){__alert("lms_GetNoteUrl() called");lms_HasNoteAlready();return Kpath_base_URL+"/Notebook/Notes.aspx?Path="+lms_store.parentW.location.href.split("?")[0]+"&GUID="+lms_store.cguid}var _lms_module_name="lms_lmsui.js",_lms_show_alert=false,_lms_show_Ialert=false;function onHelp(d){if(d.charAt(d.length-1)=="/")d=d.substr(0,d.length-1);if(d.length>0)d+="/";_top=_left=screen.availWidth/17;_height=screen.availHeight-3*_top;if(_height>500)_height=500;_width=_height*4.5/3;_height=390;_width=637;w=window.open(d+"../help/toc.html","odhelp","width="+_width+",height="+_height+",left="+_left+",top="+_top+",resizable=1,toolbar=1,scrollbars=1,location=0,menubar=0");w.focus()};function UserPreferences(){this.EnablePreferences=true;this.TimeStamp="000000000000";this.ShowLeadIn=this.PlayAudio="all";this.MarqueeColor="red";this.TryIt={};this.TryIt.EnableSkipping=true;this.DoIt={};this.DoIt.HotKey={};this.DoIt.HotKey.Ctrl="L";this.DoIt.HotKey.Shift="N";this.DoIt.HotKey.Alt="L";this.DefaultPlayMode="S";this.WebPageAutoPlayback=true;this.NavbarVolume=100}
UserPreferences.prototype.Copy=function(d){this.TimeStamp=d.TimeStamp;this.PlayAudio=d.PlayAudio;this.ShowLeadIn=d.ShowLeadIn;this.MarqueeColor=d.MarqueeColor;this.TryIt.EnableSkipping=d.TryIt.EnableSkipping;this.DoIt.HotKey.Ctrl=d.DoIt.HotKey.Ctrl;this.DoIt.HotKey.Shift=d.DoIt.HotKey.Shift;this.DoIt.HotKey.Alt=d.DoIt.HotKey.Alt;this.DefaultPlayMode=d.DefaultPlayMode;this.WebPageAutoPlayback=d.WebPageAutoPlayback;this.NavbarVolume=d.NavbarVolume};
UserPreferences.prototype.Compare=function(d){if(this.PlayAudio!=d.PlayAudio)return true;if(this.ShowLeadIn!=d.ShowLeadIn)return true;if(this.MarqueeColor!=d.MarqueeColor)return true;if(this.TryIt.EnableSkipping!=d.TryIt.EnableSkipping)return true;if(this.DoIt.HotKey.Ctrl!=d.DoIt.HotKey.Ctrl)return true;if(this.DoIt.HotKey.Shift!=d.DoIt.HotKey.Shift)return true;if(this.DoIt.HotKey.Alt!=d.DoIt.HotKey.Alt)return true;if(this.DefaultPlayMode!=d.DefaultPlayMode)return true;if(this.WebPageAutoPlayback!=
d.WebPageAutoPlayback)return true;if(this.NavbarVolume!=d.NavbarVolume)return true;return false};UserPreferences.prototype.GetCookie=function(){return new Cookie(document,"OnDemandPlayer",365,"/")};
UserPreferences.prototype.LoadCookie=function(){var d=this.GetCookie();d.Load();if(!(UserPrefs.TimeStamp!="000000000000"&&(!d.TimeStamp||UserPrefs.TimeStamp>d.TimeStamp))){if(d.PlayAudio)this.PlayAudio=d.PlayAudio;if(d.ShowLeadIn)this.ShowLeadIn=d.ShowLeadIn;if(d.MarqueeColor)this.MarqueeColor=d.MarqueeColor;if(d.TryIt_EnableSkipping)this.TryIt.EnableSkipping=d.TryIt_EnableSkipping=="true";if(d.DoIt_HotKey_Ctrl)this.DoIt.HotKey.Ctrl=d.DoIt_HotKey_Ctrl;if(d.DoIt_HotKey_Shift)this.DoIt.HotKey.Shift=
d.DoIt_HotKey_Shift;if(d.DoIt_HotKey_Alt)this.DoIt.HotKey.Alt=d.DoIt_HotKey_Alt;if(d.DefaultPlayMode)this.DefaultPlayMode=d.DefaultPlayMode;if(d.WebPageAutoPlayback)this.WebPageAutoPlayback=d.WebPageAutoPlayback;if(d.NavbarVolume)this.NavbarVolume=d.NavbarVolume}};
UserPreferences.prototype.StoreCookie=function(){var d=this.GetCookie();d.TimeStamp=this.TimeStamp;d.PlayAudio=this.PlayAudio;d.ShowLeadIn=this.ShowLeadIn;d.MarqueeColor=this.MarqueeColor;d.TryIt_EnableSkipping=this.TryIt.EnableSkipping;d.DoIt_HotKey_Ctrl=this.DoIt.HotKey.Ctrl;d.DoIt_HotKey_Shift=this.DoIt.HotKey.Shift;d.DoIt_HotKey_Alt=this.DoIt.HotKey.Alt;d.DefaultPlayMode=this.DefaultPlayMode;d.WebPageAutoPlayback=this.WebPageAutoPlayback;d.NavbarVolume=this.NavbarVolume;d.Store()};
UserPreferences.prototype.GetUrlParamString=function(){return"PP_SOUND="+this.PlayAudio+"&PP_LEADIN="+this.ShowLeadIn+"&PP_SKIP="+(this.TryIt.EnableSkipping?"true":"false")+"&PP_MARQUEE="+this.MarqueeColor+"&PP_ENABLE="+(this.EnablePreferences?"true":"false")+"&PP_HOTKEY="+this.DoIt.HotKey.Ctrl+this.DoIt.HotKey.Shift+this.DoIt.HotKey.Alt};
UserPreferences.prototype.ParseUrlParamString=function(d){d=d.split("&");for(var e=0;e<d.length;e++){var f=d[e].split("=");if(f[0].toUpperCase()=="PP_SOUND")this.PlayAudio=f[1];else if(f[0].toUpperCase()=="PP_LEADIN")this.ShowLeadIn=f[1];else if(f[0].toUpperCase()=="PP_MARQUEE")this.MarqueeColor=f[1];else if(f[0].toUpperCase()=="PP_SKIP")this.TryIt.EnableSkipping=f[1]=="true";else if(f[0].toUpperCase()=="PP_ENABLE")this.EnablePreferences=f[1]=="true";else if(f[0].toUpperCase()=="PP_HOTKEY"){this.DoIt.HotKey.Ctrl=
f[1].charAt(0);this.DoIt.HotKey.Shift=f[1].charAt(1);this.DoIt.HotKey.Alt=f[1].charAt(2)}}};var UserPrefs=new UserPreferences;window.SetDefaultPreferences&&SetDefaultPreferences();UserPrefs.EnablePreferences&&UserPrefs.LoadCookie();var paramstr=unescape(document.location.hash.substring(1));if(paramstr=="")paramstr=unescape(document.location.search.substring(1));UserPrefs.EnablePreferences&&UserPrefs.LoadCookie();UserPrefs.ParseUrlParamString(paramstr);
function OpenPreferencesDialog(d,e,f){if(UserPrefs.EnablePreferences){d+="/preferences/preferences.html";h=412;var g=[];try{if(lms_IsUserProfileAvailable()){var j=lms_GetUserProfileUrl();if(j!="")g[g.length]="UserProfileUrl="+Escape.MyEscape(j)}}catch(l){}if(e)g[g.length]="nosound";if(f){g[g.length]="seeitonly";h=412}for(e=0;e<g.length;e++){d+=e==0?"?":"&";d+=g[e]}window.open(d,"prefwin","width=550,height="+h+",resizable=1,scrollbars=0,top="+(screen.availHeight-290)/2+",left="+(screen.availWidth-
550)/2)}else alert(R_preferences_disabled)}function SessionPreferences(){this.swipeInstructionShowed=false}SessionPreferences.prototype.GetCookie=function(){return new Cookie(document,"OnDemandPlayerSession",null,"/")};SessionPreferences.prototype.LoadCookie=function(){var d=this.GetCookie();d.Load();if(d.swipeInstructionShowed)this.swipeInstructionShowed=d.swipeInstructionShowed};
SessionPreferences.prototype.StoreCookie=function(){var d=this.GetCookie();d.swipeInstructionShowed=this.swipeInstructionShowed;d.Store()};var SessionPrefs=new SessionPreferences;function UserRolesClass(){this.Filtering=false;this.Roles=[]}UserRolesClass.prototype.Copy=function(d){this.Filtering=d.Filtering;this.Roles=[];for(var e=0;e<d.Roles.length;e++)this.Roles[e]=d.Roles[e]};
UserRolesClass.prototype.Compare=function(d){if(this.Filtering!=d.Filtering)return true;if(this.Roles.length!=d.Roles.length)return true;for(var e=0;e<this.Roles.length;e++)if(this.Roles[e]!=d.Roles[e])return true;return false};UserRolesClass.prototype.GetCookie=function(){return new Cookie(document,"OnDemandPlayerRoles",365,"/")};
UserRolesClass.prototype.LoadCookie=function(){var d=this.GetCookie();d.Load();this.Filtering=false;if(d.Filtering)this.Filtering=d.Filtering=="true";this.Roles=[];if(d.Roles)this.Roles=d.Roles.split("+")};UserRolesClass.prototype.StoreCookie=function(){var d=this.GetCookie();d.Filtering=this.Filtering?"true":"false";d.Roles=this.Roles.join("+");d.Store()};UserRolesClass.prototype.GetUrlParamString=function(){return"PP_ROLEFILTERING="+(this.Filtering?"true":"false")+"&PP_ROLES="+encodeURIComponent(this.Roles.join("+"))};
UserRolesClass.prototype.ParseUrlParamString=function(d){d=d.split("&");for(var e=0;e<d.length;e++){var f=d[e].split("=");if(f[0].toUpperCase()=="PP_ROLEFILTERING")this.Filtering=f[1]=="true";else if(f[0].toUpperCase()=="PP_ROLES"){this.Roles=[];if(f[1])this.Roles=f[1].split("+")}}};var UserRoles=new UserRolesClass;UserRoles.LoadCookie();UserRoles.ParseUrlParamString(paramstr);
function OpenRolesDialog(d){window.open(d+"/preferences/roles.html","roleswin","width=500,height=318,resizable=1,scrollbars=0,top="+(screen.availHeight-286)/2+",left="+(screen.availWidth-500)/2)};
