var index = new Index();



/**
 * Index
 * @extends Page
 * @constructor
 */
function Index()
{
	// Call the prototype's constructor
	Page.call(this);

	// Private
	var self			= this,
		dom				= new DOM(),
		productId		= self.getRequestVariables()[1];

	// Public
	this.showHTCBrandPromotion = showHTCBrandPromotion;

	//load on pageload
	self.addEventListener(Page.LOADED, showHTCBrandPromotion, false);

	/**
	 * Show HTC flash brand promotion
	 */
	function showHTCBrandPromotion(){
		if(!dom.getById("brandpromotion_flash_htc"))
		{
			return false;
		}

		swfobject.embedSWF(
			"/flash/promotion_htc_touch_hd.swf",
			"brandpromotion_flash_htc_movie",
			"135",
			"185",
			"9.0.26",
			"/flash/expressinstall.swf"
		);
	}
}

// Inheritance
Index.prototype = new Page();
controller.setPageObject(index);
