function PITtopMenuBar(tabno)
/*
  Function to create the top menu bar...Tab for current page is highlighted

  Tabno 0 - Do not highlight any tabs
        1 - Highlight Homepage
        2 - Highlight Meet the Team
        3 - Highlight Equipment
        4 - Highlight About Us
        5 = Highlight Contact Us
*/
{
  document.write("<TABLE WIDTH=100% COLS=5 ALIGN=CENTER BGCOLOR=BLACK>");
/*
  Blank line above top menu
*/
/*
***** Establish calling page...need to alter relative address accordingly
*/
  var caller = document.location.href;
  if (caller.search('.htm') == -1 || caller.search('index.htm') != -1)
    loc = "Site/";
  else
    loc = "./";

  document.write("<TR><TD COLSPAN=11>&nbsp</TD></TR>");
  document.write("<TR>");
  document.write("<TD>&nbsp</TD>");
  if (tabno == 1)
    document.write("<TD WIDTH=20% CLASS=topdropdownselected>Home</TD>");
  else
    document.write("<TD WIDTH=20% CLASS=topdropdown><A HREF='../index.htm'>Home</A></TD>");
  document.write("<TD>&nbsp</TD>");
  if (tabno == 2)
    document.write("<TD WIDTH=20% CLASS=topdropdownselected>Meet The Team</TD>");
  else
    document.write("<TD WIDTH=20% CLASS=topdropdown><A HREF='"+loc+"theteam.htm'>Meet The Team</A></TD>");
  document.write("<TD>&nbsp</TD>");
  if (tabno == 3)
    document.write("<TD WIDTH=20% CLASS=topdropdownselected>Equipment</TD>");
  else
    document.write("<TD WIDTH=20% CLASS=topdropdown><A HREF='"+loc+"equipment.htm'>Equipment</A></TD>");
  document.write("<TD>&nbsp</TD>");
  if (tabno == 4)
    document.write("<TD WIDTH=20% CLASS=topdropdownselected>About Us</TD>");
  else
    document.write("<TD WIDTH=20% CLASS=topdropdown><A HREF='"+loc+"aboutus.htm'>About Us</A></TD>");
  document.write("<TD>&nbsp</TD>");
  if (tabno == 5)
    document.write("<TD WIDTH=20% CLASS=topdropdownselected>Contact Us</TD>");
  else
    document.write("<TD WIDTH=20% CLASS=topdropdown><A HREF='"+loc+"contactus.htm'>Contact Us</A></TD>");
  document.write("<TD>&nbsp</TD>");
  document.write("</TR>");
/*
  Blank line below top menu
*/
  document.write("<TR><TD COLSPAN=11>&nbsp</TD></TR>");
  document.write("</TABLE>");
}
function PITleftMenuBar()
/*
  Function to display the images down the left hand side of the screen. Will be the same for all pages except the Home page
*/
{
  document.write("<TABLE WIDTH=100% BGCOLOR=BLACK>"); 
  document.write("<TR>");
  document.write("<TD WIDTH=100% CLASS=leftsidebar>");
  document.write("<A HREF='mailto:events@paranormalinvestigationteam.org.uk?subject=Add me to the mailing list&body=Send this email to be added to our mailing list. You will receive confirmation and further details, shortly.'>");
  document.write("<IMG SRC='../Backgrounds/Maillist1.jpg' HEIGHT='100' WIDTH='150' TITLE='Join our mailing list' BORDER=0></A>");
  document.write("</TD>");
  document.write("</TR>");
  document.write("<TR><TD>&nbsp</TD></TR>");
  document.write("<TR>");
  document.write("<TD WIDTH=100% CLASS=leftsidebar>");
  document.write("<IMG SRC='../Backgrounds/tours_riot.jpg' HEIGHT='120' WIDTH='120' TITLE='Private Event'><BR><FONT STYLE='font-size:0.8em;line-height:90%'>Nottingham's Old Cells<BR>November 2010<BR>Lead Team Only<BR><A HREF='#' CLASS=OTHERLINKS>More Info</A></FONT>");
  document.write("</TR>");
  document.write("</TD>");
  document.write("</TR>");
  document.write("</TABLE>");
}
function PITrightMenuBar(buttonno)
/*
  Function to display the images down the right hand side of the screen. Will be the same for all pages except the Home page

  Button no 0 - Do not highlight
            1 - Highlight Past events
            2 - Highlight Group Inv
            3 - Highlight Party Inv
            4 - Highlight Home Inv
            5 = Highlight Join the Team
            6 = Highlight Links
*/
{
/*
***** Establish calling page...need to alter relative address accordingly
*/
  var caller = document.location.href;
  if (caller.search('.htm') == -1 || caller.search('index.htm') != -1)
    loc = "Site/";
  else
    loc = "./";

  document.write("<TABLE WIDTH=100% ALIGN=CENTER>");
  document.write("<TR>");
  document.write("<TD WIDTH=100% CLASS=rightsidebar>");
  if (buttonno == 1)
    document.write("<img src='../Images/Past3.png'");
  else
  {
    document.write("<A HREF="+loc+"pastevents.htm><img src='../Images/Past1.png'");
    document.write("  onmouseover=\"this.src='../Images/Past2.png'\"");
    document.write("  onmouseout=\"this.src='../Images/Past1.png'\" BORDER=0><\A>");
  }
  document.write("</TD>");
  document.write("</TR>");
  document.write("<TR><TD WIDTH=100%>&nbsp</TD></TR>");
  document.write("<TR>");
  document.write("<TD WIDTH=100% CLASS=rightsidebar>");
  if (buttonno == 2)
    document.write("<img src='../Images/Group3.png'");
  else
  {
    document.write("<A HREF="+loc+"groupbooking.htm><img src='../Images/Group1.png'"); 
    document.write("  onmouseover=\"this.src='../Images/Group2.png'\"");
    document.write("  onmouseout=\"this.src='../Images/Group1.png'\" BORDER=0></A>");
  }
  document.write("</TD>");
  document.write("</TR>");
  document.write("<TR><TD WIDTH=100%>&nbsp</TD></TR>");
  document.write("<TR>");
  document.write("<TD WIDTH=100% CLASS=rightsidebar>");
  if (buttonno == 3)
    document.write("<img src='../Images/Party3.png'");
  else
  {
    document.write("<A HREF="+loc+"privateparty.htm><img src='../Images/Party1.png'"); 
    document.write("  onmouseover=\"this.src='../Images/Party2.png'\"");
    document.write("  onmouseout=\"this.src='../Images/Party1.png'\" BORDER=0></A>");
  }
  document.write("</TD>");
  document.write("</TR>");
  document.write("<TR><TD WIDTH=100%>&nbsp</TD></TR>");
  document.write("<TR>");
  document.write("<TD WIDTH=100% CLASS=rightsidebar>");
  if (buttonno == 4)
    document.write("<img src='../Images/Home3.png'");
  else
  {
    document.write("<A HREF="+loc+"homeinvestigations.htm><img src='../Images/Home1.png'"); 
    document.write("  onmouseover=\"this.src='../Images/Home2.png'\"");
    document.write("  onmouseout=\"this.src='../Images/Home1.png'\" BORDER=0></A>");
  }
  document.write("</TD>");
  document.write("</TR>");
  document.write("<TR><TD WIDTH=100%>&nbsp</TD></TR>");
  document.write("<TR>");
  document.write("<TD WIDTH=100% CLASS=rightsidebar>");
  if (buttonno == 5)
    document.write("<img src='../Images/Team3.png'");
  else
  {
    document.write("<A HREF="+loc+"jointheteam.htm><img src='../Images/Team1.png'");
    document.write("  onmouseover=\"this.src='../Images/Team2.png'\"");
    document.write("  onmouseout=\"this.src='../Images/Team1.png'\" BORDER=0></A>");
  }
  document.write("</TD>");
  document.write("</TR>");
  document.write("<TR><TD WIDTH=100%>&nbsp</TD></TR>");
  document.write("<TR>");
  document.write("<TD WIDTH=100% CLASS=rightsidebar>");
  if (buttonno == 6)
    document.write("<img src='../Images/Links3.png'");
  else
  {
    document.write("<A HREF="+loc+"links.htm><img src='../Images/Links1.png'");
    document.write("  onmouseover=\"this.src='../Images/Links2.png'\"");
    document.write("  onmouseout=\"this.src='../Images/Links1.png'\" BORDER=0></A>");
  }
  document.write("</TD>");
  document.write("</TR>");
  document.write("</TABLE>");
}
function PITfooterDisplay()
{
  document.write("<TABLE WIDTH=100% COLS=2 ALIGN=CENTER BORDER=0 BGCOLOR=BLACK>");
  document.write("<TR>");
  document.write("<TD ALIGN=LEFT CLASS=informer>&#169; 2010 Paranormal Investigation Team</TD>");
  document.write("<TD ALIGN=RIGHT CLASS=informer>Original Artwork by Rach Layton</TD>");
  document.write("</TR>");
  document.write("<TR>");
  document.write("<TD CLASS=informer>Email: info@paranormalinvestigationteam.org.uk</TD>");
  document.write("<TD ALIGN=RIGHT CLASS=informer>Site Management by Tom</TD>");
  document.write("</TR>");
  document.write("</TABLE>");
}
