From: Subject: OHS in Physician Office Leon Genesove WEB Date: Mon, 3 May 2010 14:23:58 -0400 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----=_NextPart_000_0000_01CAEACC.45020A30" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01CAEACC.45020A30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://ricn.on.ca/OHS_in_physician_office_Leon_Genesove_WEB/player.html OHS in Physician Office Leon Genesove WEB
------=_NextPart_000_0000_01CAEACC.45020A30 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: http://ricn.on.ca/OHS_in_physician_office_Leon_Genesove_WEB/player/flashcommand.js /*********************************************************************=0A= --- flashcommand : fscommand handler functions ---=0A= version 5.0.0=0A= This is the general fscommand handler for ALL output formats=0A= *********************************************************************/=0A= =0A= /////////////////////////////////////////////////////////////////////////= //=0A= // Global Vars=0A= /////////////////////////////////////////////////////////////////////////= //=0A= var g_strPlayer =3D "stealthray";=0A= var DATA_PATH =3D "data/swf/";=0A= var FLASH_WND_WIDTH =3D 40;=0A= var FLASH_WND_HEIGHT =3D 30;=0A= =0A= var SWF_BASE_WIDTH =3D 980; =0A= var SWF_BASE_HEIGHT =3D 640;=0A= var WEBOBJ_LEFT =3D 254;=0A= var WEBOBJ_TOP =3D 36;=0A= =0A= if (FF1 || NS6plus)=0A= {=0A= WEBOBJ_LEFT =3D 253;=0A= WEBOBJ_TOP =3D 34;=0A= }=0A= =0A= if (!g_bScaleSwf)=0A= {=0A= WEBOBJ_LEFT -=3D 8;=0A= WEBOBJ_TOP -=3D 4;=0A= strSwfWidth =3D 992;=0A= strSwfHeight =3D 652;=0A= }=0A= =0A= var WEBOBJ_DISPLAY3_XPOS_ADJUST =3D 150;=0A= var WEBOBJ_DISPLAY3_YPOS_ADJUST =3D 20;=0A= =0A= var WEBOBJ_DISPLAY2_XPOS_ADJUST =3D 119;=0A= =0A= // Browser Resize=0A= var g_ResizeTimeout;=0A= var g_strQMPath =3D "";=0A= =0A= /////////////////////////////////////////////////////////////////////////= //=0A= // Utility Functions=0A= /////////////////////////////////////////////////////////////////////////= //=0A= =0A= function Click()=0A= {=0A= // alert("Test");=0A= }=0A= =0A= function WriteSwfObject(strFileName, strSwfWidth, strSwfHeight, = strFlashVars, bWebObject, strTransparent, strScale)=0A= {=0A= var strLocProtocol =3D location.protocol;=0A= =0A= if (strLocProtocol.indexOf("file") >=3D 0)=0A= {=0A= strLocProtocol =3D "http:";=0A= }=0A= =0A= =0A= document.write(" ");=0A= document.write(" ");=0A= document.write(" ");=0A= if (bWebObject)=0A= {=0A= document.write(" ");=0A= }=0A= document.write(" ");=0A= document.write("");=0A= document.write("");=0A= document.write("");=0A= }=0A= =0A= =0A= function CreateBookmark(args, bSlide)=0A= {=0A= if (!Opera7plus && IE4plus)=0A= {=0A= var nSlideNum =3D args.substring(0,args.indexOf("|"));=0A= var strTitle =3D args.substring((args.indexOf("|")+1),args.length);=0A= =0A= var _proto =3D document.location.protocol;=0A= var _host =3D document.location.host;=0A= var _pathname =3D document.location.pathname;=0A= var _search =3D document.location.search;=0A= var newpath =3D "";=0A= var newUrl =3D "";=0A= var nPos =3D 0;=0A= =0A= nPos =3D _pathname.lastIndexOf("/");=0A= =0A= if (nPos <=3D 0) =0A= {=0A= nPos =3D _pathname.lastIndexOf("\\"); =0A= }=0A= if ( nPos < _pathname.length) =0A= { =0A= // if / is not the last char grab the trailing "/"=0A= nPos++;=0A= }=0A= =0A= if (_search.indexOf("akpDocumentID",0) < 0) =0A= {=0A= newpath =3D _pathname.substr(0, nPos) + "player.html";=0A= newUrl =3D _proto + "//" + _host + newpath +"?slide=3D" + nSlideNum;=0A= } =0A= else =0A= {=0A= did =3D _search.substring((_search.lastIndexOf("akpDocumentID") + = ("akpDocumentID").length+1), _search.length);=0A= newpath =3D "/Portal/Storage/DownloadDocument.aspx?DocumentID=3D" + = did;=0A= newUrl =3D _proto+"//"+ _host + newpath + "?slide=3D"+ nSlideNum;=0A= }=0A= =0A= if (bSlide)=0A= {=0A= strTitle =3D strTitle + " - Powered by Articulate ";=0A= }=0A= else=0A= {=0A= strTitle =3D strTitle + " Slide "+ nSlideNum +" - Powered by = Articulate ";=0A= }=0A= =0A= window.external.AddFavorite(newUrl, strTitle);=0A= }=0A= else=0A= {=0A= var strErr =3D "Your browser does not support automatic = bookmarking.\nTo bookmark this presentation, please create a bookmark = \non the web page that launched this window.";=0A= alert(strErr);=0A= }=0A= }=0A= =0A= =0A= function OpenFlashObjectWnd(args)=0A= {=0A= str =3D args;=0A= params =3D str.split("|");=0A= =0A= var strContainerType =3D params[0]; // Unused=0A= var strFilename =3D params[1];=0A= var nXPos =3D parseInt(params[2]); // Unused=0A= var nYPos =3D parseInt(params[3]); // Unused=0A= var nWidth =3D parseInt(params[4]);=0A= var nHeight =3D parseInt(params[5]);=0A= var strBrowserOptions =3D params[6];=0A= =0A= var re =3D /width=3D0/gi;=0A= ww =3D strBrowserOptions.search(re);=0A= re =3D /height=3D0/gi;=0A= wh =3D strBrowserOptions.search(re);=0A= =0A= // If the width and height are 0 set to Full screen=0A= if ((ww >=3D 0 && wh >=3D 0) || (nWidth =3D=3D0 && nHeight=3D=3D0))=0A= {=0A= nWidth =3D window.screen.availWidth;=0A= nHeight =3D window.screen.availHeight;=0A= }=0A= =0A= PopFlashObj(DATA_PATH + strFilename, nWidth, nHeight)=0A= }=0A= =0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // Gets the base path=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= =0A= function GetBasePath()=0A= {=0A= var strFullPath =3D document.location.href;=0A= var nPos1 =3D -1;=0A= var nPos2 =3D -1;=0A= =0A= nPos1 =3D strFullPath.lastIndexOf("\\");=0A= nPos2 =3D strFullPath.lastIndexOf("/");=0A= =0A= if (nPos2 > nPos1)=0A= {=0A= nPos1 =3D nPos2;=0A= }=0A= =0A= if (nPos1 >=3D 0)=0A= {=0A= strFullPath =3D strFullPath.substring(0, nPos1 + 1);=0A= }=0A= =0A= return(strFullPath);=0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // Zoom code=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= =0A= var g_oZoomInfo =3D new Object();=0A= var g_wndZoom;=0A= =0A= function PopFlashObj(strFileName, nWidth, nHeight)=0A= {=0A= var strScroll =3D "0";=0A= =0A= g_oZoomInfo.strFileName =3D GetBasePath() + strFileName;=0A= g_oZoomInfo.nWidth =3D parseInt(nWidth);=0A= g_oZoomInfo.nHeight =3D parseInt(nHeight);=0A= =0A= if (g_oZoomInfo.nWidth > screen.availWidth)=0A= {=0A= g_oZoomInfo.nWidth =3D screen.availWidth;=0A= strScroll =3D "1";=0A= }=0A= =0A= if (g_oZoomInfo.nHeight > screen.availHeight)=0A= {=0A= g_oZoomInfo.nHeight =3D screen.availHeight;=0A= strScroll =3D "1";=0A= }=0A= =0A= =0A= var strOptions =3D "width=3D" + g_oZoomInfo.nWidth +",height=3D" + = g_oZoomInfo.nHeight + ", status=3D0, toolbar=3D0, location=3D0, = menubar=3D0, scrollbars=3D" + strScroll;=0A= =0A= if (g_wndZoom)=0A= {=0A= try=0A= {=0A= g_wndZoom.close()=0A= }=0A= catch (e)=0A= {=0A= }=0A= }=0A= =0A= g_wndZoom =3D window.open("player/zoom.html", "", strOptions);=0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // End Zoom code=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= =0A= function OpenWebObjectWnd(args)=0A= {=0A= str =3D args;=0A= params =3D str.split("|");=0A= =0A= var strContainerType =3D params[0]; // Unused=0A= var strObjectType =3D params[1]; // Unused=0A= var nXPos =3D params[2]; // Unused=0A= var nYPos =3D params[3]; // Unused=0A= var nWidth =3D params[4];=0A= var nHeight =3D params[5];=0A= var strBrowserOptions =3D params[6];=0A= var strMode =3D params[7]; // Unused=0A= var strUrl =3D params[8]; var bDefaultControls =3D false;=0A= =0A= if (strBrowserOptions =3D=3D "")=0A= {=0A= bDefaultControls =3D true;=0A= }=0A= =0A= //Check for repository:=0A= if (strUrl.toLowerCase().indexOf("repository://") =3D=3D 0) =0A= {=0A= strUrl =3D "/Portal/Storage/Viewers/ArtPlayer/FollowLink.aspx?file=3D" = + strUrl;=0A= }=0A= =0A= if (nWidth =3D=3D -1 && nHeight =3D=3D -1)=0A= {=0A= nWidth =3D document.body.clientWidth;=0A= nHeight =3D document.body.clientHeight;=0A= }=0A= =0A= // If the width and height are 0 set to Full screen=0A= if (nWidth =3D=3D0 && nHeight=3D=3D0)=0A= {=0A= nWidth =3D window.screen.availWidth;=0A= nHeight =3D window.screen.availHeight;=0A= strBrowserOptions +=3D = ",width=3D"+nWidth+",height=3D"+nHeight+",left=3D0,top=3D0,screenX=3D0,sc= reenY=3D0";=0A= }=0A= else =0A= {=0A= strBrowserOptions +=3D ",width=3D" + nWidth + ",height=3D" +nHeight;=0A= }=0A= =0A= if (FF)=0A= {=0A= var arrBrowserOptions =3D strBrowserOptions.split(",");=0A= var bToolbar =3D false;=0A= var nTBIndex =3D -1;=0A= var bLocation =3D false;=0A= var nLocIndex =3D -1;=0A= =0A= for (var i =3D 0; i < arrBrowserOptions.length; i++)=0A= {=0A= var arrTemp =3D arrBrowserOptions[i].split("=3D");=0A= =0A= switch(arrTemp[0])=0A= {=0A= case "toolbar":=0A= bToolbar =3D (arrTemp[1] =3D=3D "yes") ? true : false;=0A= nTBIndex =3D i=0A= break;=0A= case "location":=0A= bLocation =3D (arrTemp[1] =3D=3D "yes") ? true : false;=0A= nLocIndex =3D i;=0A= break;=0A= }=0A= }=0A= =0A= if (!bLocation)=0A= {=0A= arrBrowserOptions[nTBIndex] =3D "toolbar=3Dno";=0A= }=0A= =0A= strBrowserOptions =3D arrBrowserOptions.join(",");=0A= }=0A= =0A= =0A= //--Setup the Window.open Target Url to popup and populate:=0A= var wndWebObj;=0A= var bSuccess =3D true;=0A= =0A= if (bDefaultControls)=0A= {=0A= try=0A= {=0A= wndWebObj =3D window.open(strUrl, "mediaobjectwin");=0A= =0A= wndWebObj.resizeTo(nWidth, nHeight);=0A= }=0A= catch (e)=0A= {=0A= if (e.number =3D=3D -2147024891)=0A= {=0A= alert("The page you are linking to is in a different security zone = then the presentation. If running locally, adding the mark of the web = to the local page may address this problem.")=0A= bSuccess =3D false;=0A= }=0A= }=0A= }=0A= else=0A= {=0A= try=0A= {=0A= wndWebObj =3D window.open(strUrl, "mediaobjectwin", = strBrowserOptions);=0A= }=0A= catch (e)=0A= {=0A= if (e.number =3D=3D -2147024891)=0A= {=0A= alert("The page you are linking to is in a different security zone = then the presentation. If running locally, adding the mark of the web = to the local page may address this problem.")=0A= bSuccess =3D false;=0A= }=0A= }=0A= }=0A= =0A= if (bSuccess)=0A= {=0A= wndWebObj.focus();=0A= }=0A= }=0A= =0A= function ShowWebObjectDiv(args)=0A= {=0A= str =3D args;=0A= params =3D str.split("|");=0A= var strContainerType =3D params[0]; // Unused=0A= var strObjectType =3D params[1]; // Unused=0A= var nXPos =3D parseInt(params[2]);=0A= var nYPos =3D parseInt(params[3]);=0A= var nWidth =3D parseInt(params[4]);=0A= var nHeight =3D parseInt(params[5]);=0A= var strBrowserOptions =3D params[6];=0A= var strMode =3D params[7]; // scale modes=0A= var strUrl =3D params[8];=0A= =0A= //Check for repository:// string//=0A= if (strUrl.toLowerCase().indexOf("repository://") =3D=3D 0)=0A= {=0A= strUrl =3D "/Portal/Storage/Viewers/ArtPlayer/FollowLink.aspx?file=3D" = + strUrl;=0A= }=0A= =0A= //- (iframe) -//=0A= if (g_bWebObject) =0A= {=0A= // Set the global values=0A= g_bWebObjDisplay =3D true;=0A= g_nWebXPos =3D nXPos;=0A= g_nWebYPos =3D nYPos;=0A= g_nWebWidth =3D nWidth;=0A= g_nWebHeight =3D nHeight;=0A= g_strWebMode =3D strMode;=0A= =0A= // Set the URL=0A= var myIFrame =3D document.getElementById("eIFContent");=0A= myIFrame.src =3D strUrl;=0A= =0A= // Adjust the Size and position=0A= ResizeWebObject();=0A= =0A= } =0A= else =0A= {=0A= //alert("Can't find a media layer. Opening in a new window instead.");=0A= window.open(strUrl, "webobjectwin", = "width=3D700,height=3D500,"+strBrowserOptions);=0A= }=0A= =0A= }=0A= =0A= function HideWebObjectDiv(args)=0A= {=0A= //clear the iframe=0A= if (g_bWebObject) =0A= {=0A= g_bWebObjDisplay =3D false;=0A= =0A= // Make the WebObject Small for Firefox=0A= g_nWebWidth =3D 5;=0A= g_nWebHeight =3D 5;=0A= =0A= ResizeWebObject();=0A= =0A= // Set the layer to be invisible=0A= var layerWebObject =3D document.getElementById("eLayer1");=0A= layerWebObject.style.visibility =3D 'hidden';=0A= =0A= // Fill with blank page=0A= var myIFrame =3D document.getElementById("eIFContent");=0A= myIFrame.src =3D "player/blank.html";=0A= =0A= }=0A= }=0A= =0A= function SetDisplayMode(args)=0A= {=0A= var params =3D args.split("|");=0A= =0A= currentDisplayMode =3D params[0];=0A= =0A= if (g_bWebObjDisplay)=0A= {=0A= ResizeWebObject();=0A= }=0A= }=0A= =0A= function ShowMediaObject(args)=0A= {=0A= //rightclick insert webobject, display in new window//=0A= str =3D args;=0A= params =3D str.split("|");=0A= var _url =3D params[0];=0A= var _options =3D params[1];=0A= =0A= //--Launch a new window with the specifed parameters and content:=0A= window.open(_url, "mediaobjectwin", _options);=0A= }=0A= =0A= function SendQuiz() =0A= {=0A= g_strQuizResults =3D g_strQuizResults.replace(/'/g,"'");=0A= =0A= var sHTML =3D "";=0A= sHTML +=3D '
';=0A= sHTML +=3D '';=0A= sHTML +=3D '

