function ramdomTable() {

	// iTable is the formating and building of the actual table.
	// it's pretty straight forward
//	var iTableStart = "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr bgcolor=\"#CCCCCC\">\n";
	var iTableStart = "<tr bgcolor=\"#CCCCCC\">\n";
	var iTableEnd =	"</table>\n";
	var iTableRow = "</tr><tr bgcolor=\"#999999\">\n";
	var iTableCel = "<td align=center>Look it works</td>\n";
	var iTableCelStart = "<td class=\"bodyLink\" bgcolor=\"#FFFFFF\">";
	var iTableCelEnd = "</td>";
	var iTableALLCels = "";
	var iCurrentCell = "";
	
	// list of total possible banners
	var aCellContent = ["<a href=\"http://www.superstore.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/atlanticfloat.jpg\" width=\"110\" height=\"45\" border=\"0\" alt=\"Atlantic SuperStore\"></a>",
						"<a href=\"http://www.fortinos.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/fortinos_logo.gif\" width=\"110\" height=\"45\" border=\"0\" alt=\"Fortinos\"></a>",
						"<a href=\"http://www.zehrs.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/zehrsmkt.jpg\" width=\"110\" height=\"45\" border=\"0\" alt=\"Zehrs Markets\"></a>",
						"<a href=\"http://www.provigo.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/provigo.gif\" width=\"110\" height=\"45\" border=\"0\" alt=\"Provigo\"></a>",
						"<a href=\"http://www.yourindependentgrocer.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/YourIndependentGrocer_en.gif\" alt=\"Your Independent Grocer\" width=\"110\" height=\"45\" border=\"0\"></a>",
						"<a href=\"http://www.loblaws.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/loblawslogo.jpg\" width=\"110\" height=\"45\" border=\"0\" alt=\"Loblaws\"></a>",
						"<a href=\"http://www.maxi.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/MaxiLogoFloat.jpg\" width=\"110\" height=\"45\" border=\"0\" alt=\"Maxi\"></a>",
						"<a href=\"http://www.maxi.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/MaxiLogoFloat_fr.jpg\" width=\"110\" height=\"45\" border=\"0\" alt=\"Maxi\"></a>",
						"<a href=\"http://www.superstore.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/RealCanadianSuperStore2_en.gif\" alt=\"The Real Canadian Superstore\" width=\"110\" height=\"45\" border=\"0\"></a>",
						"<a href=\"http://www.shopnofrills.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/nofrills_logo.gif\" alt=\"No Frills\" width=\"110\" height=\"45\" border=\"0\"></a>",
						"<a href=\"http://www.wholesaleclub.ca\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/RCWSClogoFloat.gif\" alt=\"The Real Canadian Wholesale\" width=\"110\" height=\"45\" border=\"0\"></a>",
						"<a href=\"http://www.superstore.ca/dom\" target=\"_blank\"><img src=\"http://www.loblaw.com/images/dominion.gif\" alt=\"Dominion\" width=\"110\" height=\"45\" border=\"0\"></a>"];
	
	var jCount = 0;
	var jRandom = 0;
	var jNumberOfCells = aCellContent.length;

	while ( jCount < 8) {
	
		while (jRandom < 1 || jRandom > jNumberOfCells) {
			jRandom = Math.random() * 100;
			jRandom = jRandom - 10;
			jRandom = Math.round(jRandom);
			}
		jRandom = jRandom - 1;
		jCurrItem = aCellContent.splice( jRandom, 1);
		
		iCurrentCell = iCurrentCell + iTableCelStart;
		iCurrentCell = iCurrentCell + jCurrItem;
		iCurrentCell = iCurrentCell + iTableCelEnd;
	
		iTableALLCels = iTableALLCels + iCurrentCell + iTableRow;

		jCount = jCount + 1;
		jRandom = 0;
		jCurrItem = "";
		iCurrentCell = "";
		jNumberOfCells = aCellContent.length;

		}
	
//	iTable = iTableStart + iTableALLCels + iTableEnd;
	iTable = iTableStart + iTableALLCels;
	return iTable;

//	document.writeln("<br><br>aCellContent:<br>" + aCellContent);

	}


document.write('<div style="position:absolute; left:1px; top:170px; width:121px; height:281px; z-index:1; overflow: visible" id="floater"> ');
document.write('  <table border="0" cellspacing="1" cellpadding="0">');
document.write('    <tr valign="top"> ');
document.write('      <td width="10" align="center"> <div align="center"><a href="#top"><img src="http://www.loblaw.com/images/up.gif" width="20" height="35" border="0"></a></div></td>');
document.write('      <td width="122">');
			   
document.write('	   <table border="0" cellspacing="0" cellpadding="0" width="110" bgcolor="#999999">');
document.write('          <tr bgcolor="#CCCCCC"> ');
document.write('            <td class="bodyLink" height="100" bgcolor="#FFFFFF"> <table width="0" border="0" cellspacing="0" cellpadding="0" bgcolor="e3e3e3" height="0">');
document.write('                <tr> ');
document.write('                  <td> <table border="0" cellspacing="1" cellpadding="0" width="110" bgcolor="#999999">');
document.write('                      <tr bgcolor="#CCCCCC"> ');
document.write('                        <td class="bodyLink" height="28" bgcolor="#FFFFFF"><a href="http://www.presidentschoice.ca" target="_blank"><img src="http://www.loblaw.com/images/pc_logo.gif" width="110" height="45" border="0" alt="President\'s Choice"></a></td>');
document.write('                      </tr>');
document.write('                      <tr bgcolor="#CCCCCC"> ');
document.write('                        <td class="bodyLink" height="40" bgcolor="#CCCCCC"><a href="http://www.pcfinancial.ca" target="_blank"><img src="http://www.loblaw.com/images/pc_financial.gif" width="110" height="45" border="0" alt="President\'s Choice Financial"></a></td>');
document.write('                      </tr>');

// random table from the code
document.write(ramdomTable());

document.write('                    </table>');

document.write('                </td></tr>');
document.write('              </table></td>');
document.write('          </tr>');
document.write('        </table></td>');
document.write('    </tr>');
document.write('  </table>');
document.write('</div>');
document.write('<img src="http://www.loblaw.com/images/spacer.gif" name="pg_bottom" id="pg_bottom" width="1" height="1" border="0"> ');
document.write('<script language="JavaScript" src="http://www.loblaw.com/scripts/float.js"></script>');