var bgimagepath = '';

if (isindex == true)
{
	pagepath = '#';
	bgimagepath = 'img/bottom.jpg';
} else {
	pagepath = '../index.asp';
	bgimagepath = '../img/bottom.jpg';
}
document.write('<tr>');
document.write('<td align="center" width="799" height="27" colspan="4" style="background-image: url(' + bgimagepath + ');">');
document.write('<table cellpadding="0" cellspacing="0" border="0">');
document.write('<tr>');
document.write('<td class="bottomLinks">');
document.write('<a href="' + pagepath + '" class="bottomLinks">Home</a>');
document.write('<span class="bottomLinksLine">|</span>');
if (document.URL.toLowerCase().indexOf('about.html') != -1)
{
	pagepath = '#';
} else {
	pagepath = 'html/about.html';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
}
document.write('<a href="' + pagepath + '" class="bottomLinks">About Us</a>');
document.write('<span class="bottomLinksLine">|</span>');
if (document.URL.toLowerCase().indexOf('school.html') != -1)
{
	pagepath = '#';
} else {
	pagepath = 'html/school.html';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
}
document.write('<a href="' + pagepath + '" class="bottomLinks">Poker School</a>');
if (fullfunc != 'false')
{
	//document.write('<span class="bottomLinksLine">|</span>');
	//document.write('<a href="http://forum.pokerbility.com/" target="_blank" class="bottomLinks">Forum</a>');
	document.write('<span class="bottomLinksLine">|</span>');
	document.write('<a href="https://www.pokerbility.com/Affiliates/index.asp" target="_blank" class="bottomLinks">Affiliates</a>');
	document.write('<span class="bottomLinksLine">|</span>');
	if (document.URL.toLowerCase().indexOf('press.html') != -1)
	{
		pagepath = '#';
	} else {
		pagepath = 'html/press.html';
		
		if (false == isindex)
		{
			pagepath = '../' + pagepath;
		}
	}
	document.write('<a href="' + pagepath + '" class="bottomLinks">Press Releases</a>');
}
document.write('<span class="bottomLinksLine">|</span>');
if (document.URL.toLowerCase().indexOf('contact.html') != -1)
{
	pagepath = '#';
} else {
	pagepath = 'html/contact.html';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
}
document.write('<a href="' + pagepath + '" class="bottomLinks">Contact Us</a>');
document.write('<span class="bottomLinksLine">|</span>');
if (document.URL.toLowerCase().indexOf('Download.asp') != -1)
{
	pagepath = '#';
} else {
	pagepath = 'Versioning/Download.asp';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
}
document.write('<a href="' + pagepath + '" class="bottomLinks">Download Pokerbility</a>');
document.write('<span class="bottomLinksLine">|</span>');
if (document.URL.toLowerCase().indexOf('privacy.html') != -1)
{
	pagepath = '#';
} else {
	pagepath = 'html/privacy.html';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
}
document.write('<a href="' + pagepath + '" class="bottomLinks">Privacy Policy</a>');
document.write('<span class="bottomLinksLine">|</span>');
if (document.URL.toLowerCase().indexOf('legal.html') != -1)
{
	pagepath = '#';
} else {
	pagepath = 'html/legal.html';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
}
document.write('<a href="' + pagepath + '" class="bottomLinks">License Agreement</a>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');