// see help on basic classes definitions http://www.phpied.com/3-ways-to-define-a-javascript-class/

/**
 * A promo object that holds
 *
 * @param {Object.<string, *>=} opt_options Optional properties to set.
 * @constructor
 */
function Promo(opt_options) {
  var options = opt_options || {};
  
  /**
   * @type {boolean}
   * @private
   */
  this._visible = false;
  
  /**
   * @type {string}
   * @private
   */
  this._template = ""
	  	+ "<a href='/incentives/contests/scavenger-hunt/'>"
	  	+ "<img class='clsPromoLeaderboard' alt='Contest Image' src='/static/template/imgs/Scavenger-Hunt-Banner-728x90.png'>"
	  	+ '</a>'
	  	+ "";
	
  /**
   * create the dom element
   */
  this._dom = document.createElement('DIV');
  this._dom.id = 'idMapPromoBanner';
  this._dom.innerHTML = this._template;
  
}
window['Promo'] = Promo; /* so Closure Complier won't mangle this string */

/**
 * Get the content of the marker.
 *
 * @return {string|Node} The marker content.
 */
Promo.prototype.getContent = function() {
  return /** @type {Node} */ (this._dom);
};
Promo.prototype['getContent'] = Promo.prototype.getContent;
