
// defining prototype for clientside javascript Content Object
function DTR_Content ()
{
}

DTR_Content.prototype.FileName = "VID00001.MP4";
DTR_Content.prototype.ContentID = "";
DTR_Content.prototype.DivID = "";

DTR_Content.prototype.Render = function () {document.getElementById(this.DivID).innerHTML = this.MP4_Template.replace("{0}", this.FileName);}
DTR_Content.prototype.MP4_Template = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="720" height="495"><param name="src" value="content/videos/{0}"><param name="autoplay" value="true"><param name="controller" value="true"><embed height="495" pluginspage="http://www.apple.com/quicktime/download/" src="content/videos/{0}" type="video/quicktime" width="720" controller="true" autoplay="true"></object>';