mmes = '<font face="Arial,Helvetica"><font size=-2><center>';
z=window.location.pathname;
if (z.substring(z.length-4) == '.com')   mmes = mmes + 'Home | '; 
else  mmes = mmes + '<a href="/" target="_top">Home</a>  | ';
if (z.substring(z.length-9) == 'about.htm')   mmes = mmes + 'About | ';
else   mmes = mmes + '<a href="/about.htm" target="_top">About</a> | ';
if (z.substring(z.length-7) == 'faq.htm')   mmes = mmes + 'FAQ | ';
else   mmes = mmes + '<a href="/faq.htm" target="_top">FAQ</a> | ';
if (z.substring(z.length-17     ) == 'subscriptions.htm')   mmes = mmes + 'Subscriptions | ';
else   mmes = mmes + '<a href="/subscriptions.htm" target="_top">Subscriptions</a> | ';
if (z.substring(z.length-11) == 'contact.htm')   mmes = mmes + 'Contact | ';
else   mmes = mmes + '<a href="/free/contact.htm" target="_top">Contact</a> | ';
if (z.substring(z.length-11) == 'privacy.htm')   mmes = mmes + 'Privacy | ';
else   mmes = mmes + '<a href="/privacy.htm" target="_top">Privacy</a> | ';
if (z.substring(z.length-14) == 'disclaimer.htm')   mmes = mmes + 'Disclaimer';
else   mmes = mmes + '<a href="/disclaimer.htm" target="_top">Disclaimer</a> ';

if (readCookie("TCPAUser"))
{
if (z.substring(z.length-7) == '/search')   mmes = mmes + '| Search | ';
else   mmes = mmes + ' | <a href="/search" target="_top"> Search</a> | ';
if (z.substring(z.length-8) == 'menu.htm')   mmes = mmes + 'Main Menu | ';
else   mmes = mmes + '<a href="/menu.htm" target="_top">Main Menu</a>';
}

mmes = mmes +"</center></font></font>";
document.write(mmes);
function readCookie(name)
{
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++)
        {
                var c = ca[i];
                while (c.charAt(0)==' ') c = c.substring(1,c.length);
                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
}
