// If we can find the current class URL and the class LMSAPI object hasn't been created, try to // create one. try { var strSaveName = "LRNTASK"; { var oXML = new ActiveXObject("Microsoft.XMLDOM"); oXML.load("imsmanifest.xml"); strSaveName = oXML.selectSingleNode("/manifest/@identifier").text; } if("undefined" == typeof(top.g_oClassLMSAPI) || null == top.g_oClassLMSAPI) { if("undefined" == typeof(top.g_oUserData)) { top.g_oClassLMSAPI = new LMSAPI_Instance("LRN", strSaveName); } else { top.g_oClassLMSAPI = new LMSAPI_Instance("LRN", strSaveName, top.g_oUserData); } top.g_oClassLMSAPI.LRNInitialize(); } } catch(e) { // We don't care. }