function renderBodySpacers(rootLocation,printerFriendlySpacers)
{ 
	if (printerFriendlySpacers)
	{
		document.write('<tr>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="380"><img width="380" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="150"><img width="150" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="100%"><img width="100%" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '</tr>');
	}
	else
	{
		document.write('<tr>'
			+ '<td width="186"><img width="186" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="380"><img width="380" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="150"><img width="150" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="100%"><img width="100%" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '</tr>');
	}
}

function renderBodySpacersWithoutRightColumn(rootLocation,printerFriendlySpacers)
{
	if (printerFriendlySpacers)
	{
		document.write('<tr>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="380"><img width="380" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="100%"><img width="100%" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '</tr>');
	}
	else
	{
		document.write('<tr>'
			+ '<td width="186"><img width="186" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="380"><img width="380" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="20"><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '<td width="100%"><img width="100%" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>'
			+ '</tr>');
	}
}

function renderSingleColumn(rootLocation, directory)
{
	var str = "";
	var useThisArray = null;
	if (directory == "Products")
	{
		useThisArray = conar2;
	}
	str += '<tr>';
	str += '<td width="100%"><img width="1" height="15" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '</tr>';
	str += '<tr>';
	str += '<td width="100%">';
	str += '<table border="0" cellpadding="0" cellspacing="0" width="100%">';
	str += '<tr>';
	str += '<td width="15"><img width="15" height="25" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '<td width="100%"><span class="directoryTitle">' + directory + '</span></td>';
	str += '</tr>';
	str += '</table>';
	str += '</td>';
	str += '</tr>';
	str += '<tr>';
	str += '<td width="100%"><img width="1" height="5" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '</tr>';
	str += '<tr>';
	str += '<td width="100%">';
	/*str += '<table border="1" cellpadding="0" cellspacing="0" width="779">';
	str += '<tr>';
	str += '<td width="779"><img width="779" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '</tr>';
	str += '<tr>';
	str += '<td width="779">';
	str += '<table border="0" cellpadding="0" cellspacing="0" width="779">';
	str += '<tr>';
	str += '<td width="15"><img width="15" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '<td width="100%"><span class="black">TBD</span></td>';
	str += '<td width="15"><img width="15" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '</tr>';
	str += '</table>';
	str += '</td>';
	str += '</tr>';
	str += '</table>';*/
	str += '</td>';
	str += '</tr>';
	str += '<tr>';
	str += '<td width="100%"><img width="1" height="15" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '</tr>';
	str += '<tr>';
	str += '<td width="100%">';
	str += '<table border="0" cellpadding="0" cellspacing="0" width="100%">';
	str += '<tr>';
	str += '<td width="15"><img width="15" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '<td width="100%">';
	str += '<table border="0" cellpadding="0" cellspacing="0">';
	str += '<tr>';
	for (var x = 0; x < useThisArray.length; x++)
	{
		//if (useThisArray[x].toString().toLowerCase() == "us financial 15 split" || useThisArray[x].toString().toLowerCase() == "prime rate plus corp")
		if (useThisArray[x].toString().toLowerCase() == "prime rate plus corp" || useThisArray[x].toString().toLowerCase() == "tdbsplit" || useThisArray[x].toString().toLowerCase() == "income financial")
		{
			str += '</tr>';
			str += '<tr><td><br></td></td></tr>';
			str += '<tr>';
		}
		str += '<td>';
		str += '<table border="0" cellpadding="0" cellspacing="0">';
		str += '<tr>';
		str += '<td><span class="brownHeading">' + useThisArray[x] + '</span></td>';
		str += '</tr>';
		str += '<tr>';
		str += '<td><img width="1" height="10" src="' + rootLocation + 'images/spacer.gif"/></td>';
		str += '</tr>';
		for (var y = 0; y < navar.length; y++)
		{
			str += '<tr>';
			if (navar[y].toString().toLowerCase() == "valuations")
			{
				str += '<td><a class="black" href="http://www.quadravest.com/' + navar[y].toString().toLowerCase() + '.htm">' + navar[y] + '</a></td>';
			}
			else if (navar[y].toString().toLowerCase() == "tax information")
			{
				str += '<td><a class="black" href="http://www.quadravest.com/' + navar[y].toString().toLowerCase() + '.htm">' + navar[y] + '</a></td>';
			}
			else
			{
				if (navar[y].toString().toLowerCase() == "trading")
				{
					switch (useThisArray[x]) {
						case "Income Financial":
							str += '<td><a class="black" href="' + navTradingar[0] + '">' + navar[y] + '</a></td>';
							break;
						case "Income Financial Plus":
							str += '<td><a class="black" href="' + navTradingar[1] + '">' + navar[y] + '</a></td>';
							break;
						case "American Income":
							str += '<td><a class="black" href="' + navTradingar[2] + '">' + navar[y] + '</a></td>';
							break;
						case "Ameristar RSP":
							str += '<td><a class="black" href="' + navTradingar[3] + '">' + navar[y] + '</a></td>';
							break;
						case "FSI Streams":
							str += '<td><a class="black" href="' + navTradingar[4] + '">' + navar[y] + '</a></td>';
							break;
						case "CGI Streams":
							str += '<td><a class="black" href="' + navTradingar[5] + '">' + navar[y] + '</a></td>';
							break;
						case "Streams III":
							str += '<td><a class="black" href="' + navTradingar[6] + '">' + navar[y] + '</a></td>';
							break;
						case "Financial 15":
							str += '<td><a class="black" href="' + navTradingar[7] + '">' + navar[y] + '</a></td>';
							break;
						case "Financial 15 Split II":
							str += '<td><a class="black" href="' + navTradingar[8] + '">' + navar[y] + '</a></td>';
							break;
						case "US Financial 15 Split":
							str += '<td><a class="black" href="' + navTradingar[9] + '">' + navar[y] + '</a></td>';
							break;
						case "Dividend 15":
							str += '<td><a class="black" href="' + navTradingar[10] + '">' + navar[y] + '</a></td>';
							break;
						case "Dividend 15 Split II":
							str += '<td><a class="black" href="' + navTradingar[11] + '">' + navar[y] + '</a></td>';
							break;
							
						case "Split Yield":
							str += '<td><a class="black" href="' + navTradingar[12] + '">' + navar[y] + '</a></td>';
							break;
						case "Canadian Life Split":
							str += '<td><a class="black" href="' + navTradingar[13] + '">' + navar[y] + '</a></td>';
							break;
						case "Prime Rate Plus Corp":
							str += '<td><a class="black" href="' + navTradingar[14] + '">' + navar[y] + '</a></td>';
							break;
						case "Prime Dividend":
							str += '<td><a class="black" href="' + navTradingar[15] + '">' + navar[y] + '</a></td>';
							break;
						case "Commerce Split":
							str += '<td><a class="black" href="' + navTradingar[16] + '">' + navar[y] + '</a></td>';
							break;
						case "M-Split":
							str += '<td><a class="black" href="' + navTradingar[17] + '">' + navar[y] + '</a></td>';
							break;
						case "TDbSplit":
							str += '<td><a class="black" href="' + navTradingar[18] + '">' + navar[y] + '</a></td>';
							break;
						default:
							break;
					}
				}
				else
				{
					if (useThisArray[x].toString().toLowerCase() == "streams iii")
					{
						str += '<td><a class="black" href="' + rootLocation + 'streams III/' + navar[y].toString().toLowerCase() + '.htm">' + navar[y] + '</a></td>';
					}
					else if (useThisArray[x].toString().toLowerCase() == "financial 15 split ii")
					{
						str += '<td><a class="black" href="' + rootLocation + 'financial 15 split II/' + navar[y].toString().toLowerCase() + '.htm">' + navar[y] + '</a></td>';
					}
					
					else if (useThisArray[x].toString().toLowerCase() == "dividend 15 split ii")
					{
						str += '<td><a class="black" href="' + rootLocation + 'dividend 15 split II/' + navar[y].toString().toLowerCase() + '.htm">' + navar[y] + '</a></td>';
					}
					else
					{
						str += '<td><a class="black" href="' + rootLocation + useThisArray[x].toString().toLowerCase() + '/' + navar[y].toString().toLowerCase() + '.htm">' + navar[y] + '</a></td>';
					}
				}
			}
			str += '</tr>';
			str += '<tr>';
			str += '<td><img width="1" height="10" src="' + rootLocation + 'images/spacer.gif"/></td>';
			str += '</tr>';
		}
		str += '</table>';
		str += '</td>';
		str += '<td><img width="20" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>';
	}
	str += '</tr>';
	str += '</table>';
	str += '</td>';
	str += '<td width="15"><img width="15" height="1" src="' + rootLocation + 'images/spacer.gif"/></td>';
	str += '</tr>';
	str += '</table>';
	str += '</td>';
	str += '</tr>';
	document.write(str);
}