/***************************************************************************
* Program Name       : Javascript program
* Copyright Notice   : COPYRIGHT (C) 2006 BY HSBC
* Creation Date      : 2008-12-16
* Programmer         : e-Crusade
* Abstract           : This file contains common functions required
*                      for home&Away project
***************************************************************************/
/***************************************************************************************************************
* File Name		: offer_hightlight.js
* Usage			: 1. Show 2 offers randomly 
* Author		: e-Crusade
* Creation Date		: 2008-12-16
* Amendment History	:
* Date		By		Description
* ---------	------------	--------------------------------------------------------------------------------
***************************************************************************************************************/
var preIndex =-1;
var divObj = document.getElementById('hightlight').getElementsByTagName('div');
	
function pws_ha_draw_offer()
{
	do{
		var randomInd=Math.floor(Math.random()*divObj.length); 
	}while(randomInd == preIndex);
	preIndex = randomInd;
	divObj[randomInd].style.display = 'inline';
}

function pws_ha_ini_highLightOffer()
{
	pws_ha_draw_offer();
	pws_ha_draw_offer();
}

pws_ha_ini_highLightOffer();

