var MenuItems = new Array(
"about us",             "index.html",
"events",               "events.html",
"combustion jobs",      "jobs.html",
"2008 Publications",    "pubs2008.html",
"newsletter",   "newsletter.html",
"awards",               "awards.html",
"combustion & flame","combflame.html",
"combustion calendar","calendar.html",
"research","research.html",
"committee",    "committee.html",
"membership",   "membership.html",
"links",                        "links.html",
"contact us",   "contact_us.html"       
);

function WriteSidebar(Pname)
{
        for(var i=0; i<MenuItems.length;i+=2)
        {
                if(Pname == MenuItems[i])
                        //This is the current page; no link required
                        document.write('<p>' 
                        + MenuItems[i] 
                        + '<img src="squares.gif" border="0" /></p>');
                else
                        //link to file with name derived from MenuItem
                        document.write('<p><a href="'
                        + MenuItems[i+1] + '">' //filename
                        + MenuItems[i]                          //menu item text
                        + '<img src="squares.gif" border="0" /></a></p>');
        }
}

function WriteFramework(Pname)
{
  document.write(

    '<div id="top1">Combustion Institute </div>'
  + '<div id="top2"><img src="Fire.jpg" /></div>'
  + '<div id="top3" >British Section </div>'
  + '<div id="title">'
  + Pname
  + '</div>'
  + '<div id="sidebar">');

  WriteSidebar(Pname);
  document.write('</div>');
}

function email(nam, dom)
{document.write(
  '<a href="mailto:' + nam + '@' + dom + '"> '
 + nam + '@' + dom + '</a>');}
