function gameclassification(Title,Status) {

  if (Status=='2') {
    document.write(' - <Font class=ssifoot>Final</Font>');
  }
  if (Status=='3') {
    document.write(' - <Font class=ssifoot>Final</Font>');
  }
  if (Status=='6') {
    document.write(' - <Font class=ssifoot>Postponed</Font>');
  }
  if (Status=='7') {
    document.write(' - <Font class=ssifoot>Final</Font>');
  }
  if (Status=='9') {
    document.write(' - <Font class=ssifoot>Final</Font>');
  }
  if (Status=='10') {
    document.write(' - <Font class=ssifoot>Final</Font>');
  }

  if (Status=='13') {
    document.write(' - <Font class=ssifoot>Forfeit</Font>');
  }
  if (Status=='21') {
    document.write(' - <Font class=ssifoot>First <#Var Field=PeriodType></Font>');
  }
  if (Status=='22') {
    document.write(' - <Font class=ssifoot>Second <#Var Field=PeriodType></Font>');
  }
  if (Status=='23') {
    document.write(' - <Font class=ssifoot>Third <#Var Field=PeriodType></Font>');
  }
  if (Status=='24') {
    document.write(' - <Font class=ssifoot>Fourth <#Var Field=PeriodType></Font>');
  }
  if (Status=='25') {
    document.write(' - <Font class=ssifoot>Fifth <#Var Field=PeriodType></Font>');
  }
  if (Status=='26') {
    document.write(' - <Font class=ssifoot>Sixth <#Var Field=PeriodType></Font>');
  }
  if (Status=='27') {
    document.write(' - <Font class=ssifoot>Seventh <#Var Field=PeriodType></Font>');
  }
  if (Status=='28') {
    document.write(' - <Font class=ssifoot>Eighth <#Var Field=PeriodType></Font>');
  }
  if (Status=='29') {
    document.write(' - <Font class=ssifoot>Ninth <#Var Field=PeriodType></Font>');
  }
  if (Status=='39') {
    document.write(' - <Font class=ssifoot>Halftime</Font>');
  }
  if (Status=='40') {
    document.write(' - <Font class=ssifoot>Final</Font>');
  }

  if (Title.length>1) {
    document.write('<br><Font class=ssifoot>');
    document.write(Title);
    document.write('</Font>');
  }

}


function hidesection(sec)
{
     thisSec = eval('s' + sec); 
     if (thisSec != null){
          if (thisSec.length){
               for (var i=0; i<thisSec.length;i++) {thisSec[i].style.display = 'none'}
          }
          else{
            thisSec.style.display = 'none'
          }
     }

}

function showsection(sec)
{
     thisSec = eval('s' + sec); 
     if (thisSec != null){
          if (thisSec.length){
               for (var i=0; i<thisSec.length;i++) {thisSec[i].style.display = 'inline'}
          }
          else{
            thisSec.style.display = 'inline'
          }
     }

}

function toggle_visibility(id) {
  var e = document.getElementById(id);
  if(e.style.display == 'block')
    e.style.display = 'none';
  else
    e.style.display = 'block';
}


function ajaxinclude(url) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.open('GET', url, false) //get page synchronously 
page_request.send(null)
writecontent(page_request)
}

function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}

function alternateRows() {
  el = document.getElementsByTagName("table");
  for (i=0; i<el.length; i++)
    if (el[i].className == "ssistatblock") {
      rows = el[i].getElementsByTagName("tr");
    for (j=0; j<rows.length; j++)
      rows[j].className = "row" + (j % 2);
    if (navigator.product == "Gecko") {
      el[i].tHead.className = "rowtitle";
    } else {
      rows[0].className = "rowtitle";
    }
  }
}

