function IsCurPage( htmlPage )
{
var URLstr = document.URL;
var pos = URLstr.indexOf(htmlPage);
return (pos >= 0);
}

function WhoIsMBmenu()
{
/* Who Is MB menu */
document.write("<div class='outer'>");
document.writeln("<div id='sidemenu'>");
document.writeln("		<ul>");
if( IsCurPage( "whoismb.html" ) )
{
document.writeln("          <li><a>Who Is MB?</a></li>");
} else
{
document.writeln("			<li><a href='whoismb.html' title='WhoIsMB?'>Who Is MB?</a></li>");
}
if( IsCurPage( "richsbio.html" ) )
{
document.writeln("          <li><a>Richard Buswell</a></li>");
} else
{
document.writeln("			<li><a href='richsbio.html' title='Richard'>Richard Buswell</a></li>");
}
if( IsCurPage( "articles.html" ) )
{
document.writeln("          <li class='sidesubmenu'><a>Articles</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu'><a href='articles.html' title='Articles'>Articles</a></li>");
}
if( IsCurPage( "combatresume.html" ) )
{
document.writeln("          <li class='sidesubmenu'><a>Combat Resume</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu'><a href='combatresume.html' title='Choreography'>Combat Resume</a></li>");
}
if( IsCurPage( "nigelsbio.html" ) )
{
document.writeln("          <li><a>Nigel Delahoy</a></li>");
} else
{
document.writeln("			<li><a href='nigelsbio.html' title='Nigel'>Nigel Delahoy</a></li>");
}
document.writeln("		</ul>");
document.writeln("	</div>");
document.writeln("</div>");
}

function Projectsmenu()
{
/* Projects menu */
var URLpath = "";
if( IsCurPage( "Photo%20Album/andtheyfightRehearsalPhotos/" ) )
{
   URLpath = "../../";
}
document.write("<div class='outer'>");
document.writeln("<div id='sidemenu'>");
document.writeln("		<ul>");
if( IsCurPage( "projects.html" ) )
{
document.writeln("          <li><a>Merry Projects</a></li>");
} else
{
document.writeln("			<li><a href='"+URLpath+"projects.html' title='Projects'>Merry Projects</a></li>");
}
document.writeln("          <li class='sidesubmenu'><a>Merry Funding</a></li>");
if( IsCurPage( "projects.html#Funding" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Merry Stage Show</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='"+URLpath+"projects.html#Funding' title='Funding the live tour'>Merry Stage Show</a></li>");
}
document.writeln("			<li class='sidesubmenu2'><a href='http://www.indiegogo.com/and-they-fight-again-The-DVD?a=34472&i=shlk' target='_blank' title='IndieGoGo.com'>Merry DVD Project</a></li>");
document.writeln("			<li>Preview</li>");
if( IsCurPage( "preview.html" ) )
{
document.writeln("          <li class='sidesubmenu'><a><span class='showtitle' style='font-size:8pt;color:#979797'>...and they fight again!</span></a></li>");
} else
{
document.writeln("			<li class='sidesubmenu'><a href='"+URLpath+"preview.html' title='...and they fight again!'><span class='showtitle' style='font-size:8pt'>...and they fight again!</span></a></li>");
}
if( IsCurPage( "fighingfit.html" ) )
{
document.writeln("          <li class='sidesubmenu'><a><span class='exercisetitle' style='color:#979797'>Fighting Fit</span></a></li>");
} else
{
document.writeln("			<li class='sidesubmenu'><a href='"+URLpath+"fightingfit.html' title='Fighting Fit'><span class='exercisetitle'>Fighting Fit</span></a></li>");
}
document.writeln("			<li>Past</li>");
if( IsCurPage( "otherstuff.html" ) )
{
document.writeln("          <li class='sidesubmenu'><a>Merry Stuff</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu'><a href='"+URLpath+"otherstuff.html' title='Videos'>Merry Stuff</a></li>");
}
if( IsCurPage( "andtheyfight.html" ) )
{
document.writeln("          <li class='sidesubmenu'><a><span class='showtitle' style='font-size:8pt;color:#979797'>...and they fight!</span></a></li>");
} else
{
document.writeln("			<li class='sidesubmenu'><a href='"+URLpath+"andtheyfight.html' title='...and they fight!'><span class='showtitle' style='font-size:8pt'>...and they fight!</span></a></li>");
}
if( IsCurPage( "Photo%20Album/andtheyfightRehearsalPhotos/" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Merry Photos</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='"+URLpath+"Photo Album/andtheyfightRehearsalPhotos/index.html' title='Photos'>Merry Photos</a></li>");
}
if( IsCurPage( "gallery.html" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Merry Videos</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='"+URLpath+"gallery.html' title='Videos'>Merry Videos</a></li>");
}
if( IsCurPage( "reviews.html" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Merry Reviews</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='"+URLpath+"reviews.html' title='Reviews'>Merry Reviews</a></li>");
}
if( IsCurPage( "publicity.html" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Merry Publicity</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='"+URLpath+"publicity.html' title='Publicity'>Merry Publicity</a></li>");
}
document.writeln("		</ul>");
document.writeln("	</div>");
document.writeln("</div>");
}

function Servicesmenu()
{
/* Services menu */
document.write("<div class='outer'>");
document.writeln("<div id='sidemenu'>");
document.writeln("		<ul>");
if( IsCurPage( "rentals.html" ) )
{
document.writeln("          <li><a>Merry Rentals</a></li>");
} else
{
document.writeln("			<li><a href='rentals.html' title='Rentals'>Merry Rentals</a></li>");
}
if( IsCurPage( "combatfaq.html" ) )
{
document.writeln("          <li><a>Merry Questions</a></li>");
} else
{
document.writeln("			<li><a href='combatfaq.html' title='Questions'>Merry Questions</a></li>");
}
document.writeln("		</ul>");
document.writeln("	</div>");
document.writeln("</div>");
}

