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("<div id='menucaption'>Merry Menu<br /></div>");
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( "Photo%20Album/ShadowFallsMemorial/" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Shadow Falls Memorial</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='Photo Album/ShadowFallsMemorial/index.html' title='Shadow Falls Pictures'>Shadow Falls Memorial</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>");
document.writeln("  <br />");
/*
document.writeln("  <iframe src='http://www.indiegogo.com/project/widget/8108?a=34472' width='220px' height='390px' frameborder='1' scrolling='no'></iframe>");
*/
}

function Projectsmenu()
{
/* Projects menu */
var URLpath = "";
if( IsCurPage( "Photo%20Album/andtheyfightRehearsalPhotos/" ) )
{
   URLpath = "../../";
}
if( IsCurPage( "Photo%20Album/StageCombatManualBehindScenesPhotos/") )
{
   URLpath = "../../";
}
document.write("<div class='outer'>");
document.writeln("<div id='sidemenu'>");
document.writeln("<div id='menucaption'>Merry Menu<br /></div>");
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>");
}
if( IsCurPage( "dvd.html" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Merry DVD Project</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='"+URLpath+"dvd.html' target='_blank' title='DVD Project'>Merry DVD Project</a></li>");
}
/*
if( IsCurPage( "contest.html" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Merry Contest</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='"+URLpath+"contest.html' title='Fundraising Contest'>Merry Contest</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>");
}
if( IsCurPage( "fighingforfun.html" ) )
{
document.writeln("          <li class='sidesubmenu'><a><span class='booktitle' style='color:#979797'>Fighting For Fun</span></a></li>");
} else
{
document.writeln("			<li class='sidesubmenu'><a href='"+URLpath+"fightingforfun.html' title='Fighting For Fun'><span class='booktitle'>Fighting For Fun</span></a></li>");
}
if( IsCurPage( "Photo%20Album/StageCombatManualBehindScenesPhotos/" ) )
{
document.writeln("          <li class='sidesubmenu2'><a>Merry Photos</a></li>");
} else
{
document.writeln("			<li class='sidesubmenu2'><a href='"+URLpath+"Photo Album/StageCombatManualBehindScenesPhotos/index.html' title='Photos'>Merry Photos</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>");
document.writeln("  <br />");
/*
document.writeln("  <iframe src='http://www.indiegogo.com/project/widget/8108?a=34472' width='220px' height='390px' frameborder='1' scrolling='no'></iframe>");
*/
}

function Servicesmenu()
{
/* Services menu */
document.write("<div class='outer'>");
document.writeln("<div id='sidemenu'>");
document.writeln("<div id='menucaption'>Merry Menu<br /></div>");
document.writeln("		<ul>");
if( IsCurPage( "ratecalculator.html" ) )
{
document.writeln("          <li><a>Merry Estimates</a></li>");
} else
{
document.writeln("			<li><a href='ratecalculator.html' title='Rentals'>Merry Estimates</a></li>");
}
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>");
document.writeln("  <br />");
/*
document.writeln("  <iframe src='http://www.indiegogo.com/project/widget/8108?a=34472' width='220px' height='390px' frameborder='1' scrolling='no'></iframe>");
*/
}