';=0A= sHTML +=3D '
';=0A= document.getElementById("divQuiz").innerHTML =3D sHTML;=0A= document.getElementById("formQuiz").submit();=0A= }=0A= =0A= function GetBasePath()=0A= {=0A= var strFullPath =3D document.location.href;=0A= var nPos1 =3D -1;=0A= var nPos2 =3D -1;=0A= =0A= nPos1 =3D strFullPath.lastIndexOf("\\");=0A= nPos2 =3D strFullPath.lastIndexOf("/");=0A= =0A= if (nPos2 > nPos1)=0A= {=0A= nPos1 =3D nPos2;=0A= }=0A= =0A= if (nPos1 >=3D 0)=0A= {=0A= strFullPath =3D strFullPath.substring(0, nPos1 + 1);=0A= }=0A= =0A= return(strFullPath);=0A= }=0A= =0A= =0A= /////////////////////////////////////////////////////////////////////////= //=0A= // Resize Event=0A= /////////////////////////////////////////////////////////////////////////= //=0A= =0A= var g_resizeTimer;=0A= var g_nWebXPos =3D 0;=0A= var g_nWebYPos =3D 0;=0A= var g_nWebWidth =3D 0;=0A= var g_nWebHeight =3D 0;=0A= var g_bWebObjDisplay =3D false;=0A= var g_strWebMode =3D "scaleall";=0A= =0A= function ResizeWebObject()=0A= {=0A= var layerWebObject =3D document.getElementById("eLayer1");=0A= var myIFrame =3D document.getElementById("eIFContent");=0A= =0A= var nWidth =3D g_nWebWidth;=0A= var nHeight =3D g_nWebHeight;=0A= var nXPos =3D g_nWebXPos;=0A= var nYPos =3D g_nWebYPos;=0A= =0A= // Calculate the Ratio and Offsets=0A= var swfMovie =3D thisMovie('player');=0A= =0A= if (!swfMovie.clientHeight)=0A= {=0A= swfMovie =3D document.getElementById("player");=0A= }=0A= =0A= var nSwfXPos =3D swfMovie.offsetLeft;=0A= var nSwfYPos =3D swfMovie.offsetTop;=0A= var nSwfHeight =3D swfMovie.clientHeight;=0A= var nSwfWidth =3D swfMovie.clientWidth;=0A= =0A= if (isMac && IE5)=0A= {=0A= nSwfWidth =3D swfMovie.width;=0A= if (swfMovie.width =3D=3D "100%")=0A= {=0A= nSwfWidth =3D document.body.clientWidth;=0A= =0A= }=0A= =0A= nSwfHeight =3D swfMovie.height;=0A= if (swfMovie.height =3D=3D "100%")=0A= {=0A= nSwfHeight =3D document.body.clientHeight;=0A= }=0A= }=0A= =0A= var nWRatio =3D nSwfWidth / SWF_BASE_WIDTH;=0A= var nHRatio =3D nSwfHeight / SWF_BASE_HEIGHT;=0A= var nRatio =3D 1;=0A= var nLeftOffset =3D 0;=0A= var nTopOffset =3D 0;=0A= =0A= // Adjust the Width and the height for firefox=0A= if (FF1 || NS6plus)=0A= {=0A= nWidth -=3D 5;=0A= nHeight -=3D 5;=0A= }=0A= =0A= //Handle special Mode 2 and 3 cases:=0A= if (currentDisplayMode =3D=3D 3) =0A= {=0A= nXPos -=3D WEBOBJ_DISPLAY3_XPOS_ADJUST;=0A= nYPos -=3D WEBOBJ_DISPLAY3_YPOS_ADJUST;=0A= nXPos *=3D 1.13;=0A= nYPos *=3D 1.13;=0A= nWidth *=3D 1.13;=0A= nHeight *=3D 1.13;=0A= }=0A= else if (currentDisplayMode =3D=3D 2) =0A= {=0A= nXPos -=3D WEBOBJ_DISPLAY2_XPOS_ADJUST;=0A= =0A= }=0A= =0A= if (nHRatio < nWRatio)=0A= {=0A= nRatio =3D nHRatio;=0A= nLeftOffset =3D (nSwfWidth - (SWF_BASE_WIDTH * nRatio)) / 2;=0A= }=0A= else=0A= {=0A= nRatio =3D nWRatio;=0A= nTopOffset =3D (nSwfHeight - (SWF_BASE_HEIGHT * nRatio)) / 2;=0A= }=0A= =0A= strMode =3D "scaleall";=0A= =0A= if ((g_strWebMode =3D=3D "") || (g_strWebMode =3D=3D "scaleall")) =0A= {=0A= factorSize =3D nRatio; =0A= factorPosition =3D nRatio;=0A= }=0A= if (g_strWebMode =3D=3D"scaleposition")=0A= {=0A= factorSize =3D 1; =0A= factorPosition =3D nRatio;=0A= }=0A= if (g_strWebMode =3D=3D "scalesize") =0A= {=0A= factorSize =3D nRatio; =0A= factorPosition =3D 1;=0A= }=0A= if (g_strWebMode =3D=3D "absolute") =0A= {=0A= factorSize =3D 1; =0A= factorPosition =3D 1;=0A= }=0A= =0A= =0A= iLeft =3D (WEBOBJ_LEFT + nXPos) * factorPosition + nLeftOffset;=0A= iTop =3D (WEBOBJ_TOP + nYPos) * factorPosition + nTopOffset;=0A= iWidth =3D nWidth * factorSize;=0A= iHeight =3D nHeight * factorSize;=0A= =0A= //Resize the layer=0A= layerWebObject.style.left =3D nSwfXPos + iLeft;=0A= layerWebObject.style.top =3D nSwfYPos + iTop;=0A= layerWebObject.style.width =3D iWidth;=0A= layerWebObject.style.height =3D iHeight;=0A= layerWebObject.style.visibility =3D 'visible';=0A= =0A= // Resize the IFrame=0A= myIFrame.style.width =3D iWidth;=0A= myIFrame.style.height =3D iHeight;=0A= =0A= }=0A= =0A= function WindowResize()=0A= {=0A= // Notify the swf that we have resized. This is for =0A= // text that does not scale properly=0A= if (g_bScaleSwf)=0A= {=0A= // Make sure that we don't send 100 resize messages in a row=0A= clearTimeout(g_ResizeTimeout);=0A= g_ResizeTimeout =3D setTimeout("NotifySwfResize()", 200);=0A= =0A= }=0A= =0A= // Resize the Web Object=0A= if (g_bWebObjDisplay)=0A= {=0A= ResizeWebObject();=0A= }=0A= }=0A= =0A= function NotifySwfResize()=0A= {=0A= var swfMovie =3D thisMovie('player');=0A= swfMovie.SetVariable("g_Resize.Trigger", "1");=0A= }=0A= =0A= function SetBgColor(strColor)=0A= {=0A= var strTemp =3D "";=0A= =0A= if (IE4 && !Opera && !isMac)=0A= {=0A= strTemp =3D "0x" + strColor;=0A= document.bgColor =3D parseInt(strTemp);=0A= }=0A= else=0A= {=0A= strTemp =3D "#" + strColor;=0A= document.bgColor =3D strTemp; } =0A= }=0A= =0A= window.onresize =3D WindowResize;=0A= =0A= var g_strAttachment =3D "";=0A= =0A= function OpenAttachment()=0A= {=0A= if (IESP2 || IE7)=0A= {=0A= try=0A= {=0A= window.open('player/attach.html?' + GetBasePath() + = g_strAttachment,"attach")=0A= }=0A= catch (e)=0A= {=0A= if (e.number =3D=3D -2147024891)=0A= {=0A= alert("For viewing attachments when presentation is not playing from = a website, view the Knowledge Base article located at = http://kb.articulate.com/kb/000669.php")=0A= }=0A= }=0A= }=0A= else=0A= {=0A= window.open(GetBasePath() + g_strAttachment);=0A= }=0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // Results Screen Code=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= =0A= var g_arrResults =3D new Array();=0A= var g_oQuizResults =3D new Object();=0A= g_oQuizResults.oOptions =3D new Object();=0A= =0A= function QuestionResult(nQuestionNum, strQuestion, strResult, = strCorrectResponse, strStudentResponse, nPoints, strInteractionId, = strObjectiveId, strType, strLatency)=0A= {=0A= if (nPoints < 0)=0A= {=0A= nPoints =3D 0;=0A= }=0A= if (strCorrectResponse =3D=3D "")=0A= {=0A= strCorrectResponse =3D " ";=0A= }=0A= =0A= this.nQuestionNum =3D nQuestionNum=0A= this.strQuestion =3D strQuestion;=0A= this.strCorrectResponse =3D strCorrectResponse;=0A= this.strStudentResponse =3D strStudentResponse;=0A= this.strResult =3D strResult;=0A= this.nPoints =3D nPoints;=0A= this.bFound =3D false;=0A= this.dtmFinished =3D new Date();=0A= this.strInteractionId =3D strInteractionId;=0A= this.strObjectiveId =3D strObjectiveId;=0A= this.strType =3D strType;=0A= this.strLatency =3D strLatency;=0A= }=0A= =0A= function StoreResult(args)=0A= {=0A= args =3D args.replace(/\|\$s\$\|/g,";")=0A= var arrParams =3D args.split("|$:$|");=0A= var oQuestionResult =3D new QuestionResult(parseInt(arrParams[0]) + 1, = arrParams[1], arrParams[2], arrParams[3], arrParams[4] ,arrParams[5]);=0A= var nIndex =3D g_arrResults.length;=0A= =0A= // Lets see if we have answered the question before=0A= =0A= for (var i =3D 0; i < g_arrResults.length; i++)=0A= {=0A= if (g_arrResults[i].nQuestionNum =3D=3D oQuestionResult.nQuestionNum)=0A= {=0A= nIndex =3D i;=0A= break;=0A= }=0A= }=0A= =0A= g_arrResults[nIndex] =3D oQuestionResult;=0A= =0A= }=0A= =0A= function StoreQuestionResult(nQuestionNum, strQuestion, strResult, = strCorrectResponse, strStudentResponse, nPoints, strInteractionId, = strObjectiveId, strType, strLatency)=0A= {=0A= =0A= var oQuestionResult =3D new QuestionResult(nQuestionNum, strQuestion, = strResult, strCorrectResponse, strStudentResponse, nPoints, = strInteractionId, strObjectiveId, strType, strLatency);=0A= var nIndex =3D g_arrResults.length;=0A= =0A= // Lets see if we have answered the question before=0A= =0A= for (var i =3D 0; i < g_arrResults.length; i++)=0A= {=0A= if (g_arrResults[i].nQuestionNum =3D=3D oQuestionResult.nQuestionNum)=0A= {=0A= nIndex =3D i;=0A= break;=0A= }=0A= }=0A= =0A= g_arrResults[nIndex] =3D oQuestionResult;=0A= =0A= }=0A= =0A= function StoreQuizResult(args)=0A= {=0A= var arrParams =3D args.split("|$:$|");=0A= =0A= g_oQuizResults.dtmFinished =3D new Date();=0A= g_oQuizResults.strResult =3D arrParams[0];=0A= g_oQuizResults.strScore =3D arrParams[1];=0A= g_oQuizResults.strPassingScore =3D arrParams[2];=0A= }=0A= =0A= function ShowResult(args)=0A= {=0A= var arrData =3D args.split("|$s$|");=0A= =0A= if (!g_oQuizResults.oOptions)=0A= {=0A= g_oQuizResults.oOptions =3D new Object();=0A= }=0A= =0A= g_oQuizResults.oOptions.bShowUserScore =3D (arrData[0] =3D=3D "1");=0A= g_oQuizResults.oOptions.bShowPassingScore =3D (arrData[1] =3D=3D "1");=0A= g_oQuizResults.oOptions.bShowShowPassFail =3D (arrData[2] =3D=3D "1");=0A= g_oQuizResults.oOptions.bShowQuizReview =3D (arrData[3] =3D=3D "1");=0A= g_oQuizResults.oOptions.strResult =3D arrData[4];=0A= g_oQuizResults.oOptions.strName =3D arrData[5];=0A= =0A= window.open(GetBasePath() + g_strQMPath + "report.html", "Reports")=0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // Zoom code=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= =0A= var g_oZoomInfo =3D new Object();=0A= var g_wndZoom;=0A= =0A= function PopZoomImage(strFileName, nWidth, nHeight, strZoomPath)=0A= { =0A= var strScroll =3D "0";=0A= g_oZoomInfo.strFileName =3D strFileName;=0A= g_oZoomInfo.nWidth =3D parseInt(nWidth);=0A= g_oZoomInfo.nHeight =3D parseInt(nHeight);=0A= =0A= if (g_oZoomInfo.nWidth > screen.availWidth)=0A= {=0A= g_oZoomInfo.nWidth =3D screen.availWidth;=0A= strScroll =3D "1";=0A= }=0A= =0A= if (g_oZoomInfo.nHeight > screen.availHeight)=0A= {=0A= g_oZoomInfo.nHeight =3D screen.availHeight;=0A= strScroll =3D "1";=0A= }=0A= =0A= =0A= var strOptions =3D "width=3D" + g_oZoomInfo.nWidth +",height=3D" + = g_oZoomInfo.nHeight + ", status=3D0, toolbar=3D0, location=3D0, = menubar=3D0, scrollbars=3D" + strScroll;=0A= =0A= if (g_wndZoom)=0A= {=0A= try=0A= {=0A= g_wndZoom.close()=0A= }=0A= catch (e)=0A= {=0A= }=0A= }=0A= =0A= var strRelPath =3D g_strQMPath;=0A= if (strZoomPath !=3D "" && strZoomPath !=3D undefined && strZoomPath = !=3D null)=0A= {=0A= strRelPath =3D strZoomPath;=0A= }=0A= =0A= var strZoom =3D "zoom.html?" + "vFileName=3D" + strFileName + = "&vWndWidth=3D" + nWidth + "&vWndHeight=3D" + nHeight;=0A= var strBase =3D GetBasePath().split("%20").join(" ");=0A= =0A= if (strRelPath.indexOf(strBase) < 0)=0A= {=0A= strRelPath =3D strBase + strRelPath;=0A= }=0A= =0A= g_wndZoom =3D window.open(strRelPath + strZoom, "Zoom", strOptions);=0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // Video=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= function PopVideo(strVidSwf, strWndWidth, strWndHeight, strVidWidth, = strVidHeight, strDuration, strPlaybar, strAutoplay)=0A= {=0A= var nWndWidth =3D parseInt(strWndWidth);=0A= var nWndHeight =3D parseInt(strWndHeight);=0A= var strSearch =3D "vVidSwf=3D" + strVidSwf + =0A= "&vWndWidth=3D" + strWndWidth + =0A= "&vWndHeight=3D" + strWndHeight + =0A= "&vVidWidth=3D" + strVidWidth + =0A= "&vVidHeight=3D" + strVidHeight + =0A= "&vDuration=3D" + strDuration + =0A= "&vPlaybar=3D" + strPlaybar + =0A= "&vAutoplay=3D" + strAutoplay;=0A= =0A= if (nWndWidth > screen.availWidth)=0A= {=0A= nWndWidth =3D screen.availWidth;=0A= }=0A= =0A= if (nWndHeight > screen.availHeight)=0A= {=0A= nWndHeight =3D screen.availHeight;=0A= }=0A= =0A= =0A= var strOptions =3D "width=3D" + nWndWidth +",height=3D" + nWndHeight + = ", status=3D0, toolbar=3D0, location=3D0, menubar=3D0, scrollbars=3D0";=0A= =0A= if (g_wndZoom)=0A= {=0A= try=0A= {=0A= g_wndZoom.close()=0A= }=0A= catch (e)=0A= {=0A= }=0A= }=0A= =0A= g_wndZoom =3D window.open(GetBasePath() + g_strContentFolder + = "/VidLoader.html?" + strSearch, "Video", strOptions);=0A= }=0A= =0A= =0A= function OpenVideo(strUrl, strWndWidth, strWndHeight, strVidWidth, = strVidHeight, strDuration, strPlaybar, strAutoPlay,=0A= strStatus, strToolbar, strLocation, strMenubar, strScrollbars, = strResizable, strPlayerPath, strContentPath)=0A= {=0A= var nWndWidth =3D parseInt(strWndWidth);=0A= var nWndHeight =3D parseInt(strWndHeight);=0A= =0A= var strSearch =3D "exUrl=3D" + strContentPath + strUrl + =0A= "&exWndWidth=3D" + strWndWidth +=0A= "&exWndHeight=3D" + strWndHeight +=0A= "&exWidth=3D" + strVidWidth + =0A= "&exHeight=3D" + strVidHeight + =0A= "&exDuration=3D" + strDuration + =0A= "&exPlaybar=3D" + strPlaybar + =0A= "&exAutoPlay=3D" + strAutoPlay;=0A= =0A= if (nWndWidth > screen.availWidth)=0A= {=0A= nWndWidth =3D screen.availWidth;=0A= }=0A= =0A= if (nWndHeight > screen.availHeight)=0A= {=0A= nWndHeight =3D screen.availHeight;=0A= }=0A= =0A= =0A= var strOptions =3D "";=0A= strOptions +=3D "width=3D" + nWndWidth;=0A= strOptions +=3D ", height=3D" + nWndHeight; strOptions +=3D ", status=3D" + ((strStatus.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= strOptions +=3D ", toolbar=3D" + ((strToolbar.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= strOptions +=3D ", location=3D" + ((strLocation.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= strOptions +=3D ", menubar=3D" + ((strMenubar.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= strOptions +=3D ", scrollbars=3D" + ((strScrollbars.toLowerCase() = =3D=3D "true") ? 1 : 0);=0A= strOptions +=3D ", resizable=3D" + ((strResizable.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= =0A= var nXPos =3D 0;=0A= var nYPos =3D 0;=0A= var nWidth =3D screen.availWidth;=0A= var nHeight =3D screen.availHeight;=0A= =0A= if (window.screenX !=3D undefined) =0A= {=0A= nXPos =3D window.screenX;=0A= nYPos =3D window.screenY;=0A= nWidth =3D window.innerWidth;=0A= nHeight =3D window.innerHeight;=0A= }=0A= else if (window.screenLeft !=3D undefined)=0A= {=0A= nXPos =3D window.screenLeft;=0A= nYPos =3D window.screenTop;=0A= nWidth =3D document.body.offsetWidth;=0A= nHeight =3D document.body.offsetHeight;=0A= }=0A= =0A= if (g_wndZoom)=0A= {=0A= try=0A= {=0A= g_wndZoom.close()=0A= }=0A= catch (e)=0A= {=0A= }=0A= }=0A= =0A= strOptions +=3D ", left=3D" + (nXPos + (nWidth - nWndWidth)/2);=0A= strOptions +=3D ", screenX=3D" + (nXPos + (nWidth - nWndWidth)/2);=0A= strOptions +=3D ", top=3D" + (nYPos + (nHeight - nWndHeight)/2);=0A= strOptions +=3D ", screenY=3D" + (nYPos + (nHeight - nWndHeight)/2);=0A= =0A= g_wndZoom =3D window.open(strPlayerPath + "VideoPlayer.html?" + = strSearch, "Video", strOptions);=0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // Get Time=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= function GetTime(dtmDate)=0A= {=0A= var strResult =3D "";=0A= var nHours =3D dtmDate.getHours();=0A= var strAM =3D "am";=0A= var nMinutes =3D dtmDate.getMinutes();=0A= var strMinutes =3D "" + nMinutes;=0A= var nSeconds =3D dtmDate.getSeconds();=0A= var strSeconds =3D "" + nSeconds;=0A= =0A= if (nMinutes < 10)=0A= {=0A= strMinutes =3D "0" + nMinutes;=0A= }=0A= =0A= if (nSeconds < 10)=0A= {=0A= strSeconds =3D "0" + nSeconds;=0A= }=0A= =0A= =0A= strResult =3D nHours + ":" + strMinutes + ":" + strSeconds;=0A= =0A= return strResult;=0A= }=0A= function GetDate(dtmDate)=0A= {=0A= var strResult =3D "";=0A= =0A= =0A= strResult =3D dtmDate.getMonth() + "/" + dtmDate.getDate() + "/" + = dtmDate.getFullYear();=0A= =0A= return strResult;=0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // Email Results=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= =0A= function EmailResults(strAddress)=0A= {=0A= var g_strSubject =3D "Quiz Results: " + g_oQuizResults.strTitle;=0A= var strQuizResults =3D "";=0A= var strMainHeader =3D " " + g_oQuizResults.strTitle + "\nStatus, Raw = Score, Passing Score, Max Score, Min Score, Time\n";=0A= var strLineHeader =3D "\n\nDate, Time, Score, Interaction ID, Objective = Id, Interaction Type, Student Response, Result, Weight, Latency\n";=0A= var strMainData =3D "\n";=0A= var strLineData =3D "\n";=0A= =0A= // Status=0A= strMainData +=3D g_oQuizResults.strResult + ",";=0A= =0A= // Score=0A= // strMainData +=3D g_oQuizResults.strScore + ",";=0A= =0A= // Raw Score=0A= strMainData +=3D g_oQuizResults.strPtScore + ",";=0A= =0A= // Passing Score=0A= strMainData +=3D Math.round((g_oQuizResults.strPassingScore/100) * = g_oQuizResults.strPtMax) + ",";=0A= =0A= // Max Score=0A= strMainData +=3D g_oQuizResults.strPtMax + ",";=0A= =0A= // Min Score=0A= strMainData +=3D 0 + ",";=0A= =0A= // Time=0A= strMainData +=3D GetTime(g_oQuizResults.dtmFinished);=0A= =0A= for (var i =3D 0; i < g_arrResults.length; i++)=0A= {=0A= //Date=0A= strLineData +=3D GetDate(g_arrResults[i].dtmFinished) + ",";=0A= =0A= // Time=0A= strLineData +=3D GetTime(g_arrResults[i].dtmFinished) + ",";=0A= =0A= // Score=0A= strLineData +=3D g_arrResults[i].nPoints + ",";=0A= =0A= // Interaction Id=0A= strLineData +=3D g_arrResults[i].strInteractionId + ",";=0A= =0A= // Objective Id=0A= strLineData +=3D g_arrResults[i].strObjectiveId + ",";=0A= =0A= // Interaction Type=0A= strLineData +=3D g_arrResults[i].strType + ",";=0A= =0A= // Student Response=0A= strLineData +=3D g_arrResults[i].strStudentResponse + ",";=0A= =0A= // Result=0A= strLineData +=3D g_arrResults[i].strResult + ",";=0A= =0A= // Weight=0A= strLineData +=3D "1,";=0A= =0A= // Latency=0A= strLineData +=3D g_arrResults[i].strLatency;=0A= =0A= strLineData +=3D "\n";=0A= }=0A= =0A= strQuizResults =3D strMainHeader + strMainData + strLineHeader + = strLineData;=0A= =0A= var sHTML =3D "";=0A= sHTML +=3D '
';=0A= sHTML +=3D '';=0A= sHTML +=3D '

