﻿function VideoController()
{
var loading = "<span class='img_nbdr'>&nbsp;&nbsp;&nbsp;</span>";this.ShowRelated = function (obj, p) 
{ 
obj = obj.parentElement.parentElement;obj.innerHTML = loading;VideoService.GetRelatedItems(p, this.OnCompleteR, this.OnError, obj);};this.OnCompleteR = function( result, userContext) 
{
userContext.innerHTML = result;};this.OnError = function ( result, userContext) 
{
userContext.innerHTML = "Oops an error. Try it again...";};this.GetProgress = function (callback, p) 
{ 
UploadMediaService.GetUploadProgress(p, this.OnCompleteP, this.OnErrorP, callback);};this.OnCompleteP = function( result, callback) 
{
if ( callback) 
callback( result);};this.OnErrorP = function ( result, callback) 
{
if ( callback) 
callback( null);};}
document.vcr = new VideoController();
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();