if (document.location.search.indexOf('g=1') != -1)
{
	createCookie('fullfunc', 'false', 3, 'h');
} else if (document.location.search.indexOf('g=no') != -1)
{
	eraseCookie('fullfunc');
}
var fullfunc = readCookie('fullfunc');
var isindex = false;
var pagepath = '';
document.write('<tr><td><img src="../img/menu_sep_top.gif" alt="" width="161" height="2" border="0"><br></td></tr>');
document.write('<tr>');
if (document.URL.toLowerCase().indexOf('index.asp') != -1 || 
    (document.URL.toLowerCase().indexOf('.asp') == -1 && 
     document.URL.toLowerCase().indexOf('.htm') == -1))
{
	if (1 < document.getElementsByTagName("meta").length)
	{
		var pagedesc = document.getElementsByTagName("meta")[1].getAttribute("content");
		if ("MainHomePage" == pagedesc)
		{
			isindex = true;
		}
	}
}
if (true == isindex)
{
	document.write('	<td class="menuItemOn">');
} else {
	pagepath = '../index.asp';
	document.write('	<td class="menuItem" onmouseover="this.className = \'menuItemOn\';" onclick="window.location=\'' + pagepath + '\';" onMouseOut=" this.className = \'menuItem\';">');
}
document.write('		HOME');
document.write('	</td>');
document.write('</tr>');
document.write('<tr><td><img src="../img/menu_sep.gif" alt="" width="161" height="2" border="0"><br></td></tr>');
document.write('<tr>');
if (document.URL.toLowerCase().indexOf('about.html') != -1 || 
    document.URL.toLowerCase().indexOf('user_guide.html') != -1 || 
    document.URL.toLowerCase().indexOf('user_guide.asp') != -1 ||
    document.URL.toLowerCase().indexOf('faq.html') != -1 ||
    document.URL.toLowerCase().indexOf('tech.html') != -1 ||
    document.URL.toLowerCase().indexOf('support.html') != -1 ||
    document.URL.toLowerCase().indexOf('testimonials.html') != -1)
{
	document.write('	<td class="menuItemOn" onMouseover="dropdownmenu(this, event, menu1, \'175px\'); this.className = \'menuItemOn\';" onMouseout="delayhidemenu(); this.className = \'menuItem\';" onclick="window.location=\'' + pagepath + '\';" id="item1">');
} else {
	pagepath = 'html/about.html';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
	document.write('	<td class="menuItem" onMouseover="dropdownmenu(this, event, menu1, \'175px\'); this.className = \'menuItemOn\';" onMouseout="delayhidemenu(); this.className = \'menuItem\';" onclick="window.location=\'' + pagepath + '\';" id="item1">');
}
document.write('		ABOUT POKERBILITY');
document.write('	</td>');
document.write('</tr>');
document.write('<tr><td><img src="../img/menu_sep.gif" alt="" width="161" height="2" border="0"><br></td></tr>');
document.write('<tr>');
if (document.URL.toLowerCase().indexOf('school.html') != -1 || 
    document.URL.toLowerCase().indexOf('school1.html') != -1 || 
    document.URL.toLowerCase().indexOf('school2.html') != -1 ||
    document.URL.toLowerCase().indexOf('school3.html') != -1)
{
	document.write('	<td class="menuItemOn" onMouseover="dropdownmenu(this, event, menu2, \'175px\'); this.className = \'menuItemOn\';" onMouseout="delayhidemenu(); this.className = \'menuItem\';" onclick="window.location=\'' + pagepath + '\';" id="item2">');
} else {
	pagepath = 'html/school.html';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
	document.write('	<td class="menuItem" onMouseover="dropdownmenu(this, event, menu2, \'175px\'); this.className = \'menuItemOn\';" onMouseout="delayhidemenu(); this.className = \'menuItem\';" onclick="window.location=\'' + pagepath + '\';" id="item2">');
}
document.write('		POKER SCHOOL');
document.write('	</td>');
document.write('</tr>');
if (fullfunc != 'false')
{
	//document.write('<tr><td><img src="../img/menu_sep.gif" alt="" width="161" height="2" border="0"><br></td></tr>');
	//document.write('<tr>');
	//document.write('	<td class="menuItem" onClick="window.open(\'http://forum.pokerbility.com/\',\'win1\');" onMouseOver="this.className = \'menuItemOn\';" onMouseOut=" this.className = \'menuItem\';">');
	//document.write('		FORUM');
	//document.write('	</td>');
	//document.write('</tr>');
	document.write('<tr><td><img src="../img/menu_sep.gif" alt="" width="161" height="2" border="0"><br></td></tr>');
	document.write('<tr>');
	document.write('	<td class="menuItem" onClick="window.open(\'http://www.platinumaffiliates.com\',\'win1\');" onMouseOver="this.className = \'menuItemOn\';" onMouseOut=" this.className = \'menuItem\';">');
	document.write('		AFFILIATES');
	document.write('	</td>');
	document.write('</tr>');
	document.write('<tr><td><img src="../img/menu_sep.gif" alt="" width="161" height="2" border="0"><br></td></tr>');
	document.write('<tr>');
	if (document.URL.toLowerCase().indexOf('press.html') != -1)
	{
		document.write('	<td class="menuItemOn">');
	} else {
		pagepath = 'html/press.html';
	
		if (false == isindex)
		{
			pagepath = '../' + pagepath;
		}
		document.write('	<td class="menuItem" onmouseover="this.className = \'menuItemOn\';" onclick="window.location=\'' + pagepath + '\';" onMouseOut=" this.className = \'menuItem\';">');
	}
	document.write('		PRESS RELEASES');
	document.write('	</td>');
	document.write('</tr>');
}
document.write('<tr><td><img src="../img/menu_sep.gif" alt="" width="161" height="2" border="0"><br></td></tr>');
document.write('<tr>');
if (document.URL.toLowerCase().indexOf('contact.html') != -1)
{
	document.write('	<td class="menuItemOn">');
} else {
	pagepath = 'html/contact.html';
	
	if (false == isindex)
	{
		pagepath = '../' + pagepath;
	}
	document.write('	<td class="menuItem" onmouseover="this.className = \'menuItemOn\';" onclick="window.location=\'' + pagepath + '\';" onMouseOut=" this.className = \'menuItem\';">');
}
document.write('		CONTACT US');
document.write('	</td>');
document.write('</tr>');
document.write('<tr><td><img src="../img/menu_sep.gif" alt="" width="161" height="2" border="0"><br></td></tr>');