if(typeof AC==="undefined"){AC={};}AC.QuickTime={_createNullMovie:function(Q,d){Q=0;d=0;var B=$(document.createElement("div")),b="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",F="http://www.apple.com/qtactivex/qtplugin.cab#version=7,3,0,0",N="http://www.apple.com/quicktime/download/";B.innerHTML="<object width=\""+Q+"\" height=\""+d+"\" classid=\""+b+"\" codebase=\""+F+"\"><embed width=\""+Q+"\" height=\""+d+"\" type=\"video/quicktime\" pluginspage=\""+N+"\"></embed></object>";return B;},packageMovie:function(Q,d,b){if(!Q||!d){throw new TypeError("Valid Name and File URL are required arguments.");}var F="7",N=null;if(b&&b.minVersion){F=b.minVersion;}if(!AC.Detector.isMobile()&&!AC.Detector.isValidQTAvailable(F)){N=$(document.createElement("a"));N.addClassName("quicktime-download");N.setAttribute("href","http://www.apple.com/quicktime/download/");N.innerHTML=b.downloadText||"Get the latest QuickTime.";$$("body")[0].fire("QuickTime:noCompatibleQTAvailable",{controller:this,minVersion:F});return N;}if(AC.Detector.isIEStrict()){AC.QuickTime.createEventSource();}if(b&&!!b.factory){return b.factory.create.call(b.factory,Q,d,b);}else{return AC.QuickTime.Factory.Plugin.create(Q,d,b);}},createEventSource:function(){var Q="qt_event_source",b,d;if(document.getElementById(Q)){return ;}b=document.createElement("object");b.id=Q;b.setAttribute("clsid","CB927D12-4FF7-4a9e-A169-56E4B8A75598");d=document.getElementsByTagName("head")[0];d.appendChild(b);}};AC.Quicktime=AC.QuickTime;AC.QuickTime.Factory={Combined:{create:function(Q,d,b){var F=null,N=null;F=AC.QuickTime.Factory.Plugin.create(Q,d,b);if(AC.Detector.isIEStrict()){return F;}else{N=AC.QuickTime.Factory.Video.create(Q,d,b);N.appendChild(F);return N;}}},Plugin:{create:function(N,b,Q){var F=this._createOuterObject(N,b,Q),d=null;if(!AC.Detector.isIEStrict()){d=this._createInnerObject(N,b,Q);F.appendChild(d);F.inner=d;}else{F.style.behavior="url(#qt_event_source)";if(Q.aggressiveCleanup!==false){Event.observe(window,"unload",function(){try{F.Stop();}catch(B){}F.style.display="none";F=null;});}}this._configure(d,F,Q);this._addParameter(F,"saveembedtags",true);this._addParameter(d,"saveembedtags",true);this._addParameter(F,"postdomevents",true);this._addParameter(d,"postdomevents",true);F.setAttribute("classid","clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B");return F;},_configure:function(d,F,Q){if(!Q){return false;}var N=null,b=null;for(N in Q){if(Q.hasOwnProperty(N)){b=N.toLowerCase();switch(b){case ("type"):case ("src"):case ("data"):case ("classid"):case ("name"):case ("id"):case ("postdomevents"):case ("saveembedtags"):case ("factory"):case ("aggressiveCleanup"):break;case ("class"):Element.addClassName(F,Q[N]);break;case ("innerId"):if(d){d.setAttribute("id",Q[N]);}break;case ("autoplay"):this._addParameter(F,"autostart",Q[N]);this._addParameter(d,"autostart",Q[N]);break;case ("width"):case ("height"):F.setAttribute(b,Q[N]);if(d){d.setAttribute(b,Q[N]);}break;default:this._addParameter(F,b,Q[N]);this._addParameter(d,b,Q[N]);break;}}}},_addParameter:function(b,d,Q){if(!b){return ;}var N=document.createElement("param");N.setAttribute("value",Q);N.setAttribute("name",d);b.appendChild(N);N=null;},_createOuterObject:function(Q,d,b){var F=document.createElement("object"),N="7,3,0,0";if(AC.Detector.isMobile()&&b.posterFrame){this._addParameter(F,"src",b.posterFrame);this._addParameter(F,"href",d);this._addParameter(F,"target","myself");}else{this._addParameter(F,"src",d);}F.setAttribute("id",Q);if(null!==b&&(typeof b.codebase!=="undefined")&&""!==b.codebase){N=b.codeBase;}F.setAttribute("codebase","http://www.apple.com/qtactivex/qtplugin.cab#version="+N);return F;},_createInnerObject:function(N,b,Q){var d=document.createElement("object");d.setAttribute("type","video/quicktime");d.setAttribute("data",b);d.setAttribute("id",N+"Inner");d.setAttribute("name",N);return d;}},Video:{create:function(Q,d,b){var N=document.createElement("video");N.setAttribute("id",Q);N.setAttribute("src",d);this._configure(N,b);return N;},_configure:function(Q,b){if(!b){return false;}var N=null,d=null;for(N in b){if(b.hasOwnProperty(N)){d=N.toLowerCase();switch(d){case ("type"):case ("src"):case ("data"):case ("classid"):case ("name"):case ("id"):case ("postdomevents"):case ("saveembedtags"):case ("factory"):case ("aggressiveCleanup"):case ("innerId"):case ("cache"):case ("wmode"):case ("aggressivecleanup"):case ("showlogo"):break;case ("class"):Element.addClassName(Q,b[N]);break;case ("controller"):if(b[N]){Q.setAttribute("controls","controls");}break;case ("autoplay"):case ("autostart"):if(b[N]){Q.setAttribute("autoplay","autoplay");}break;default:Q.setAttribute(d,b[N]);break;}}}}},Audio:{},Null:{}};AC.QuickTime.States={Polling:{isAvailable:function(d){return true;},toString:function(){return "Polling State";},detachFromMovie:Prototype.emptyFunction,reset:Prototype.emptyFunction,_monitor:function(){var b=this.isPlaying(),d=null;if(!this._acknowledgedPlayable){d=this.GetPluginStatus();if("Playable"===d||"Complete"===d){this._didBecomePlayable();}}else{if(!this.isJogging){if(b&&!this.playing){this._didStart();}else{if(!b&&this.playing){this._didStop();}}}}this.updateController();if(this.movie!==null){this.movieWatcher=setTimeout(AC.Quicktime.States.Polling._monitor.bind(this),this._monitorDelay);}},monitorMovie:function(){this.movieWatcher=setTimeout(AC.Quicktime.States.Polling._monitor.bind(this),this._monitorDelay);}},Events:{eventNames:{plugin:{loadstart:"loadstart",progress:"qt_progress",loadedmetadata:"loadedmetadata",loadedfirstframe:"loadedfirstframe",load:"load",abort:"abort",error:"error",emptied:"emptied",stalled:"stalled",play:"qt_play",pause:"qt_pause",waiting:"waiting",seeking:"seeking",seeked:"seeked",timeupdate:"timeupdate",ended:"qt_ended",dataunavailable:"dataunavailable",canshowcurrentframe:"canshowcurrentframe",canplay:"canplay",canplaythrough:"qt_canplaythrough",ratechange:"ratechange",durationchange:"durationchange",volumechange:"volumechange"},video:{loadstart:"loadstart",progress:"progress",loadedmetadata:"loadedmetadata",loadedfirstframe:"loadedfirstframe",load:"load",abort:"abort",error:"error",emptied:"emptied",stalled:"stalled",play:"play",pause:"pause",waiting:"waiting",seeking:"seeking",seeked:"seeked",timeupdate:"timeupdate",ended:"ended",dataunavailable:"dataunavailable",canshowcurrentframe:"canshowcurrentframe",canplay:"canplay",canplaythrough:"canplaythrough",ratechange:"ratechange",durationchange:"durationchange",volumechange:"volumechange"}},isAvailable:function(d){return AC.Detector.isQTCompatible("7.3");},toString:function(){return "DOM Event State";},detachFromMovie:function(){var d=AC.QuickTime.States.Events._eventNames(this.movie);Event.stopObserving(this.movie,d.canplaythrough,this._didBecomePlayableCallback);Event.stopObserving(this.movie,d.pause,this._didStopCallback);Event.stopObserving(this.movie,d.play,this._didStartCallback);},_eventNames:function(d){var b=d.tagName.match(/video/i)?AC.QuickTime.States.Events.eventNames.video:AC.QuickTime.States.Events.eventNames.plugin;return b;},reset:Prototype.emptyFunction,_monitor:function(){var d=null,b;if(!this._acknowledgedPlayable){d=this.GetPluginStatus();if("Playable"===d||"Complete"===d){this._didBecomePlayable();if(this.isPlaying()){this._didStart();}b=AC.QuickTime.States.Events._eventNames(this.movie);this._didStartCallback=this._didStart.bind(this);Event.observe(this.movie,b.play,this._didStartCallback);}}this.updateController();if(this.movie!==null){this.movieWatcher=setTimeout(AC.Quicktime.States.Events._monitor.bind(this),this._monitorDelay);}},monitorMovie:function(){if(!this._hasBegunMonitoring){var d=AC.QuickTime.States.Events._eventNames(this.movie);this._didStopCallback=this._didStop.bind(this);Event.observe(this.movie,d.pause,this._didStopCallback);Event.observe(this.movie,d.ended,this._didStopCallback);}this.movieWatcher=setTimeout(AC.Quicktime.States.Events._monitor.bind(this),this._monitorDelay);}}};AC.QuickTime.Controller=Class.create();AC.QuicktimeController=AC.QuickTime.Controller;AC.QuickTimeController=AC.QuickTime.Controller;AC.QuickTime.Controller.prototype={movie:null,options:null,movieAttacher:null,attachDelay:500,movieWatcher:null,normalMonitorDelay:480,longMonitorDelay:4800,_monitorDelay:this.normalMonitorDelay,_hasBegunMonitoring:false,currentTime:0,percentLoaded:0,maxBytesLoaded:0,movieSize:0,allowAttach:true,controllerPanel:null,currentControl:null,playControl:null,pauseControl:null,slider:null,track:null,playHead:null,loadedProgress:null,state:null,_closedCaptionsAvailable:false,_closedCaptionsEnabled:false,_closedCaptionTrackIndex:4,_acknowledgedPlayable:false,isJogging:false,hardPaused:false,duration:0,finished:false,playing:false,unloader:null,initialize:function(d,b){this._eventSource=$$("body")[0];this.options=b||{};if(this.options.delegate){this.setDelegate(this.options.delegate);}if(this.options.renderInto){this.render(this.options.renderInto);}this.attachToMovie(d,b);},setDelegate:function(d){this.delegate=d;},setState:function(b,d){if(typeof (b)!=="undefined"){this.state=b;}else{this.state=AC.Quicktime.States.Polling;}},attachToMovie:function(d,b){if(!d||!this.allowAttach){return ;}if(!$(d)){throw "Movie has to be appended to document prior to attaching to with a controller.";}if(this.movie){this.detachFromMovie();}this._trackTypes=[];this._trackNames=[];this._chapterNames=[];clearInterval(this.movieAttacher);if(typeof b!=="undefined"){this.options=b;}if(!this.unloader){this.unloader=this.detachFromMovie.bind(this);Event.observe(window,"unload",this.unloader);}this._startLoadingIndicator(d);this.movieAttacher=setInterval(this._attach.bind(this,d),this.attachDelay);d=null;},_attach:function(d){if(!this.allowAttach){return ;}this.movie=this._responsiveMediaElement(d);if(this.movie){clearInterval(this.movieAttacher);this.setState(this.options.state);this.movieIsVideo=!!this.movie.tagName.match(/video/i);if(this.delegate&&typeof this.delegate.didAttach==="function"){this.delegate.didAttach(this);}this._eventSource.fire("QuickTime:didAttach",{controller:this});this.monitorMovie();}d=null;},_startLoadingIndicator:function(d){this._movieContainer=d.parentNode;Element.addClassName(this._movieContainer,"movie-loading");if(this.controllerPanel){Element.addClassName(this.controllerPanel,"movie-loading");}},_stopLoadingIndicator:function(){if(this._movieContainer){Element.removeClassName(this._movieContainer,"movie-loading");this._movieContainer=null;}if(this.controllerPanel){Element.removeClassName(this.controllerPanel,"movie-loading");}},_responsiveMediaElement:function(d){try{if(!d){return null;}else{if(d.play||d.Play){return d;}else{return this._responsiveMediaElement(d.down("video, object, embed"));}}}catch(b){if(d.GetPluginStatus()){return d;}else{return this._responsiveMediaElement(d.down("video, object, embed"));}return null;}},detachFromMovie:function(){this.allowAttach=false;if(this.state){this.state.detachFromMovie.call(this);}clearInterval(this.movieAttacher);clearTimeout(this.movieWatcher);this.movie=null;this.reset();this._trackTypes=null;this._trackNames=null;this._chapterNames=null;Event.stopObserving(window,"unload",this.unloader);this.unloader=null;this.allowAttach=true;if(this.delegate&&typeof this.delegate.didDetach==="function"){this.delegate.didDetach(this);}this._eventSource.fire("QuickTime:didDetach",{controller:this});},monitorMovie:function(){if(!this.movie){throw new Error("Cannot begin monitoring until attached to a movie");}this.state.monitorMovie.call(this);if(this.controllerPanel!==null&&!this._hasBegunMonitoring){this.slider=new Control.Slider(this.playHead,this.track,{onSlide:function(d){if(isNaN(d)){return ;}this.trackProgress.style.width=this.slider.translateToPx(d);if(!this.isJogging){this._didStartJogging();}this.SetTime(d*this.GetDuration());}.bind(this),onChange:function(d){if(isNaN(d)){return ;}if(this.isJogging){this._didStopJogging();}this.trackProgress.style.width=this.slider.translateToPx(d);}.bind(this)});this.slider.updateStyles=Prototype.emptyFunction;}this._hasBegunMonitoring=true;},_didBecomePlayable:function(){this._stopLoadingIndicator();this.updateController();if(this._acknowledgedPlayable){return ;}this._acknowledgedPlayable=true;var d=this.GetTrackCount(),b;for(b=1;b<=d;b++){if("Closed Caption"===this.GetTrackType(b)){this._closedCaptionTrackIndex=b;this._setClosedCaptionsAvailable(true);}}if(this.options.onMoviePlayable&&typeof this.options.onMoviePlayable==="function"){this.options.onMoviePlayable();}if(this.delegate&&typeof this.delegate.didBecomePlayable==="function"){this.delegate.didBecomePlayable(this);}this._eventSource.fire("QuickTime:canplaythrough",{controller:this});},playedCount:0,_didStart:function(){if(this.wasJogging){this.wasJogging=false;return ;}this.playing=true;if(this.controllerPanel){this.controllerPanel.replaceChild(this.pauseControl,this.currentControl);this.currentControl=this.pauseControl;}if(typeof this.options.onMovieStart==="function"){this.options.onMovieStart();}if(0===this.playedCount){if(this.delegate&&typeof this.delegate.didBegin==="function"){this.delegate.didBegin(this);}this._eventSource.fire("QuickTime:begin",{controller:this});}else{if(this.delegate&&typeof this.delegate.didStart==="function"){this.delegate.didStart(this);}this._eventSource.fire("QuickTime:start",{controller:this});}this.playedCount+=1;},_didStop:function(){if(this.isJogging){return ;}this.playing=false;if(this.controllerPanel){this.controllerPanel.replaceChild(this.playControl,this.currentControl);this.currentControl=this.playControl;}if(typeof this.options.onMovieStop==="function"){this.options.onMovieStop();}var b=this.GetTime(),d=this.GetDuration();if(b>=d){this._didPlayProgress(d,d);if(this.options.onMovieFinished&&typeof this.options.onMovieFinished==="function"){this.options.onMovieFinished();}if(this.delegate&&typeof this.delegate.didEnd==="function"){this.delegate.didEnd(this);}this._eventSource.fire("QuickTime:end",{controller:this});}else{if(this.delegate&&typeof this.delegate.didStop==="function"){this.delegate.didStop(this);}this._eventSource.fire("QuickTime:stop",{controller:this});}},reset:function(){if(this.state){this.state.reset.call(this);}this.duration=0;this.movieSize=0;this.maxBytesLoaded=0;this.percentLoaded=0;this.movieIsVideo=false;this._acknowledgedPlayable=false;this.playedCount=0;this._hasBegunMonitoring=false;this._monitorDelay=this.normalMonitorDelay;this._trackCount=NaN;this._trackTypes=[];this._trackNames=[];this._chapterCount=NaN;this._chapterNames=[];this.setClosedCaptionsEnabled(false);this._setClosedCaptionsAvailable(false);delete this.timeScale;if(this.slider){this.slider.setValue(0);this.slider.trackLength=this.slider.maximumOffset()-this.slider.minimumOffset();}this._stopLoadingIndicator();if(this.loadedProgress){this.loadedProgress.style.width="0px";}},render:function(d){if(typeof d!=="undefined"&&!$(d)){throw new Error("Specified container ID, '"+d+"' not found in DOM");}this.controllerPanel=$(document.createElement("div"));Element.addClassName(this.controllerPanel,"ACQuicktimeController");this.playControl=document.createElement("div");Element.addClassName(this.playControl,"control");Element.addClassName(this.playControl,"play");this.playControl.innerHTML="Play";this.playControl.onclick=this.Play.bind(this);this.pauseControl=document.createElement("div");Element.addClassName(this.pauseControl,"control");Element.addClassName(this.pauseControl,"pause");this.pauseControl.innerHTML="Pause";this.pauseControl.onclick=this.Stop.bind(this);var b=false;if(null!==this.movie){b=this.GetAutoPlay();}this.currentControl=(b)?this.pauseControl:this.playControl;this.controllerPanel.appendChild(this.currentControl);this.sliderPanel=document.createElement("div");Element.addClassName(this.sliderPanel,"sliderPanel");this.track=document.createElement("div");Element.addClassName(this.track,"track");this.sliderPanel.appendChild(this.track);this.loadedProgress=document.createElement("div");Element.addClassName(this.loadedProgress,"loadedProgress");this.track.appendChild(this.loadedProgress);this.trackProgress=document.createElement("div");Element.addClassName(this.trackProgress,"trackProgress");this.track.appendChild(this.trackProgress);this.playHead=document.createElement("div");Element.addClassName(this.playHead,"playHead");this.track.appendChild(this.playHead);this.controllerPanel.appendChild(this.sliderPanel);this.timeDisplay=document.createElement("div");Element.addClassName(this.timeDisplay,"timeDisplay");this.controllerPanel.appendChild(this.timeDisplay);if(d){$(d).appendChild(this.controllerPanel);this.trackWidth=Element.getDimensions(this.track).width;if(this.delegate&&typeof this.delegate.didRenderController==="function"){this.delegate.didRenderController(this);}this._eventSource.fire("QuickTime:didRenderController",{controller:this});if(this.movie){this.monitorMovie();}}return this.controllerPanel;},setTimeDisplayString:function(d){this.timeDisplay.innerHTML=d;},updateController:function(d){if(!this.controllerPanel){return ;}this._updateControllerLoadedProgress();if(this.isJogging||this.isPlaying()){var N=this.currentTime,b=this.GetTime(),Q=this.GetDuration();if(N!==b){if(!this.isJogging){this.slider.setValue(b/Q);}this._didPlayProgress(b,Q);}}},_didPlayProgress:function(d,b){if(this.delegate&&typeof this.delegate.didPlayProgress==="function"){this.delegate.didPlayProgress(this,d,b);}this._eventSource.fire("QuickTime:didPlayProgress",{controller:this,currentTime:d,duration:b});},_updateControllerLoadedProgress:function(){if(this.percentLoaded<1){var d=Element.getDimensions(this.track).width,Q=this.GetMaxBytesLoaded()/this.GetMovieSize(),b=0;if(!isNaN(Q)&&0!==Q){this.percentLoaded=Q;}b=d*this.percentLoaded;Element.setStyle(this.loadedProgress,{width:b+"px"});}},_didStartJogging:function(){if(!this.isJogging){this.playAfterJog=this.isPlaying();this.isJogging=true;this.Stop();var d=this.GetTime();if(this.delegate&&typeof this.delegate.didStartJogging==="function"){this.delegate.didStartJogging(this,d);}this._eventSource.fire("QuickTime:didStartJogging",{controller:this,time:d});}},_didStopJogging:function(){this.isJogging=false;var d=this.GetTime();if(this.delegate&&typeof this.delegate.didStopJogging==="function"){this.delegate.didStopJogging(this,d);}this._eventSource.fire("QuickTime:didStopJogging",{controller:this,time:d});if(this.playAfterJog){this.wasJogging=true;this.Play();}},Play:function(){if(null!==this.movie){try{if(this.movieIsVideo){this.movie.play();}else{this.movie.Play();}}catch(d){}}},Stop:function(){if(null!==this.movie){try{if(this.movieIsVideo){this.movie.pause();}else{this.movie.Stop();}}catch(d){}}},Rewind:function(){if(null!==this.movie){this.movie.Stop();this.movie.Rewind();}},Step:function(d){this.movie.Step(d);},ShowDefaultView:function(){this.movie.ShowDefaultView();},GoPreviousNode:function(){this.movie.GoPreviousNode();},GetQuicktimeVersion:function(){return this.movie.GetQuickTimeVersion();},GetQuicktimeLanguage:function(){return this.movie.GetQuicktimeLanguage();},GetQuicktimeConnectionSpeed:function(){return this.movie.GetQuicktimeConnectionSpeed();},GetIsQuickTimeRegistered:function(){return this.movie.GetIsQuickTimeRegistered();},GetComponentVersion:function(){return this.movie.GetComponentVersion();},GetPluginVersion:function(){return this.movie.GetPluginVersion();},ResetPropertiesOnReload:function(){this.movie.ResetPropertiesOnReload();},GetPluginStatus:function(){if(!this.movieIsVideo){try{return this.movie.GetPluginStatus();}catch(b){return "Waiting";}}else{var d=this.movie.readyState;return d>2?"Playable":"Waiting";}},GetAutoPlay:function(){return this.movie.GetAutoPlay();},SetAutoPlay:function(d){this.movie.SetAutoPlay(d);},GetControllerVisible:function(){return this.movie.GetControllerVisible();},SetControllerVisible:function(d){this.movie.SetControllerVisible(d);},GetRate:function(){return this.movie.GetRate();},SetRate:function(d){this.movie.SetRate();},GetTime:function(){var b=0;try{if(this.movieIsVideo){b=this.movie.currentTime;}else{b=this.movie.GetTime();}}catch(d){}if(0===b){b=this.currentTime+this._monitorDelay;}else{this.currentTime=b;}return b;},SetTime:function(b){try{if(this.movieIsVideo){this.movie.currentTime=b;}else{this.movie.SetTime(b);}}catch(d){}},GetVolume:function(){return this.movie.GetVolume();},SetVolume:function(d){this.movie.SetVolume(d);},GetMute:function(){return this.movie.GetMute();},SetMute:function(d){this.movie.SetMute(d);this.setClosedCaptionsEnabled(d);},GetMovieName:function(){return this.movie.GetMovieName();},SetMovieName:function(d){this.movie.SetMovieName(d);},GetMovieID:function(){return this.movie.GetMovieID();},SetMovieID:function(d){this.movie.SetMovieID(d);},GetStartTime:function(){return this.movie.GetStartTime();},SetStartTime:function(d){this.movie.SetStartTime(d);},GetEndTime:function(){return this.movie.GetEndTime();},SetEndTime:function(d){this.movie.SetEndTime(d);},GetBgColor:function(){return this.movie.GetBgColor();},SetBgColor:function(d){this.movie.SetBgColor(d);},GetIsLooping:function(){return this.movie.GetIsLooping();},SetIsLooping:function(d){this.movie.SetIsLooping(d);},GetLoopIsPalindrome:function(){return this.movie.GetLoopIsPalindrome();},SetLoopIsPalindrome:function(d){this.movie.SetLoopIsPalindrome(d);},GetPlayEveryFrame:function(){return this.movie.GetPlayEveryFrame();},SetPlayEveryFrame:function(d){this.movie.SetPlayEveryFrame(d);},GetHREF:function(){return this.movie.GetHREF();},SetHREF:function(d){this.movie.SetHREF(d);},GetTarget:function(){return this.movie.GetTarget();},SetTarget:function(d){this.movie.SetTarget(d);},GetQTNEXTUrl:function(){return this.movie.GetQTNEXTUrl();},SetQTNEXTUrl:function(b,d){this.movie.SetQTNEXTUrl(b,d);},GetURL:function(){return this.movie.GetURL();},SetURL:function(d){if(!!this.movie.tagName.match(/video/i)){this.movie.src=d;this.movie.load();}else{this.movie.SetURL(d);}this.reset();},GetKioskMode:function(){return this.movie.GetKioskMode();},SetKioskMode:function(d){this.movie.SetKioskMode(d);},GetDuration:function(){if(null===this.duration||0===this.duration){try{if(this.movieIsVideo){this.duration=this.movie.duration;}else{this.duration=this.movie.GetDuration();}}catch(d){this.duration=0;}}return this.duration;},GetMaxTimeLoaded:function(){return this.movie.GetMaxTimeLoaded();},GetTimeScale:function(){if(typeof this.timeScale!=="undefined"){return this.timeScale;}try{if(this.movieIsVideo){this.timeScale=2997;}else{this.timeScale=this.movie.GetTimeScale();}}catch(d){}return this.timeScale;},GetMovieSize:function(){if(0===this.movieSize){try{if(this.movieIsVideo){this.movieSize=this.movie.totalBytes;}else{this.movieSize=this.movie.GetMovieSize();}}catch(d){this.movieSize=0;}}return this.movieSize;},GetMaxBytesLoaded:function(){try{if(this.movieIsVideo){this.maxBytesLoaded=this.movie.bufferedBytes;}else{this.maxBytesLoaded=this.movie.GetMaxBytesLoaded();}}catch(d){}return this.maxBytesLoaded;},_trackCount:NaN,GetTrackCount:function(){if(!isNaN(this._trackCount)){return this._trackCount;}try{this._trackCount=this.movie.GetTrackCount();return this._trackCount;}catch(d){return NaN;}},GetMatrix:function(){return this.movie.GetMatrix();},SetMatrix:function(d){this.movie.SetMatrix(d);},GetRectangle:function(){return this.movie.GetRectangle();},SetRectangle:function(d){this.movie.SetRectangle(d);},GetLanguage:function(){return this.movie.GetLanguage();},SetLanguage:function(d){this.movie.SetLanguage(d);},GetMIMEType:function(){return this.movie.GetMIMEType();},GetUserData:function(d){return this.movie.GetUserData(d);},GetIsVRMovie:function(){return this.movie.GetIsVRMovie();},GetHotspotUrl:function(d){return this.movie.GetHotspotUrl(d);},SetHotspotUrl:function(d,b){this.movie.SetHotspotUrl(d,b);},GetHotspotTarget:function(d){return this.movie.GetHotspotTarget(d);},SetHotspotTarget:function(d,b){this.movie.SetHotspotTarget(d,b);},GetPanAngle:function(){return this.movie.GetPanAngle();},SetPanAngle:function(d){this.movie.SetPanAngle(d);},GetTiltAngle:function(){return this.movie.GetTiltAngle();},SetTiltAngle:function(d){this.movie.SetTiltAngle(d);},GetFieldOfView:function(){return this.movie.GetFieldOfView();},SetFieldOfView:function(d){this.movie.SetFieldOfView(d);},GetNodeCount:function(){return this.movie.GetNodeCount();},SetNodeID:function(d){this.movie.SetNodeID(d);},_trackNames:null,GetTrackName:function(d){if(!this._trackNames){throw "Need to attach to a movie before getting track names";}if(this._trackNames[d]){return this._trackNames[d];}try{var b=this.movie.GetTrackName(d);this._trackNames[d]=b;return b;}catch(Q){if(!this._trackExistsAtIndex(d)){throw "There is no track at the specified index: "+d;}else{return "Unknown";}}},_trackTypes:null,GetTrackType:function(d){if(!this._trackTypes){throw "Need to attach to a movie before getting track types";}if(this._trackTypes[d]){return this._trackTypes[d];}try{var b=this.movie.GetTrackType(d);this._trackTypes[d]=b;return b;}catch(Q){if(!this._trackExistsAtIndex(d)){throw "There is no track at the specified index: "+d;}else{return "Unknown";}}},GetTrackEnabled:function(d){try{return this.movie.GetTrackEnabled(d);}catch(b){if(!this._trackExistsAtIndex(d)){throw "There is no track at the specified index: "+d;}}},SetTrackEnabled:function(b,d){try{this.movie.SetTrackEnabled(b,d);}catch(Q){if(!this._trackExistsAtIndex(b)){throw "There is no track at the specified index: "+b;}}},_trackExistsAtIndex:function(d){return !isNaN(this._trackCount)&&(d<=this._trackCount)&&(d>0);},GetSpriteTrackVariable:function(b,d){return this.movie.GetSpriteTrackVariable(b,d);},SetSpriteTrackVariable:function(b,d){this.movie.SetSpriteTrackVariable(b,d);},_chapterCount:NaN,GetChapterCount:function(){if(!isNaN(this._chapterCount)){return this._chapterCount;}try{this._chapterCount=this.movie.GetChapterCount();return this._chapterCount;}catch(d){return NaN;}},_chapterNames:null,GetChapterName:function(d){if(!this._chapterNames){throw "Need to attach to a movie before getting chapter names";}if(this._chapterNames[d]){return this._chapterNames[d];}try{var Q=this.movie.GetChapterName(d);this._chapterNames[d]=Q;return Q;}catch(b){if(!this._chapterExistsAtIndex(d)){throw "There is no chapter at the specified index: "+d;}else{return null;}}},GoToChapter:function(d){try{this.movie.GoToChapter(d);return true;}catch(b){return false;}},_chapterExistsAtIndex:function(d){return !isNaN(this._chapterCount)&&(d<=this._chapterCount)&&(d>0);},isPlaying:function(){try{if(this.movieIsVideo){return !this.movie.paused&&!this.movie.ended;}else{return this.movie.GetRate()!==0;}}catch(d){return false;}},isFinished:function(){try{if(this.movieIsVideo){return this.movie.ended;}var Q=this.movie.GetRate()===0,d=this.movie.GetTime()===this.GetDuration();return Q&&d;}catch(b){return false;}},toggle:function(){if(this.isPlaying()){this.Stop();}else{this.Play();}},_setClosedCaptionsAvailable:function(d){this._closedCaptionsAvailable=d;if(this.controllerPanel){if(d){if(!this.captioningToggle){this.captioningToggle=document.createElement("div");Element.addClassName(this.captioningToggle,"captioningToggle");Element.addClassName(this.captioningToggle,"ccAvailable");this.captioningToggle.innerHTML="Closed Captioning";this.captioningToggle.onclick=this.toggleClosedCaptions.bind(this);}if(!this.captioningToggle.parentNode){this.controllerPanel.appendChild(this.captioningToggle);}}else{if(!d&&this.captioningToggle&&this.captioningToggle.parentNode){this.controllerPanel.removeChild(this.captioningToggle);}}}},toggleClosedCaptions:function(){if(!this._closedCaptionsAvailable){return ;}this.setClosedCaptionsEnabled(!this._closedCaptionsEnabled);},setClosedCaptionsEnabled:function(d){if(!this._closedCaptionsAvailable){return ;}try{this.SetTrackEnabled(this._closedCaptionTrackIndex,d);if(this.captioningToggle&&d){Element.addClassName(this.captioningToggle,"ccEnabled");}else{Element.removeClassName(this.captioningToggle,"ccEnabled");}this._closedCaptionsEnabled=d;if(this.delegate&&typeof this.delegate.didSetClosedCaptions==="function"){this.delegate.didSetClosedCaptions(this,d);}this._eventSource.fire("QuickTime:didSetClosedCaptions",{controller:this,enabled:d});}catch(b){}},closedCaptionsEnabled:function(){return this._closedCaptionsEnabled;},suspend:function(){if(this.movieWatcher){clearTimeout(this.movieWatcher);this.movieWatcher=null;}},decelerate:function(){this.setMonitorDelay(this.longMonitorDelay);},resume:function(){if(!this.movie){return ;}if(!this.movieWatcher){this.monitorMovie();}else{this.setMonitorDelay(this.normalMonitorDelay);}},setMonitorDelay:function(d){clearTimeout(this.movieWatcher);this._monitorDelay=d;this.monitorMovie();},monitorDelay:function(){return this._monitorDelay;}};
