var TSC=TSC||{};TSC.textSanitizer=(function(){return{htmlEncode:function(b,a){if(b){if(a){return b.replace(/&/g,"&").replace(/(<|&lt;)/g,"<").replace(/(>|&gt;)/g,">").replace(/&amp;/g,"&")}else{return b.replace(/&/g,"&").replace(/("|&quot;)/g,""").replace(/(<|&lt;)/g,"<").replace(/(>|&gt;)/g,">").replace(/&amp;/g,"&")}}else{return b}}}}());var TSC=TSC||{};TSC.languageCodes=(function(){var c="en-US";var a="de-DE";var b="ja-JP";return{ENGLISH:c,GERMAN:a,JAPANESE:b,ENU:c,DEU:a,JPN:b,isValid:function(d){if(d!==c&&d!==a&&d!==b){return false}else{return true}}}}());var TSC=TSC||{};TSC.localizationStrings=(function(){var d=TSC.languageCodes;var c="default";var a=c;var f;var e="";var b={};b.xmpError={};b.xmpError[d.ENGLISH]="There seems to be a problem accessing certain features of this video. Please contact the video Author.";b.xmpError[d.GERMAN]="Einige Merkmale dieses Videos sind offenbar nicht zugänglich. Bitte setzen Sie sich mit dem Autor des Videos in Verbindung.";b.xmpError[d.JAPANESE]="このビデオの特定機能にアクセスする時に問題が発生したようです。ビデオの作成者に連絡してください。";b.xmpSecurity={};b.xmpSecurity[d.ENGLISH]="Certain features in your video are currently disabled due to Local Network Security. These features work correctly when the video is played from a Website or Server.";b.xmpSecurity[d.GERMAN]="Einige Merkmale Ihrem Video sind zurzeit aufgrund der Sicherheitseinstellungen im lokalen Netzwerk deaktiviert. Diese Merkmale funktionieren wie vorgesehen, wenn das Video über eine Website oder einen Server wiedergegeben wird.";b.xmpSecurity[d.JAPANESE]="ローカル ネットワークのセキュリティのために、ビデオの特定機能が現在無効になっています。これらの機能は、Web サイトまたはサーバーからビデオを再生すると正しく動作します。";b.videoNotSupported={};b.videoNotSupported[d.ENGLISH]="Your browser cannot play this video.";b.videoNotSupported[d.GERMAN]="Ihr Browser kann dieses Video nicht wiedergeben.";b.videoNotSupported[d.JAPANESE]="お使いのブラウザではこのビデオを再生できません。";b.videoNotSupportedUseFlash={};b.videoNotSupportedUseFlash[d.ENGLISH]="This browser does not support the video format needed for playback. Please install the Flash Player or use a different browser.";b.videoNotSupportedUseFlash[d.GERMAN]="Dieser Browser unterstützt das zur Wiedergabe erforderliche Videoformat nicht. Bitte installieren Sie den Flash Player oder verwenden Sie einen anderen Browser.";b.videoNotSupportedUseFlash[d.JAPANESE]="このブラウザは、再生に必要なビデオ形式をサポートしていません。最新版のFlash Player をインストールするか、別のブラウザを使用してください。";b.noWebMSupport={};b.noWebMSupport[d.ENGLISH]="This browser does not support WebM video.";b.noWebMSupport[d.GERMAN]="Dieser Browser bietet keine WebM-Video-Unterstützung.";b.noWebMSupport[d.JAPANESE]="このブラウザは WebM ビデオをサポートしていません。";b.playlistLocalError={};b.playlistLocalError[d.ENGLISH]="Videos in a Playlist cannot be viewed from a local drive. The videos will play correctly from a Playlist hosted on a Website or Server.";b.playlistLocalError[d.GERMAN]="Videos in einer Wiedergabeliste können nicht von einem lokalen Laufwerk aus abgespielt werden. Die Videos werden über eine auf einer Website oder einem Server gehostete Wiedergabeliste korrekt abgespielt.";b.playlistLocalError[d.JAPANESE]="プレイリストのビデオはローカル ドライブから再生できません。Web サイトまたはサーバーでホストされているプレイリストからは、ビデオが正しく再生されます。";b.search={};b.search[d.ENGLISH]="Search...";b.search[d.GERMAN]="Suchen…";b.search[d.JAPANESE]="検索…";b.videoFailedToLoad={};b.videoFailedToLoad[d.ENGLISH]="This video failed to load completely.";b.videoFailedToLoad[d.GERMAN]="Dieses Video wurde nicht vollständig geladen.";b.videoFailedToLoad[d.JAPANESE]="このビデオを正しく読み込めませんでした。";b.videoFailedToLoadUseFlash={};b.videoFailedToLoadUseFlash[d.ENGLISH]="This video failed to load completely. You may need to try another browser or use the Flash plugin.";b.videoFailedToLoadUseFlash[d.GERMAN]="Dieses Video wurde nicht vollständig geladen. Vielleicht müssen Sie einen anderen Browser ausprobieren oder das Flash-Plug-In verwenden.";b.videoFailedToLoadUseFlash[d.JAPANESE]="このビデオを正しく読み込めませんでした。別のブラウザを試すか、Flash プラグインを使用する必要があります。";b.searchDisabledFullScreen={};b.searchDisabledFullScreen[d.ENGLISH]="Search is disabled in fullscreen mode.";b.searchDisabledFullScreen[d.GERMAN]="Die Suche ist im Vollbildmodus deaktiviert.";b.searchDisabledFullScreen[d.JAPANESE]="フル画面モードでは検索機能は無効です。";b.videoLoading={};b.videoLoading[d.ENGLISH]="Please wait... the video is loading.";b.videoLoading[d.GERMAN]="Bitte warten... Das Video wird geladen.";b.videoLoading[d.JAPANESE]="お待ちください... ビデオを読み込んでいます。";b.clickToClose={};b.clickToClose[d.ENGLISH]="Click to Close";b.clickToClose[d.GERMAN]="Hier klicken, um zu schließen";b.clickToClose[d.JAPANESE]="クリックして終了";b.playWithSmartPlayer={};b.playWithSmartPlayer[d.ENGLISH]="Play with TechSmith Smart Player";b.playWithSmartPlayer[d.GERMAN]="Mit TechSmith Smart Player abspielen";b.playWithSmartPlayer[d.JAPANESE]="クリックして終了";b.playVideoOnly={};b.playVideoOnly[d.ENGLISH]="Play Video Only";b.playVideoOnly[d.GERMAN]="Nur Video wiedergeben";b.playVideoOnly[d.JAPANESE]="ビデオの再生のみ";b.FullscreenKeyboardDisabled={};b.FullscreenKeyboardDisabled[d.ENGLISH]="Warning!, keyboard support is disabled in fullscreen.";b.FullscreenKeyboardDisabled[d.GERMAN]="Warnung! Tastaturunterstützung ist im Vollbildmodus deaktiviert.";b.FullscreenKeyboardDisabled[d.JAPANESE]="警告! フル画面ではキーボード サポートは無効です。";b.txtRequiredMessage={};b.txtRequiredMessage[d.ENGLISH]="A first name, last name, and email address are required to take this quiz.";b.txtRequiredMessage[d.GERMAN]="Sie müssen Vor- und Nachnamen und eine E-Mail-Adresse angeben, um an diesem Quiz teilzunehmen.";b.txtRequiredMessage[d.JAPANESE]="このクイズに解答するには、氏名と電子メール アドレスを入力する必要があります。";b.txtSkip={};b.txtSkip[d.ENGLISH]="Watch Video Only - No Quiz";b.txtSkip[d.GERMAN]="Nur Video ansehen - Kein Quiz";b.txtSkip[d.JAPANESE]="ビデオを見るだけでクイズに解答しない";b.txtBegin={};b.txtBegin[d.ENGLISH]="Watch Video and Take Quiz";b.txtBegin[d.GERMAN]="Video ansehen und am Quiz teilnehmen";b.txtBegin[d.JAPANESE]="ビデオを見てクイズに解答する";b.txtFirstName={};b.txtFirstName[d.ENGLISH]="First";b.txtFirstName[d.GERMAN]="Vorname";b.txtFirstName[d.JAPANESE]="名";b.txtLastName={};b.txtLastName[d.ENGLISH]="Last";b.txtLastName[d.GERMAN]="Nachname";b.txtLastName[d.JAPANESE]="姓";b.txtEmail={};b.txtEmail[d.ENGLISH]="Email";b.txtEmail[d.GERMAN]="E-Mail";b.txtEmail[d.JAPANESE]="電子メール";b.txtReview={};b.txtReview[d.ENGLISH]="Replay Last Section";b.txtReview[d.GERMAN]="Letzten Abschnitt erneut wiedergeben";b.txtReview[d.JAPANESE]="最後に選択した範囲をもう一度再生";b.txtAnswerQuestion={};b.txtAnswerQuestion[d.ENGLISH]="Take Quiz Now";b.txtAnswerQuestion[d.GERMAN]="Jetzt am Quiz teilnehmen";b.txtAnswerQuestion[d.JAPANESE]="今すぐクイズに解答する";b.txtPrev={};b.txtPrev[d.ENGLISH]="Previous";b.txtPrev[d.GERMAN]="Zurück";b.txtPrev[d.JAPANESE]="前へ";b.txtNext={};b.txtNext[d.ENGLISH]="Next";b.txtNext[d.GERMAN]="Weiter";b.txtNext[d.JAPANESE]="次へ";b.txtSubmit={};b.txtSubmit[d.ENGLISH]="Submit Answers";b.txtSubmit[d.GERMAN]="Antworten abschicken";b.txtSubmit[d.JAPANESE]="解答・回答の送信";b.txtContinue={};b.txtContinue[d.ENGLISH]="Continue";b.txtContinue[d.GERMAN]="Fortsetzen";b.txtContinue[d.JAPANESE]="続行";b.txtReviewAnswer={};b.txtReviewAnswer[d.ENGLISH]="View Answers";b.txtReviewAnswer[d.GERMAN]="Antworten anzeigen";b.txtReviewAnswer[d.JAPANESE]="解答・回答を表示";b.txtAnswerSent={};b.txtAnswerSent[d.ENGLISH]="Your answers have been sent.";b.txtAnswerSent[d.GERMAN]="Ihre Antworten wurden gesendet.";b.txtAnswerSent[d.JAPANESE]="解答・回答が送信されました。";b.txtDisabledLocalQuizReporting={};b.txtDisabledLocalQuizReporting[d.ENGLISH]="Keyboard input is disabled in full screen mode. Press the ESC key to exit full screen mode.";b.txtDisabledLocalQuizReporting[d.GERMAN]="Bestimmte Merkmale in Ihrem Video sind aufgrund der Sicherheitseinstellungen im lokalen Netzwerk zurzeit deaktiviert. Sie funktionieren jedoch ordnungsgemäß, wenn das Video von einer Website oder einem Server aus wiedergegeben wird.";b.txtDisabledLocalQuizReporting[d.JAPANESE]="ローカル ネットワークのセキュリティの理由により、ビデオの特定機能が現在無効化されています。Web サイトまたはサーバーからビデオを再生する場合、これらの機能は正しく動作します。";b.txtErrorMessage={};b.txtErrorMessage[d.ENGLISH]="We're sorry, a network error has prevented the quiz from loading. The video is available to view. To try and reload the quiz, refresh the browser page or check your network connection.";b.txtErrorMessage[d.GERMAN]="Das Quiz konnte aufgrund eines Netzwerkfehlers nicht geladen werden. Das Video steht zur Ansicht bereit. Sie können versuchen das Quiz erneut zu laden, indem Sie die Browserseite aktualisieren bzw. Ihre Netzwerkverbindung überprüfen.";b.txtErrorMessage[d.JAPANESE]="申し訳ありませんが、ネットワーク エラーによりクイズを読み込めませんでした。ビデオは表示できます。クイズを再度読み込むには、ブラウザのページを更新するか、ネットワーク接続を確認してください。";b.txtLoaderMessageInstance={};b.txtLoaderMessageInstance[d.ENGLISH]="Please wait... the quiz is loading.";b.txtLoaderMessageInstance[d.GERMAN]="Bitte warten... Das Quiz wird geladen.";b.txtLoaderMessageInstance[d.JAPANESE]="お待ちください... クイズを読み込んでいます。";b.txtLoaderMessageDefinition={};b.txtLoaderMessageDefinition[d.ENGLISH]="Please wait... the quiz is loading.";b.txtLoaderMessageDefinition[d.GERMAN]="Bitte warten... Das Quiz wird geladen.";b.txtLoaderMessageDefinition[d.JAPANESE]="お待ちください... クイズを読み込んでいます。";b.txtQuestionCount={};b.txtQuestionCount[d.ENGLISH]="{{currentQuestion}} of {{totalQuestions}}";b.txtQuestionCount[d.GERMAN]="{{currentQuestion}} von {{totalQuestions}}";b.txtQuestionCount[d.JAPANESE]="{{currentQuestion}} 問 ({{totalQuestions}} 問中)";b.txtAutoResults={};b.txtAutoResults[d.ENGLISH]="{{numberCorrect}} correct answer{{plural}}.";b.txtAutoResults[d.GERMAN]="{{numberCorrect}} richtige Antwort{{plural}}.";b.txtAutoResults[d.JAPANESE]="{{numberCorrect}} 個の正解{{plural}}があります。";b.txtManualResults={};b.txtManualResults[d.ENGLISH]="{{numberUngraded}} question{{plural}} could not be scored.";b.txtManualResults[d.GERMAN]="{{numberUngraded}} Frage{{plural}} konnte nicht bewertet werden.";b.txtManualResults[d.JAPANESE]="{{numberUngraded}} 個の問題{{plural}}のスコアを付けることができませんでした。";b.txtQuizFullscreenMode={};b.txtQuizFullscreenMode[d.ENGLISH]="Keyboard input is disabled in full screen mode. Press the ESC key to exit full screen mode.";b.txtQuizFullscreenMode[d.GERMAN]="Die Tastatureingabe ist im Vollbildmodus deaktiviert. Drücken Sie >Esc<, um den Vollbildmodus zu beenden.";b.txtQuizFullscreenMode[d.JAPANESE]="全画面表示ではキーボード入力は無効です。ESC キーを押すと全画面モードを終了します。";return{setLanguage:function(g){if(d.isValid(g)&&a===c){a=g}},getLanguage:function(){return a},getQuestionCountPreposition:function(){if(!e){f=(a===c)?d.ENGLISH:a;var h=b.txtQuestionCount[f].split(" ");for(var g=0;g0},clearPercentWatched:function(){j=0},initPercentWatched:function(l){if(l<=0){return}j=l;for(var k=0;kj){return}e=Math.floor(k/i);if(e<0||e>=g){return}if(!b[e]){c++;b[e]=true}},getPercentageWatched:function(){if(g&&g>0){return c/g}else{return 0}},getPercentageWatchedForVideoSegment:function(q,p){var r=0;if(j>0&&(q<=p)){var o=Math.floor(q/i);var m=Math.floor(p/i);var l=0;var k=m-o+1;for(var n=o;n<=m;n++){if(b[n]){l++}}r=l/k}return r},setEnabled:function(k){d=k},isEnabled:function(){return d}}}());var TSC=TSC||{};TSC.mediaType=(function(){return{WEBM:"webm",H264:"h264",OGG:"ogg",UNKNOWN:"unknown",NOT_AVAILABLE:"not available",MULTIPLE_TYPES:"multiple types"}}());var TSC=TSC||{};TSC.rtfParser=(function(){var g="\\";var a="0";var l=" ";var o=" ";function c(q){var p="par ";return q.toLowerCase()==p}function d(v,s){if(s===undefined){s=0}var q="a";var w="z";var u=q.charCodeAt();var t=w.charCodeAt();var p=-1;if(v){p=v.indexOf(g,s);while(p!=-1){if(p+11&&q.charAt(0)==p){q=q.substr(1)}while(q.length>1&&q.charAt(q.length-1)==p){q=q.substr(0,q.length-1)}if(q==p){q=""}return q}function f(w){var v=w;if(v){var r=[];var q=j(v);var u=0;while(q!==-1){var t=i(v,q);if(t&&b(t)){var p=n(t,r);var s=v.indexOf(l,q);if(s!==-1){v=v.substr(0,q)+p+v.substr(s+1)}else{v=v.substr(0,q)+p}q+=p.length}else{if(t&&!c(t)){r.push(e(t))}q=Number(q)+1}q=d(v,q)}}return v}function h(r){var q=r;if(q){var p=1;while(p>0){p=0;var v=j(q);while(v!=-1){var x=j(q,v+1);var u=i(q,v);if(u){if(x!=-1){var t=e(u);var s=i(q,x);if(s&&s==t){var y=v+1+u.length;var w=q.substr(y,x-y);if(!k(w).length){q=m(q,x);q=m(q,v);x-=(u.length+1);p++}}}}v=x}}}return q}return{NestAndCleanUpTags:function(q){var p=q;if(p){p=f(p);p=h(p)}return p}}}());var TSC=TSC||{};TSC.textFormatter=(function(){return{rtfToText:function(b){var a=false;if(b.indexOf("{\\rtf1")!=-1){b=b.split("{\\rtf1 ").join("");a=true}b=b.split("\\i ").join("");b=b.split("\\i0 ").join("");b=b.split("\\b ").join("");b=b.split("\\b0 ").join("");b=b.split("\\ul ").join("");b=b.split("\\ul0 ").join("");b=b.split("\\par ").join("");b=b.split("\\{").join("{");b=b.split("\\}").join("}");b=b.split("\\\\").join("\\");if(a&&(b.charAt(b.length-1)=="}")){b=b.substr(0,b.length-1)}return b},rtfToHTML:function(b){b=TSC.rtfParser.NestAndCleanUpTags(b);b=b.split("<").join("<");b=b.split(">").join(">");var a=false;if(b.indexOf("{\\rtf1")!=-1){b=b.split("{\\rtf1 ").join("");a=true}b=b.split("\\i0 ").join("");b=b.split("\\b0 ").join("");b=b.split("\\ul0 ").join("");b=b.split("\\i ").join("");b=b.split("\\b ").join("");b=b.split("\\ul ").join("");b=b.split("\\par ").join("
");b=b.split("\\{").join("{");b=b.split("\\}").join("}");b=b.split("\\\\").join("\\");if(a&&(b.charAt(b.length-1)=="}")){b=b.substr(0,b.length-1)}b=b.split("<br>").join("
");b=b.split("<BR>").join("
");return b}}}());var TSC=TSC||{};TSC.deviceInfo=(function(){var m=false;var q;var t;var r;var l;var f=false;var o;var s=false;var g=false;var c=false;var b=false;var u=false;var h=false;var j=false;var a=false;var n=false;var k=false;var p=false;function e(){switch(window.location.protocol){case"http:":case"https:":return false;break;case"file:":return true;break}}function d(){for(var v in navigator.plugins){if(navigator.plugins[v].filename&&navigator.plugins[v].filename.toLowerCase().indexOf("pepflashplayer")!==-1){return true}}return false}function i(){var v=document.createElement("video")||false;q=v&&typeof v.canPlayType!=="undefined";t=q&&(v.canPlayType("video/mp4")==="maybe"||v.canPlayType("video/mp4")==="probably");r=q&&(v.canPlayType("video/ogg")==="maybe"||v.canPlayType("video/ogg")==="probably");l=q&&(v.canPlayType("video/webm")==="maybe"||v.canPlayType("video/webm")==="probably");c=navigator.userAgent.match(/iPad/i)!==null;b=navigator.userAgent.match(/iPhone/i)!==null;u=navigator.userAgent.match(/iPod/i)!==null;h=navigator.userAgent.toLowerCase().indexOf("android")!==-1;g=navigator.userAgent.toLowerCase().indexOf("chrome")!==-1;f=navigator.appName=="Microsoft Internet Explorer";if(g&&e()){p=d()}if(f){var w=navigator.userAgent;var x=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(x.exec(w)!=null){o=parseFloat(RegExp.$1)}}s=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;j=navigator.userAgent.match(/Nuevo/i)!==null;a=navigator.userAgent.match(/Safari/i)!==null;k=((screen.availWidth<640)&&(screen.availHeight<480)||(screen.availWidth<480)&&(screen.availHeight<640));n=(b||u||c)&&(window.devicePixelRatio>=2);if((b||u)&&j&&n){c=true;b=u=false}}return{isSmallScreen:function(){return k},isRetinaDisplay:function(){return n},isNuevoApp:function(){return j},isIPad:function(){return c},isIPhoneOrIPod:function(){return(b||u)},isIE:function(){return f},getIEVersion:function(){return o},isFirefox:function(){return s},isChrome:function(){return g},isSafari:function(){return a},isAndroid:function(){return h},canPlayHTML5Video:function(){return q},canPlayMP4:function(){return t},canPlayOgg:function(){return r},canPlayWebM:function(){return l},isTouchInterface:function(){return Modernizr.touch},supportsFullScreenKeyboardInput:function(){var v=false;if(g&&Element.ALLOW_KEYBOARD_INPUT!==undefined){v=true}return v},mediaLocation:function(){var x=(document.location.href);var v=x.lastIndexOf("/");var w=x.substring(0,v+1);if(TSC.deviceInfo.isIE()==true){w=encodeURI(w)}w=w.split("%25").join("%");return w},isLocal:function(){return e()},isLocalPepperFlash:function(){return p},lookAtDevice:function(){i()}}}());var TSC=TSC||{};TSC.playerConfiguration=(function(){var N="10.2.0";var h=[];var y;var c;var m;var i="'playerProductInstall.swf";var g="tsc_player.swf";var f="100%";var D="100%";var e="stop";var r=true;var s=true;var I=false;var v=-1;var B=false;var p=false;var d="left";var t="#000";var u=false;var a=false;var F=true;var H=false;var o=true;var z=false;var j=false;var k=false;var A=false;var J;var O=true;var n=true;var l=false;var K;var w=false;var x=false;var M=false;var E=true;var C=".";var q={};var L="flash";function G(){var Q=false;var P=(document.location.href);if(P.indexOf("http")==0){Q=true}return Q}function b(Q){var P=Q.replace("’","'");return P}return{getUnicodeSafeString:function(P){if(P===undefined){return P}if(TSC.playerConfiguration.getProcessUnicodeNames()){if(TSC.deviceInfo.isIE()==true){if(G()){return encodeURI(P)}else{return decodeURIComponent(P)}}else{return encodeURIComponent(P)}}else{return P}},getMediaSrc:function(){return h.length>0?h[0]:""},setMediaSrc:function(P){h.push(b(P))},addMediaSrc:function(P){h.push(b(P))},getMediaSources:function(){return h},getMediaFileName:function(){var P=h.length>0?h[0]:undefined;var R;if(P){var Q=P.split("/");R=Q[Q.length-1];R=R.split("?")[0];if(R===undefined||R===""){R="Unnamed Media"}}else{R="No Media"}return R},getXMPSrc:function(){return TSC.playerConfiguration.getUnicodeSafeString(y)},setXMPSrc:function(P){y=b(P)},setSwfBase:function(P){C=b(P)},getSwfBase:function(){return C},getConfigurationSrc:function(){return TSC.playerConfiguration.getUnicodeSafeString(c)},setConfigurationSrc:function(P){c=P},getPosterImageSrc:function(){return TSC.playerConfiguration.getUnicodeSafeString(m)},setPosterImageSrc:function(P){m=P},getUnableToDisplayContentString:function(){return TSC.localizationStrings.getString("videoNotSupported")},getFlashUpdateBootstrapSwf:function(){return i},setFlashUpdateBootstrapSwf:function(P){i=P},getFlashPlayerSwf:function(){return g},setFlashPlayerSwf:function(P){g=b(P)},getPlayerWidth:function(){return f},setPlayerWidth:function(P){f=P},getPlayerHeight:function(){return D},setPlayerHeight:function(P){D=P},getEndActionType:function(){return e},setEndActionType:function(P){e=P},getEndActionParam:function(){return r},setEndActionParam:function(P){r=P},getIsSearchable:function(){return s},setIsSearchable:function(P){s=P},getAutoPlayMedia:function(){return I},setAutoPlayMedia:function(P){I=P},getAllowRewind:function(){return v},setAllowRewind:function(P){v=P},getCaptionsEnabled:function(){return B},setCaptionsEnabled:function(P){B=P},getSidebarEnabled:function(){return p},setSidebarEnabled:function(P){p=P},getSidebarLocation:function(){return d},setSidebarLocation:function(P){d=P},getBackgroundColor:function(){return t},setBackgroundColor:function(P){t=P},getMinFlashPlayerVersion:function(){return N},setDebugHotspot:function(P){u=P},getDebugHotspot:function(){return u},setAutoHideControls:function(P){F=P},getAutoHideControls:function(){return F},setProcessUnicodeNames:function(P){a=P},getProcessUnicodeNames:function(){return a},setReportScormComplete:function(P){H=P},getReportScormComplete:function(){return H},setEnforceLinearAssessment:function(P){o=P},getEnforceLinearAssessment:function(){return o},setDisableFullframeMode:function(P){z=P},getDisableFullframeMode:function(){return z},getDisableControls:function(){return j},setDisableControls:function(P){j=P},getMobileWebViewCanAutoPlay:function(){return k},setMobileWebViewCanAutoPlay:function(P){k=P},setGoogleAnalyticsID:function(P){J=P},getGoogleAnalyticsID:function(){return J},setGAPageViewTracking:function(P){O=P},getGAPageViewTracking:function(){return O},setGAEventTracking:function(P){n=P},getGAEventTracking:function(){return n},useCustomEventTracking:function(P,Q){l=P;K=Q},getTrackEvents:function(){return(l||J!==undefined)},getCustomEventTracking:function(){return l},getCustomEventCallback:function(){return K},setAltEventCategoryAsFilename:function(P){w=P},getAltEventCategoryAsFilename:function(){return w},setAltLoadTimeAsSeconds:function(P){x=P},getAltLoadTimeAsSeconds:function(){return x},setAdvancedSeeking:function(P){A=P},getAdvancedSeeking:function(){return A},setIframeCommunicationsEnabled:function(P){E=P},getIframeCommunicationsEnabled:function(){return E},getFrameElement:function(){try{if(window!=window.top&&E){return $(window.frameElement)}else{return""}}catch(P){TSC.playerConfiguration.setDisableFullframeMode(true)}},setTechPreference:function(P){if(P==="flash"||P==="html5"){L=P}},getTechPreference:function(){return L},setURLParams:function(P){q=P},getURLParams:function(P){return q},setDebugUIMode:function(P){M=P},getDebugUIMode:function(){return M}}}());var TSC=TSC||{};TSC.mediaList=(function(){var b=".m3u";var m;var i=[];var j=0;var a;var l;var d=false;function e(){j=0;if(m[0].toLowerCase().indexOf(b)!=-1){d=true;f(TSC.playerConfiguration.getUnicodeSafeString(m[0]))}else{d=false;i.push(m);a.call()}}function f(n){$.ajax({type:"GET",url:n,isLocal:true,dataType:"text",success:h,error:g})}function h(p){i=p.split(/\r?\n/g);var o=i.length-1;for(var n=o;n>=0;n--){if(i[n]===""){i.splice(n,1)}else{i[n]=TSC.playerConfiguration.getUnicodeSafeString(i[n])}}if(a){a.call()}}function g(n){if(l){l.call()}}function c(p){var o="";var n=k(p);switch(n){case TSC.mediaType.WEBM:o="video/webm";break;case TSC.mediaType.H264:o="video/mp4";break;case TSC.mediaType.OGG:o="video/ogg";default:break}return o}function k(p){var n=TSC.mediaType.UNKNOWN;var q=p.split(".");if(q.length>0){var o=q.pop().toLowerCase();switch(o){case"webm":n=TSC.mediaType.WEBM;break;case"mp4":case"m4v":case"mov":n=TSC.mediaType.H264;break;case"ogv":n=TSC.mediaType.OGG;break;default:break}}return n}return{init:function(n){m=n;e()},currentVideoSrc:function(){if(i.length>0){return i[j]}else{return undefined}},currentVideoIndex:function(){return j},setCurrentVideo:function(n){if(n==="next"){if(j0){j--}}else{if(Number(n)>=0&&Number(n)0){n=TSC.mediaType.UNKNOWN;if(d){n=k(i[j])}else{var o=i[j].length;if(o===1){n=k(i[j][0])}else{n=TSC.mediaType.MULTIPLE_TYPES}}}return n},getMediaMimeType:function(n){return c(n)},isMediaTypeAvailable:function(o){var n=false;if(i.length>0){if(d){n=(o===k(i[j]))}else{var q=i[j].length;for(var p=0;p=cx){cq+=""}else{if(cs==0){cq+=cy.items[cs+cr]}else{cq+=" "+cy.items[cs+cr]}}}if(cq.toLowerCase().indexOf(F.val().toLowerCase())!=-1){var co;if(cu.length<4){co=Math.floor(5-(cu.length)/2)}else{co=2}var cm;var cv="";var cl="";for(var ct=1;ct<=co;ct++){if((cs-ct)>=0){cv=cy.items[cs-ct]+" "}if(cs+cr+ct');$("#hotspotMap area").bind("click",J)}}function n(cw,cq){if(u<0){return}var cp=(Number(cw)-(Number(u)*az))/2;var cs=(Number(cq)-(Number(ao)*az))/2;if(cp<0){cp=0}if(cs<0){cs=0}var cm=(u*az);var cv=(ao*az);$("#hotspotContainer").attr("width",cm);$("#hotspotContainer").attr("height",cv);$("#hotspotContainer").css("left",cp);$("#hotspotContainer").css("top",cs);if(TSC.playerConfiguration.getDebugHotspot()){$("#hotspotContainerDebug").attr("width",cm);$("#hotspotContainerDebug").attr("height",cv);$("#hotspotContainerDebug").css("left",cp);$("#hotspotContainerDebug").css("top",cs)}var cl=$("#hotspotMap area");var cn=cl.length;var co;var ct;if(cn>0){for(var cr=0;cr0&&TSC.xmp.hasCaptionItems()&&TSC.xmp.getCaptionPosition()==="under"){al=ao*((al-i.height())/(ao+TSC.xmp.getCaptionBarHeight()))}i.width(aj);if(TSC.playerConfiguration.getSidebarLocation()==="right"){cd.css("left",aj-cd.outerWidth());cd.css("top",$("#tscVideoContent").offset().top)}else{cd.css("left",$("#tscVideoContent").offset().left);cd.css("top",$("#tscVideoContent").offset().top)}var cl;cl=r.outerWidth(true)+b6;var co=$("#play_time").outerWidth(true)+$(".seperator").outerWidth(true)+b6;if(TSC.deviceInfo.isIPad()||TSC.deviceInfo.isAndroid()){$("#volume").remove();if(bG){cl=cl+S.outerWidth(true)}if(bC){cl=cl+av.outerWidth(true)}cl=cl+b6}else{if(bG){cl=cl+a3.outerWidth(true)+S.outerWidth(true)+b6;if(c||bC){cl=cl+av.outerWidth(true)}}else{cl=cl+a3.outerWidth(true)+b6;if(c||bC){cl=cl+av.outerWidth(true)}}}if(aB.is(":visible")){cl=cl+aB.outerWidth(true)}if(w.is(":visible")){cl=cl+w.outerWidth(true)}if(bo.is(":visible")){cl=cl+bo.outerWidth(true)+D.outerWidth(true)}if(bC){$("#fullscreen_enter_button").removeClass("fullscreen_enter_button_normal");$("#fullscreen_enter_button").addClass("fullframe_enter_button_normal")}bM.width(aj-cl);am.width(aj-cl-co);$(".videoDimensions").width(aj);$(".videoDimensions").height(al);if(bG){Y()}var cn=aY&&aY.length>0;if(cn){aY.attr("height",al+"px");aY.attr("width",aj+"px")}if(ah.length>0){be.css("left",(a3.outerWidth(true)+(b6*2))+"px")}else{var cm=a3.offset().left+(a3.width()/2-be.width()/2);if((cm+be.width())>$("#tscVideoContent").offset().left+$("#tscVideoContent").width()){cm=($("#tscVideoContent").offset().left+$("#tscVideoContent").width())-(be.width()+5)}be.css("left",cm+"px")}if(cn&&aY[0].duration){I();if(TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled()){cb=aj-cl-co;U=i.height();$("#markers").attr("width",cb+"px");$("#markers").attr("height",U+"px");an();if(TSC.quizController.viewOpen()){TSC.quizController.pointViewAt(bD(aW))}}}bL();if(TSC.xmp.hasHotspotItems()){n(aj,al)}if(TSC.xmp.hasCaptionItems()){G();bY()}}function bL(){if(u>0&&aj>0){var cm=aj/u;var cl=al/ao;var cn=Math.min(cm,cl);az=cn}}function ax(){if(bG&&!TSC.deviceInfo.supportsFullScreenKeyboardInput()){$("#searchArea").show();$("#fsSearchAlert").remove();Y()}}function bv(){if(!TSC.playerConfiguration.getDisableControls()){i.show()}if(TSC.xmp.hasCaptionItems()&&TSC.xmp.getCaptionPosition()==="under"){V.removeClass("hide")}if(TSC.deviceInfo.isTouchInterface()){e()}else{if(TSC.playerConfiguration.getAutoHideControls()){ai()}}X()}function E(){bk=true;if(!TSC.xmp.hasQuiz()||(TSC.xmp.hasQuiz()&&(!TSC.quizController.quizEnabled()||TSC.quizController.getQuizReady()))){bv()}else{aY[0].pause();b4(TSC.quizController.getLastStatusMessage())}if(TSC.videoAnalytics.isEnabled()&&!TSC.videoAnalytics.isPercentWatchedInitialized()){TSC.videoAnalytics.initPercentWatched(aY[0].duration*1000)}if((aY[0].webkitSupportsFullscreen&&!TSC.deviceInfo.isIPad()&&!TSC.deviceInfo.isAndroid())){document.addEventListener("webkitfullscreenchange",function(cl){if(cl.target.id.toString()==="tscVideoContent"){aM=!aM;if(aM){$("#fullscreen_enter_button").removeClass("fullscreen_enter_button_normal");$("#fullscreen_enter_button").addClass("fullscreen_leave_button_normal")}else{ax();$("#fullscreen_enter_button").removeClass("fullscreen_leave_button_normal");$("#fullscreen_enter_button").addClass("fullscreen_enter_button_normal");$("body").css("margin-left","1px");bq=true;b0();$("body").css("margin-left","0");bq=true;b0()}}});c=true}else{if(window!=window.top&&!TSC.playerConfiguration.getDisableFullframeMode()){av.show();bC=true}else{$("#fullscreen_enter_button").remove()}}bq=true;b0();aY[0].removeEventListener("loadedmetadata",E,false)}function o(){var cl;if(TSC.xmp.getCaptionPosition()==="under"){cl=i.height();V.css("bottom",cl+"px")}else{if(V.hasClass("captionVAlignTop")){cl=20;V.css("bottom","");V.css("top",cl+"px")}else{cl=i.height()+10;V.css("top","");V.css("bottom",cl+"px")}}}function bD(cm){var cn=am.position().left;if(aY&&aY[0].duration&&aY[0].duration>0){if(cm>=0&&cm<=aY[0].duration){var cl=cm/aY[0].duration;cn+=cl*am[0].offsetWidth}}return cn}function aa(){if(!ae||(TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled()&&!TSC.quizController.getQuizReady())){return}var co=false;if(u===-1||u===0){u=aY[0].videoWidth;ao=aY[0].videoHeight;bL();if(TSC.xmp.hasCaptionItems()){G()}if(TSC.xmp.hasHotspotItems()){n(aj,al)}b0();co=true}bp=Number(aY[0].currentTime.toFixed(2))>=Number(aY[0].duration.toFixed(2));aD=((aD+(aY[0].currentTime-aC))/2)+0.33;if(co){aC=0}else{aC=aY[0].currentTime>aY[0].duration?aY[0].duration:aY[0].currentTime}ch=aC*1000;if(TSC.videoAnalytics.isEnabled()){TSC.videoAnalytics.markTimeWatched(ch);if(TSC.playerConfiguration.getTrackEvents()){var cn=Math.round(TSC.videoAnalytics.getPercentageWatched()*100);if(cn>=(R+a6)){R+=a6;if(R100){R=100}aS("Video_Percent_Viewed","Viewed: "+R+" Percent")}}}var cr="";if(!bK&&TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled()){var cl=TSC.quizController.findQuestionSet(ch);if(cl.id>=0){if(a4!==cl.id){if(!TSC.deviceInfo.isTouchInterface()){t()}aL();b2(false);if(cd){au(false)}a4=cl.id;aW=cl.markerTime/1000;aY[0].pause();setTimeout(function(){k(aW,true)},100);if(aM&&!TSC.deviceInfo.supportsFullScreenKeyboardInput()){L("#videoWrapper",TSC.localizationStrings.getString("txtQuizFullscreenMode"),true)}TSC.quizController.displayConfirm(cl.id);TSC.quizController.pointViewAt(bD(aW));if(TSC.videoAnalytics.isEnabled()){var cn=TSC.videoAnalytics.getPercentageWatchedForVideoSegment((TSC.quizController.findPrevMarkerTimeForMarker(cl.id)),(cl.markerTime));TSC.quizController.updatePercentWatchedForQuestionSet(a4,cn)}z(false)}else{}}else{a4=-1}}var cm=0;$.each(TSC.xmp.getHotspotItemArray(),function(){var cu=$(this)[0];var cs;if(TSC.mediaList.isPlaylist()){cs=TSC.mediaList.currentVideoSrc()}var cv=true;if(cu.file!==undefined&&cu.file!==cs){cv=false}if(cu.startcu.end&&!aY[0].paused&&!cu.hasPaused){if(cu.hasPaused===false){aY[0].pause()}cu.hasPaused=true;ay(cu.end)}}else{if(cu.isActive){cu.isActive=false;var ct=0;$("#hotspotMap area").each(function(){var cw=$(this)[0];ct++;if(Number($(cw).attr("hotspot_index"))===cm){return false}});if(ct>0){$("#hotspotMap area:nth-child("+ct+")").remove()}if(TSC.playerConfiguration.getDebugHotspot()){x()}}if(!aY[0].paused){cu.hasPaused=false}}cm++});var cq=false;var cp=false;$.each(TSC.xmp.getCaptionItemArray(),function(){var ct=$(this)[0];var cs;if(TSC.mediaList.isPlaylist()){cs=TSC.mediaList.currentVideoSrc()}var cu=true;if(ct.file!==undefined&&ct.file!==cs){cu=false}if(ct.start"+cr+""}V.html(cr);if(cr!==""){if(TSC.xmp.getCaptionPosition()!=="under"){$("#currentCaption span").css("background",TSC.xmp.getCaptionBg())}else{$("#currentCaption span").css("background","none")}}bY();if(b){b.call(cr)}}}else{V.html("")}if(a7){aB.removeClass("closed_caption_off_button_normal");aB.addClass("closed_caption_button_normal");V.removeClass("hide");bY()}else{aB.removeClass("closed_caption_button_normal");aB.addClass("closed_caption_off_button_normal");V.addClass("hide")}if(TSC.playerConfiguration.getReportScormComplete()&&TSC.videoAnalytics.getPercentageWatched()===1){TSC.playerConfiguration.setReportScormComplete(false);if(typeof userSubmitVideoCompletedToLMS=="function"){userSubmitVideoCompletedToLMS()}}if(!bK&&a4===-1&&bp&&!b1){b1=true;aY[0].pause();aw()}}function bT(cl){if(cl>1){cl=1}else{if(cl<0){cl=0}}aY[0].volume=cl}function ay(cl){$.each(TSC.xmp.getHotspotItemArray(),function(){var cm=$(this)[0];if(cm.end===cl){cm.hasPaused=true}})}function bm(){$.each(TSC.xmp.getHotspotItemArray(),function(){var cl=$(this)[0];cl.hasPaused=false;cl.isActive=false});$("#hotspotMap area").remove();if(TSC.playerConfiguration.getDebugHotspot()){x()}}function b7(cn,cl){var cm=new RegExp(cl,"ig");return cn.replace(cm,""+cl+"")}function aV(cA,cQ,cL,cv,cC,cu,cq){var cp="";var cn="";var cx;var cE="";var cG="";var cH=1;var cy;var cl;var cw=0;var cF=0;var cN=20;var cI=65;var cs=false;if(cv!==undefined){cG="data-file='"+cv+"'"}if(cu){var cP=cu.split(",");var cD=-Number(cP[0]);var cJ=-Number(cP[1]);var cB=Number(cP[2]);var cO=Number(cP[3]);var cM="";cx="hasThumbImage";cE="style='height:"+cO+"px'";if(cO(bH/2-cN)){cH=(bH/2-cN)/cB;cB=bH/2-cN;cF=Math.floor((cP[3]-(cP[3]*cH))/2)}else{cF=Math.floor((cI-(cP[3]*cH))/2)}}cl={};cl.width=Number(bH-cB-40)+"px";cl.left=Number(cB+5)+"px";cl.overflow="hidden";cl["line-height"]="1.2em";cl["max-height"]="4.8em";if(cq!==undefined){cy='
'+b7(cQ,cq)+"
"}else{if(TSC.xmp.getTocCellLayoutType()&&TSC.xmp.getTocCellLayoutType()==="imageOnly"){cy=""}else{cy='
'+cQ+"
"}}cn="
"+cy+"
"}else{cE="";cx="noThumbImage";if(cq!==undefined){cn=b7(cQ,cq)}else{cn=cQ}}var ct="
  • ";$(cA).append(ct);if(cC){var cK=cC.getContext("2d");cC.width=Number(cP[2])*cH;cC.height=Number(cP[3])*cH;cK.scale(cH,cH);if(y){cK.drawImage(y,cP[0],cP[1],cP[2],cP[3],0,0,cP[2],cP[3])}else{cK.fillStyle="#000000";cK.fillRect(0,0,cP[2],cP[3])}$(cC).css("margin-left",cw);$(cC).css("margin-top",cF);$(cA+" li:last-child").append(cC)}$(cA+" li:last-child").append(cn);if(cC){$(cA+" li:last-child .tocItemLabel").css(cl);var co=0;var cm=cI;if(!$(cd).is(":visible")){au(true);co=$(cA+" li:last-child .tocItemLabel").height();if(!cs){cm=$(cA+" li:last-child").height()}au(false)}else{co=$(cA+" li:last-child .tocItemLabel").height();if(!cs){cm=$(cA+" li:last-child").height()}}var cr=-8;if(!cs&&cH===1){cr=4}var cz=-Number(cm+cr);cz+=(cm-co)/2;cF=Math.floor((cm-(cP[3]*cH))/2);$(cC).css("margin-top",cF);$(cA+" li:last-child .tocItemLabel").css("top",cz+"px")}if(TSC.mediaList.isPlaylist()){af(K)}}function bJ(cl){y=new Image();y.onload=function(){cg()};y.onerror=function(){y.onload=undefined;y.onerror=undefined;y=undefined;cg()};y.src=cl}function cg(){var cn=TSC.xmp.getTocItemArray();var cl=cn.length;var co;$("#tableOfContentsList li").remove();for(var cm=0;cm(bH-20)){cr=(bH-20)/cp;co=(bH-20);cl=cn*cr}else{cr=1;co=cp;cl=cn}}else{if(cn>(bH-20)){cr=((cp*cq)-20)/cn;cl=((bH*cq)-20);co=cp*cr}else{cr=1;cl=cn;co=cp}}var cm='
    ';$(cm).prependTo($("#videoSidebarHead"));$("#videoSidebarHead").prepend(TSC.xmp.getTocTitle());Y()}function au(cl){if(cl){cd.show();z(false)}else{cd.hide();if(!aO){z(true)}}}function W(co){bS=false;if(TSC.deviceInfo.isTouchInterface()&&aQ){return}co.stopImmediatePropagation();co.preventDefault();var cl=$(this).attr("data-time");var cm=$(this).attr("data-file");if(cm!==undefined){bm();var cn=TSC.mediaList.getVideoIndexBySrc(cm);if(cn===TSC.mediaList.currentVideoIndex()){k(cl)}else{TSC.mediaList.setCurrentVideo(cn);N()}af(cn+1)}else{bm();k(cl)}}function bh(){if(bF){au(true)}else{au(false)}if(TSC.playerConfiguration.getIsSearchable()){F.keyup(function(){if(F.val()!=""){bw.hide();$("#searchList").remove();$("#videoSidebarContent").append("
      ");d(TSC.xmp.getTocItemArray());d(TSC.xmp.getCaptionItemArray());bW(TSC.xmp.getScreenTextItemArray());if(TSC.xmp.getCaptionItemArray().length<1&&TSC.xmp.getScreenTextItemArray().length>0){bW(TSC.xmp.getScreenTextItemArray())}$("#searchList").show()}else{ag()}});bA.click(function(){F.val("");ag()})}else{$("#searchArea").remove()}if(TSC.xmp.getTocImageSrc()){b3=new Image();b3.onload=bx;b3.src=TSC.xmp.getTocImageSrc()}else{$("#videoSidebarHead").prepend(TSC.xmp.getTocTitle())}if(TSC.xmp.tocContainsThumbs()){bJ(TSC.xmp.getTocThumbImageSrc())}else{cg()}if(TSC.deviceInfo.isTouchInterface()){br="touchend";aQ=false}else{$("#videoSidebarContent ol li").live(br,W)}}function a5(cn){var cm;bK=true;if(!TSC.deviceInfo.isTouchInterface()){window.clearTimeout(ak)}if(aY[0].paused){cm=false}else{cm=true;aY[0].pause()}bP();if(TSC.deviceInfo.isTouchInterface()){ab(cn.originalEvent.touches[0].clientX);document.ontouchmove=function(co){co.preventDefault();ab(co.pageX)};document.ontouchend=cl}else{document.onmousemove=function(co){ab(co.pageX)};document.onmouseup=cl}function cl(co){if(bK&&!TSC.deviceInfo.isTouchInterface()&&TSC.playerConfiguration.getAutoHideControls()){bs()}bK=false;p();if(TSC.deviceInfo.isTouchInterface()){document.ontouchmove=null;document.ontouchend=null}else{document.onmousemove=null;document.onmouseup=null}if(cm&&!bp){aY[0].play()}aa()}}function bU(){aY.bind("timeupdate",function(){I()});aY.bind("progress",function(){M()});aY.bind("durationchange",function(){M();if(aX){window.clearInterval(aX)}aX=window.setInterval(M,1000)});if(!TSC.deviceInfo.isTouchInterface()){am.bind("mousedown",a5);am.bind("mouseup",function(cl){ab(cl.originalEvent.pageX)})}}function M(){if(aY&&aY.length>0){var cm=0;if(aY[0].buffered&&aY[0].buffered.length){for(var cl=0;cl=co&&cr<=cm){cl=true}}if(cl){if(!m){aY[0].currentTime=cr;I()}else{aE=cr}}else{if(cq){setTimeout(function(){k(cr,true)},100)}}}catch(cp){if(cq){setTimeout(function(){k(cr,true)},100)}}}function ab(cq){bm();var cl=Math.max(0,Math.min(1,(cq-am.position().left)/am[0].offsetWidth));var co=cl*(am[0].offsetWidth-2);if(O.length>0){var cp=P.offset().left;var cn=O.width();var cm=co-Math.floor(cn/2);O.css("left",cm+1)}P.width(co);bS=false;k(Number(cl*aY[0].duration));ac()}function I(){P.width((aY[0].currentTime/aY[0].duration)*(am[0].offsetWidth-2));var cn=P.offset().left;var cm=(aY[0].currentTime/aY[0].duration)*(am[0].offsetWidth-2);if(O.length>0){var cl=O.width();O.css("left",cm-Math.floor(cl/2))}ac()}function ac(){r[0].innerHTML=j(aY[0].currentTime);if(aY[0].duration){bb[0].innerHTML=j(aY[0].duration)}}function j(cm){cm=Math.round(cm);var cl=Math.floor(cm/60);cl=(cl>=10)?cl:"0"+cl;cm=Math.floor(cm%60);cm=(cm>=10)?cm:"0"+cm;return cl+":"+cm}function aA(cm,co){var cl=100;try{cl=localStorage.getItem("volume")==undefined?100:localStorage.getItem("volume")}catch(cn){}cm.slider({orientation:co,range:"min",min:0,max:100,value:cl,slide:function(cp,cq){a3.removeClass("volume_button_high_normal");a3.removeClass("volume_button_med_normal");a3.removeClass("volume_button_low_normal");a3.removeClass("volume_button_normal");a3.removeClass("unmute_button_normal");if(cq.value>70){a3.addClass("volume_button_high_normal")}else{if(cq.value>30){a3.addClass("volume_button_med_normal")}else{if(cq.value>0){a3.addClass("volume_button_low_normal")}else{a3.addClass("unmute_button_normal")}}}bT(cq.value/100);try{localStorage.setItem("volume",cq.value)}catch(cr){}}});try{bT(localStorage.getItem("volume")==undefined?100:localStorage.getItem("volume")/100)}catch(cn){}}function aI(){be.show(bX)}function ci(){if(aU!==-1){clearTimeout(aU);aU=-1}be.unbind("mouseenter");be.unbind("mouseleave");be.hide(bX)}function a8(){if(bG&&bF){$(this).removeClass("toc_off_button_normal");$(this).addClass("toc_button_normal");au(false)}$("#hotspotContainer").hide();if(TSC.playerConfiguration.getDebugHotspot()){$("#hotspotContainerDebug").hide()}l.show()}function ck(cl,cm){b1=false;bS=false;l.hide();b8.css("visibility","visible");bm();if(!TSC.deviceInfo.isTouchInterface()){C()}if(!TSC.mediaList.isPlaylist()){k(cl)}if(cm){if(TSC.mediaList.isPlaylist()){TSC.mediaList.setCurrentVideo(0);af(TSC.mediaList.currentVideoIndex()+1);N()}else{aY[0].play()}}$("#hotspotContainer").show();if(TSC.playerConfiguration.getDebugHotspot()){$("#hotspotContainerDebug").show()}if(TSC.xmp.hasCaptionItems()&&TSC.xmp.getCaptionPosition()==="under"){V.show();bp=false;b0()}}function aw(){if(Math.floor(aY[0].currentTime)0){be.bind("mouseenter",function(){if(aU!=-1){clearTimeout(aU);aU=-1}});be.bind("mouseleave",function(){aU=setTimeout(function(){ci();aU=-1},1000)});if(aU!=-1){clearTimeout(aU);aU=-1}aU=setTimeout(function(){ci();aU=-1},1000)}});a3.click(function(){var cl;ca=!ca;if(ca){bB=aY[0].volume;cl=0;ce.slider("value",[0])}else{cl=bB;ce.slider("value",[bB*100])}a3.removeClass("volume_button_high_normal");a3.removeClass("volume_button_med_normal");a3.removeClass("volume_button_low_normal");a3.removeClass("volume_button_normal");a3.removeClass("unmute_button_normal");if(cl>0.7){a3.addClass("volume_button_high_normal")}else{if(cl>0.3){a3.addClass("volume_button_med_normal")}else{if(cl>0){a3.addClass("volume_button_low_normal")}else{a3.addClass("unmute_button_normal")}}}bT(cl)});if(ah.length>0){aA(ah,"horizontal");be.show()}else{aA(ce,"vertical")}if(TSC.xmp.hasCaptionItems()){if(TSC.xmp.getCaptionPosition()==="under"){a7=true;V.css("background",TSC.xmp.getCaptionBg());V.css("padding","0");V.addClass("captionUnderVideo");bY()}else{aB.click(function(){a7=!a7;if(a7){$(this).removeClass("closed_caption_off_button_normal");$(this).addClass("closed_caption_button_normal");V.removeClass("hide");bY()}else{$(this).removeClass("closed_caption_button_normal");$(this).addClass("closed_caption_off_button_normal");V.addClass("hide")}})}}av.click(function(cm){if(bC){a0()}else{if(!aM){var cl=document.getElementById("tscVideoContent");if(TSC.deviceInfo.supportsFullScreenKeyboardInput()){cl.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}else{if(bG&&TSC.playerConfiguration.getIsSearchable()){$("#searchArea").hide();$("#videoSidebarHead").append("
      "+q.getString("searchDisabledFullScreen")+"
      ")}cl.webkitRequestFullScreen()}}else{if(TSC.playerConfiguration.getIsSearchable()){ax()}document.webkitCancelFullScreen()}}cm.preventDefault()});if(bG){S.click(function(){bF=!bF;if(bF){$(this).removeClass("toc_off_button_normal");$(this).addClass("toc_button_normal")}else{$(this).removeClass("toc_button_normal");$(this).addClass("toc_off_button_normal")}if(cd.css("display")==="none"){au(true);Y()}else{au(false)}});if(TSC.playerConfiguration.getSidebarEnabled()){bF=true;S.removeClass("toc_off_button_normal");S.addClass("toc_button_normal");au(true)}else{S.removeClass("toc_button_normal");S.addClass("toc_off_button_normal")}}if(TSC.deviceInfo.isIPad()||TSC.deviceInfo.isAndroid()){$("textarea").live("blur",function(){bQ=false;e();if(bn){bl()}});$("textarea").live("focus",function(){bQ=true;at();if(bn){aG()}});$("input:text").live("blur",function(){bQ=false;e();if(bn){bl()}});$("input:text").live("focus",function(){bQ=true;at();if(bn){aG()}});window.parent.onorientationchange=function(){if(bn){if(T){$("#searchBox").blur();setTimeout(aq,500)}else{aq()}}}}else{C()}if(TSC.playerConfiguration.getDisableControls()){bu()}}function b9(cl){if(!TSC.deviceInfo.isTouchInterface()&&TSC.playerConfiguration.getAutoHideControls()){ai()}else{b2()}ck(cl,true);if(TSC.playerConfiguration.getTrackEvents()){if(TSC.playerConfiguration.getAltEventCategoryAsFilename()){aS("Video_Replay",a9)}else{aS("Video_Replay",TSC.mediaList.currentVideoSrc().toString())}}}function ad(){b9(0)}function B(){if(window.parent.scrollX>0||window.parent.scrollY>0){if(bQ){window.parent.scrollTo(0,window.parent.scrollY)}else{var cl=window.parent.scrollY-50;cl<0?0:cl;window.parent.scrollTo(0,cl)}}bf=setTimeout(B,10)}function aG(){$(document).unbind("touchmove");$(document).unbind("gesturestart");$(window.parent).unbind("gesturestart");$(document).unbind("gestureend");$(window.parent).unbind("gestureend")}function bl(){$(document).bind("touchmove",function(cl){if(!(($.contains(bw[0],cl.target))||(TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled()&&TSC.quizController.viewOpen()))){cl.preventDefault()}});$(document).bind("gesturestart",function(cl){cl.preventDefault()});$(window.parent).bind("gesturestart",function(cl){cl.preventDefault()});$(document).bind("gestureend",function(cl){a0()});$(window.parent).bind("gestureend",function(cl){a0()})}function aZ(){B();bl();ar.removeClass("tscplayer_inline");ar.attr("width",window.parent.innerWidth);ar.attr("height",window.parent.innerHeight);ar.addClass("tscplayer_fullframe");b0()}function aq(){if(window!=window.top){window.parent.scrollTo(0,0)}else{window.scrollTo(0,0)}ar.attr("width",window.parent.innerWidth);ar.attr("height",window.parent.innerHeight);b0()}function ai(){if(TSC.deviceInfo.isTouchInterface()||(TSC.xmp.hasCaptionItems()&&TSC.xmp.getCaptionPosition()==="under")){return}$(by).hover(b2,bu);var cl=null;$(by).bind("mousemove",function(cm){if(cl==null||(cl.pageX!=cm.pageX&&cl.pageY!=cm.pageY)){cl=cm;b2(true)}});bs()}function aL(){window.clearTimeout(ak);$(by).unbind("mousemove");$(by).unbind("mouseenter mouseleave")}function bu(){z(false);if(T||bK){return}aO=true;i.stop(true,true);i.fadeOut(s);if(bF){cd.stop(true,true);cd.fadeOut(s)}if(aU!==-1){ci()}}function b2(cl){if(TSC.playerConfiguration.getDisableControls()){return}if(aO){aO=false;i.stop(true,true);i.fadeIn(s);if(bF){cd.stop(true,true);cd.fadeIn(s)}else{z(true)}if(cl){I()}if(bq){bq=false;b0()}}if(cl){bs()}}function z(cl){if(TSC.deviceInfo.isNuevoApp()){if(cl){document.location="nuevo://shownavbar"}else{document.location="nuevo://hidenavbar"}}}function bg(){if(TSC.deviceInfo.isNuevoApp()){var cl=document.location;document.location="nuevo://hasPlayedToEnd?url="+cl}}function bs(){window.clearTimeout(ak);ak=window.setTimeout(bu,A)}function J(cn){var cp=TSC.xmp.getHotspotItemArray();var cl=Number($(cn.target).attr("hotspot_index"));if(cp[cl].jumpFile!==undefined){var co=TSC.mediaList.getVideoIndexBySrc(cp[cl].jumpFile);TSC.mediaList.setCurrentVideo(co);af(TSC.mediaList.currentVideoIndex()+1);N()}else{if(cp[cl].jumpTime!==""){bS=false;bm();k(Number(cp[cl].jumpTime));aY[0].play()}else{if(cp[cl].targetURL!==""){if(TSC.playerConfiguration.getTrackEvents()){aS("Hotspot_Action",cp[cl].targetURL)}var cm="_parent";if(cp[cl].newWindow!==undefined&&cp[cl].newWindow===true){cm="_blank"}window.open(cp[cl].targetURL,cm)}else{aY[0].play()}}}}function G(){var cl=Math.round(Number(TSC.xmp.getCaptionFontSize())*az);cl=clTSC.xmp.getMaxCaptionFontSize()?TSC.xmp.getMaxCaptionFontSize():cl;$("#currentCaption").css("font-size",cl)}function b5(){if(TSC.videoAnalytics.isEnabled()){TSC.videoAnalytics.setVideoLoadEndTime(new Date().getTime());if(TSC.playerConfiguration.getTrackEvents()){if(TSC.playerConfiguration.getAltEventCategoryAsFilename()){if(TSC.playerConfiguration.getAltLoadTimeAsSeconds()){aS("Video_Loading_Time_In_Seconds",a9,TSC.videoAnalytics.getVideoLoadTime()/1000)}else{aS("Video_Loading_Time",a9,TSC.videoAnalytics.getVideoLoadTime())}}else{if(TSC.playerConfiguration.getAltLoadTimeAsSeconds()){aS("Video_Loading_Time_In_Seconds",TSC.mediaList.currentVideoSrc().toString(),TSC.videoAnalytics.getVideoLoadTime()/1000)}else{aS("Video_Loading_Time",TSC.mediaList.currentVideoSrc().toString(),TSC.videoAnalytics.getVideoLoadTime())}}}}ae=true}function aF(cl){m=true}function bO(cl){m=false;if(aE>-1){k(aE);aE=-1}}function aH(cm){aY.unbind("playing");if(TSC.playerConfiguration.getURLParams().t){var cl=bR(TSC.playerConfiguration.getURLParams().t);if(cl'}cn+=TSC.playerConfiguration.getUnableToDisplayContentString()+"";return cn}function b4(cm){if(h.viewOpen()){h.setViewMessage(cm)}else{var cl=h.getViewMarkup(cm);$(by).append(cl);h.showView()}}function X(){if(h.viewOpen()){h.removeView()}}function a2(){$("#videoClickToPlay").hide();TSC.quizController.init(TSC.playerConfiguration.getEnforceLinearAssessment())}function bj(){var cm=bI(TSC.mediaList.currentVideoSrc(),false);$("#videoDiv").html(cm);aY=$("video");aY[0].addEventListener("loadedmetadata",E,false);aY.bind("playing",aH);aY.bind("canplay",b5);aY.bind("seeking",aF);aY.bind("seeked",bO);if(TSC.playerConfiguration.getPosterImageSrc()){bc()}$("#videoClickToPlay").hide();$("#videoWrapper").show();v();aP();if(bG){bh()}if(TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled()){var cl=$("
      ");cl.addClass("quizMarker");$(by).append(cl);TSC.quizMarker.setSize($(".quizMarker").css("width").replace(/px/g,""));TSC.quizMarker.setColor($(".quizMarker").css("color"));$("#markers").show()}bq=true;b0();if(cj){cj.call()}i.hide();b4(q.getString("videoLoading"));N()}function N(){b1=false;bS=false;if(TSC.mediaList.isPlaylist()){if(TSC.mediaList.onFirstVideo()){bo.removeClass("previous_button_normal");bo.addClass("previous_button_disabled")}else{bo.addClass("previous_button_normal");bo.removeClass("previous_button_disabled")}if(TSC.mediaList.onLastVideo()){D.removeClass("next_button_normal");D.addClass("next_button_disabled")}else{D.addClass("next_button_normal");D.removeClass("next_button_disabled")}if(TSC.videoAnalytics.isEnabled()){TSC.videoAnalytics.clearPercentWatched();R=0}aY[0].src=TSC.mediaList.currentVideoSrc()}if(TSC.deviceInfo.isIPad()||TSC.deviceInfo.isAndroid()){aY[0].play()}else{aY[0].load();aY[0].play()}if(TSC.videoAnalytics.isEnabled()){TSC.videoAnalytics.setVideoLoadStartTime(new Date().getTime())}if(TSC.playerConfiguration.getTrackEvents()&&aJ){aJ=false;if(TSC.playerConfiguration.getAltEventCategoryAsFilename()){aS("Video_Started",a9)}else{aS("Video_Started",TSC.mediaList.currentVideoSrc().toString())}aS("Video_Percent_Viewed","Viewed: 0 Percent")}}function bV(cm){switch(cm.type){case"COMPLETE":case"REVIEW":if(cd&&bF){au(true)}else{z(true)}if(!TSC.deviceInfo.isTouchInterface()){C();if(TSC.playerConfiguration.getAutoHideControls()){ai()}}an();if(cm.type==="REVIEW"&&TSC.playerConfiguration.getEnforceLinearAssessment()){var cl=TSC.quizController.findPrevMarkerTimeForMarker(a4);a4=-1;k(cl/1000);aY[0].play()}else{aY[0].play()}break;case"BEGIN":case"SKIP":TSC.quizController.setViewContainer("#videoWrapper");$("#videoClickToPlayLink").unbind("click",a2);if(!aY){bj()}else{if(bk&&TSC.quizController.getQuizReady()){bv();aY[0].play();bq=true;b0()}}break;case"ERROR":if(!aY){bj()}L("#videoWrapper",TSC.localizationStrings.getString("txtErrorMessage"),true);break;case"STATUS":b4(cm.message);break}}function Z(cn,cl){by=cn;bG=cl;$(by).html(bN);$(by).css("background-color",TSC.playerConfiguration.getBackgroundColor());if(TSC.playerConfiguration.getPosterImageSrc()){f(TSC.playerConfiguration.getPosterImageSrc())}$(by).fadeIn(s);$("#videoClickToPlay").fadeIn(s);w=$("#rewind");g=$("#play");bo=$("#previous");D=$("#next");bM=$("#progress");am=$("#progress_box");i=$("#controls");P=$("#play_progress");r=$("#current_time_display");bb=$("#duration_display");cd=$("#videoSidebar");a3=$("#volume");V=$("#currentCaption");aB=$("#closedCaptionButton");b8=$("#videoWrapper");l=$("#videoClickToReplay");F=$("#searchBox");bA=$("#clearSearchButton");bw=$("#tableOfContentsList");av=$("#fullscreen_enter_button");S=$("#tocButton");ce=$("#volume_slider_vertical");ah=$("#volume_slider_horizontal");be=$("#volume_slider_container");O=$("#scrubbar_scrubber");if(TSC.deviceInfo.isIPad()||TSC.deviceInfo.isAndroid()){a3.hide();av.hide()}if(bG){S.show()}if(TSC.xmp.hasCaptionItems()){if(TSC.xmp.getCaptionPosition()==="under"){TSC.playerConfiguration.setAutoHideControls(false)}else{aB.show()}}if(!TSC.mediaList.isPlaylist()){bo.hide();D.hide()}b0();$(window).resize(function(){bq=true;b0()});F.focus(function(){T=true;if(F.val()==q.getString("search")){F.val("")}if(!TSC.deviceInfo.isTouchInterface()){t();window.clearTimeout(ak)}});F.blur(function(){T=false;if(F.val().replace(/ /g,"")===""){F.val(q.getString("search"))}if(!TSC.deviceInfo.isTouchInterface()){C();if(TSC.playerConfiguration.getAutoHideControls()){bs()}}});F.val(q.getString("search"));var cm=TSC.deviceInfo.isIPad()&&!TSC.deviceInfo.isNuevoApp();if((cm||TSC.deviceInfo.isAndroid()||(TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled()))&&!TSC.playerConfiguration.getMobileWebViewCanAutoPlay()){TSC.playerConfiguration.setAutoPlayMedia(false)}if(TSC.playerConfiguration.getAutoPlayMedia()===true){setTimeout(bj,80)}else{if(TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled()){$("#videoClickToPlayLink").bind("click",a2)}else{$("#videoClickToPlayLink").bind("click",bj)}}if(TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled()){TSC.quizController.setViewContainer(by);TSC.quizController.setQuestionData(TSC.quizModel);TSC.quizController.setViewControlBarOffset(i.height());TSC.quizController.addEventListener("COMPLETE",bV);TSC.quizController.addEventListener("REVIEW",bV);TSC.quizController.addEventListener("BEGIN",bV);TSC.quizController.addEventListener("SKIP",bV);TSC.quizController.addEventListener("ERROR",bV);TSC.quizController.addEventListener("STATUS",bV);if(TSC.playerConfiguration.getURLParams().t){setTimeout(a2,80)}}else{if(TSC.playerConfiguration.getURLParams().t){setTimeout(bj,80)}}if(TSC.playerConfiguration.getTrackEvents()||TSC.playerConfiguration.getReportScormComplete()||(TSC.xmp.hasQuiz()&&TSC.quizController.quizEnabled())){TSC.videoAnalytics.setEnabled(true);if(TSC.xmp.xmpAvailable()){TSC.videoAnalytics.initPercentWatched(TSC.xmp.getMediaDuration())}}H=true;if(TSC.playerConfiguration.getDebugUIMode()&&cc){cc.call(this)}}function aT(cp){var cl={};cl.src=TSC.playerConfiguration.getUnicodeSafeString(TSC.playerConfiguration.getMediaSrc());if(TSC.playerConfiguration.getXMPSrc()){cl.xmp=TSC.playerConfiguration.getXMPSrc()}if(TSC.playerConfiguration.getAutoPlayMedia()){cl.autoPlayJS=TSC.playerConfiguration.getAutoPlayMedia()}if(TSC.playerConfiguration.getAllowRewind()!==-1){cl.allowRewind=TSC.playerConfiguration.getAllowRewind()}if(TSC.playerConfiguration.getConfigurationSrc()){cl.configuration=TSC.playerConfiguration.getConfigurationSrc()}cl.debugHotspots=TSC.playerConfiguration.getDebugHotspot();if(TSC.playerConfiguration.getPosterImageSrc()){cl.poster=TSC.playerConfiguration.getPosterImageSrc()}cl.authoredLanguage=q.getLanguage();if(TSC.playerConfiguration.getGoogleAnalyticsID()&&TSC.playerConfiguration.getGoogleAnalyticsID()!=""){cl.analytics=TSC.playerConfiguration.getGoogleAnalyticsID();if(!TSC.playerConfiguration.getGAEventTracking()){cl.trackEvents=false}if(!TSC.playerConfiguration.getGAPageViewTracking()){cl.trackPageViews=false}}if(TSC.playerConfiguration.getCustomEventTracking()){cl.customEventTracking=true;cl.customEventJSCallback=TSC.playerConfiguration.getCustomEventCallback().name}cl.altEventCategoryAsFilename=TSC.playerConfiguration.getAltEventCategoryAsFilename();cl.altLoadTimeAsSeconds=TSC.playerConfiguration.getAltLoadTimeAsSeconds();cl.debugUI=TSC.playerConfiguration.getDebugUIMode();cl.advancedSeeking=TSC.playerConfiguration.getAdvancedSeeking();cl.enforceLinearAssessments=TSC.playerConfiguration.getEnforceLinearAssessment();cl.scormComplete=TSC.playerConfiguration.getReportScormComplete();cl.hostingPage=document.location;var cn=TSC.playerConfiguration.getMinFlashPlayerVersion();var co={};co.quality="high";co.bgcolor="#000000";co.allowscriptaccess="always";co.allowfullscreen="true";co.wmode="direct";co.allowNetworking="all";if(TSC.playerConfiguration.getSwfBase()!=="."){co.base=TSC.playerConfiguration.getSwfBase()}var cm={};cm.id="tscplayer";cm.name="tscplayer";cm.align="middle";swfobject.embedSWF(TSC.playerConfiguration.getFlashPlayerSwf(),cp.replace(/#/,""),TSC.playerConfiguration.getPlayerWidth(),TSC.playerConfiguration.getPlayerHeight(),cn,TSC.playerConfiguration.getFlashUpdateBootstrapSwf(),cl,co,cm);swfobject.createCSS(cp,"display:block;text-align:left;");$(cp).show()}function L(cn,cm,cl){cm=""+cm+"";if(cl){cm+="

      "+q.getString("clickToClose")+"

      "}if(H){$("#alertDialog").html(cm);$("#alertDialog").fadeIn(s)}else{$(cn).css("background-color",TSC.playerConfiguration.getBackgroundColor());$(cn).css("height","100%");$(cn).html('
      '+cm+"
      ");$(cn).fadeIn(s);$("#alertDialog").show()}if(cl){$("#alertDialog").bind("click",function(){$("#alertDialog").hide();$("#alertDialog").unbind("click")})}}function bi(){var cl="#000";if(TSC.playerConfiguration.getPosterImageSrc()){cl+=" url("+TSC.playerConfiguration.getPosterImageSrc()+") center no-repeat"}$(".appplayer").css({background:cl,position:"relative","border-radius":"5px","background-size":"cover",height:"100%","z-index":"1"})}function aN(){var cl='

      '+q.getString("playWithSmartPlayer")+'

      '+q.getString("playVideoOnly")+'
      ';return cl}function a(cl){if(TSC.mediaPlayer.isNuevoAppCapableAndAvailable()){$(cl).after(aN());bi();$(".appplayer").show();$(cl).hide();$(".appNuevoPlayBtn").click(function(){$(".appplayer").hide();$(cl).show();TSC.mediaPlayer.redirectToiPhoneApp()});$(".appNativePlayBtn").click(function(){$(".appplayer").hide();$(cl).show();aY=$("video");aY[0].play()});$(".appstoreBtn").click(function(){TSC.mediaPlayer.redirectToiPhoneAppDownload()});if(ar&&ar!==""){ar.removeClass(ap);ar.css("width","500px");ar.css("height","334px")}}else{$(cl).fadeIn(s)}}function bR(cm){if(isNaN(cm)){var cx=0;var co=0;var cp=0;var cu=cm.toLowerCase();var cv=new RegExp("(\\d+[h])","g");var cw=new RegExp("(\\d+[m])","g");var cq=new RegExp("(\\d+[s])","g");var cr=new RegExp("\\d+","g");var cn=cu.match(cv);var ct=cu.match(cw);var cs=cu.match(cq);var cl=cu.match(cr);if(cs||ct||cn){if(cn){cx=Number(cn[0].split("h").join(""))*60*60}if(ct){co=Number(ct[0].split("m").join(""))*60}if(cs){cp=Number(cs[0].split("s").join(""))}return Number(cx+co+cp)}else{if(cl){cp=Number(cl[0]);return cp}else{return 0}}}else{if(cm<0){cm=0}return cm}}return{initHtml5View:function(cm,cl){ar=TSC.playerConfiguration.getFrameElement();Z(cm,cl)},initSimpleHtml5View:function(cs){ar=TSC.playerConfiguration.getFrameElement();if(TSC.mediaList.isPlaylist()){var cr=$(window).innerWidth()-20;if(ar&&ar!==""){ar.addClass("tscplayer_fullframe");ar.css("width",$(window.parent).innerWidth());ar.css("height","100%");cr=$(window.parent).innerWidth()-20}var cm=TSC.mediaList.getMediaList();var cq=cm.length;var cp="
        ";for(var cn=0;cn"+bI([cm[cn]],true,cr,75,true)+""}cp+="
      ";$(cs).html(cp);$(cs).css("background-color","#ffffff");$("body").css("overflow","auto");$(cs).css("overflow","auto");$(cs+" ol").css("list-style","none");$(cs+" ol").css("margin","10px");$(cs+" ol").css("padding","0")}else{$(cs).html(bI(TSC.mediaList.currentVideoSrc(),true,undefined,undefined,true));if(window!=window.top&&TSC.playerConfiguration.getIframeCommunicationsEnabled()){var cl=$(window.parent).innerWidth()-40;var co=cl*1.33333333333333;ar.css("width",cl);ar.css("height",co)}}a(cs)},initFlashView:function(cl){ar=TSC.playerConfiguration.getFrameElement();aT(cl)},getFlashId:function(){return a1},jsSeekTime:function(cn){if(H){if(aY){if(aY[0].duration&&cn0&&ae[0].nodeName==="tsc:fgColor"){var ag=ae.attr("xmpG:red");var af=ae.attr("xmpG:green");var ab=ae.attr("xmpG:blue");z=O(ag,af,ab)}var ah=ad.find("*").eq(ac-1);if(ah&&ah.length>0&&ah[0].nodeName==="tsc:bgColor"){V.r=ah.attr("xmpG:red");V.g=ah.attr("xmpG:green");V.b=ah.attr("xmpG:blue");G=O(V.r,V.g,V.b)}$(ad).find("*").filterNode("rdf:Description").each(function(){var ak=Number($(this).attr("xmpDM:startTime"))/1000;var ao=Number($(this).attr("xmpDM:duration"))/1000;var ar=ak+ao;var ai=$(this).find("*").filterNode("rdf:li").text();var al=TSC.textFormatter.rtfToText(ai);var ap=$(this).attr("tscDM:valign");var am=$(this).attr("tscDM:halign");var an;var aj;switch(ap){case"top":an="captionVAlignTop";break;default:an="captionVAlignBottom";break}switch(am){case"left":aj="captionHAlignLeft";break;case"right":aj="captionHAlignRight";break;default:aj="captionHAlignCenter";break}ai=TSC.textFormatter.rtfToHTML(ai);var at=TSC.playerConfiguration.getUnicodeSafeString($(this).attr("tscDM:file"));if(al.replace(/ /g,"")!==""){var aq={start:ak,end:ar,text:al,htmlText:ai,file:at,vAlign:ap,vAlignClass:an,hAlignClass:aj};C.push(aq)}})}function I(af,ad){var ai=[];var ac=Number(af[4])-Number(af[0]);var ak=Number(af[5])-Number(af[1]);var ag=(ac/2)+Number(af[0]);var ae=(ak/2)+Number(af[1]);var aj=af.length;for(var ah=0;ah2.5){var ak={start:aj,end:ab[ad-1].end,text:ai,items:ae,file:ab[ad-1].file};aj=ab[ad].start;ab.push(ak);ai="";ae=[]}ai+=ab[ad].text+" ";ae.push(ab[ad].text);af=ab[ad].start}var ac={start:aj,end:ab[ah-1].end,text:ai,items:ae,file:ab[ah-1].file};f.push(ac)}function S(){if(R){t(d)}if(X){j(Y)}if(l){L(y)}if(A){Q(n)}if(W){p(i)}if(k){v(w)}e=true;if(D){D.call()}}function Z(ad){var az=$(ad).find("*").eq(2);s=az.attr("dc:title");aa=az.attr("tscDM:originId");g=az.attr("tscDM:project");U=Number($(ad).find("*").eq(3).attr("xmpDM:value"));r=s;var af;var ap=$(ad).find("*").length;var at;var aA=0;for(af=4;af