=intervalCount--&&clearInterval(n)},20)}$(".landscape_menu .menu_container").css("height",m+"px");var p=(e-player.height)/2;if(0#menu_tabs,.landscape_menu>#menu_container{display: "+(d?"block":"none")+";}.interstitial{height:"+window.innerHeight+"px;}";player.frame.options.seekbar||(b+=".player_controls{display:none!important;}");if(!player.rotateLandscapeStyleSheet)player.rotateLandscapeStyleSheet=
-document.createElement("style"),document.body.appendChild(player.rotateLandscapeStyleSheet);player.rotateLandscapeStyleSheet.innerHTML=b;player.landscapeScale=1;player.zoom=1;(d||c)&&$(".landscape_menu").css("display","");a!=this.availableSlideWidth&&player.currentSlide()&&player.currentSlide().ref&&player.currentSlide().fitToContainer()}};
-Frame.prototype.updateFrameLayout=function(){if(!player.isIOS){var a=window.innerWidth,b=window.innerHeight,c=story.frameWidth-2,d=story.frameHeight-2,e=1;player.scaleToFit&&(e=story.frameWidth/story.frameHeight>a/b?a/story.frameWidth:b/story.frameHeight,$("document.body").css("overflow","hidden"));b=parseInt((b-d*e)/2-1);a=parseInt((a-c*e)/2-1);player.isIE&&(a-=0,b+=1,c-=1,d-=1);0>b&&(b=0);0>a&&(a=0);this.containerWidth=c;this.containerHeight=d;this.containerLeft=a;this.containerTop=b;this.aspectRatio=
-c/d;$(".framewrap").css("width",c);$(".framewrap").css("height",d);$(".framewrap").css("top",b);$(".framewrap").css("left",a);c=".framewrap{-webkit-transform-origin:top left;-webkit-transform:translate3d(0px,0px,0px) scale("+e+");-moz-transform-origin:top left;-moz-transform:translate3d(0px,0px,0px) scale("+e+");-ms-transform-origin:top left;-ms-transform:translate(0px,0px) scale("+e+");}";if(!player.frameLandscapeStyleSheet)player.frameLandscapeStyleSheet=document.createElement("style"),document.body.appendChild(player.frameLandscapeStyleSheet);
-player.frameLandscapeStyleSheet.innerHTML=c;player.frameScale=e;var f=0;$(".toptab").each(function(a,b){$(b).hasClass("customlink")||(f+=$(b).width())});e=Math.floor((this.availableSlideWidth-f)/this.customTabCount);$(".toptab.customlink").css("max-width",e+"px")}};Frame.prototype.getTextLabel=function(a){return $(this.xml).find("string_table").first().children("string[id='"+a+"']").text()};
-Frame.prototype.updateTextLabels=function(){$(this.xml).find("string_table").first().children("string").each(function(a,b){var c=$(b).attr("id"),d=$(b).text(),b=$(".label."+c);0'),$("#storytitle").append(this.presentationTimer);$("#storytitle").show();(a=Timer.Format(a.starttime+a.currentTime,story.lessonduration,this.options.time_format))&&(a="("+a+")");this.presentationTimer.text(a)}};
-Frame.prototype.debugTopNav=function(){var a=this;this.topNavSelector=$("");$(document.body).append(this.topNavSelector);var b=function(b){var d=$("");d.first()[0].checked=player.frame[b];d.click(function(){var a=d.first()[0].checked;player.frame[b]=a;player.frame.updateLayout()});a.topNavSelector.append(d)};b("top_bar_hidden");b("hasLinksLeft");b("hasLinksRight");$("#topbar").css("background-color",
-"aqua");$("#toplinks_right").css("background-color","yellow");$("#toplinks_left").css("background-color","orange");$("#topbar > #storytitle").css("background-color","lime")};Frame.prototype.setControlEnabled=function(a,b){b?Frame.controlMap[a].removeClass("disabled"):Frame.controlMap[a].addClass("disabled")};Frame.prototype.setWindowControlEnabled=function(a,b){b?Frame.windowControlMap[a].removeClass("disabled"):Frame.windowControlMap[a].addClass("disabled")};
-Frame.findCurrentFrame=function(){var a=null;self!=top&&($.each(top.document.getElementsByTagName("iframe"),function(b,c){c.contentWindow==self&&(a=c)}),$.each(top.document.getElementsByTagName("frame"),function(b,c){c.contentWindow==self&&(a=c)}));return a};function ResourcesPanel(){}ResourcesPanel.prototype.loadFromXML=function(a){var b=this;this.xml=a;this.description=$(a).attr("description");this.resources=[];$(a).children("resources").children("resource").each(function(a,d){var e={};e.url=$(d).attr("url");e.image=player.basepath+$(d).attr("image");e.title=$(d).attr("title");b.resources.push(e)});this.createRef()};
-ResourcesPanel.prototype.createRef=function(){var a=$("");a.append($(""+this.description+"
"));a.append($("
"));var b=$("");$.each(this.resources,function(a,d){var e=$(""+d.title+"");b.append(e)});a.append(b);this.ref=a};function GlossaryPanel(){}GlossaryPanel.prototype.loadFromXML=function(a){var b=this;this.xml=a;this.terms=[];$(a).children("terms").children("term").each(function(a,d){var e={};e.title=$(d).attr("title");e.definition=$(d).text();b.terms.push(e)});this.createRef()};
-GlossaryPanel.prototype.createRef=function(){var a=$(""),b=$("");b.append($(""));var c=$("");$.each(this.terms,function(a,b){var f=$(""+b.title+"");f.click(function(){$(".definitiontext").hide();$(".glossary_container .active").removeClass("active");b.defref&&(f.addClass("active"),
-b.defref.show())});c.append(f)});b.append(c);a.append(b);b=$("");b.append($(""));$.each(this.terms,function(a,c){var f=$(""+c.definition+"
");c.defref=f;b.append(f)});a.append(b);this.ref=a};function TranscriptPanel(){}TranscriptPanel.prototype.loadFromXML=function(a){var b=this;this.xml=a;this.transcripts=[];$(a).children("slidetranscripts").children("slidetranscript").each(function(a,d){var e={};e.slideid=$(d).attr("slideid");e.slidebank="true"==$(d).attr("slidebank");e.content=$(d).text();b.transcripts.push(e);var f=story.parseObjref(e.slideid).target;f.transcript=e;e.show=function(){b.titleref.html(f.title);$(".transcript_content").hide();e.contentref&&e.contentref.show()}});this.createRef()};
-TranscriptPanel.prototype.createRef=function(){var a=$("");this.titleref=$("");a.append(this.titleref);$.each(this.transcripts,function(b,c){var d=$("
"+c.content+"
");c.contentref=d;a.append(d)});this.ref=a};function Presenter(){this.isVideo=!1}Presenter.prototype.loadFromXML=function(a){this.xml=a;this.id=$(a).attr("id");this.photoSwf=$(a).attr("photo");this.mobilephoto=$(a).attr("mobilephoto");this.name=$(a).attr("name");this.title=$(a).attr("title");this.email=$(a).attr("email");this.bioHtml=$(a).children("bioHtml").text();this.photoImageSrc=this.mobilephoto;if(-1");this.ref=a;a=a.find("img");this.photoImageSrc?a.attr("src",player.basepath+this.photoImageSrc):a.remove();this.setPresenterInfo()};
-Presenter.prototype.createVideoRef=function(a,b,c){this.videoUrl=player.basepath+a;this.videoUrl=a;var d=$(""),a=d.find("video"),e=180,f=180*c/b;if(player.frame.options.video_width)e=player.frame.options.video_width,f=c*player.frame.options.video_width/b;else if(player.frame.options.video_height)f=player.frame.options.video_height,e=b*player.frame.options.video_height/
-c;180"),$("#slidecontainer").prepend(b));if(!this.constructedCard){a.card=$("");a.card.children(".presenter_bio").html(this.bioHtml);a.card.children(".presenter_mail").text(player.frame.getTextLabel("send_an_email"));
-a.card.children(".presenter_mail").attr("href","mailto:"+a.email);a.card.children(".presenter_mail").attr("target","_blank");a.card.children(".presenter_close").text(player.frame.getTextLabel("close"));a.card.children(".presenter_close").attr("href","javascript:void(null)");$("#slidecontainer").prepend(a.card);a.email||a.card.children(".presenter_mail").hide();var c=a.card.children(".presenter_closebutton").get(0).getContext("2d");c.lineCap="round";var d=c.createLinearGradient(0,0,0,26);d.addColorStop(0,
-"#f99");d.addColorStop(1,"#933");c.fillStyle="#f00";c.strokeStyle=d;c.lineWidth=1;c.arc(13,13,12,0,2*Math.PI);c.fill();c.stroke();c.beginPath();c.strokeStyle="#fff";c.lineWidth=2;c.moveTo(9,9);c.lineTo(17,17);c.moveTo(17,9);c.lineTo(9,17);c.stroke();a.card.children(".presenter_close,.presenter_closebutton").bind("click",function(){MouseEvents.processHideables()});MouseEvents.addHideable(".presenter_detail",".presenter_link,.presenter_detail",function(){a.card.hide();b.hide()});a.constructedCard=!0}this.card.show();
-b.unbind();b.show()};Presenter.prototype.tick=function(a){if(this.isVideo&&this.ref){var b=this.ref.find("video").get(0);a.paused?!b.paused&&!b.ended&&b.pause():(b.paused||b.ended)&&b.play();if(0.2");player.currentSlide().ref.append(player.mouseFollowDiv);player.mouseFollowDiv.css("left",
-c.x);player.mouseFollowDiv.css("top",c.y-5)}var d=!1,h=!1;player.currentSlide().deepEach(function(b,e){if(e.isMouseOver&&!MouseEvents.isObstructedByModalLayer(e)&&!player.modalInterstitial&&!e.isDisabled&&e.isPointActive&&0==e.dragX&&0==e.dragY&&(e.hasEvent("onrollout")||e.hasEvent("onpress")||e.hasEvent("onrelease")||e.hasEvent("ondoubleclick",!0)||e.hasEvent("onlinkrelease",!0)||e.isDragItem)&&(!e.isPointActive(c.x,c.y)||e.isPointObscured(c.x,c.y,null,a)))e.isMouseOver=!1,e.hasEvent("onrollout")&&
-e.handleEvent("onrollout",null,null,!1,!1,!0),d=!0,e.hasEvent("onlinkrelease")&&$.each(e.links,function(a,b){b.render("onrollout")});if((!e.isMouseOver||e.hasEvent("onlinkrelease",!0)||e.usehandcursor)&&!MouseEvents.isObstructedByModalLayer(e)&&!player.modalInterstitial&&(e.hasEvent("onrollover",!0)||e.hasEvent("onpress",!0)||e.hasEvent("onrelease",!0)||e.hasEvent("ondoubleclick",!0)||e.hasEvent("onlinkrelease",!0)||e.isDragItem)&&!e.isDisabled&&e.isPointActive&&e.isPointActive(c.x,c.y)&&!e.isPointObscured(c.x,
-c.y,null,a))if(e.hasEvent("onrollover")&&!e.isMouseOver&&e.handleEvent("onrollover",null,null,!1,!1,!0),e.isMouseOver=!0,e.hasEvent("onlinkrelease")){var l=!1;$.each(e.links,function(a,b){b.handleIfOver("onrollover",c,!0)&&(l=!0);b.handleIfOut("onrollout",c)});l&&(h=!0)}else e.usehandcursor&&(h=!0)},function(a){return a.visible||"ShuffleGroup"==a.innerType});h?$(document.body).addClass("pointercursor"):d&&$(document.body).removeClass("pointercursor")}})};
-MouseEvents.isObstructedByModalLayer=function(a){return!player.modalLayer||player.modalLayer==a.layer||player.currentWindowSlide&&player.modalLayer.slide!=player.currentWindowSlide?!1:!0};MouseEvents.getItemAtCursor=function(a){var b=null;player.currentSlide().deepEach(function(c,d){!b&&!MouseEvents.isObstructedByModalLayer(d)&&!d.isDisabled&&d.visible&&d.isPointActive(a.x,a.y)&&!d.isPointObscured(a.x,a.y)&&(b=d)});return b};var player={slideIndex:0,currentTime:0,animationTime:0,interval:null,showingInterstitial:!0,ready:!1,fontready:!1,playing:!1,paused:!0,blocked:!1,playall:!1,autoplay:!0,autoplaySlides:!0,loopable:!1,simplenav:!0,visible:!0,mediaCount:0,loadedMediaCount:0,deferredLoadingIndex:0,width:1,height:1,aspectRatio:720/540,windowZoomModifier:1,transitionSeconds:0.4,maxTransitionSeconds:1.2,clipVolume:1,progressBar:null,zoomed:!1,basepath:"",currentClip:null,currentClipStartTime:0,currentAnimations:{},computedMasks:{},
-bitmasks:{},framedSlides:{},animations:"pan",showControls:!1,slideList:null,fileList:null,swipeMode:"follow",useCanvas:!0,useCompactResume:!0,simplifySlides:!0,suppressCaptureAnimations:!1,hasUserScript:!1,startTime:new Date,useActiveTimeline:!0,simulateIOSPlayer:!1,logActivity:!1,frameCount:0,renderedFrameCount:0,loadFromScript:!0,fontlib:null,textlib:null,history:[],windowStack:[],renderQueue:[],showQueue:[],actionQueue:[],actionQueuePaused:!1,listSlidesViewed:{},listSlidesViewedComplete:{},completeSlidesViewed:0,
-currentSlidesViewed:0,totalViewSlides:0,allowTouchMove:!1},g_oFontLib;player.TICK_DURATION=30;player.isIOS=-1');top.document.getElementsByTagName("head")[0].appendChild(meta.get(0))}if(-10.5*player.TICK_DURATION&&b<4*player.TICK_DURATION)player.currentTickDuration=b;player.animationTime+=player.currentTickDuration;$.each(player.currentAnimations,function(a,b){b.item.destroyed&&delete player.currentAnimations[a];
-b.step(b.timeline.getAnimationTime())});player.frame.tickPresentationTimer();if(ProgressBar.getCurrentProgressBar().dragging&&player.currentClip)player.currentClip.currentTime=(player.activeTimeline.currentTime-player.currentClipStartTime)/1E3;else if(player.blocked||(player.currentSlide()&&player.currentSlide().tickLayers(),player.currentFramedSlide&&player.activeTimeline!=player.currentFramedSlide&&player.currentFramedSlide.tick()),player.updateControls(),player.playing){player.currentTime+=player.currentTickDuration;
-player.activeTimeline!=player&&"Slide"==player.activeTimeline.innerType&&player.activeTimeline.tick();var c=a-player.frameRateZeroTime,a=0;if(player.showFrameCount&&!isNaN(c)){if(!player.frameCounter)player.frameCounter=$(""),$(document.body).append(player.frameCounter);a=parseInt(1E3*(player.renderedFrameCount/c));player.frameCounter.text(a+" "+b);player.frameCounter.css("color",player.currentTickDuration==b?"green":"red");player.currentTickDuration!=b&&console.log("long tick",
-player.currentTickDuration,b)}player.correctMedia();if(player.currentClip&&!player.currentClip.paused&&(a=parseInt(1E3*player.currentClip.currentTime),b=parseInt(1E3*player.currentClip.duration),!player.layerPlaying&&player.currentClipSyncToTimeline&&a!=player.activeTimeline.currentTime-player.currentClipStartTime&&player.activeTimeline.currentTimea&&(b=(Math.floor(a/1E3)%60-100+"").substr(2,2),c=Math.ceil(a/1E3/60),g="-");return g+Math.abs(c)+":"+b}if(player.activeTimeline==player||"Slide"==player.activeTimeline.innerType){var c=player.currentSlide().duration;if(player.activeTimeline!=player)c=player.activeTimeline.duration;ProgressBar.getCurrentProgressBar().index=player.activeTimeline.currentTime;ProgressBar.getCurrentProgressBar().count=
-c;ProgressBar.getCurrentProgressBar().update()}player.currentSlide().update(player.currentSlide().currentTime,!1,a);$(".time_elapsed").text(b(player.currentTime));$(".time_remaining").text(b(player.currentTime-player.currentSlide().duration))};
-player.showSlideID=function(a,b,c){a=story.parseObjref(a).target;if(a==player.currentSlide())return!1;if("Scene"==a.innerType)a=story.parseObjref(a.startingslide).target;if("SlideDraw"==a.innerType)a.showFirst();else{if(isNaN(a.slideIndex))return!1;player.showSlideIndex(a.slideIndex,null,b,c)}return!0};
-player.showSlideIndex=function(a,b,c,d){var e=story.allSlides[a],f=TimelineAction.actparams.cancelled;TimelineAction.actparams._ActTargetSlideId=e.getFullObjref(!0);TimelineAction.actparams._ActTargetWindow=e.variables.WindowId;TimelineAction.actparams._ActTargetSlideNavIndex=e.navindex;TimelineAction.actparams.cancelled=!1;player.currentSlide().handleEvent("onbeforeslidejump",null,null,!1,!0);TimelineAction.actparams.cancelled?TimelineAction.actparams.cancelled=f:(TimelineAction.actparams.cancelled=
-f,e.loadContentFromXML(),player.prepAudio(a),e.blockAndLoad(function(){DragItem.cancelDrag();$(document.body).removeClass("pointercursor");player.currentSlide().restorePlayerControls();player.loadingSpinner.hide();player.currentWindow=null;DragItem.cancelDrag();var e=player.currentSlide().slideIndex;if(a!=e){player.currentSlide().saveIfNecessary();if(c&&-1==player.currentSlide().parent.id.indexOf("MsgScene"))player.currentWindow?player.currentWindow.history.push(e):(player.hasAdvanced=!0,player.history.push(e));
-player.setSlideIndex(a,b);if(player.onSelectSlide)player.onSelectSlide(story.allSlides[a]);player.isIOSFrame&&($("#slideframe").css("-webkit-box-shadow","0 0 30px rgba(0,0,0,0.35)"),$("#slideframe").css("-moz-box-shadow","0 0 30px rgba(0,0,0,0.35)"),$("#slideframe").css("-ms-box-shadow","0 0 30px rgba(0,0,0,0.35)"),$("#slideframe").css("box-shadow","0 0 30px rgba(0,0,0,0.35)"));setTimeout(function(){player.hasShownFirstSlide=!0},1E3);story.saveToLocalStorage()}d&&d()}))};
-player.showNextSlide=function(){if(player.slideIndex==story.allSlides.length-1)return Transition.bounce([$(".slide.in")],1),!1;if($(".icon.next-slide").hasClass("disabled")||$(".controlbar-button.right").hasClass("locked"))return!1;for(var a=(player.slideIndex+1)%story.allSlides.length;a!=player.slideIndex;a=(a+1)%story.allSlides.length)if(story.allSlides[a].active){player.showSlideIndex(a,2,!0);break}};
-player.showPreviousSlide=function(){if(player.slideIndex==story.startingSlideIndex)return Transition.bounce([$(".slide.in")],2),!1;if($(".icon.previous-slide").hasClass("disabled"))return!1;for(var a=(player.slideIndex+story.allSlides.length-1)%story.allSlides.length;a!=player.slideIndex;a=(a+story.allSlides.length-1)%story.allSlides.length)if(story.allSlides[a]&&story.allSlides[a].active){player.showSlideIndex(a,1,!0);break}};
-player.setSlideIndex=function(a,b){player.zoomed&&player.tapZoom();MouseEvents.processHideables();player.unblock();player.pause(!1,!0);if(!isNaN(a)){var c=player.currentSlide();player.slideIndex=a;player.currentTime=0;player.activeTimeline=player.currentSlide();if(player.currentSlide())player.currentSlide().resetInteractions(),player.updateViewCount(player.currentSlide()),player.slideList.markVisited(c),player.currentSlide().show(player.autoplaySlides,b,function(){c.slideIndex!=player.currentSlide().slideIndex&&
-c.reduce();c.resetSlide(!1,!0);player.hideInactiveSlides(function(){});c.unloadContent();player.currentTime=player.currentSlide().currentTime}),c.handleEvent("ontransitionout",null,null,!1,!0),c.deepEach(function(a,b){b.handleEvent&&b.handleEvent("ontransitionout",null,null,!1,!0)}),c.variables.WindowId="_frame",player.currentSlide().variables.WindowId="_frame";player.loopable||($(".icon.disabled").removeClass("disabled"),player.slideIndex==story.startingSlideIndex&&$(".icon.previous-slide").addClass("disabled"),
-player.slideIndex==story.allSlides.length-1&&$(".icon.next-slide").addClass("disabled"));$(".item").css("-webkit-animation-name","");$(".item").css("-webkit-animation-duration","0s");$("ul.menu_list li").removeClass("selected locked");$("ul.slidelist li").removeClass("selected locked");$(".controlbar-button.right,#control-submitall").removeClass("locked");$(".toptab.customlink").removeClass("locked");$(".progress-container").removeClass("locked");var d=player.currentSlide();if(d.slideBank&&0==d.navLinks.length)d=
-d.slideBank;$.each(d.navLinks,function(a,b){$.each(b.listitems,function(a,b){b.addClass("selected")})});player.slideList.collapse(player.currentSlide());d.slidelock&&($("ul.menu_list li").addClass("locked"),$("ul.slidelist li").addClass("locked"),$(".controlbar-button.right,#control-submitall").addClass("locked"),$(".toptab.customlink").addClass("locked"),$(".progress-container").addClass("locked"));player.slideList.scrollSelectedIntoView()}};
-player.updateViewCount=function(a){a.variables.Visited=!0;a.viewedCurrent=!0;this.listSlidesViewed[a.getFullObjref()]=!0;this.listSlidesViewedComplete[a.slideIndex]=!0;if(a.trackviews){var b={},c=0,d;for(d in this.listSlidesViewed){var e=story.parseObjref(d).target;e.trackviews&&null==b[e.viewgroupid]&&(b[e.viewgroupid]=!0,c++)}this.currentSlidesViewed=c;var c=0,b={},f;for(f in this.listSlidesViewedComplete)e=story.allSlides[f],null!=e&&e.trackviews&&null==b[e.viewgroupid]&&(b[e.viewgroupid]=!0,c++);
-this.completeSlidesViewed=c;player.lmsManager.handleSlideViewed(a)}};player.restoreViewedState=function(a){a.variables.Visited=!0;this.listSlidesViewed[a.getFullObjref()]=!0;this.listSlidesViewedComplete[a.slideIndex]=!0};player.calculateTotalViewSlides=function(){for(var a={},b=this.totalViewSlides=0;bthis.renderQueue.indexOf(a)&&(this.renderQueue.push(a),player.scheduleShowQueueFlush())};player.addToShowQueue=function(a,b){a.animating&&!a.animationEnded&&!b?a.showOnFirstStep=!0:0>this.showQueue.indexOf(a)&&(this.showQueue.push(a),player.scheduleShowQueueFlush())};player.removeFromShowQueue=function(a){a=this.showQueue.indexOf(a);0<=a&&this.showQueue.splice(a,1)};player.scheduleShowQueueFlush=function(){this.renderTimer?this.renderTimer.style.opacity="1":player.flushShowQueues()};
-player.flushShowQueues=function(){Math.random();if(0player.renderQueue.indexOf(c)?c.ref&&c.ref.show():a.push(c)}for(b=0;b=player.activeTimeline.duration&&!b&&player.restart(),player.ensureTicking(),player.showControls&&$("#controls").show(),c||d.resumeMedia(),a||$.each(player.currentAnimations,function(a,b){b.timeline.paused=!1});player.paused=!1;player.playing=!0;player.updateControls();$(document.body).removeClass("paused");if(player.onPlay)player.onPlay()}};
-player.pause=function(a,b){player.unblock();player.playing=!1;player.paused=!0;$.each(player.currentSlide().clips,function(c,d){if(b||!a||!d.layered)if(d.ref&&(b||player.currentClipSyncToTimeline))if(d.pauseClip(),player.scheduledMediaSrc==d.content.src)clearTimeout(player.mediaTimeout),player.scheduledMediaSrc=null});$.each(player.webAudioClips,function(c,d){if(d.slide==player.currentSlide()&&(b||!a||!d.layered))(b||player.currentClipSyncToTimeline)&&d.pauseClip()});player.useActiveTimeline&&$.each(player.currentSlide().children,
-function(c,d){"Layer"==d.innerType&&(b||!a)&&d.pause()});player.updateControls()};
-player.pauseClips=function(){clearTimeout(player.mediaTimeout);player.scheduledMediaSrc=null;$.each(player.currentSlide().clips,function(a,b){if(b.ref&&b.ref.get&&b.ref.get(0)&&b.ref.get(0).pause&&(b.pauseClip(),player.scheduledMediaSrc==b.content.src))clearTimeout(player.mediaTimeout),player.scheduledMediaSrc=null});$("audio,video").each(function(a,b){b.get&&b.get(0)&&b.get(0).pause&&b.get(0).pause()});$.each(player.webAudioClips,function(a,b){b.pauseClip()})};
-player.block=function(){if(!player.blocknotice)player.blocknotice=$(''),$(".blocked").css("left",Math.floor(window.innerWidth/2)-50),$(".blocked").css("top",Math.floor(window.innerHeight/2)-50),$(document.body).append(player.blocknotice);player.blocknotice.show();player.playing=!1;player.blocked=!0;clearTimeout(player.blockedTimeout);if(!player.hasWebAudio)player.blockedTimeout=setTimeout(function(){player.blocked&&(player.currentSlide().currentIndex+=1,player.unblock())},
-4E3)};player.unblock=function(a){$(".blocked").hide();if(player.blocked){clearTimeout(player.blockedTimeout);if(player.interval&&!player.paused&&!a)player.playing=!0,player.activeTimeline.play();player.blocked=!1;player.blockedOn=null}};
-player.restart=function(){if(player.activeTimeline.enablereplay&&!(player.activeTimeline==player.currentSlide()&&player.currentSlide().resume))"Slide"==player.activeTimeline.innerType?player.activeTimeline.resetSlide():player.currentSlide().resetSlide(),player.activeTimeline.currentTime=0,player.update(player.activeTimeline.currentTime),player.activeTimeline.pause(),player.activeTimeline.play()};
-player.initLoadQueue=function(){player.slideLoadQueue=[];player.slideLoadQueue.processing=!0;player.slideLoadQueueExhausted=!1;for(var a=0;aa||a>story.allSlides.length||player.loadResourcesForSlide(story.allSlides[a])};
-player.loadResourcesForSlide=function(a){player.slideLoadQueue.processing=!0;var b=0,c=function(){var c=a.resources.length,e=0;$.each(a.resources,function(f,g){e=player.simplifySlides&&g.item.canSimplify||g.item.deferLoading?e+10:e+100;setTimeout(function(){g.load(f,function(){if(++b>=c&&(a.ready=!0,slideIndex==story.startingSlideIndex))player.ready=!0},!0)},e)})};player.simplifySlides?a.simplify(c):c();if(0==a.resources.length){a.ready=!0;if(slideIndex==story.startingSlideIndex||!story.startingSlideIndex)player.ready=
-!0;player.loadResourcesForNextSlide()}};player.unloadResources=function(){$.each(story.allSlides,function(a,b){(aplayer.slideIndex+1)&&$.each(b.resources,function(a,b){b.unload()})})};player.prepAudio=function(a){if(!Resource.justPrepped){Resource.justPrepped=!0;setTimeout(function(){Resource.justPrepped=!1},100);var b=!1;$.each(story.allSlides[a].resources,function(a,d){if(("audio"==d.item.type||"video"==d.item.type)&&!b&&!d.prepared)d.prep(function(){}),b=!0})}};
-player.updateMediaMonitor=function(){if(player.showMediaMonitor){if(!player.mediaMonitor)player.mediaMonitor=$("hey
"),$(document.body).append(player.mediaMonitor);player.mediaMonitor.empty();$.each(story.allSlides,function(a,b){player.mediaMonitor.append(""+b.title+"
");var c=$("");$.each(b.resources,function(a,b){if(("audio"==b.item.type||"video"==b.item.type)&&b.item.ref){var f=$(""+b.prepared+", "+b.item.ref.get(0).networkState+", "+b.item.ref.get(0).readyState+
-", "+b.item.ref.get(0).paused+", "+b.item.ref.get(0).ended+", "+b.item.ref.get(0).error+", "+b.item.getCurrentTime()+", "+b.src+"");!b.item.ref.get(0).paused&&!b.item.ref.get(0).ended&&f.css("background-color","yellow");b.item.getFullObjref()==player.nextPreparedClipID&&f.css("color","green");player.currentClip&&b.item.ref&&player.currentClip==b.item.ref.get(0)&&f.css("text-decoration","underline");c.append(f)}});player.mediaMonitor.append(c)})}};
-player.onLoadedData=function(){player.loadedMediaCount++;player.loadedMediaCount==player.mediaCount&&(player.pause(),$("#slideframe").css("opacity","1.0"),player.showSlideID(story.startingslide))};player.reorient=function(a){player.frame.reorient(a)};player.maximize=function(a){a&&!player.maximized?(player.width/=2,player.height/=2,player.reorient(!0)):!a&&player.maximized&&(player.width*=2,player.height*=2,player.reorient(!0));player.maximized=a};
-player.setInitialActiveTimeline=function(){var a=story.getStartingSlide();player.activeTimeline="Slide"==a.innerType?a:"SlideDraw"==a.innerType?a.getFirstSlide():player};
-player.revealPostInterstitial=function(){if(player.reorientLaunchInterval)clearInterval(player.reorientLaunchInterval),player.reorientLaunchInterval=null;SlideDraw.populateDraws();$("#slideframe").css("opacity","1.0");$(".launch").remove();player.showSlideID(story.startingslide,!1,player.play);player.setInitialActiveTimeline();player.currentSlide().prepDownstreamMedia();player.reorient(!0);player.showControls&&$("#controls").show();setTimeout(function(){player.showingInterstitial=!1},500);$(".interstitial").hide();
-$(".frameInterstitial").hide();player.playButton.hide();!player.isIOS&&player.isChrome&&player.forceRepaint();clearInterval(player.win7kick);Audio.iOSPrepare&&Audio.iOSPrepare()};player.showInterstitial=function(){player.showIOSLaunch()};player.addDiagnosticButton=function(a,b){var c=$(''+a+"
");c.click(b);$("#topbar").append(c)};
-player.sniffParameters=function(){location.search.split("&");$.each(location.search.split("&"),function(a,b){var c=unescape(b.replace("?","")).split("=");switch(c[0].toLowerCase()){case "file":player.filename=c[1];break;case "name":player.storyName=c[1];player.basepath="/UserData/Upload/"+c[1]+"/";break;case "controls":player.showControls=!1;player.swipeMode="follow";player.animations="all";break;case "usexml":player.loadFromScript=!1;globals.strContentFolder="presentation_content";break;case "contentfolder":globals.strContentFolder=
-c[1];break;case "lms":player.useLMS=!0;break;case "ao":globals.bAOSupport=!0;window.g_bAOSupport=!0;player.useAO=!0;player.forceAO=!0;break;case "tincan":globals.bTinCan=!0;window.g_bTinCan=!0;player.useTinCan=!0;break;case "anim":player.animations=c[1];break;case "page":player.paging=c[1];break;case "zoom":player.tapZoomEnabled=!0;break;case "lockzoom":player.lockzoom=!player.lockzoom;break;case "scale":player.scaleToFit=!player.scaleToFit;break;case "swipe":player.swipeMode=c[1];break;case "rightclick":player.allowRightClick=
-!player.allowRightClick;break;case "menu":player.forceMenu=!0;break;case "jiggle":player.useSwipeJiggle=!0;break;case "simplezoom":player.useSimpleZoom=!0;break;case "framecount":player.showFrameCount=!0;break;case "heartbeat":setInterval(function(){$(".framewrap").hide();player.uselessOffsetHeight=$(".framewrap").get(0).offsetHeight;$(".framewrap").show()},c[1]||1E3);break;case "noimg":player.noImg=!0;break;case "bak":player.backOnly=!0;break;case "simplify":player.simplifySlides=!1;break;case "preload":player.preload=
-!0;break;case "nopreload":player.neverPreload=!0;break;case "canvasdebug":player.canvasDebug=!0;break;case "ppfudge":window.ppFudge=parseFloat(c[1]);break;case "nocanvas":player.useCanvas=!1;player.renderVectorShapes=!1;player.renderVectorsAsSVG=!1;break;case "safecanvas":player.useSafeCanvas=!0;break;case "basiccanvas":ppArt=ppArtBasic;break;case "oldnav":player.simplenav=!1;break;case "compact":player.useCompactResume=!player.useCompactResume;break;case "svg":player.useCanvas=!0;player.renderVectorShapes=
-!0;player.renderVectorsAsSVG=!0;break;case "logging":window.EventLogger.logging=!window.EventLogger.logging;break;case "console":console.suppress=!console.suppress;break;case "trace":trace.suppress=!trace.suppress;break;case "noconsole":console.suppress=!0;break;case "datestamp":var d=$(""+window.buildDate+"
");d.click(function(){alert(window.buildDate)});$(document.body).append(d);break;case "silent":Audio.setSilentMode();break;case "media":player.showMediaMonitor=!0;setInterval(player.updateMediaMonitor,
-500);break;case "medialist":var e=$("
");$(document.body).append(e);setTimeout(function(){story.xml.find("video").find("videodata").each(function(a,b){e.append("
"+$(b).attr("url")+"")})},2E3);break;case "timelines":var f=$("
"),g=function(a,b,c){a=$("
"+a+": "+b+" ("+c+")");f.append(a)};$(document.body).append(f);setInterval(function(){f.empty();
-g("active",player.activeTimeline.currentTime,player.activeTimeline.id);g("player",player.currentTime,"");g("slide",player.currentSlide().currentTime,player.currentSlide().id);player.currentFramedSlide&&g("slideFrame",player.currentFramedSlide.currentTime,player.currentFramedSlide.id);player.currentWindowSlide&&g("window",player.currentWindowSlide.currentTime,player.currentWindowSlide.id);g("animation",player.getAnimationTime(),"");var a=function(a){a&&a.deepEach(function(a,b){"Layer"==b.innerType&&
-g("layer",b.currentTime,b.id)})};a(player.currentSlide());a(player.currentWindowSlide);a(player.currentFramedSlide)},100);break;case "resources":f=$("
");g=function(a,b,c){a=$("
"+a+": "+b+" ("+c+")");f.append(a)};$(document.body).append(f);setInterval(function(){f.empty();g("total",Resource.TotalPixels,Resource.LoadedImageCount)},100);break;case "monitor":player.showInstrumentation=!0;break;case "follow":player.followMouseCursor=!0;break;
-case "info":player.showItemInfo=!0;player.canChangeMonitoringItem=!0;player.originalMonitoringItemID=c[1];setInterval(player.updateItemInfo,1E3);setTimeout(function(){var a=story.findDescendantById(c[1]);a&&player.updateItemInfo(a)},1E3);$(".framewrap").addClass("info");break;case "trap":window.onerror=function(){};break;case "placeholder":player.usePlaceholderVideo=!0;break;case "novideo":player.noVideo=!0;break;case "noaudiocache":player.noAudioCache=!0;break;case "filter":console.filter=c[1];break;
-case "overlap":player.showDebugOverlap=!0;BitMask.showDebug=!0;break;case "persist":player.showDebugOverlapPersistent=!0;break;case "overlapdebug":player.showDebugOverlap=!0;BitMask.showDebug=!0;BitMask.debugOnly=!0;break;case "matrixdebug":player.showMatrixDebug=!0;break;case "maskdebug":player.drawMaskDebugShapes=!0;break;case "maskimage":player.useMaskImage=!0;break;case "maskcanvas":player.useMaskCanvas=!0;break;case "dumpcanvas":player.dumpCanvas=!0;player.canvasCommandLog=[];break;case "linkareas":player.showLinkAreas=
-!0;break;case "maximize":player.canMaximize=!0;player.maximized=!0;break;case "stresstest":player.setupStressTest();break;case "navtest":setTimeout(function(){player.frame.debugTopNav()},1E3);break;case "nointervals":player.nointervals=!0;break;case "noframe":player.noframe=!0;break;case "noframecolor":player.noframecolor=!0;break;case "bgcolor":globals.strBgColor="#"+c[1];$(document.body).css("background","#"+c[1]);break;case "slidescale":player.forceSlideScale=parseFloat(c[1]);break;case "resumedata":player.overrideResumeData=
-c[1];break;case "suppresscapture":player.suppressCaptureAnimations=!player.suppressCaptureAnimations;break;case "active":player.useActiveTimeline=!player.useActiveTimeline;break;case "iosplayer":player.simulateIOSPlayer=!player.simulateIOSPlayer;break;case "notouch":player.addDiagnosticButton("disable",function(){alert($("#glossaryscroll").get(0).className)});break;case "logactivity":player.logActivity=!player.logActivity}})};
-player.setupStressTest=function(){var a=$("
stress single");a.click(function(){var b=0,d=player.currentSlide(),e=d.container,f=function(){setTimeout(function(){d.destroyRef();setTimeout(function(){d.createRef(e);f()},50)},50);b++;a.html(b)};f()});$(document.body).append(a);var b=$("
stress cycle");b.click(function(){var a=0,d=function(){setTimeout(function(){player.showSlideIndex((player.slideIndex+
-1)%story.allSlides.length,null,!0,function(){d()})},1E3);a++;b.html(a)};d()});$(document.body).append(b)};player.prepSlides=function(){};player.loadFonts=function(a){player.fontlib=new ppFontLib(player.basepath,$(a).find("bwContent").attr("iosfonts"));g_oFontLib=player.fontlib;player.fontlib.CreateFonts(function(){player.fontready=!0})};player.parseFrameData=function(a){player.frame.loadFromXML($(a));player.slideList.refresh();player.frame.initOrientation()};
-player.loadFrame=function(){if(player.frameData)player.parseFrameData(player.frameData);else if(player.loadFromScript){player.parseDataOnLoad=!0;var a=$("
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/AQuizmaker SCORM12/quiz.swf b/examples/AQuizmaker SCORM12/quiz.swf
deleted file mode 100755
index 514d60f..0000000
Binary files a/examples/AQuizmaker SCORM12/quiz.swf and /dev/null differ
diff --git a/examples/AQuizmaker SCORM12/quiz_content/blank.html b/examples/AQuizmaker SCORM12/quiz_content/blank.html
deleted file mode 100755
index 3514ce6..0000000
--- a/examples/AQuizmaker SCORM12/quiz_content/blank.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/examples/AQuizmaker SCORM12/quiz_content/data.swf b/examples/AQuizmaker SCORM12/quiz_content/data.swf
deleted file mode 100755
index ba40cb2..0000000
Binary files a/examples/AQuizmaker SCORM12/quiz_content/data.swf and /dev/null differ
diff --git a/examples/AQuizmaker SCORM12/quiz_content/fonts.swf b/examples/AQuizmaker SCORM12/quiz_content/fonts.swf
deleted file mode 100755
index 693b1ec..0000000
Binary files a/examples/AQuizmaker SCORM12/quiz_content/fonts.swf and /dev/null differ
diff --git a/examples/AQuizmaker SCORM12/quiz_content/frame.js b/examples/AQuizmaker SCORM12/quiz_content/frame.js
deleted file mode 100755
index e62c06f..0000000
--- a/examples/AQuizmaker SCORM12/quiz_content/frame.js
+++ /dev/null
@@ -1 +0,0 @@
-eval(function(p,a,c,k,e,d){e=function(c){return(c
35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('3i("<1Q 1s:3j=\'1t://1u.1y.1C/1D/1E-3k\' 1s:3g=\'1t://1u.1y.1C/1D/1E\' 3l=\'o\' 3m=\'3n\' 3e=\'d\' 35=\'p\' 36=\'37\'><1z>1z><1k><1m><1l 2=\'1N\'><1B><11 2=\'t\' l=\'p\' 16=\'3E\' /><11 2=\'w\' l=\'d\' 16=\'3F\' /><11 2=\'u\' l=\'d\' 16=\'1A\' /><11 2=\'v\' l=\'d\' 16=\'1A\' />1B>1l>1m>1k><1r>
1r><2b><1 2=\'1o\'><4 a=\'9\' b=\'c\'><3><1 6=\'1F\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1W\'><4 a=\'9\' b=\'c\'><3><1 6=\'1b\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'M\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'A\'><4 a=\'9\' b=\'c\'><3><1 6=\'J\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1X\'><4 a=\'9\' b=\'c\'><3><1 6=\'E\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1p\'><4 a=\'9\' b=\'c\'><3><1 6=\'1Y\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1o\'><4 a=\'9\' b=\'c\'><3><1 6=\'1F\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1W\'><4 a=\'9\' b=\'c\'><3><1 6=\'1b\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'13\' 5=\'8\' 7=\'0\' /><1 6=\'T\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'A\'><4 a=\'9\' b=\'c\'><3><1 6=\'J\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1X\'><4 a=\'9\' b=\'c\'><3><1 6=\'E\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'2R\'><4 a=\'9\' b=\'c\'><3><1 6=\'1Y\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'30\'><4 a=\'9\' b=\'c\'><3><1 6=\'31\' 5=\'8\' 7=\'0\' /><1 6=\'2W\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'2X\'><4 a=\'9\' b=\'c\'><3><1 6=\'2Y\' 5=\'8\' 7=\'0\' /><1 6=\'2H\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'2I\'><4 a=\'9\' b=\'c\'><3><1 6=\'L\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1T\'><4 a=\'9\' b=\'c\'><3><1 6=\'M\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'I\'><4 a=\'9\' b=\'c\'><3><1 6=\'H\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'I\'><4 a=\'9\' b=\'c\'><3><1 6=\'H\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1T\'><4 a=\'9\' b=\'c\'><3><1 6=\'2F\' 5=\'8\' 7=\'0\' /><1 6=\'T\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'Z\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'12\'><4 a=\'9\' b=\'c\'><3><1 6=\'24\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'15\'><4 a=\'9\' b=\'c\'><3><1 6=\'1V\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'A\'><4 a=\'9\' b=\'c\'><3><1 6=\'2G\' 5=\'20\' 7=\'0\' />3>4>1><1 2=\'2O\'><4 a=\'9\' b=\'c\'><3><1 6=\'H\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'2P\'><4 a=\'9\' b=\'c\'><3><1 6=\'E\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'25\'><4 a=\'9\' b=\'c\'><3><1 6=\'14\' 5=\'8\' 7=\'0\' /><1 6=\'L\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'21\'><4 a=\'9\' b=\'c\'><3><1 6=\'19\' 5=\'8\' 7=\'0\' /><1 6=\'22\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'23\'><4 a=\'9\' b=\'c\'><3><1 6=\'L\' 5=\'8\' 7=\'0\' /><1 6=\'1K\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'1G\'><4 a=\'9\' b=\'c\'><3><1 6=\'1d\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1v\'><4 a=\'9\' b=\'c\'><3><1 6=\'K\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1M\'><4 a=\'9\' b=\'c\'><3><1 6=\'17\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1L\'><4 a=\'9\' b=\'c\'><3><1 6=\'K\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'2L\'><4 a=\'9\' b=\'c\'><3><1 6=\'1R\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'18\'><4 a=\'9\' b=\'c\'><3><1 6=\'26\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'2M\'><4 a=\'9\' b=\'c\'><3><1 6=\'2u\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'I\'><4 a=\'9\' b=\'c\'><3><1 6=\'K\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1c\'><4 a=\'9\' b=\'c\'><3><1 6=\'1J\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'A\'><4 a=\'9\' b=\'c\'><3><1 6=\'M\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'I\'><4 a=\'9\' b=\'c\'><3><1 6=\'H\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'12\'><4 a=\'9\' b=\'c\'><3><1 6=\'1V\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'15\'><4 a=\'9\' b=\'c\'><3><1 6=\'24\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'13\' 5=\'8\' 7=\'0\' /><1 6=\'T\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'10\'><4 a=\'9\' b=\'c\'><3><1 6=\'13\' 5=\'8\' 7=\'0\' /><1 6=\'Z\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'4X\'><4 a=\'9\' b=\'c\'><3><1 6=\'4S\' 5=\'8\' 7=\'0\' /><1 6=\'27\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'4T\'><4 a=\'9\' b=\'c\'><3><1 6=\'13\' 5=\'8\' 7=\'0\' /><1 6=\'T\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'25\'><4 a=\'9\' b=\'c\'><3><1 6=\'14\' 5=\'8\' 7=\'0\' /><1 6=\'L\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'21\'><4 a=\'9\' b=\'c\'><3><1 6=\'19\' 5=\'8\' 7=\'0\' /><1 6=\'22\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'23\'><4 a=\'9\' b=\'c\'><3><1 6=\'L\' 5=\'8\' 7=\'0\' /><1 6=\'1K\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'1G\'><4 a=\'9\' b=\'c\'><3><1 6=\'1d\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1v\'><4 a=\'9\' b=\'c\'><3><1 6=\'K\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1M\'><4 a=\'9\' b=\'c\'><3><1 6=\'17\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1O\'><4 a=\'9\' b=\'c\'><3><1 6=\'K\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4L\'><4 a=\'9\' b=\'c\'><3><1 6=\'T\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'10\'><4 a=\'9\' b=\'c\'><3><1 6=\'J\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'M\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4H\'><4 a=\'9\' b=\'c\'><3><1 6=\'4I\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'I\'><4 a=\'9\' b=\'c\'><3><1 6=\'E\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'18\'><4 a=\'9\' b=\'c\'><3><1 6=\'1S\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'M\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'A\'><4 a=\'9\' b=\'c\'><3><1 6=\'J\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'Z\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'A\'><4 a=\'9\' b=\'c\'><3><1 6=\'J\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'0\'><3><1 6=\'4M\' 5=\'8\' 7=\'0\' /><1 6=\'4N\' 5=\'8\' 7=\'1w\' />3>4>1><1 2=\'10\'><4 a=\'9\' b=\'c\'><3><1 6=\'4O\' 5=\'8\' 7=\'0\' /><1 6=\'Z\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'54\'><4 a=\'9\' b=\'c\'><3><1 6=\'5l\' 5=\'8\' 7=\'0\' /><1 6=\'5m\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'5n\'><4 a=\'9\' b=\'c\'><3><1 6=\'5i\' 5=\'8\' 7=\'0\' /><1 6=\'5j\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'5k\'><4 a=\'9\' b=\'c\'><3><1 6=\'J\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'5o\'><4 a=\'9\' b=\'c\'><3><1 6=\'H\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'A\'><4 a=\'9\' b=\'c\'><3><1 6=\'5r\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'5q\'><4 a=\'9\' b=\'c\'><3><1 6=\'5p\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'5s\'><4 a=\'9\' b=\'c\'><3><1 6=\'T\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'1R\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'10\'><4 a=\'9\' b=\'c\'><3><1 6=\'5a\' 5=\'8\' 7=\'0\' /><1 6=\'1a\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'55\'><4 a=\'9\' b=\'c\'><3><1 6=\'1P\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'56\'><4 a=\'9\' b=\'c\'><3><1 6=\'14\' 5=\'8\' 7=\'0\' /><1 6=\'L\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'57\'><4 a=\'9\' b=\'c\'><3><1 6=\'1S\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1H\'><4 a=\'9\' b=\'c\'><3><1 6=\'1P\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'5g\'><4 a=\'9\' b=\'c\'><3><1 6=\'1a\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'5b\'><4 a=\'9\' b=\'c\'><3><1 6=\'1h\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'14\' 5=\'8\' 7=\'0\' /><1 6=\'L\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'10\'><4 a=\'9\' b=\'c\'><3><1 6=\'1d\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'48\'><4 a=\'9\' b=\'c\'><3><1 6=\'J\' 5=\'8\' 7=\'0\' /><1 6=\'44\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'45\'><4 a=\'9\' b=\'c\'><3><1 6=\'1q\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'46\'><4 a=\'9\' b=\'c\'><3><1 6=\'M\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1O\'><4 a=\'9\' b=\'c\'><3><1 6=\'4e\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4f\'><4 a=\'9\' b=\'c\'><3><1 6=\'H\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4a\'><4 a=\'9\' b=\'c\'><3><1 6=\'17\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'Z\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'I\'><4 a=\'9\' b=\'c\'><3><1 6=\'H\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1c\'><4 a=\'9\' b=\'c\'><3><1 6=\'1h\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'18\'><4 a=\'9\' b=\'c\'><3><1 6=\'1h\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'A\'><4 a=\'9\' b=\'c\'><3><1 6=\'17\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'3W\'><4 a=\'9\' b=\'c\'><3><1 6=\'1I\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1n\'><4 a=\'9\' b=\'c\'><3><1 6=\'E\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'12\'><4 a=\'9\' b=\'c\'><3><1 6=\'3R\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'15\'><4 a=\'9\' b=\'c\'><3><1 6=\'3S\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1U\'><4 a=\'9\' b=\'c\'><3><1 6=\'1I\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1H\'><4 a=\'9\' b=\'c\'><3><1 6=\'E\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'41\'><4 a=\'9\' b=\'c\'><3><1 6=\'1b\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'3Y\'><4 a=\'9\' b=\'c\'><3><1 6=\'3Z\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1L\'><4 a=\'9\' b=\'c\'><3><1 6=\'K\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1c\'><4 a=\'9\' b=\'c\'><3><1 6=\'1J\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'I\'><4 a=\'9\' b=\'c\'><3><1 6=\'K\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'18\'><4 a=\'9\' b=\'c\'><3><1 6=\'26\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'12\'><4 a=\'9\' b=\'c\'><3><1 6=\'1Z\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'15\'><4 a=\'9\' b=\'c\'><3><1 6=\'1Z\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1U\'><4 a=\'9\' b=\'c\'><3><1 6=\'1a\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'r\'><4 a=\'9\' b=\'c\'><3><1 6=\'1q\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'1n\'><4 a=\'9\' b=\'c\'><3><1 6=\'E\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4l\'><4 a=\'9\' b=\'c\'><3><1 6=\'4g\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4h\'><4 a=\'9\' b=\'c\'><3><1 6=\'4i\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4p\'><4 a=\'9\' b=\'c\'><3><1 6=\'4q\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4r\'><4 a=\'9\' b=\'c\'><3><1 6=\'19\' 5=\'8\' 7=\'0\' />3>4>1><1 2=\'4m\'><4 a=\'9\' b=\'c\'><3><1 6=\'1x\' 5=\'8\' 7=\'0\' /><1 6=\'1x\' 5=\'8\' 7=\'1w\' /><1 6=\'27\' 5=\'8\' 7=\'m\' />3>4>1><1 2=\'4n\'><4 a=\'9\' b=\'c\'><3><1 6=\'M\' 5=\'8\' 7=\'0\' />3>4>1>2b><28>4j4s2g4B4A4z2d4D y 4C 4v 4u4y 2c 4x 2e423T 3V2d2h 4c:4d 49 47 4F2h ...5f594K50 4Z2e524W2K2S2f2f2D2o2m2g 2n2i 2j2z 2c 2y2C 2B2t 2s 2r3z3O3G28><3b f=\'d\' /><2a><29><34 33=\'32.3q\' />29>2a><3p 3o=\'\' /><3h /><3f />1Q>");',62,339,'|color|name|colors|fill|alpha|rgb|stop|100|linear|type|rotation|90|false|control|enabled|string|color_group|group_colors|id|option|value|255|options|pxnsnfns0000000000|true|controls|bg|control_layout|outline|glossary|transcript|resources|search||string_table|shadow|optiongroup|colorscheme|volume|0x444444|submit|next|0x555555|text|0xB8B8B8|0x353535|0xC7C7C7|0xFFFFFF|pauseplay|seekbar|replay|submitall|finish|Articulate|0xCFCFCF|controllayout|font|layout|close_btn|previous|0xF3F3F3|border|listitem|diva|0xE9E9E9|0xF5F5F5|divb|group|0xF0F0F0|hover|0xF2F2F2|0xFAFAFA|0x0000EE|selected|0xB1B1B1|npxnsnfns0000000000|pnxnsfns0000000000|npnxnsnfns0000000000|0x333333|npnxsnfns0000000000|pxnsnfs0000000000|control_options|optionlist|optiongroups|heading_text|link_text|title_text|0xE7E7E7|control_layouts|xmlns|http|www|btn_text|128|0xBCBCBC|w3|layouts|sidebar|listitems|org|2001|XMLSchema|0x7C2280|btn_border|search_text|0xE1E1E1|0xC0E2F1|0xF4F4F4|selected_text|btn_text_shadow|tabs|btn_icon_color|0x8A8A8A|bwFrame|0xDFDFDF|0x6BF8FF|inner|divc|0xD3D3D3|link_hover|name_text|0x999999|0xE2E2E2||btn_hover|0xAFAFAF|btn_down|0xF7F7F7|btn_bg|0xE6E6E6|0xC3C3C3|string_tables|links|nav_data|colorschemes|de|Notas|búsqueda|siguiente|ENVIAR|Buscar|enviar|todo|infopanel|acc_submitall|finalizar|TODO|FINALIZAR|acc_finish|question_list|electrónico|correo|Enviar|0x909090|bottombar_enabled|close|more_info|preguntas|Lista|send_an_email|información|Más|volumen|acc_submit|0xEAEAEA|0x000000|0xFCCC2A|stroke|window|repetición|lines|viewed|editor|slide_text|html_text|acc_next|bio_text|presentar|infopanelpopup|acc_volume|acc_previous|0x00ABFF|elapsed|0xFEE347|timer|duration|0x00D7FF|6UKwZJlcmHi|drawid|slidedrawref|kbshortcuts|outputtype|qm|QuizRedesTorreTCPIP|logo_enabled|logo_url|sounds|sidebaroptions|title_enabled|device|glossary_data|xsd|transcript_data|CreateFrameData|xsi|instance|default_layout|textdirection|ltr|description|resource_data|6nVBX4G5fEm|free|wraplistitems|tooltips|135|menuoptions|flow|enableKeyboardShortcuts|bottombaroptions|Cerrar|autocollapse|autonumber|enableresultsicons|height|linkleft|linkright|Salir|sidebar_enabled|sidebarpos|left|time_enabled|time_format|video_enabled|exit|BiografÃa|bio|base|0xC6C6C6|0xF9F9F9|Texto|transcript_chk|Diapositiva|div|resource|separator|0xE0E0E0|slide_text_chk|search_hover|Filtro|search_in|0xEEEEEE|seek_bg|seek_position|para|seek_border|verificación|btn_icon_shadow|check_include|en|De|0x2D2D2D|btn_icon_hover|0xA5A5A5|thumb_inner|0xD4D4D4|ANT|prev|thumb_border|slider_bg|htmlpage_bg_color|HTML|thumb_bg|0xC8C8C8|slider_border|SIG|search_results|menú|al|filter|la|Resultados|Glosario|Recursos|Menú|volver|Borrar|clear|incluir|checkbox|check|0x33CC00|acc_resources|definición|btn_glow|0xDEDEDE|0xE8E8E8|0xF6F6F6|logo|menu|scrollarea|0xDBDBDB|slide_bg|acc_play|acc_replay|jugar|menu_shade|acc_search_input|recursos|los|button|pausa|acc_pause|button_bg|icon|button_hover|hover_glow|searchinput|Definición|0xADADAD|text_active|seekcontrol|terms|definition|Condiciones|bg_active|acc_definition|0xCBCBCB|0xBABABA|button_border|0xC4C4C4|0xB2B2B2|button_inner|icons|0xA7A7A7|detaila|0xD9D9D9|detailb'.split('|'),0,{}))
diff --git a/examples/AQuizmaker SCORM12/quiz_content/frame.swf b/examples/AQuizmaker SCORM12/quiz_content/frame.swf
deleted file mode 100755
index ab3fdd5..0000000
Binary files a/examples/AQuizmaker SCORM12/quiz_content/frame.swf and /dev/null differ
diff --git a/examples/AQuizmaker SCORM12/quiz_content/frame.xml b/examples/AQuizmaker SCORM12/quiz_content/frame.xml
deleted file mode 100755
index 43996ac..0000000
--- a/examples/AQuizmaker SCORM12/quiz_content/frame.xml
+++ /dev/null
@@ -1 +0,0 @@
-ANTSIGENVIARMenúRecursosGlosarioNotasBorrar y volver al menúResultados de la búsquedaFiltroTexto DiapositivaNotasBuscar en:De verificación para incluirBuscar ...CondicionesDefinicióndefiniciónlos recursosbúsquedapausajugarrepeticiónpresentarsiguientesiguientevolumenFINALIZARfinalizarENVIAR TODOenviar todoLista de preguntasMás informaciónEnviar correo electrónicoCerrarBiografÃaSalir
\ No newline at end of file
diff --git a/examples/AQuizmaker SCORM12/quiz_content/quiz.js b/examples/AQuizmaker SCORM12/quiz_content/quiz.js
deleted file mode 100755
index fd280e0..0000000
--- a/examples/AQuizmaker SCORM12/quiz_content/quiz.js
+++ /dev/null
@@ -1,1729 +0,0 @@
-
-// Browser Sniffing
-var IE = ((document.all)&&(navigator.appVersion.indexOf("MSIE")!=-1)) ? true : false;
-var IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
-
-var FF = (navigator.userAgent.indexOf("Firefox")!=-1) ? true : false;
-
-var Safari3 = (navigator.appVersion.indexOf("Safari") && navigator.appVersion.indexOf("Version/3"));
-
-
-// Message Delimitors
-var g_strDelim = "|~|";
-var g_strInteractionDelim = "|#|";
-
-var g_oContentResults = new ContentResults();
-var g_listQuizzes = new Object();
-var g_oPrintOptions = new Object();
-
-// LMS Support
-var g_bLMSPresent = false;
-
-if (g_bLMS)
-{
- document.write("<\/SCR" + "IPT>");
-}
-
-if (g_bAOSupport)
-{
- document.write("<\/SCR" + "IPT>");
-}
-
-var g_strQuery = document.location.search.substr(1);
-
-// Write the swf object
-function WriteSwfObject(strSwfFile, nWidth, nHeight, strScale, strAlign, strQuality, strBgColor, bCaptureRC, strWMode, strFlashVars)
-{
- var strHtml = "";
- var strPublishSize = "&vPublishWidth=" + nWidth + "&vPublishHeight=" + nHeight;
-
- if (strScale == "show all")
- {
- nWidth = "100%";
- nHeight = "100%";
- }
-
- // If there are flashvars defined append a delimitor
- if (strFlashVars != "")
- {
- strFlashVars += "&";
- }
-
- strFlashVars += "vHtmlContainer=true";
- strFlashVars += "&TinCan=" + (g_bTinCan ? "true" : "false");
-
- if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0 && strWMode != "transparent")
- {
- strWMode = "opaque";
- }
- if (bCaptureRC && strWMode == "window")
- {
- strFlashVars += "&vCaptureRC=true";
- if(strWMode != "transparent")
- {
- strWMode = "opaque";
- }
- }
-
- // Whether or not we are loaded by an LMS
- strFlashVars += "&vLMSPresent=" + g_bLMSPresent;
-
- // Whether or not we are loaded by AO
- strFlashVars += "&vAOSupport=" + g_bAOSupport;
-
- // Set the publish width and height
- strFlashVars += strPublishSize;
-
- // Set the LMS Resume data
- if (g_bLMSPresent)
- {
- RetrieveStateData();
-
- strFlashVars += "&vResumeData=" + encodeURI(g_strResumeData);
- }
-
-
- var strLocProtocol = location.protocol;
-
- if (strLocProtocol.indexOf("file") >= 0)
- {
- strLocProtocol = "http:";
- }
-
-
- strHtml += "";
- strHtml += "
";
- strHtml += "
";
-
- document.write(strHtml);
-
- if (bCaptureRC)
- {
- AddRightClickListener();
- }
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Flash Comm
-////////////////////////////////////////////////////////////////////////////////
-
-function onBWEvent(command, args)
-{
- args = unescape(args);
- command = String(command);
-
- var arrArgs = args.split(g_strDelim);
-
- switch(command)
- {
- case "BW_UpdateViewStatus":
- g_oContentResults.strStatus = arrArgs[0];
- g_oContentResults.strType = arrArgs[1];
- break;
-
- case "BW_UpdateStatus":
- g_oContentResults.strStatus = arrArgs[0];
- g_oContentResults.nScore = arrArgs[1];
- // Min Score - arrArgs[2]
- // Max Score - arrArgs[3]
- g_oContentResults.nPassingScore = arrArgs[4];
- g_oContentResults.strType = arrArgs[5];
- g_oContentResults.dtmFinished = new Date();
- break;
-
- case "BW_StoreQuestionResult":
- var strQuizId = arrArgs[0];
- var strId = arrArgs[1];
- var strLMSId = arrArgs[2];
- var strType = arrArgs[3];
- var strCorrectResponse = arrArgs[4];
- var strUserResponse = arrArgs[5];
- var nLatency = arrArgs[6];
- var strStatus = arrArgs[7];
- var nPoints = arrArgs[8];
- var strCompletedTime = arrArgs[9];
- var nWeight = arrArgs[10];
- var nQuestionNumber = arrArgs[11];
- var strDescription = arrArgs[12];
- var strQuizName = arrArgs[13];
- var bTracked = (arrArgs[14] == "true");
-
- if (g_listQuizzes[strQuizId] == null)
- {
- g_listQuizzes[strQuizId] = new QuizData(strQuizId, strQuizName);
- }
-
- var oResult = new QuestionResults(strId, strLMSId, strType, strCorrectResponse, strUserResponse, nLatency, strStatus, nPoints, strCompletedTime, nWeight, nQuestionNumber, strDescription, bTracked);
-
- g_listQuizzes[strQuizId].AddQuestionResult(oResult);
- break;
-
- case "BW_UpdateQuizResults":
- var strQuizId = arrArgs[0];
- var strQuizName = arrArgs[1];
- var nPassScore = arrArgs[2];
- var nPassPercent = arrArgs[3];
- var nScore = arrArgs[4];
- var nPercentScore = arrArgs[5];
- if (g_listQuizzes[strQuizId] == null)
- {
- g_listQuizzes[strQuizId] = new QuizData(strQuizId, strQuizName);
- }
- g_listQuizzes[strQuizId].nPassingScore = nPassPercent;
- g_listQuizzes[strQuizId].nPtScore = nPercentScore;
- g_listQuizzes[strQuizId].dtmFinished = new Date();
- break;
- case "BW_PrintResults":
- g_oPrintOptions.bShowUserScore = (arrArgs[0] == "true");
- g_oPrintOptions.bShowPassingScore = (arrArgs[1] == "true");
- g_oPrintOptions.bShowShowPassFail = (arrArgs[2] == "true");
- g_oPrintOptions.bShowQuizReview = (arrArgs[3] == "true");
- g_oPrintOptions.strName = arrArgs[4];
- g_oPrintOptions.strMainQuizId = arrArgs[5];
- g_oPrintOptions.arrQuizzes = arrArgs[6].split(",");
- g_oPrintOptions.bSurvey = (arrArgs[7] == "true");
-
- window.open(GetBasePath() + g_strContentFolder + "/report.html", "Reports")
- break;
-
- case "BW_EmailResults":
- EmailResults(arrArgs[0] == "true", arrArgs[1] == "true", arrArgs[2] == "true", arrArgs[3] == "true", arrArgs[4], arrArgs[5], arrArgs[6].split(","));
- break;
-
- case "BW_UpdateWebObjects":
- UpdateWebObjects(parseInt(arrArgs[0]), parseInt(arrArgs[1]));
- break;
-
- case "BW_UpdateWebObjectPosition":
- UpdateWebObjectPosition(arrArgs[0], parseInt(arrArgs[1]), parseInt(arrArgs[2]), parseInt(arrArgs[3]), parseInt(arrArgs[4]));
- break;
-
- case "BW_OpenWebObject":
- OpenWebObject(arrArgs[0], arrArgs[1], parseInt(arrArgs[2]), parseInt(arrArgs[3]), parseInt(arrArgs[4]), parseInt(arrArgs[5]), parseInt(arrArgs[6]), parseInt(arrArgs[7]))
- break;
-
- case "BW_CloseWebObject":
- CloseWebObject(arrArgs[0]);
- break;
-
- case "BW_MailTo":
- MailTo(arrArgs[0]);
- break;
-
- case "BW_OpenUrl":
- OpenUrl(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], arrArgs[5], arrArgs[6], arrArgs[7], arrArgs[8], arrArgs[9], arrArgs[10], arrArgs[11]);
- break;
-
- case "BW_CloseAllWebObjects":
- CloseAllWebObjects(arrArgs[0]);
- break;
-
- case "BW_RestoreWebObjects":
- RestoreWebObjects();
- break;
-
- case "BW_ExecuteJavascript":
- ExecuteScript(arrArgs[0]);
- break;
-
- case "BW_OpenSwf":
- OpenSwfWindow(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], arrArgs[5], arrArgs[6], arrArgs[7], arrArgs[8]);
- break;
-
- case "BW_ResizeSwf":
- ResizeSwf(arrArgs[0], arrArgs[1]);
- break;
-
- case "BW_ClosePlayer":
- if (!g_bLMS)
- {
- if (FF)
- {
- setTimeout("CloseWindow()", 100);
- }
- else
- {
- CloseWindow();
- }
- }
- break;
-
- case "BW_OpenVideo":
- OpenVideo(arrArgs[0], arrArgs[1], arrArgs[2], arrArgs[3], arrArgs[4], arrArgs[5], arrArgs[6], arrArgs[7], arrArgs[8], arrArgs[9], arrArgs[10], arrArgs[11], arrArgs[12], arrArgs[13], arrArgs[14], arrArgs[15], arrArgs[16])
- break;
-
- case "BW_RestoreFocus":
- var oPlayer = GetPlayer();
-
- try
- {
- oPlayer.tabIndex = 0;
- oPlayer.focus();
- }
- catch (e)
- {
- }
- break;
-
- case "BW_TincanConfigError":
- TinCanConfigError();
- break;
-
- case "BW_SetWebObjectZIndex":
- SetWebObjectZIndex(arrArgs[0], arrArgs[1]);
- break;
-
- }
-
- if (g_bLMS)
- {
- lms_DoFSCommand(command, args);
- }
-
- if (g_bAOSupport)
- {
- AO_DoFSCommand(command, args);
- }
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Retrieve the player object
-////////////////////////////////////////////////////////////////////////////////
-function GetPlayer()
-{
- var player = null;
-
- if (IE)
- {
- player = document.getElementById("player");
- }
- else
- {
- player = document.getElementById("eplayer");
- }
-
- return player;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Close the player
-////////////////////////////////////////////////////////////////////////////////
-function CloseWindow()
-{
- top.window.close();
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Browser Resize
-////////////////////////////////////////////////////////////////////////////////
-var g_nWindowWidth = 0;
-var g_nWindowHeight = 0;
-var g_nSizeInterval = null;
-var g_nIntervalCount = 0;
-
-function ResizeBrowser(strBrowserSize)
-{
- switch (strBrowserSize)
- {
- case "fullscreen":
- ResizeFullScreen();
- break;
- case "optimal":
- ResizeOptimal();
- break;
- }
-}
-
-function ResizeFullScreen()
-{
- top.moveTo(0, 0);
- top.window.resizeTo(screen.availWidth, screen.availHeight);
-}
-
-
-function ResizeOptimal()
-{
- var nFrameWidth = 0;
- var nFrameHeight = 0;
- var nXPos = GetXPos();
- var nYPos = GetYPos();
- var bMove = false;
-
- g_nWindowWidth = g_nWidth + 30;
- g_nWindowHeight = g_nHeight + 30;
-
- if (screen.availWidth > g_nWindowWidth && screen.availHeight > g_nWindowHeight)
- {
- if (GetContentWidth() != g_nWidth || GetContentHeight() != g_nHeight)
- {
- // First we need to reposition the browser so that it can actually grow to the appropiate size.
- // When positioning, we will overestimate the browser height by 160 if possible to accomadate the toolbar and statusbar
- if (nXPos + g_nWindowWidth > screen.availWidth)
- {
- bMove = true;
- nXPos = screen.availWidth - g_nWindowWidth - 5;
- }
-
- if (nYPos + g_nWindowHeight + 160 > screen.availHeight)
- {
- bMove = true;
- nYPos = screen.availHeight - g_nWindowHeight - 165;
- }
-
- if (nXPos < 0)
- {
- nXPos = 0;
- }
- if (nYPos < 0)
- {
- nYPos = 0;
- }
-
- if (bMove)
- {
- top.window.moveTo(nXPos, nYPos);
- }
-
- // Resize the window so we know what the actual size is
- top.window.resizeTo(g_nWindowWidth, g_nWindowHeight);
-
- // Since we know the actual browser size, and we can query the cliet dim, lets get the frame dim
- nFrameWidth = (g_nWindowWidth) - GetContentWidth();
- nFrameHeight = (g_nWindowHeight) - GetContentHeight();
-
- // Not lets resize it to the correct size
- g_nWindowWidth = g_nWidth + nFrameWidth;
- g_nWindowHeight = g_nHeight + nFrameHeight;
-
- top.window.resizeTo(g_nWindowWidth, g_nWindowHeight);
-
- if (IE)
- {
- // ok, sometimes there is a third party toolbar that doesn't load until after we have finish resizing everything, so we will do a check for this (this only seems to effect IE, FF behaves correctly)
- g_nSizeInterval = setInterval(CheckSize, 500);
- }
- }
- }
- else
- {
- // If the screen isn't big enough, we are bailing and defaulting to Full Screen
- ResizeFullScreen();
- }
-}
-
-function CheckSize()
-{
- var nContentWidth = GetContentWidth();
- var nContentHeight = GetContentHeight();
- var nFrameWidth = 0;
- var nFrameHeight = 0;
-
- g_nIntervalCount++;
-
- if (nContentWidth != g_nWidth || nContentHeight != g_nHeight)
- {
- nFrameWidth = g_nWindowWidth - nContentWidth;
- nFrameHeight = g_nWindowHeight - nContentHeight;
-
- g_nWindowWidth = g_nWidth + nFrameWidth;
- g_nWindowHeight = g_nHeight + nFrameHeight;
-
- top.window.resizeTo(g_nWindowWidth, g_nWindowHeight);
- clearInterval(g_nSizeInterval);
- }
-
- if (g_nIntervalCount > 4)
- {
- clearInterval(g_nSizeInterval);
- }
-}
-
-function GetContentWidth()
-{
- var nResult = 0;
-
- if (IE || Safari3)
- {
- nResult = document.body.clientWidth;
- }
- else
- {
- nResult = window.innerWidth;
- }
-
- return nResult;
-}
-
-function GetContentHeight()
-{
- var nResult = 0;
-
- if (IE || Safari3)
- {
- nResult = nContentHeight = document.body.clientHeight;
- }
- else
- {
- nResult = nContentHeight = window.innerHeight;
- }
-
- return nResult
-}
-
-function GetXPos()
-{
- var nResult = 0;
-
- if (IE)
- {
- nResult = window.screenLeft;
- }
- else
- {
- nResult = window.screenX;
- }
-
- return nResult;
-}
-
-function GetYPos()
-{
- var nResult = 0;
-
- if (IE)
- {
- nResult = window.screenTop;
- }
- else
- {
- nResult = window.screenY;
- }
-
- return nResult;
-}
-
-function ResizeSwf(nWidth, nHeight)
-{
- var oPlayer = GetPlayer();
- oPlayer.width = nWidth;
- oPlayer.height = nHeight;
-
- var divPlayer = document.getElementById("divSwf");
- divPlayer.style.width = nWidth;
- divPlayer.style.height = nHeight
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// On Close Handling
-////////////////////////////////////////////////////////////////////////////////
-
-var g_bCloseExecuted = false;
-function DoOnClose(evt)
-{
- if (!g_bCloseExecuted)
- {
- g_bCloseExecuted = true;
-
- if (g_bLMS)
- {
- LMSUnload();
- }
-
- if (g_bAOSupport)
- {
- DoAOOnUnload();
- }
-
- if (g_bTinCan)
- {
- CheckTinCanComplete();
- }
- }
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// WebObject support
-////////////////////////////////////////////////////////////////////////////////
-var g_oWebObjects = new Object();
-var g_arrStoredWebObjects = new Array();
-
-function UpdateWebObjects(nSlideXOffset, nSlideYOffset)
-{
- for (var items in g_oWebObjects)
- {
- var oWebObject = g_oWebObjects[items];
- oWebObject.Position.SlideXOffset = nSlideXOffset;
- oWebObject.Position.SlideYOffset = nSlideYOffset;
- }
-
- // setTimeout("RepositionDivs()", 100);
- RepositionDivs();
-}
-
-function UpdateWebObjectPosition(strId, nXPos, nYPos, nWidth, nHeight)
-{
- var oWebObject = g_oWebObjects[strId];
-
- var oPosition = new Object();
- oPosition.XPos = nXPos;
- oPosition.YPos = nYPos;
- oPosition.Width = nWidth;
- oPosition.Height = nHeight;
- oPosition.SlideXOffset = oWebObject.Position.SlideXOffset;
- oPosition.SlideYOffset = oWebObject.Position.SlideYOffset;
- oWebObject.Position = oPosition;
-
- var oRect = GetDivRect(oPosition);
-
- oWebObject.Div.style.left = oRect.left + "px";
- oWebObject.Div.style.top = oRect.top + "px";
- oWebObject.Div.style.width = oRect.width + "px";
- oWebObject.Div.style.height = oRect.height + "px";
-
- oWebObject.contentWindow.scrollTop = nScrollPosition;
-}
-
-function OpenWebObject(strId, strUrl, nXPos, nYPos, nWidth, nHeight, nSlideXOffset, nSlideYOffset)
-{
- var oWebObject = g_oWebObjects[strId];
-
- if (!oWebObject)
- {
- oWebObject = new Object();
- oWebObject.strId = strId;
- oWebObject.strInitUrl = strUrl;
-
- // Create the DIV
- oWebObject.Div = document.createElement('div');
- oWebObject.Div.style.position = "absolute";
-
- // Create the iframe
- var oIFrame = document.createElement('iframe');
- oIFrame.frameBorder = "0";
- oIFrame.id = "div" + strId;
- oIFrame.style.border = "0";
- oIFrame.style.width = "100%";
- oIFrame.style.height = "100%";
- oIFrame.allowtransparency = "true";
-
- oWebObject.Div.appendChild(oIFrame);
- oWebObject.IFrame = oIFrame;
-
- // Append Child
- var oTarget = document.getElementById('divWebObjects');
- oTarget.appendChild(oWebObject.Div);
-
- g_oWebObjects[strId] = oWebObject;
- oIFrame.src = strUrl;
-
- setTimeout("RepositionDivs()", 100);
- }
- else
- {
- var oTarget = document.getElementById('divWebObjects');
- oTarget.removeChild(oWebObject.Div);
- oTarget.appendChild(oWebObject.Div);
- }
-
- oWebObject.Open = true;
-
- if (oWebObject.strUrl != strUrl || oWebObject.Div.style.visibility != "visible")
- {
- oWebObject.IFrame.src = strUrl;
-
- oWebObject.strUrl = strUrl;
-
- var oPosition = new Object();
- oPosition.XPos = nXPos;
- oPosition.YPos = nYPos;
- oPosition.Width = nWidth;
- oPosition.Height = nHeight;
- oPosition.SlideXOffset = nSlideXOffset;
- oPosition.SlideYOffset = nSlideYOffset;
- oWebObject.Position = oPosition;
-
- var oRect = GetDivRect(oPosition);
-
- oWebObject.Div.style.left = oRect.left + "px";
- oWebObject.Div.style.top = oRect.top + "px";
- oWebObject.Div.style.width = oRect.width + "px";
- oWebObject.Div.style.height = oRect.height + "px";
-
- oWebObject.Div.style.visibility = "visible";
- oWebObject.Div.style.zIndex = "-1";
- }
- else
- {
- var oPosition = new Object();
- oPosition.XPos = nXPos;
- oPosition.YPos = nYPos;
- oPosition.Width = nWidth;
- oPosition.Height = nHeight;
- oPosition.SlideXOffset = nSlideXOffset;
- oPosition.SlideYOffset = nSlideYOffset;
- oWebObject.Position = oPosition;
-
- var oRect = GetDivRect(oPosition);
-
- oWebObject.Div.style.left = oRect.left + "px";
- oWebObject.Div.style.top = oRect.top + "px";
- oWebObject.Div.style.width = oRect.width + "px";
- oWebObject.Div.style.height = oRect.height + "px";
- }
-}
-
-function RestoreWebObjects()
-{
- var oWebObject = null;
-
- for (var i = 0; i < g_arrStoredWebObjects.length; i++)
- {
- oWebObject = g_oWebObjects[g_arrStoredWebObjects[i]];
-
- OpenWebObject(oWebObject.strId, oWebObject.strInitUrl, oWebObject.Position.XPos, oWebObject.Position.YPos, oWebObject.Position.Width, oWebObject.Position.Height, oWebObject.Position.SlideXOffset, oWebObject.Position.SlideYOffset)
- }
-
- g_arrStoredWebObjects = new Array();
-}
-
-function CloseAllWebObjects(strStore)
-{
- var bStore = (strStore == "true");
-
- for (var items in g_oWebObjects)
- {
- var oWebObject = g_oWebObjects[items];
-
- if (bStore && oWebObject.Open)
- {
- g_arrStoredWebObjects.push(items);
- }
-
- CloseWebObject(items);
- }
-}
-
-function CloseWebObject(strId)
-{
- var oWebObject = g_oWebObjects[strId];
-
- oWebObject.Div.style.visibility = "hidden";
- oWebObject.IFrame.src = g_strContentFolder + "/blank.html";
- oWebObject.strUrl = "";
- oWebObject.Open = false;
-}
-
-function SetWebObjectZIndex(strId, zId)
-{
- var oWebObject = g_oWebObjects[strId];
- oWebObject.Div.style.zIndex = zId;
-}
-
-function GetDivRect(oPosition)
-{
- var oRect = new Object();
- var nClientWidth = GetContentWidth();
- var nClientHeight = GetContentHeight();
- var nLeftMargin = 0;
- var nSwfWidth = parseInt(g_nWidth);
- var nSwfHeight = parseInt(g_nHeight);
-
- if (g_strScale == "noscale")
- {
- nLeftMargin = (nClientWidth - nSwfWidth) / 2;
- nTopMargin = (nClientHeight - nSwfHeight) / 2;
-
- if (nLeftMargin < 0)
- {
- nLeftMargin = 0;
- }
- if (nTopMargin < 0)
- {
- nTopMargin = 0;
- }
-
- oRect.left = nLeftMargin + oPosition.XPos;
- oRect.top = nTopMargin + oPosition.YPos;
- oRect.width = oPosition.Width;
- oRect.height = oPosition.Height;
- }
- else
- {
- var nXScale = nClientWidth / nSwfWidth;
- var nYScale = nClientHeight / nSwfHeight;
- var nScale = nXScale;
- var bXScale = true;
- var nTopMargin = 0;
- var nLeftMargin = 0;
-
- if (nYScale < nScale)
- {
- nScale = nYScale;
- }
-
- nTopMargin = (nClientHeight - nSwfHeight * nScale) / 2;
- nLeftMargin = (nClientWidth - nSwfWidth * nScale) / 2;
-
- oRect.left = nLeftMargin + oPosition.XPos * nScale;
- oRect.top = nTopMargin + oPosition.YPos * nScale;
- oRect.width = Math.floor(oPosition.Width * nScale);
- oRect.height = Math.floor(oPosition.Height * nScale);
-
- }
-
- return oRect;
-}
-
-function RepositionDivs()
-{
- for (items in g_oWebObjects)
- {
- var oWebObject = g_oWebObjects[items];
-
- var oRect = GetDivRect(oWebObject.Position);
-
- oWebObject.Div.style.left = oRect.left + "px";
- oWebObject.Div.style.top = oRect.top + "px";
- oWebObject.Div.style.width = oRect.width + "px";
- oWebObject.Div.style.height = oRect.height + "px";
- }
-}
-
-window.onresize = RepositionDivs;
-
-////////////////////////////////////////////////////////////////////////////////
-// Open Url
-////////////////////////////////////////////////////////////////////////////////
-function OpenUrl(strUrl, strWindow, strWindowSize, strWidth, strHeight, strUseDefaultControls, strStatus, strToolbar, strLocation, strMenubar, strScrollbars, strResizable)
-{
- var bChrome = (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0);
- var nWndWidth = parseInt(strWidth);
- var nWndHeight = parseInt(strHeight);
- var bUseDefaultSize = (strWindowSize.toLowerCase() == "default");
- var bUseDefaultControls = (strUseDefaultControls.toLowerCase() == "true");
- var bFullScreen = (strWindowSize.toLowerCase() == "fullscreen");
-
- strUrl = ReplaceAll(strUrl, "%25", "?");
-
- var strOptions = "";
-
- if (!bUseDefaultControls && !bUseDefaultSize)
- {
- if (bFullScreen)
- {
- nWndWidth = screen.availWidth;
- nWndHeight = screen.availHeight;
-
- strOptions="left=0, top=0,";
- }
- else
- {
- if (nWndWidth > screen.availWidth)
- {
- nWndWidth = screen.availWidth;
- }
-
- if (nWndHeight > screen.availHeight)
- {
- nWndHeight = screen.availHeight;
- }
- }
-
- if (!bUseDefaultSize)
- {
- strOptions += "width=" + nWndWidth + ", ";
- strOptions += "height=" + nWndHeight + ", ";
- }
-
- if (bUseDefaultControls)
- {
- strToolbar = "true";
- strScrollbars = "true";
- strResizable = "true";
- strMenubar = "true";
- }
-
- if (bChrome)
- {
- if (bFullScreen || !bUseDefaultSize)
- {
- strMenubar = "false";
- }
- else
- {
- strOptions += "status=1, ";
- }
- }
-
- strOptions += "toolbar=" + ((strToolbar.toLowerCase() == "true") ? 1 : 0);
- strOptions += ", scrollbars=" + ((strScrollbars.toLowerCase() == "true") ? 1 : 0);
- strOptions += ", resizable=" + ((strResizable.toLowerCase() == "true") ? 1 : 0);
- strOptions += ", menubar=" + ((strMenubar.toLowerCase() == "true") ? 1 : 0);
- strOptions += ", location=" + ((strLocation.toLowerCase() == "true") ? 1 : 0);
- }
-
- g_wndLast = window.open(strUrl, strWindow, strOptions);
-
-}
-
-function ReplaceAll(strTarget, strChar, strNew)
-{
- var arrRemoved = strTarget.split(strChar);
-
- return arrRemoved.join(strNew);
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Open Swf Window
-////////////////////////////////////////////////////////////////////////////////
-
-var g_oSwfInfo = new Object();
-var g_wndSwf;
-var g_wndLast;
-
-function OpenSwfWindow(strFileName, nWidth, nHeight, strStatus, strToolbar, strLocation, strMenubar, strScrollbars, strResizable)
-{
- var strScroll = "0";
- g_oSwfInfo.strContentFolder = g_strContentFolder;
- g_oSwfInfo.strFileName = strFileName;
- g_oSwfInfo.nWidth = parseInt(nWidth);
- g_oSwfInfo.nHeight = parseInt(nHeight);
-
- if (g_oSwfInfo.nWidth > screen.availWidth)
- {
- g_oSwfInfo.nWidth = screen.availWidth;
- strScroll = "1";
- }
-
- if (g_oSwfInfo.nHeight > screen.availHeight)
- {
- g_oSwfInfo.nHeight = screen.availHeight;
- strScroll = "1";
- }
-
- var strSearch = "";
- strSearch += "path=" + g_strContentFolder + "&";
- strSearch += "file=" + strFileName + "&";
- strSearch += "w=" + nWidth + "&";
- strSearch += "h=" + nHeight;
-
- var strOptions = "";
- strOptions += "width=" + g_oSwfInfo.nWidth;
- strOptions += ", height=" + g_oSwfInfo.nHeight;
- strOptions += ", status=" + ((strStatus.toLowerCase() == "true") || true ? 1 : 0);
- strOptions += ", toolbar=" + ((strToolbar.toLowerCase() == "true") || true ? 1 : 0);
- strOptions += ", location=" + ((strLocation.toLowerCase() == "true") || true ? 1 : 0);
- strOptions += ", menubar=" + ((strMenubar.toLowerCase() == "true") || true ? 1 : 0);
- strOptions += ", scrollbars=" + ((strScrollbars.toLowerCase() == "true") || true ? 1 : 0);
- strOptions += ", resizable=" + ((strResizable.toLowerCase() == "true") || true ? 1 : 0);
-
- if (g_wndSwf)
- {
- try
- {
- g_wndSwf.close()
- }
- catch (e)
- {
- }
- }
-
- g_wndSwf = window.open(GetBasePath() + g_strContentFolder + "/swf.html?" + strSearch, "SwfWnd", strOptions);
- g_wndLast = g_wndSwf;
-}
-
-function GetBasePath()
-{
- var strFullPath = document.location.href;
-
- var nPosHash = strFullPath.indexOf("#");
-
- if (nPosHash > 0)
- {
- strFullPath = strFullPath.substring(0, nPosHash);
- }
-
- var nPos1 = -1;
- var nPos2 = -1;
-
- nPos1 = strFullPath.lastIndexOf("\\");
- nPos2 = strFullPath.lastIndexOf("/");
-
- if (nPos2 > nPos1)
- {
- nPos1 = nPos2;
- }
-
- if (nPos1 >= 0)
- {
- strFullPath = strFullPath.substring(0, nPos1 + 1);
- }
-
- return(strFullPath);
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Video
-////////////////////////////////////////////////////////////////////////////////
-function OpenVideo(strUrl, strWndWidth, strWndHeight, strVidWidth, strVidHeight, strDuration, strPlaybar, strVolume, strAutoPlay,
- strStatus, strToolbar, strLocation, strMenubar, strScrollbars, strResizable, strType, strASVersion)
-{
- var nWndWidth = parseInt(strWndWidth);
- var nWndHeight = parseInt(strWndHeight);
-
- var strSearch = "exUrl=" + strUrl +
- "&exWndWidth=" + strWndWidth +
- "&exWndHeight=" + strWndHeight +
- "&exWidth=" + strVidWidth +
- "&exHeight=" + strVidHeight +
- "&exDuration=" + strDuration +
- "&exPlaybar=" + strPlaybar +
- "&exVolume=" + strVolume +
- "&exAutoPlay=" + strAutoPlay +
- "&exType=" + strType +
- "&exASVersion=" + strASVersion;
-
- if (nWndWidth > screen.availWidth)
- {
- nWndWidth = screen.availWidth;
- }
-
- if (nWndHeight > screen.availHeight)
- {
- nWndHeight = screen.availHeight;
- }
- // Force chrome to open in a new window
- if (navigator.userAgent.toLowerCase().indexOf("chrome") >= 0)
- {
- strMenubar = "false";
- }
-
-
- var strOptions = "";
- strOptions += "width=" + nWndWidth;
- strOptions += ", height=" + nWndHeight;
- strOptions += ", status=" + ((strStatus.toLowerCase() == "true") ? 1 : 0);
- strOptions += ", toolbar=" + ((strToolbar.toLowerCase() == "true") ? 1 : 0);
- strOptions += ", menubar=" + ((strMenubar.toLowerCase() == "true") ? 1 : 0);
- strOptions += ", scrollbars=" + ((strScrollbars.toLowerCase() == "true") ? 1 : 0);
- strOptions += ", resizable=" + ((strResizable.toLowerCase() == "true") ? 1 : 0);
-
- if (g_wndSwf)
- {
- try
- {
- g_wndSwf.close()
- }
- catch (e)
- {
- }
- }
-
- var nXPos = 0;
- var nYPos = 0;
- var nWidth = screen.availWidth;
- var nHeight = screen.availHeight;
-
- if (window.screenX != undefined)
- {
- nXPos = window.screenX;
- nYPos = window.screenY;
- nWidth = window.innerWidth;
- nHeight = window.innerHeight;
- }
- else if (window.screenLeft != undefined)
- {
- nXPos = window.screenLeft;
- nYPos = window.screenTop;
- nWidth = document.body.offsetWidth;
- nHeight = document.body.offsetHeight;
- }
-
- strOptions += ", left=" + (nXPos + (nWidth - nWndWidth)/2);
- strOptions += ", screenX=" + (nXPos + (nWidth - nWndWidth)/2);
- strOptions += ", top=" + (nYPos + (nHeight - nWndHeight)/2);
- strOptions += ", screenY=" + (nYPos + (nHeight - nWndHeight)/2);
-
- g_wndSwf = window.open(GetBasePath() + g_strContentFolder + "/VideoPlayer.html?" + strSearch, "Video", strOptions);
- g_wndLast = g_wndSwf;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Right click support
-////////////////////////////////////////////////////////////////////////////////
-
-var g_bSetCapture = false;
-
-function AddRightClickListener()
-{
- if (IE)
- {
- divSwf.onmousedown = IEMouseDown;
- divSwf.onmouseup = IEMouseUp
- divSwf.oncontextmenu = DivContextMenu;
- }
- else
- {
- window.addEventListener('mousedown', NSMouseDown(), true);
- window.addEventListener('mouseup', NSMouseUp(), true);
- }
-}
-
-function IEMouseDown(evt)
-{
- if (event.button == 2)
- {
- if (NotifyRightDown("player"))
- {
- divSwf.setCapture();
- g_bSetCapture = true;
- }
- }
-}
-
-function IEMouseUp()
-{
- if (event.button == 2)
- {
- NotifyRightUp("player");
- }
-
- if (g_bSetCapture)
- {
- g_bSetCapture = false;
- divSwf.releaseCapture();
- }
-}
-
-function DivContextMenu()
-{
- return false;
-}
-
-
-function NSMouseDown()
-{
- return function(evt)
- {
- if (evt.button == 2)
- {
- if (NotifyRightDown(evt.target.id))
- {
- evt.stopPropagation();
- evt.preventDefault();
- }
- }
- }
-}
-
-function NSMouseUp()
-{
- return function(evt)
- {
- if (evt.button == 2)
- {
- if (NotifyRightUp(evt.target.id))
- {
- evt.stopPropagation();
- evt.preventDefault();
- }
- }
- }
-}
-
-function NotifyRightDown(strId)
-{
- var bResult = false;
-
- if (strId == "player" || strId == "eplayer")
- {
- var oPlayer = GetPlayer();
-
- bResult = oPlayer.NotifyRightMouseDown();
- }
-
- return bResult;
-}
-
-function NotifyRightUp(strId)
-{
- var bResult = false;
-
- if (strId == "player" || strId == "eplayer")
- {
- var oPlayer = GetPlayer();
- bReuslt = oPlayer.NotifyRightMouseUp();
- }
-
- return bResult;
-}
-
-function MailTo(strAddress)
-{
- document.location = "mailto:" + strAddress;
-}
-
-function EmailResults(bShowUserScore, bShowPassingScore, bShowPassFail, bShowQuizReview, strAddress, strMainQuizId, arrQuizzes)
-{
- var strNewLine = "\n";
- if (IE)
- {
- strNewLine = "%0D%0A";
- }
- var strTitle = g_listQuizzes[strMainQuizId].strQuizName;
- var g_strSubject = "Quiz Results: " + strTitle;
- var strQuizResults = "";
- var strMainHeader = " " + strTitle + strNewLine + "Status, Score, Passing Score, Max Score, Min Score, Time" + strNewLine;
- var strLineHeader = strNewLine + strNewLine + "Date, Time, Score, Quiz Name, Interaction ID, Interaction Type, Student Response, Result, Weight, Latency" + strNewLine;
- var strMainData = strNewLine;
- var strLineData = strNewLine;
-
- var oQuizResult = g_listQuizzes[strMainQuizId];
- // Status
- var nPtScore = Number(oQuizResult.nPtScore);
- var nPassScore = Number(oQuizResult.nPassingScore);
- var strStatus = (nPtScore >= nPassScore) ? "Pass" : "Fail";
- strMainData += strStatus
- strMainData += ",";
-
- // Score
- strMainData += nPtScore + ",";
-
- // Passing Score
- strMainData += nPassScore + ",";
-
- // Max Score
- strMainData += 100 + ",";
-
- // Min Score
- strMainData += 0 + ",";
-
- // Time
- strMainData += GetTime(oQuizResult.dtmFinished);
-
- // for (strQuizId in g_listQuizzes)
- for (var j = 0; j < arrQuizzes.length; j++)
- {
- strQuizId = arrQuizzes[j];
- oQuizData = g_listQuizzes[strQuizId];
-
- var arrQuestions = oQuizData.arrQuestions;
-
- for (var i = 0; i < arrQuestions.length; i++)
- {
- //Date
- strLineData += GetDate(new Date()) + ",";
-
- // Time
- strLineData += arrQuestions[i].strCompletedTime + ",";
-
- // Score
- strLineData += arrQuestions[i].nPoints + ",";
-
- // Quiz Name
- strLineData += oQuizData.strQuizName + ",";
-
- // Objective Id
- strLineData += arrQuestions[i].strLMSId + ",";
-
- // Interaction Type
- strLineData += arrQuestions[i].strType + ",";
-
- // Student Response
- var strResponse = arrQuestions[i].strUserResponse;
- strResponse = ReplaceAll(strResponse, "'", "%27");
- strLineData += strResponse + ",";
-
- // Result
- strLineData += arrQuestions[i].strStatus + ",";
-
- // Weight
- strLineData += arrQuestions[i].nWeight + ",";
-
- // Latency
- strLineData += arrQuestions[i].nLatency;
-
- strLineData += strNewLine;
- }
- }
-
- strQuizResults = strMainHeader + strMainData + strLineHeader + strLineData;
-
- var sHTML = "";
- if (IE)
- {
- sHTML += '';
- document.getElementById("divEmail").innerHTML = sHTML;
- document.getElementById("formQuiz").submit();
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Get Time
-////////////////////////////////////////////////////////////////////////////////
-function GetTime(dtmDate)
-{
- var strResult = "";
- var nHours = dtmDate.getHours();
- var strAM = "am";
- var nMinutes = dtmDate.getMinutes();
- var strMinutes = "" + nMinutes;
- var nSeconds = dtmDate.getSeconds();
- var strSeconds = "" + nSeconds;
-
- if (nMinutes < 10)
- {
- strMinutes = "0" + nMinutes;
- }
-
- if (nSeconds < 10)
- {
- strSeconds = "0" + nSeconds;
- }
-
- strResult = nHours + ":" + strMinutes + ":" + strSeconds;
-
- return strResult;
-}
-
-function GetDate(dtmDate)
-{
- var strResult = "";
-
- strResult = (dtmDate.getMonth() + 1) + "/" + dtmDate.getDate() + "/" + dtmDate.getFullYear();
-
- return strResult;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// Results data
-////////////////////////////////////////////////////////////////////////////////
-
-function QuizData(strQuizId, strQuizName)
-{
- this.strQuizId = strQuizId;
- this.strQuizName = strQuizName;
- this.arrQuestions = new Array();
-
- this.dtmFinished = new Date();
- this.strStatus = "";
- this.nScore = 0;
- this.nPassingScore = 80;
- this.nMinScore = 0;
- this.nMaxScore = 100;
- this.nPtScore = 0;
- this.nPtMax = 100;
-
- this.AddQuestionResult = function(oQuestionResult)
- {
- var bFound = false;
-
- for (var i = 0; i < this.arrQuestions.length; i++)
- {
- if (this.arrQuestions[i].nQuestionNumber == oQuestionResult.nQuestionNumber)
- {
- this.arrQuestions[i] = oQuestionResult;
- bFound = true;
- }
- }
-
- if (!bFound)
- {
- this.arrQuestions.push(oQuestionResult);
- }
- }
-
-}
-
-function ContentResults()
-{
- this.dtmFinished = new Date();
- this.nPassingScore = 80;
- this.nScore = 0;
- this.strStatus = "incomplete";
- this.strType = "quiz";
-}
-
-function QuestionResults(strId, strLMSId, strType, strCorrectResponse, strUserResponse, nLatency, strStatus, nPoints, strCompletedTime, nWeight, nQuestionNumber, strDescription, bTracked)
-{
- this.strId = strId;
- this.strLMSId = strLMSId;
- this.strType = strType;
- this.strCorrectResponse = strCorrectResponse;
- this.strUserResponse = strUserResponse;
- this.nLatency = nLatency;
- this.strStatus = strStatus;
- this.nPoints = nPoints;
- this.strCompletedTime = strCompletedTime;
- this.nWeight = nWeight;
- this.nQuestionNumber = nQuestionNumber;
- this.strDescription = strDescription;
- this.bTracked = bTracked;
-
-/* this.AlertResults = function()
- {
- var strTemp = "Id: " + strId + "\nType: " + strType + "\nCorrectResponse: " + strCorrectResponse + "\nUserResponse: " + strUserResponse + "\nLatency: " + nLatency + "\nStatus: " + strStatus + "\nPoints: " + nPoints + "\nCompletedTime: " + strCompletedTime + "\nWeight: " + nWeight + "\nQuestionNumber: " + nQuestionNumber + "\nDescription: " + strDescription;
- alert(strTemp);
- }*/
-}
-
-/****************************************************/
-// Tin Can
-/****************************************************/
-var TYPE_RESUME_SAVE = 1;
-var TYPE_RESUME_RESTORE = 2;
-var TYPE_TRACKING = 3;
-
-var g_bWaitingTinCanResponse = false;
-var g_arrTinCanMsgQueue = new Array();
-var g_oCurrentRequest = null;
-var g_bStopPosting = false;
-var g_bFatalError = false;
-
-function GetTinCanData()
-{
- return decodeURIComponent(g_strQuery);
-}
-
-function SendTinCanRequest(nMessageType, strMethod, strData, strUrl, arrHeaders)
-{
- var oTinCanRequest = new Object();
- oTinCanRequest.MessageType = nMessageType;
- oTinCanRequest.Method = strMethod;
- oTinCanRequest.Data = unescape(strData);
- oTinCanRequest.Url = strUrl;
- oTinCanRequest.Headers = arrHeaders;
-
- SendRequest(oTinCanRequest)
-}
-
-function SendRequest(oTinCanRequest)
-{
- if (g_bWaitingTinCanResponse || g_bStopPosting)
- {
- g_arrTinCanMsgQueue.push(oTinCanRequest);
- }
- else
- {
- g_oCurrentRequest = oTinCanRequest;
- PostAsyncRequest(oTinCanRequest.MessageType, oTinCanRequest.Method, oTinCanRequest.Data, oTinCanRequest.Url, oTinCanRequest.Headers)
- }
-}
-
-function PostAsyncRequest(nMessageType, strMethod, strData, strUrl, arrHeaders)
-{
- try
- {
- if (UseXDomainRequest(strUrl))
- {
- PostXDomainRequest(nMessageType, strMethod, strData, strUrl, arrHeaders, false);
- }
- else
- {
- PostXmlHttp(nMessageType, strMethod, strData, strUrl, arrHeaders);
- }
- }
- catch (error)
- {
- if (confirm("Unable to connect to server. Please verify that you are connected to the internet. Retry?"))
- {
- g_bWaitingTinCanResponse = false;
- SendRequest(g_oCurrentRequest);
- return;
- }
- else
- {
- g_bStopPosting = true;
- g_bFatalError = true;
- GetPlayer().FatalTinCanError(0);
- }
- }
-}
-
-function PostXDomainRequest(nMessageType, strMethod, strData, strUrl, arrHeaders, bSync)
-{
- var xDomain = new XDomainRequest();
- xDomain.open(strMethod, strUrl);
-
- xDomain.MessageType = nMessageType;
- xDomain.status = 0;
-
- xDomain.onload = function()
- {
- xDomain.status = 200;
-
- if (!bSync)
- {
- OnSendComplete(xDomain);
- }
- }
-
- xDomain.onerror = function()
- {
- xDomain.status = -1;
-
- if (!bSync)
- {
- OnSendError(xDomain);
- }
- }
-
- xDomain.send(strData);
-
- if (bSync)
- {
- var nStartTime = (new Date).getTime();
-
- while ((new Date).getTime() - nStartTime < 5000 && xDomain.status == 0)
- {
- var xmlHttp = new XMLHttpRequest();
- xmlHttp.open("GET", window.location + "?" + (new Date).getTime(), false);
- xmlHttp.send(null);
- }
- }
-
- return xDomain.status;
-}
-
-function PostXmlHttp(nMessageType, strMethod, strData, strUrl, arrHeaders)
-{
- var xmlHttp = CreateXmlHttp();
-
- if (xmlHttp != null)
- {
- g_bWaitingTinCanResponse = true;
-
- xmlHttp.MessageType = nMessageType;
- xmlHttp.onreadystatechange = function()
- {
- if (xmlHttp.readyState == 4)
- {
- if (xmlHttp.status >= 400 && !(IE && xmlHttp.status == 1223))
- {
- OnSendError(xmlHttp);
- }
- else
- {
- OnSendComplete(xmlHttp);
- }
- }
- }
-
- xmlHttp.open(strMethod, strUrl, true);
-
- if (arrHeaders != null && arrHeaders.length > 0)
- {
- for (var i = 0; i < arrHeaders.length; i++)
- {
- xmlHttp.setRequestHeader(arrHeaders[i].name, arrHeaders[i].value);
- }
- }
-
- xmlHttp.send(strData);
-
- }
-}
-
-function OnSendComplete(commObj)
-{
- if (commObj.MessageType == TYPE_RESUME_RESTORE)
- {
- GetPlayer().SetTinCanResume(commObj.responseText);
- }
-
- g_bWaitingTinCanResponse = false;
- g_oCurrentRequest = null;
-
- if (g_arrTinCanMsgQueue.length > 0 && !g_bStopPosting)
- {
- SendRequest(g_arrTinCanMsgQueue.shift());
- }
-}
-
-function OnSendError(commObj)
-{
- if (commObj.MessageType == TYPE_RESUME_RESTORE)
- {
- GetPlayer().SetTinCanResume("");
-
- g_bWaitingTinCanResponse = false;
- g_oCurrentRequest = null;
-
- if (g_arrTinCanMsgQueue.length > 0 && !g_bStopPosting)
- {
- SendRequest(g_arrTinCanMsgQueue.shift());
- }
- }
- else
- {
- if (confirm("Unable to connect to server. Please verify that you are connected to the internet. Retry? "))
- {
- g_bWaitingTinCanResponse = false;
- SendRequest(g_oCurrentRequest);
- }
- else
- {
- g_bStopPosting = true;
- g_bFatalError = true;
- if (commObj.status)
- {
- GetPlayer().FatalTinCanError(commObj.status);
- }
- }
- }
-}
-
-function CheckTinCanComplete()
-{
- g_bStopPosting = true;
-
- while (g_arrTinCanMsgQueue.length > 0)
- {
- var oRequest = g_arrTinCanMsgQueue.shift();
-
- PostSyncRequest(oRequest.Method, oRequest.Data, oRequest.Url, oRequest.Headers)
- }
-}
-
-function CreateXmlHttp()
-{
- var xmlHttp = null;
- var arrCtrlName = new Array("MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0", "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp", "Microsoft.XMLHttp");
- var nIndex = 0;
-
- if (window.XMLHttpRequest)
- {
- try
- {
- xmlHttp = new XMLHttpRequest();
- }
- catch (e)
- {
- xmlHttp = null;
- }
- }
-
- if (xmlHttp == null && window.ActiveXObject)
- {
- // Use the ActiveX Control
- while (xmlHttp == null && nIndex < arrCtrlName.length)
- {
- try
- {
- xmlHttp = new ActiveXObject(arrCtrlName[nIndex]);
- }
- catch (e)
- {
- xmlHttp = null;
- }
-
- nIndex++;
- }
-
- }
-
- return xmlHttp;
-}
-
-function PostSyncRequest(strMethod, strData, strUrl, arrHeaders)
-{
- try
- {
- var nStatus = 0;
-
- if (UseXDomainRequest(strUrl))
- {
- nStatus = PostXDomainRequest(0, strMethod, strData, strUrl, arrHeaders, true);
- }
- else
- {
- nStatus = PostSyncXmlHttp(strMethod, strData, strUrl, arrHeaders);
- }
-
- if (nStatus != 200)
- {
- if(confirm("Could not save the result data. You may need to login again. Retry?"))
- {
- PostSyncRequest(strMethod, strData, strUrl, arrHeaders);
- return;
- }
- else
- {
- g_bFatalError = true;
- }
- }
- }
- catch (error)
- {
- if (confirm("Unable to connect to server. Please verify that you are connected to the internet. Retry?"))
- {
- PostSyncRequest(strMethod, strData, strUrl, arrHeaders);
- return;
- }
- else
- {
- g_bFatalError = true;
- }
- }
-}
-
-function PostSyncXmlHttp(strMethod, strData, strUrl, arrHeaders)
-{
- var xmlHttp = CreateXmlHttp();
- var nStatus = 200;
-
- if (xmlHttp != null)
- {
- xmlHttp.open(strMethod, strUrl, false);
-
- for (var i = 0; i < arrHeaders.length; i++)
- {
- xmlHttp.setRequestHeader(arrHeaders[i].name, arrHeaders[i].value);
- }
-
- xmlHttp.send(strData);
-
- if(xmlHttp.status >= 400 && !(IE && xmlHttp.status == 1223))
- {
- nStatus = -1;
- }
- }
-
- return nStatus;
-}
-
-function UseXDomainRequest(strUrl)
-{
- var bResult = false;
-
- if (IE)
- {
- var xmlHttp = CreateXmlHttp();
- var anchorDest = (document.createElement("a"));
- var anchorSource = (document.createElement("a"));
- anchorDest.href = strUrl;
- anchorSource.href = window.location;
-
- bResult = (anchorDest.hostname != anchorSource.hostname || anchorDest.protocol != anchorSource.protocol || anchorDest.port != anchorSource.port);
- }
-
- return bResult;
-}
diff --git a/examples/AQuizmaker SCORM12/quiz_content/slides/6C2Lo4hVEXI.swf b/examples/AQuizmaker SCORM12/quiz_content/slides/6C2Lo4hVEXI.swf
deleted file mode 100755
index c8de135..0000000
Binary files a/examples/AQuizmaker SCORM12/quiz_content/slides/6C2Lo4hVEXI.swf and /dev/null differ
diff --git a/examples/AQuizmaker SCORM12/quiz_content/slides/6EUtqLvLtwW.swf b/examples/AQuizmaker SCORM12/quiz_content/slides/6EUtqLvLtwW.swf
deleted file mode 100755
index bbd6c63..0000000
Binary files a/examples/AQuizmaker SCORM12/quiz_content/slides/6EUtqLvLtwW.swf and /dev/null differ
diff --git a/examples/AQuizmaker SCORM12/quiz_content/thumbnail.jpg b/examples/AQuizmaker SCORM12/quiz_content/thumbnail.jpg
deleted file mode 100755
index dcdf15b..0000000
Binary files a/examples/AQuizmaker SCORM12/quiz_content/thumbnail.jpg and /dev/null differ
diff --git a/examples/AQuizmaker SCORM12/quiz_content/user.js b/examples/AQuizmaker SCORM12/quiz_content/user.js
deleted file mode 100755
index dabdbe2..0000000
--- a/examples/AQuizmaker SCORM12/quiz_content/user.js
+++ /dev/null
@@ -1 +0,0 @@
-// User defined code goes here
\ No newline at end of file
diff --git a/examples/AQuizmaker SCORM12/quiz_html5.html b/examples/AQuizmaker SCORM12/quiz_html5.html
deleted file mode 100755
index bf1d2da..0000000
--- a/examples/AQuizmaker SCORM12/quiz_html5.html
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
-
-
- QuizRedesTorreTCPIP
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/examples/AQuizmaker SCORM12/quiz_unsupported.html b/examples/AQuizmaker SCORM12/quiz_unsupported.html
deleted file mode 100755
index 173f5b0..0000000
--- a/examples/AQuizmaker SCORM12/quiz_unsupported.html
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
- Unsupported Browser
-
- The HTML5 player does not currently support this web browser.
-
-
- Click here to view this project using the standard Flash player.
-
-
-
-
diff --git a/imsmanifest.xml b/imsmanifest.xml
new file mode 100755
index 0000000..4495bb0
--- /dev/null
+++ b/imsmanifest.xml
@@ -0,0 +1,71 @@
+
+
+
+ ADL SCORM
+ 2004 4th Edition
+
+
+
+
+ text/html
+
+
+
+
+ browser
+
+
+
+ any
+
+
+
+
+ HTML5-compliant web browser
+ CODEditor v0.0.3 (http://github.com/agordillo/CodeEditorApp)
+
+
+
+
+
+ active
+
+
+
+ very high
+
+
+
+ author
+
+
+
+ higher education
+
+
+
+
+
+ no
+
+
+
+ License: 'Creative Commons Attribution-Non commercial'. For additional information or doubts regarding copyright, distribution and reproduction, visit https://github.com/agordillo/CodeEditorApp.
+
+
+
+
+
+
+ CODEditor
+ -
+ CODEditor
+
+
+
+
+
+
+
+
+
diff --git a/releases/CodeEditorAppViewer_v2.0.zip b/releases/CodeEditorAppViewer_v0.0.2.zip
similarity index 100%
rename from releases/CodeEditorAppViewer_v2.0.zip
rename to releases/CodeEditorAppViewer_v0.0.2.zip
diff --git a/releases/CodeEditorApp_v2.0.zip b/releases/CodeEditorApp_v0.0.2.zip
similarity index 100%
rename from releases/CodeEditorApp_v2.0.zip
rename to releases/CodeEditorApp_v0.0.2.zip
diff --git a/releases/CodeEditorApp_v0.0.3.zip b/releases/CodeEditorApp_v0.0.3.zip
new file mode 100644
index 0000000..8a289bc
Binary files /dev/null and b/releases/CodeEditorApp_v0.0.3.zip differ