function getTableOffset()
{
  var pageWidth = 0;
  var pageMargin = 5;
  var tableOffset = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    pageWidth = window.innerWidth;
  } else if( document.documentElement && document.documentElement.clientWidth) {
    //IE 6+ in 'standards compliant mode'
    pageWidth = document.documentElement.clientWidth;
  } else if( document.body && document.body.clientWidth) {
    //IE 4 compatible
    pageWidth = document.body.clientWidth;
  }

  if (pageWidth > 1010)
  {
    pageWidth = pageWidth-1010;
    tableOffset = Math.floor(pageWidth/2) + pageMargin;
  }
  else tableOffset = pageMargin;
  return tableOffset;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
  {
    if ((obj=MM_findObj(args[i]))!=null) 
    { 
      v=args[i+2];
      if (obj.style) 
      { 
        obj=obj.style;
        v=(v=='show')?'visible':(v=='hide')?'hidden':v;
      }
      obj.visibility=v; 
    }
  }
}

function ChangeTextColor()
{
  var i,p,v,obj,args=ChangeTextColor.arguments;
  for (i=0; i<(args.length-2); i+=3)
  {
    if ((obj=MM_findObj(args[i]))!=null) 
    { 
      v=args[i+2];
      obj.style.color=v; 
    }
  }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

document.write("  <table style=\"background-color:white; width:1000; height:200; border:0\" cellpadding=\"0\" cellspacing=\"0\">");
document.write("    <tr>");
document.write("      <td height=\"170\">");
document.write("        <img src=\"http://www.uchockey.com.au/images/header.jpg\" width=\"1000\" style=\"height:170\" alt=\"University of Canberra Hockey Club\" /><br />");
document.write("        <table width=\"1000\"  style=\"height:30; border:0; background-image: url('http://www.uchockey.com.au/images/HeaderButtonBG.jpg')\" cellpadding=\"0\" cellspacing=\"0\">");
document.write("          <tr>");
document.write("            <td style=\"width:63; font-weight: bold; color:#000094; text-align:center\"><a href=\"/index.php\" style=\"text-decoration:none; color:#000094\">Home</a></td>");
document.write("            <td style=\"width:85; font-weight: bold; color:#000094; text-align:center\" onmouseover=\"MM_showHideLayers('AboutUs','','show');\" onMouseOut=\"MM_showHideLayers('AboutUs','','hide');\">");
document.write("              <a href=\"/About/about.htm\" style=\"text-decoration:none; color:#000094\">About Us</a>");
document.write("              <div id=\"AboutUs\" style=\"position:absolute; left:" + (getTableOffset() + 63) + "px; top:205px; z-index:1; background-color: #000094; visibility: hidden;\">");
document.write("                <table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"85\">");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aAbout\" href=\"/About/about.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aAbout','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aAbout','','#FFE600');\">About Us</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aFees\" href=\"/About/fees.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aFees','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aFees','','#FFE600');\">Fees</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aBoM\" href=\"/About/bom.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aBoM','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aBoM','','#FFE600');\">BoM</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                </table>");
document.write("              </div>");
document.write("            </td>");
document.write("            <td style=\"width:68; font-weight: bold; color:#000094; text-align:center\" onmouseover=\"MM_showHideLayers('Teams','','show');\" onMouseOut=\"MM_showHideLayers('Teams','','hide');\">");
document.write("              <a href=\"/teams/teams.htm\" style=\"text-decoration:none; color:#000094\">Teams</a>");
document.write("              <div id=\"Teams\" style=\"position:absolute; left:" + (getTableOffset() + 63 + 85) + "px; top:205px; z-index:1; background-color: #000094; layer-background-color: #3366FF; visibility: hidden;\">");
document.write("                <table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"68\">");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aTeams\" href=\"/teams/teams.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aTeams','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aTeams','','#FFE600');\">Teams</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aOutdoor\" href=\"/teams/outdoor.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aOutdoor','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aOutdoor','','#FFE600');\">Outdoor</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aIndoor\" href=\"/teams/indoor.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aIndoorM','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aIndoorM','','#FFE600');\">Indoor</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aVets\" href=\"/teams/vets.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aVets','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aVets','','#FFE600');\">Vets</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                </table>");
document.write("              </div>");
document.write("            </td>");
document.write("            <td style=\"width:80; font-weight: bold; color:#000094; text-align:center\"><a href=\"/teams/umpires.php\" style=\"text-decoration:none; color:#000094\">Umpires</a></td>");
document.write("            <td style=\"width:83; font-weight: bold; color:#000094; text-align:center\"><a href=\"/Galleries/gallery.htm\" style=\"text-decoration:none; color:#000094\">Galleries</a></td>");
//document.write("            <td style=\"width:112; font-weight: bold; color:#000094; text-align:center\"><a href=\"/Merchandise/merchandise.htm\" style=\"text-decoration:none; color:#000094\">Merchandise</a></td>");
document.write("            <td style=\"width:83; font-weight: bold; color:#000094; text-align:center\" onmouseover=\"MM_showHideLayers('Archives','','show');\" onMouseOut=\"MM_showHideLayers('Archives','','hide');\">");
document.write("              <a href=\"/Archives/archives.php\" style=\"text-decoration:none; color:#000094\">Archives</a>");
document.write("              <div id=\"Archives\" style=\"position:absolute; left:" + (getTableOffset() + 63 + 85 + 68 + 80 + 83 ) + "px; top:205px; z-index:1; background-color: #000094; layer-background-color: #3366FF; visibility: hidden;\">");
document.write("                <table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"120\">");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aArchives\" href=\"/Archives/archives.php\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aArchives','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aArchives','','#FFE600');\">Archives</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aPosHolder\" href=\"/Archives/positions.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aPosHolder','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aPosHolder','','#FFE600');\">Position Holders</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aPlayerStats\" href=\"/Archives/SearchStats.php\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aPlayerStats','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aPlayerStats','','#FFE600');\">Player Stats</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aYearBook\" href=\"/Archives/YearBooks.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aYearBook','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aYearBook','','#FFE600');\">Year Books</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aClubAwards\" href=\"/Archives/awards.htm\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aClubAwards','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aClubAwards','','#FFE600');\">Club Awards</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                  <tr>");
document.write("                    <td>");
document.write("                      <a id=\"aNews\" href=\"/Archives/news.php\" style=\"text-decoration:none; color:#FFE600\" onmouseover=\"ChangeTextColor('aNews','','#FFFFFF');\" onMouseOut=\"ChangeTextColor('aNews','','#FFE600');\">News & Notices</a><br />");
document.write("                    </td>");
document.write("                  </tr>");
document.write("                </table>");
document.write("              </div>");
document.write("            </td>");
document.write("            <td style=\"width:87; font-weight: bold; color:#000094; text-align:center\"><a href=\"/sponsors.htm\" style=\"text-decoration:none; color:#000094\">Sponsors</a></td>");
document.write("            <td style=\"width:451; font-weight: bold; color:#000094; text-align:center\">&nbsp;</td>");
document.write("          </tr>");
document.write("        </table>");
document.write("      </td>");
document.write("    </tr>");
document.write("  </table>");
