function publicCaption(transcript_id, number) {
	this.text = "";
	this.startFrame = "";
	this.endFrame = "";
	this.startTime = "";
	this.endTime = "";
	this.speaker_id = "";
	this.style = "";
	this.elementID = "caption_"+number;
	this.captionID = 0;
	this.background = "";
	this.number = number; //terrible hack to find a way to reference the objects
	this.transcript_id = transcript_id;
	
}



//************************************************
//Caption functions
//*************************************************
publicCaption.prototype.setCaption = function(caption) {
	this.text = caption;
}

publicCaption.prototype.getCaption = function() {
	return this.text;	
}


//************************************************
//Start time functions
//*************************************************
publicCaption.prototype.setStart = function(_startTime) {
	this.startTime = _startTime;
}

publicCaption.prototype.getStartTime = function() {
	return this.startTime;
}


publicCaption.prototype.getCaptionID = function() {
	return this.captionID;
}




//************************************************
//End time functions
//*************************************************
publicCaption.prototype.setEnd = function(_endTime) {
	this.endTime = _endTime;
}

publicCaption.prototype.getEndTime = function() {
	return this.endTime;
}

//************************************************
//background functions
//************************************************
publicCaption.prototype.setBackground = function(background) {
	this.background = background;
}

publicCaption.prototype.getBackground = function() {
	return this.background;
}


//************************************************
//style functions
//************************************************
publicCaption.prototype.setStyle = function(style) {
	this.style = style;
}

publicCaption.prototype.getStyle = function() {
	return this.style;
}



//************************************************
//speaker functions
//************************************************
publicCaption.prototype.setSpeaker = function(speaker) {
	this.speaker_id = speaker;
}

publicCaption.prototype.getSpeaker = function() {
	return this.speaker_id;
}