
function IgnoreError() { return true; }
window.onerror = IgnoreError;

//Framebuster
if (top.location != location) {top.location.href = location.href;}

function showupcoming() {
  document.write("<IMG SRC='images/tournaments/tupcomingwide.gif' WIDTH=570 HEIGHT=23 BORDER=0 ALT='' STYLE='margin-top:0;margin-bottom:8;'>");
  for (var i=0; i<(tournaments.length); i=i+3) {
    if (tournaments[i+2]=="") {
       document.write("<TABLE WIDTH=570 BORDER=0 CELLPADDING=0 CELLSPACING=0>");
       document.write("  <TR>");
       document.write("    <TD WIDTH=10>&nbsp;<BR></TD>");
       document.write("    <TD WIDTH=55 ALIGN=CENTER VALIGN=TOP><FONT FACE=Arial SIZE=2><B>");
       document.write(tournaments[i]);
       document.write("      </B></FONT><BR></TD>");
       document.write("    <TD WIDTH=5>&nbsp;<BR></TD>");
       document.write("    <TD WIDTH=500 ALIGN=LEFT VALIGN=TOP><FONT FACE=Arial SIZE=2 COLOR=#DDDDDD><B>");
       document.write(tournaments[i+1]);
       document.write("      </B></FONT><BR></TD>");
       document.write("  </TR>");
       document.write("</TABLE>");
    }
  }
}
function showcomplete(whichones) {
  if (whichones==undefined || whichones=="undefined") { whichones=""; }
  document.write("<IMG SRC='images/tournaments/tcompletewide.gif' WIDTH=570 HEIGHT=23 BORDER=0 ALT='' STYLE='margin-top:16;margin-bottom:8;'>");
  for (var i=tournaments.length; i>=0; i=i-3) {
    if (tournaments[i-1]!="" && tournaments[i-1]!=undefined && tournaments[i-1]!="undefined") {
      if (whichones=="" || (whichones=="top3" && (tournaments[i-1]=="1st place" || tournaments[i-1]=="2nd place" || tournaments[i-1]=="3rd place"))) {
         document.write("<TABLE WIDTH=570 BORDER=0 CELLPADDING=0 CELLSPACING=0>");
         document.write("  <TR>");
         document.write("    <TD WIDTH=10>&nbsp;<BR></TD>");
         document.write("    <TD WIDTH=55 ALIGN=CENTER VALIGN=TOP><FONT FACE=Arial SIZE=2><B>");
         document.write(tournaments[i-3]);
         document.write("      </B></FONT><BR></TD>");
         document.write("    <TD WIDTH=5>&nbsp;<BR></TD>");
         document.write("    <TD WIDTH=70 ALIGN=CENTER VALIGN=TOP><FONT FACE=Arial SIZE=2><B>");
         document.write(tournaments[i-1]);
         document.write("      </B></FONT><BR></TD>");
         document.write("    <TD WIDTH=10>&nbsp;<BR></TD>");
         document.write("    <TD WIDTH=420 ALIGN=LEFT VALIGN=TOP><FONT FACE=Arial SIZE=2 COLOR=#DDDDDD><B>");
         document.write(tournaments[i-2]);
         document.write("      </B></FONT><BR></TD>");
         document.write("  </TR>");
         document.write("</TABLE>");
      }
    }
  }
}

function showteamselect() {
  document.write("<FORM NAME=teams STYLE='margin-top:0;margin-bottom:0;'>");
  document.write("<SELECT NAME='teamlist' SIZE=1 style='width:150px;background-color:#060;color:#FFF;font-size:9pt;' onChange='window.location=document.teams.teamlist.options[document.teams.teamlist.selectedIndex].value;'>");
  document.write("  <OPTION VALUE=''>Change team</OPTION>");
  document.write("  <OPTION VALUE='teamf.html'>12U</OPTION>");
  document.write("  <OPTION VALUE='teamg.html'>13U</OPTION>");
  document.write("</SELECT>");
  document.write("</FORM>");
}