';=0A= sHTML +=3D '
';=0A= document.getElementById("divQuiz").innerHTML =3D sHTML;=0A= document.getElementById("formQuiz").submit();=0A= =0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= //=0A= // Flash Command Handler=0A= /////////////////////////////////////////////////////////////////////////= //=0A= var g_strDelim =3D "|~|";=0A= var g_strInteractionDelim =3D "|#|";=0A= =0A= function player_DoJSCommand(command, args)=0A= {=0A= var strCommand =3D command;=0A= var strArgs =3D ReplaceAll(args, "|$|", "%");=0A= =0A= player_DoFSCommand(strCommand, strArgs) =0A= }=0A= =0A= function ReplaceAll(strTarget, strChar, strNew)=0A= {=0A= var arrRemoved =3D strTarget.split(strChar);=0A= =0A= return arrRemoved.join(strNew);=0A= }=0A= =0A= function player_DoFSCommand(command, args) =0A= {=0A= if (command.substr(0, 3) =3D=3D "CC_")=0A= {=0A= player_DoChicoCommand(command, args);=0A= }=0A= =0A= args =3D String(args);=0A= =0A= args =3D args.replace(/%_q_%/g,"\"")=0A= args =3D args.replace(/;/g,"|$s$|")=0A= args =3D args.replace(/%_s_%/g,";")=0A= =0A= switch (command)=0A= {=0A= case "current_slide_index":=0A= g_nCurrentSlideIndex =3D Number(args);=0A= break;=0A= case "bookmark_presentation":=0A= CreateBookmark(args, false);=0A= break;=0A= =0A= case "bookmark_slide":=0A= CreateBookmark(args, true);=0A= break;=0A= =0A= case "hyper_flashobject":=0A= OpenFlashObjectWnd(args);=0A= break;=0A= =0A= case "hyper_webobject_newwindow":=0A= OpenWebObjectWnd(args);=0A= break;=0A= =0A= case "hyper_webobject_inplayer":=0A= ShowWebObjectDiv(args);=0A= break;=0A= =0A= case "hyper_webobject_inplayer_hide":=0A= HideWebObjectDiv(args);=0A= break;=0A= =0A= case "ART_displaymode":=0A= SetDisplayMode(args);=0A= break;=0A= =0A= case "hyper_mediaobject":=0A= ShowMediaObject(args);=0A= break;=0A= =0A= case "ART_CloseAndExit":=0A= if (!g_bLMS || g_bAOSupport)=0A= {=0A= top.window.close();=0A= }=0A= break;=0A= case "ART_SetBgBolor":=0A= SetBgColor(args);=0A= break;=0A= =0A= case "ART_Attachment":=0A= g_strAttachment =3D args;=0A= if (IESP2)=0A= {=0A= OpenAttachment()=0A= }=0A= else=0A= {=0A= setTimeout("OpenAttachment()", 100)=0A= }=0A= break;=0A= =0A= case "RR_PopVideo":=0A= var arrArgs =3D args.split("|~|");=0A= OpenVideo(arrArgs[0], Number(arrArgs[1]) + 5, Number(arrArgs[2]) + = 12, arrArgs[3], arrArgs[4], arrArgs[5], arrArgs[6], arrArgs[7],=0A= "false", "false", "false", "false", "false", "false", "player/", = "");=0A= break;=0A= case "AP_OpenVideo":=0A= var arrArgs =3D args.split("|");=0A= OpenVideo(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], = arrArgs[5], arrArgs[6], arrArgs[7], =0A= arrArgs[8], arrArgs[9], arrArgs[10], arrArgs[11], arrArgs[12], = arrArgs[13], "player/", "../data/swf/");=0A= break;=0A= =0A= // Email Handlers=0A= case "emailEmail":=0A= g_strEmail =3D args;=0A= break;=0A= =0A= case "QuizResults":=0A= case "Quiz Results":=0A= var strTemp =3D args.replace(/\|\$s\$\|/g,";");=0A= g_strQuizResults =3D strTemp;=0A= break;=0A= =0A= case "emailSubject":=0A= g_strSubject =3D args;=0A= break;=0A= =0A= case "emailSubmit":=0A= SendQuiz();=0A= break;=0A= =0A= // QM Handlers=0A= case "SetQMPath":=0A= g_strQMPath =3D args;=0A= break;=0A= =0A= case "StoreQuestionResult":=0A= StoreResult(args);=0A= break;=0A= =0A= case "StoreQuizResult":=0A= StoreQuizResult(args);=0A= break;=0A= =0A= case "DisplayPrintScreen":=0A= ShowResult(args);=0A= break;=0A= =0A= case "ART_QMAttachment":=0A= g_strAttachment =3D g_strQMPath + args;=0A= =0A= if (IESP2)=0A= {=0A= OpenAttachment()=0A= }=0A= else=0A= {=0A= setTimeout("OpenAttachment()", 100)=0A= }=0A= =0A= break;=0A= =0A= case "QM_ZoomImage":=0A= var arrData =3D args.split("|~|");=0A= PopZoomImage(arrData[0], arrData[1], arrData[2], arrData[3]);=0A= break;=0A= =0A= }=0A= =0A= if (g_bLMS)=0A= {=0A= customFScommandHandler(command, args); //found in Lms.js=0A= }=0A= =0A= if (g_bAOSupport)=0A= {=0A= AO_DoFSCommand(command, args);=0A= }=0A= }=0A= =0A= function CloseWindow()=0A= {=0A= top.window.close();=0A= }=0A= =0A= function player_DoChicoCommand(command, args)=0A= {=0A= args =3D String(args);=0A= command =3D String(command);=0A= =0A= var arrArgs =3D args.split(g_strDelim);=0A= =0A= switch (command)=0A= {=0A= case "CC_SetInteractionDelim":=0A= g_strInteractionDelim =3D args;=0A= break;=0A= =0A= case "CC_SetDelim":=0A= g_strDelim =3D args;=0A= break;=0A= =0A= case "CC_ZoomImage":=0A= PopZoomImage(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[9]);=0A= break;=0A= =0A= case "CC_OpenVideo":=0A= OpenVideo(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], = arrArgs[5], arrArgs[6], arrArgs[7], =0A= arrArgs[8], arrArgs[9], arrArgs[10], arrArgs[11], arrArgs[12], = arrArgs[13], arrArgs[14], "");=0A= break;=0A= =0A= case "CC_StoreQuestionResult": =0A= StoreQuestionResult(parseFloat(arrArgs[0]) + 1, arrArgs[1], = arrArgs[2], arrArgs[3], arrArgs[4] ,arrArgs[5], arrArgs[6], arrArgs[7], = arrArgs[8], arrArgs[9]);=0A= break;=0A= =0A= case "CC_StoreQuizResult": =0A= g_oQuizResults.dtmFinished =3D new Date();=0A= g_oQuizResults.strResult =3D arrArgs[0];=0A= g_oQuizResults.strScore =3D arrArgs[1];=0A= g_oQuizResults.strPassingScore =3D arrArgs[2];=0A= g_oQuizResults.strMinScore =3D arrArgs[3];=0A= g_oQuizResults.strMaxScore =3D arrArgs[4];=0A= g_oQuizResults.strPtScore =3D arrArgs[5];=0A= g_oQuizResults.strPtMax =3D arrArgs[6];=0A= g_oQuizResults.strTitle =3D arrArgs[7];=0A= break;=0A= =0A= case "CC_PrintResults":=0A= g_oQuizResults.oOptions.bShowUserScore =3D (arrArgs[0] =3D=3D "true");=0A= g_oQuizResults.oOptions.bShowPassingScore =3D (arrArgs[1] =3D=3D = "true");=0A= g_oQuizResults.oOptions.bShowShowPassFail =3D (arrArgs[2] =3D=3D = "true");=0A= g_oQuizResults.oOptions.bShowQuizReview =3D (arrArgs[3] =3D=3D = "true");=0A= g_oQuizResults.oOptions.strResult =3D arrArgs[4];=0A= g_oQuizResults.oOptions.strName =3D arrArgs[5];=0A= window.open(arrArgs[6] + "report.html", "Reports")=0A= break;=0A= =0A= case "CC_EmailResults":=0A= g_oQuizResults.oOptions.bShowUserScore =3D (arrArgs[0] =3D=3D "true");=0A= g_oQuizResults.oOptions.bShowPassingScore =3D (arrArgs[1] =3D=3D = "true");=0A= g_oQuizResults.oOptions.bShowShowPassFail =3D (arrArgs[2] =3D=3D = "true");=0A= g_oQuizResults.oOptions.bShowQuizReview =3D (arrArgs[3] =3D=3D = "true");=0A= g_oQuizResults.oOptions.strResult =3D arrArgs[4];=0A= g_oQuizResults.oOptions.strName =3D arrArgs[5];=0A= =0A= EmailResults(arrArgs[6]);=0A= break;=0A= =0A= case "CC_OpenUrl":=0A= OpenUrl(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], = arrArgs[5], arrArgs[6], arrArgs[7], =0A= arrArgs[8], arrArgs[9], arrArgs[10], arrArgs[11], arrArgs[12], = arrArgs[13]);=0A= break;=0A= =0A= case "CC_ClosePlayer":=0A= if (!g_bLMS || g_bAOSupport)=0A= {=0A= if (FF)=0A= {=0A= setTimeout("CloseWindow()", 100);=0A= }=0A= else=0A= {=0A= CloseWindow();=0A= }=0A= }=0A= break;=0A= default:=0A= break;=0A= }=0A= =0A= if (g_bLMS)=0A= {=0A= lms_DoFSCommand(command, args);=0A= }=0A= }=0A= =0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= // Open Url=0A= /////////////////////////////////////////////////////////////////////////= ///////=0A= function OpenUrl(strUrl, strWindow, strWindowSize, strWidth, strHeight, = strUseDefaultControls, strStatus, strToolbar, strLocation, strMenubar, = strScrollbars, strResizable)=0A= {=0A= =0A= var nWndWidth =3D parseInt(strWidth);=0A= var nWndHeight =3D parseInt(strHeight);=0A= var bUseDefaultSize =3D (strWindowSize.toLowerCase() =3D=3D "default");=0A= var bUseDefaultControls =3D (strUseDefaultControls.toLowerCase() =3D=3D = "true");=0A= var bFullScreen =3D (strWindowSize.toLowerCase() =3D=3D "fullscreen");=0A= =0A= if (bFullScreen)=0A= {=0A= nWndWidth =3D screen.availWidth;=0A= nWndHeight =3D screen.availHeight;=0A= }=0A= else=0A= {=0A= if (nWndWidth > screen.availWidth)=0A= {=0A= nWndWidth =3D screen.availWidth;=0A= }=0A= =0A= if (nWndHeight > screen.availHeight)=0A= {=0A= nWndHeight =3D screen.availHeight;=0A= }=0A= }=0A= =0A= =0A= var strOptions =3D "";=0A= if (!bUseDefaultControls)=0A= {=0A= if (!bUseDefaultSize)=0A= {=0A= strOptions +=3D "width=3D" + nWndWidth + ", ";=0A= strOptions +=3D "height=3D" + nWndHeight + ", ";=0A= }=0A= =0A= strOptions +=3D "status=3D" + ((strStatus.toLowerCase() =3D=3D "true") = ? 1 : 0);=0A= strOptions +=3D ", toolbar=3D" + ((strToolbar.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= strOptions +=3D ", location=3D" + ((strLocation.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= strOptions +=3D ", menubar=3D" + ((strMenubar.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= strOptions +=3D ", scrollbars=3D" + ((strScrollbars.toLowerCase() = =3D=3D "true") ? 1 : 0);=0A= strOptions +=3D ", resizable=3D" + ((strResizable.toLowerCase() =3D=3D = "true") ? 1 : 0);=0A= }=0A= =0A= =0A= var oNewWnd;=0A= =0A= if (bUseDefaultSize && bUseDefaultControls)=0A= {=0A= window.open(strUrl, strWindow);=0A= }=0A= else if (bUseDefaultControls)=0A= {=0A= if (IE)=0A= {=0A= oNewWnd =3D window.open("player/blank.html", strWindow);=0A= =0A= if (bFullScreen)=0A= {=0A= oNewWnd.moveTo(0, 0);=0A= }=0A= =0A= oNewWnd.resizeTo(nWndWidth, nWndHeight);=0A= oNewWnd.document.location =3D strUrl;=0A= }=0A= else=0A= {=0A= oNewWnd =3D window.open(strUrl, strWindow);=0A= oNewWnd.resizeTo(nWndWidth, nWndHeight);=0A= }=0A= }=0A= else=0A= {=0A= oNewWnd =3D window.open(strUrl, strWindow, strOptions);=0A= }=0A= =0A= if (bFullScreen && !(bUseDefaultControls && IE))=0A= {=0A= oNewWnd.moveTo(0, 0);=0A= }=0A= =0A= }=0A= ------=_NextPart_000_0000_01CAEACC.45020A30--