/* **********
	Randomly rotate the storefront banners on the Bowery Lights
	storefront page. There are 3 banners selection is random.

********** */

var tlist = new Array(15);//make sure this is greater than or equal to the total number of testimonials
tlist[0] = '<img src = "graphics/sfnt_passion.jpg" width="556" height="166" border="0">';
tlist[1] = '<img src = "graphics/sfnt_superior.jpg" width="556" height="166" border="0">';
tlist[2] = '<img src = "graphics/sfnt_bright.jpg" width="556" height="166" border="0">';
var listtotal = 3; //change this to the total number of testimonials in the list == the last index for tlist[XX] + 1

if (listtotal <= 1)// number of testimonials on each page is 1
{
	var dlist = new Array(listtotal);
	var looptop = listtotal;
	for (var i=0; i<looptop; i++)
	{
		dlist[i] = tlist[i];
	}
}
else
{
	var dlist =  new Array(1);
	var looptop = 1;
	for (var i=0; i<looptop; i++)
	{
		var listrnd = Math.floor(Math.random() * listtotal);
		if (tlist[listrnd].length < 1)
		{
			i--;
		}
		else
		{
			dlist[i] = tlist[listrnd];
			tlist[listrnd] = '';
		}
	}
}
