function Video( id, picture, filePath, title, local, date, dateAdded, professionals, products,
					director, producer,credito, url, limitedTitle, stars, timeLength, tags, channel )
{

	//Attributes
	
	this.id = id;
	this.picture = picture;
	this.filePath = filePath;
	this.title = title;
	this.local = local;
	this.date = date;
	this.dateAdded = dateAdded;
	this.professionals = professionals;
	this.products = products;
	this.director = director;
	this.producer = producer;
	this.credito = credito;
	this.url = url;
	this.limitedTitle = limitedTitle;
	this.stars = stars;
	this.timeLength = timeLength;
	this.tags = tags
	this.channel = channel
	
	//events
	
	Video.prototype.getId			 = function(){ return this.id }
	Video.prototype.getPicture		 = function(){ return this.picture }
	Video.prototype.getFilePath		 = function(){ return this.filePath }
	Video.prototype.getTitle		 = function(){ return replaceAll( this.title, "|","'" ) }
	Video.prototype.getLocal		 = function(){ return replaceAll( this.local, "|","'" ) }
	Video.prototype.getDate			 = function(){ return this.date }
	Video.prototype.getDateAdded	 = function(){ return this.dateAdded }
	Video.prototype.getProfessionals = function(){ return replaceAll( this.professionals, "|","'" ) }
	Video.prototype.getProducts		 = function(){ return replaceAll( this.products, "|","'" ) }
	Video.prototype.getDirector		 = function(){ return replaceAll( this.director, "|","'" ) }
	Video.prototype.getProducer		 = function(){ return replaceAll( this.producer, "|","'" ) }
	Video.prototype.getCredito		 = function(){ return replaceAll( this.credito, "|","'" ) }
	Video.prototype.getUrl			 = function(){ return this.url }
	Video.prototype.getLimitedTitle  = function(){ return replaceAll( this.limitedTitle, "|","'" ) }
	Video.prototype.getStars		 = function(){ return this.stars }
	Video.prototype.getTimeLength	 = function(){ return this.timeLength }
	Video.prototype.getChannel  	 = function(){ return this.channel }
	
	Video.prototype.getTags =
	function()
	{
		s = ""
		arr = this.tags.split( ' ' )
	
		for( x=0; x < arr.length; x++ )
			s += "<a class=tags href=\"javascript:updateGrid(0,0,'" + arr[x] + "')\">" + replaceAll( arr[x],"|","'" ) + "</a> "
	
		return ( arr.length == 0 ) ? "" : "Tags:&nbsp;" + s
	
	}
	
	Video.prototype.getViews = 
	function()
	{	
		var aP = document.getElementById( "hAjaxPageIncrementViews" ).value
		return new AjaxRequest( "Post" , aP , "videoId=" + this.id ).getText() 
	}
	
	Video.prototype.getRating = function(){ return new Rating( this.id ) }
}

