/****************************************************/
// Handle Videos 
// @copyright Fonqi, 18. dec 2008 
/****************************************************/

function Video(vId, vCreated, vTitle, vDescription, vUrlEncodedPath, vCategory)
{
    this.id = vId;
    this.creationDate = vCreated;
    this.title = vTitle;
    this.description = vDescription;
    this.urlEncodedPath = vUrlEncodedPath;
    this.categoryName = vCategory;    
    this.author = "";
}

Video.videos = new Array();

Video.NewInstance = function(vId, vCreated, vTitle, vDescription, vUrlEncodedPath, vCategory)
{
    
    Video.videos.push(new Video(vId, vCreated, vTitle, vDescription, vUrlEncodedPath, vCategory));    
}

Video.GetInstance = function(vId)
{    
	for(i = 0; i<Video.videos.length; i++)
	{	    
		if(Video.videos[i].id == vId)
			return Video.videos[i];
	}
}



/****************************************************/
