﻿

function VideoPopupHelper()
{
    this.KeyList = new Array() ;
    this.VideoDefinitionList = new Array() ;
    
    this.MarkerInstances = new Array() ;

    this.ItemCount = 0 ;


    this.AddPopupDef = function(key, videoPlayerItemDefinition) {

        this.KeyList[this.ItemCount] = key;
        this.VideoDefinitionList[this.ItemCount] = videoPlayerItemDefinition;
        this.ItemCount++;
    }


    this.GetItem = function(guid) {
        for (var i = 0; i < this.VideoDefinitionList.length; i++)
         {
             if (guid == this.VideoDefinitionList[i].GUID)
             {
                return this.VideoDefinitionList[i];
            }
        }
        return null;

    }
    
}

var videoItems = new VideoPopupHelper() ;


