  var name = 'index';
  var nm = location.pathname.match(/(\/|\\)([\w.]+)$/);
  if (nm) 
    name = nm[2].replace(/\.html$/i, '');

  function make_link(base, txt) {
//    return '<tr><td></td><td align=left nowrap>' +
//      (name.match(new RegExp("^" + base + "$", "i"))? 
//        '<div class=navhr>' : '<div class=nav onclick="location.href=\'' + base + '.html\'">') +
    return '<tr>' +
      (name.match(new RegExp("^" + base + "$", "i"))? 
        '<td align=right><div class=navhr>&gt;&nbsp;</div></td><td align=left nowrap><div class=navhr>' : 
	'<td></td><td align=left nowrap><div class=nav onclick="location.href=\'' + base + '.html\'" ' +
	'onmouseover="this.style.color=\'white\'" onmouseout="this.style.color=\'blue\'">') +
      txt + '</div></td><td></td></tr>' +
      '<tr><td></td><td><div class=navsp>&nbsp;</div></td><td></td></tr>';
  }

  var navtable_side = 
    '<table cellspacing=0 cellpadding=0 border=0 style="background-color:limegreen">' +
      '<tr><td width=25 nowrap></td><td height=30 width=110 nowrap></td><td width=5 nowrap></td></tr>' +
    make_link('index', 'Home') +
    make_link('about', 'About Us') +
    make_link('events', 'Events') +
    make_link('classes', 'Classes') +
    make_link('calendar', 'Calendar') +
    make_link('join', 'Come Join Us') +
    make_link('contact', 'Contact Us') +

	'<td></td><td align=left height=200 nowrap><div class=nav ' +
        'onclick="window.open(\'http://www.flyingphoto.com/u/lcd/three\')" ' +
	'onmouseover="this.style.color=\'white\'" onmouseout="this.style.color=\'blue\'">' +
        'View Our<br>Slideshow</div></td><td></td></tr>' +

    '</table>';



