var OVERLAY_ADTYPE = 0;
var WIDGET_ADTYPE = 1;

var allAdTypes = [];


//AD TYPE
function AdType(_label, _description){
	this.label = _label;
	this.description = _description;
	this.adExamples = [];
	this.addExample = addExampleAd;
}
function addExampleAd(adExample){
	this.adExamples.push(adExample);
}


/**
 *  _dirName: This defines the name of the directory name where the assets live
 *  _title: This is the title that is displayed in the menu item
 *  _exampleURL: A URL of a page where you can see an example
 *
 */
function AdExample(_dirName, _title, _snapshotVersion, _asType, _isPreroll){
	this.adType = 'ad';
	
	this.directoryName = _dirName;
	this.title = _title;
	this.snapshotVersion = _snapshotVersion;
	
	this.getAssetPath = getAssetPath;
	
	this.adSchedulePath = getAssetPath(this.directoryName, 'adschedule.xml');
	this.thumbnailPath = getAssetPath(this.directoryName, 'thumbnail.jpg');
	this.videoPath = getAssetPath(this.directoryName, 'video.flv');
	
	this.asType = (_asType == null) ? 'as3' : _asType;
	
	this.isPreroll = (_isPreroll == null) ? false : _isPreroll;
}

/**
 *  _dirName: This defines the name of the directory name where the assets live
 *  _title: This is the title that is displayed in the menu item
 *  _exampleURL: A URL of a page where you can see an example
 *
 */
function WidgetExample(_dirName, _title, _exampleURL){
	this.adType = 'widget';
	
	this.directoryName = _dirName;
	this.title = _title;
	this.exampleURL = _exampleURL;
	
	this.getAssetPath = getAssetPath;
	
	this.thumbnailPath = getAssetPath(this.directoryName, 'thumbnail.jpg');
	this.widgetPath = getAssetPath(this.directoryName, 'widget.swf');
}


function getAssetPath(directoryName, fileName){
	return 'salesdemo_examples/' + directoryName + '/' + fileName;
}




