var VideoLoader={initialize:function(){VideoLoader.placeholder=$("placeholderVideo");VideoLoader.progressIndicator=$("video-progress-indicator");VideoLoader.refreshUrl=VideoLoader.placeholder.readAttribute("refreshUrl");VideoLoader.refresh()},refresh:function(){VideoLoader.progressIndicator.show();(new Ajax.Request(VideoLoader.refreshUrl,{method:"get",onSuccess:VideoLoader._handleRefreshSuccess,onFailure:VideoLoader._handleRefreshError,onException:VideoLoader._handleRefreshError,requestTimeout:AjaxUtils.globalTimeout}))},_handleRefreshSuccess:function(A){VideoLoader.progressIndicator.hide();AjaxUtils.validateResponse(A);VideoLoader.placeholder.replace(A.responseText)},_handleRefreshError:function(B,A){VideoLoader.progressIndicator.hide()}};Event.observe(window,"load",VideoLoader.initialize);
