// JavaScript Document

var mesg = new Array();
mesg[0] = new MessageLine('<font color=000000>Merchandise page now up!</font>','t');
mesg[1] = new MessageLine('<a href=video.html><font color=000000></font></a>','t');

var roster = new Array();
//                           #   Name              b/t     wgt       hgt     pos   yr       exp     hometown  prev school fav player fav team

roster[0] = new  RosterLine('Ryan Graf','','',', CA','#','','','OF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[1] = new  RosterLine('David Brewster','','','Littleton, CO','23','','','3B','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[2] = new  RosterLine('Matt Cochran','','','Burlingame, CA','14','','','C','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[3] = new  RosterLine('Christopher Darrow','','','Englewood, CO','4','','','p','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[4] = new  RosterLine('Garrett Grossman','','',', CO','21','','','OF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[5] = new  RosterLine('Zach Kincaid','','',', MI','18','','','OF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[6] = new  RosterLine('Jake Kinney','','',', CO','30','','','1B','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[7] = new  RosterLine('Ben Fuchs','','','Tallahassee, FL','9','','','P','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[8] = new  RosterLine('Tucker Hinchcliffe','','','Basalt, CO','8','','','OF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[9] = new  RosterLine('Ryan Hylbak','','',', CA','3','','','OF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[10] = new  RosterLine('George Kinsella','','','Clarendon Hills, IL','5','','','P        ','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[11] = new  RosterLine('Tyler London','','','Los Angeles, CA','20','','','OF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[12] = new  RosterLine('Chris Kavanaugh','','',', CO','24','','','2B','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[13] = new  RosterLine('Greg Blackstun','','',', CO','17','','','2B','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[14] = new  RosterLine('Tony Piha','','','Palo Alto, CA','15','','','C','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[15] = new  RosterLine('Kyle Quinn','','','San Carlos, CA','25','','','1B/P','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[16] = new  RosterLine('Grant Wells','','','Los Angeles, CA','11','','','IF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[17] = new  RosterLine('Dane Hyman','','','Golden, CO','13','','','IF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[18] = new  RosterLine('Ryan Schreiber','','','Westbury, NY','7','','','SS/2B','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[19] = new  RosterLine('Garrett Smith','','','Littleton, CO','2','','','2B','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[20] = new  RosterLine('Conor Vidulich','','','Boulder, CO','27','','','P       ','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[21] = new  RosterLine('Brian Wanner','','','Sioux City, IA','26','','','OF','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[22] = new  RosterLine('Augst Noble','','',', AR','22','','','P','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[23] = new  RosterLine('James Donnelly','','',', AR','19','','','P','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[24] = new  RosterLine('Keegan Kliman','','',', AR','19','','','P','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[25] = new  RosterLine('Casey Connolly','','',', AR','19','','','P','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');


var practice = new Array();

practice[0] = new  RosterLine(' Dominic DiMarco',' Dom','18',' Boulder, CO','',' Louis DiMarco',' Marlene',' P',' 6’ 2”','180',' Freshman',' Mechanical Engineer',' MEP, MAES, UMAS y MEChA, MESA',' Centaurus High School',' Warrior',' Baseball, LINKS, Leader’s Challenge, MESA Most Improved (Baseball 2004), Mr.Baseball (2006) ','','',' Phoenix, AZ',' Westminster High School',' Pamona Springs (AZ)',' Transformers',' Apprentice',' Bone Thugs ‘N Harmony',' Mexican',' None',' Siddhartha  ',' Physics',' Football',' None/Atlanta Falcons, New Orleans Saints/None',' San Diego, CA.',' Model Cars',' “Stay far from timid, only make moves when your Heart’s in it, and live the phrase ‘Sky’s the Limit’” Notorious BIG',' People who avoid conflicts/situations',' My friend Shantell',' I have 3 uncles the same age as me.',' Listen to music/visualize the game',' Sit and relax',' Professional: The winning slide from Holliday to put the Rockies into the Playoffs; Personal:  Pitching 11-straight innings and keeping the game 1-1.');
practice[1] = new  RosterLine('Shane Vitrano','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
practice[2] = new  RosterLine(' Eric Welsh','','21',' Boulder, CO',' ',' Kevin',' Debbe',' OF',' 6’ 3”','175','Senior',' Mechanical Engineering',' ASAP Physics Tutor, Enginerding',' Fairview High School',' Knights',' ','','',' Lawrence, Kansas',' No one','',' Jurassic Park',' Family Guy',' Aqua',' Jose Maldoon’s ',' www.websudoku.com',' The Icarus Hunt',' Mechatronics',' Snowboarding!',' Colorado Rockies',' BFN, Iowa',' Playing guitar, eating cheese, mountain biking, free style walking',' “If that chick has a beard, it is OVER!”',' Wet socks',' My best friend David Moffet',' ',' Focusing the mechanism',' Unfocusing the mechanism',' The Rox winning the 2007 NLCS and seeing it from the 6th row on the 3rd base line');
practice[3] = new  RosterLine(' Jon Halvorsen',' Halvo','18',' Denver, CO','',' Rich',' Fredalyn','1B, P',' 6’ 5”','186','Freshman',' Architectural Engineering',' Intramural Basketball, Engineering Fraternity',' Littleton High School',' Lions',' High Honors, FBLA, DECA, Baseball, Basketball, Football','','',' Trip to Las Vegas last summer',' Arapahoe Warriors',' Regis Baseball Field',' Spy Games',' Cowboy Bebop',' Atmosphere',' Ribs',' Kongregate',' The Amber Spyglass',' Descriptive Geometry',' Baseketball',' Rockies, Broncos, Nuggets',' Miami, Florida',' Video Games and just “Chilaxin”',' “Anytime is a good time for pie” –Marsellus Wallace',' Messes',' Jessica Alba',' I’m Color blind',' Nap',' Shower',' Winning a state championship with my middle school baseball team');
practice[4] = new  RosterLine('Alex Uhls','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
practice[5] = new  RosterLine(' Jason (Jay) Alsdorf',' Balls','22',' Littleton,CO','',' Steve',' Laura','P',' 6’ 0”','195','',' Business Marketing',' AGO',' Highlands Ranch',' Falcons',' ','','',' Driving to Tucson','','',' A River Runs Through It',' The Office',' Incubus',' SPICY','',' MindGym, Rich Dad Poor Dad',' Management',' Football',' Dodgers, Broncos, Nuggets',' Beliz or New Zealand',' fly-fishing, guitar, skiing',' Any Chris Farley quote',' slow drivers in the fast lane',' Keira Knightley',' I’ve been hit by lightning',' Korn or Tool','always think positive, find the good things I did and concentrate on making them better next game',' On my birthday my dad took me to game 7, 7 rows up behind Patrick Roy, when the Avalanche won the Stanley Cup.');


var blurb = new Array();
//blurb[0] = new blurbLine('24','Played 4 years at Ponderosa HS.  Freshman team was the first undefeated team in school history');
blurb[0] = new blurbLine('','');
blurb[1] = new blurbLine('','');
blurb[2] = new blurbLine('','');
blurb[3] = new blurbLine('','');
blurb[4] = new blurbLine('','');
blurb[5] = new blurbLine('',''); 
blurb[6] = new blurbLine('','');
blurb[7] = new blurbLine('','');
blurb[8] = new blurbLine('','');
blurb[9] = new blurbLine('','');
blurb[10] = new blurbLine('','');
blurb[11] = new blurbLine('','');
blurb[12] = new blurbLine('','');
blurb[13] = new blurbLine('','');
blurb[14] = new blurbLine('','');
blurb[15] = new blurbLine('','');
blurb[16] = new blurbLine('','');
blurb[17] = new blurbLine('','');
blurb[18] = new blurbLine('','');
blurb[19] = new blurbLine('','');
blurb[20] = new blurbLine('','');
blurb[21] = new blurbLine('','');
blurb[22] = new blurbLine('','');
blurb[23] = new blurbLine('','');
blurb[24] = new blurbLine('','');
blurb[25] = new blurbLine('','');
blurb[26] = new blurbLine('','');
blurb[27] = new blurbLine('','');
blurb[28] = new blurbLine('','');
blurb[29] = new blurbLine('','');

hstat = new Array();
//                         #   Player        Avg    GP-GS  AB    R    1B   2B   3B   HR   RBI  TB   SLG%     BB  HBP   SO    OB%    SF    SH
hstat[0] = new hstatline('','Brandon Barron','0.414','24', '58', '25', '19', '4', '1', '', '7', '30', '0.517', '18', '6', '8', '0.585', '', '0');
hstat[1] = new hstatline('','David Brewster','0.500','7', '8', '4', '3', '1', '', '', '3', '5', '0.625', '3', '1', '1', '0.667', '', '0');
hstat[2] = new hstatline('','Matt Cochran','0.333','14', '30', '8', '7', '2', '', '1', '5', '15', '0.500', '3', '', '8', '0.394', '2', '0');
hstat[3] = new hstatline('','Matt DeGraaf','0.000','1', '2', '', '', '', '', '', '', '0', '0.000', '', '', '2', '0.000', '', '0');
hstat[4] = new hstatline('','Matt Fithian','0.235','15', '34', '7', '7', '1', '', '', '6', '9', '0.265', '4', '', '11', '0.316', '', '0');
hstat[5] = new hstatline('','Tucker Hinchcliffe','0.333','25', '78', '17', '20', '3', '1', '2', '13', '37', '0.474', '2', '1', '15', '0.358', '', '0');
hstat[6] = new hstatline('','Ryan Hylbak','0.250','17', '32', '9', '4', '4', '', '', '8', '12', '0.375', '5', '3', '6', '0.400', '3', '0');
hstat[7] = new hstatline('','Tyler London','0.263','11', '19', '5', '4', '1', '', '', '5', '6', '0.316', '2', '1', '2', '0.364', '1', '0');
hstat[8] = new hstatline('','Brendon Marek','0.348','25', '69', '26', '12', '8', '', '4', '20', '44', '0.638', '15', '2', '6', '0.477', '2', '0');
hstat[9] = new hstatline('','Chad Petersen','0.265','25', '68', '19', '7', '8', '', '3', '17', '35', '0.515', '17', '1', '19', '0.419', '1', '0');
hstat[10] = new hstatline('','Tony Piha','0.375','21', '56', '11', '17', '3', '1', '', '20', '26', '0.464', '3', '', '6', '0.407', '', '0');
hstat[11] = new hstatline('','Kyle Quinn','0.323','27', '65', '22', '14', '6', '', '1', '19', '30', '0.462', '25', '1', '14', '0.516', '2', '0');
hstat[12] = new hstatline('','Nick Rosenberger','0.429','14', '35', '9', '12', '1', '1', '1', '9', '21', '0.600', '3', '1', '1', '0.487', '2', '0');
hstat[13] = new hstatline('','Ryan Schreiber','0.385','14', '26', '7', '9', '1', '', '', '4', '11', '0.423', '6', '', '6', '0.500', '1', '0');
hstat[14] = new hstatline('','Garrett Smith','0.403','24', '72', '20', '26', '3', '', '', '21', '32', '0.444', '8', '1', '4', '0.469', '5', '0');
hstat[15] = new hstatline('','Brian Wanner','0.381','15', '42', '17', '8', '4', '1', '3', '10', '31', '0.738', '5', '1', '3', '0.458', '', '0');
hstat[16] = new hstatline('','Colin Wilkins','0.182','11', '22', '8', '3', '1', '', '', '6', '5', '0.227', '1', '2', '6', '0.280', '1', '0');
hstat[17] = new hstatline('','Nolin Wilkins','0.474','25', '76', '26', '21', '10', '2', '3', '34', '59', '0.776', '9', '4', '10', '0.551', '1', '0');



pstat = new Array();
//                         #   Player        ERA     W-L  APP   GS   CG  SHO/CBO SV   IP    H    R    ER   BB  SO   2B   3B   HR   AB    O/Avg 
pstat[0] = new pstatline('','Christopher Darrow','5.60','0-1', '3', '', '', '',   '', '5', '6', '6', '4', '2', '', '0');
pstat[1] = new pstatline('','Patrick Darrow','5.25','4-2', '8', '8', '2', '0',   '0', '32', '31', '34', '24', '35', '35', '0');
pstat[2] = new pstatline('','Matt DeGraaf','3.39','6-0', '8', '7', '5', '0',   '0', '43.33', '32', '25', '21', '17', '50', '0');
pstat[3] = new pstatline('','Ben Fuchs','4.27','2-2', '8', '3', '', '0',   '0', '19.67', '22', '16', '12', '12', '14', '0');
pstat[4] = new pstatline('','George Kinsella','7.00','0-0', '1', '', '', '',   '', '2', '3', '2', '2', '2', '1', '0');
pstat[5] = new pstatline('','Nick Rosenberger','6.80','0-1', '6', '', '', '0',   '0', '11.33', '15', '11', '11', '6', '8', '0');
pstat[6] = new pstatline('','Shams Sayed','6.61','2-4', '7', '7', '1', '0',   '0', '29.67', '35', '30', '28', '13', '26', '0');
pstat[7] = new pstatline('','Conor Vidulich','4.15','1-2', '8', '4', '1', '',   '', '27', '39', '26', '16', '5', '26', '0');
pstat[8] = new pstatline('','Colin Wilkins','5.25','1-1', '5', '', '', '',   '', '10.67', '10', '10', '8', '9', '7', '');




fstat = new Array();
//                         #   Player        C    PO    A    E    FLD%    DPs  SBA  CSB  SBA%     PB   CI  


function hstatline(innum, inname, inAvg, inGP, inAB, inR, inH, in2B, in3B, inHR, inRBI, inTB, inSLG, inBB, inHBP, inSO, inOB, inSF, inSH){
  this.hstatNum = innum;
  this.hstatName = inname;
  this.hstatAVG = inAvg;
  this.hstatGP = inGP;
  this.hstatAB = inAB;
  this.hstatR = inR;
  this.hstatH =  inH;
  this.hstat2B = in2B;
  this.hstat3B = in3B;
  this.hstatHR = inHR;
  this.hstatRBI = inRBI;
  this.hstatTB = inTB;
  this.hstatSLG = inSLG;
  this.hstatBB = inBB;
  this.hstatHBP = inHBP;
  this.hstatSO = inSO;
  this.hstatOB = inOB;
  this.hstatSF = inSF;
  this.hstatSH = inSH;
}

function pstatline(innum, inname, inERA, inWL, inAPP, inGS, inCG, inSHO, inSV, inIP, inH, inR, inER, inBB, inSO, inHR){
  this.pstatNum = innum;
  this.pstatName = inname;
  this.pstatERA = inERA;
  this.pstatWL = inWL;
  this.pstatAPP = inAPP;
  this.pstatGS = inGS;
  this.pstatCG = inCG;
  this.pstatSHO =  inSHO;
  this.pstatSV = inSV;
  this.pstatIP = inIP;
  this.pstatH = inH;
  this.pstatR = inR;
  this.pstatER = inER;
  this.pstatBB = inBB;
  this.pstatSO = inSO;
  this.pstatHR = inHR;
}

function fstatline(innum, inname, inC, inPO, inA, inE, inFLD){
  this.fstatNum = innum;
  this.fstatName = inname;
  this.fstatC = inC;
  this.fstatPO = inPO;
  this.fstatA= inA;
  this.fstatE = inE;
  this.fstatFLD =  inFLD;
}

function MessageLine(intext, intype) {
  this.MessageLineText = intext;
  this.MessageLineType = intype;
}


function RosterLineOld(num, name, thrws, wgt, hgt, pos, cls, exper, hometown, school, favplay, favteam) {
  this.RosterLineNum      = num;
  this.RosterLineName     = name;
  this.RosterLineThrows   = thrws;
  this.RosterLineWgt      = wgt;
  this.RosterLineHgt      = hgt;
  this.RosterLinePos      = pos;
  this.RosterLineClass    = cls;
  this.RosterLineExper    = exper;
  this.RosterLineHome     = hometown;
  this.RosterLineSchool   = school;
  this.RosterLineFavPlayer = favplay;
  this.RosterLineFavTeam = favteam;
}

function RosterLine (name,nick,age,hometown,num,father,mother,pos,hgt,wgt,year,major,actcu,prevschl,mascot,acths,hobbies,favorite,favrt,favopp,favarena,favmovie,favtv,favmusic,favfood,favweb,favbook,favclass,favsport,favpro,favvac,favhobb,quote,petpeeve,stranded,itstrue,pregame,postgame,memor){
this.RosterLineName = name;
this.RosterLineNick = nick;
this.RosterLineAge = age;
this.RosterLineHomeTown = hometown;
this.RosterLineNum = num;
this.RosterLineFather = father;
this.RosterLineMother = mother;
this.RosterLinePos = pos;
this.RosterLineHgt = hgt;
this.RosterLineWgt = wgt;
this.RosterLineYear = year;
this.RosterLineMajor = major;
this.RosterLineActCU = actcu;
this.RosterLinePrevSchl = prevschl;
this.RosterLineMascot = mascot;
this.RosterLineActHs = acths;
this.RosterLineHobbies = hobbies;
this.RosterLineFavorite = favorite;
this.RosterLineFavRT = favrt;
this.RosterLineFavOpp = favopp;
this.RosterLineFavArena = favarena;
this.RosterLineFavMovie = favmovie;
this.RosterLineFavTV = favtv;
this.RosterLineFavMusic = favmusic;
this.RosterLineFavFood = favfood;
this.RosterLineFavWeb = favweb;
this.RosterLineFavBook = favbook;
this.RosterLineFavClass = favclass;
this.RosterLineFavSport = favsport;
this.RosterLineFavPro = favpro;
this.RosterLineFavVac = favvac;
this.RosterLineFavHobb = favhobb;
this.RosterLineQuote = quote;
this.RosterLinePetPeeve = petpeeve;
this.RosterLineStranded = stranded;
this.RosterLineItsTrue = itstrue;
this.RosterLinePreGame = pregame;
this.RosterLinePostGame = postgame;
this.RosterLineMemor = memor;
}

function blurbLine(num, btext) {
  this.blurmLineNum = num;
  this.blurbLineText = btext;
}

function DisplayMessage() {
   var myMessage='';
   for (i=0;i<mesg.length;i++){
      if (mesg[i].MessageLineType == 't'){
	     myMessage += '<b>' + mesg[i].MessageLineText + '</b><br>';
	  }
	  else {
	     myMessage += mesg[i].MessageLineText + '<br>';
	  }
	  myMessage += '<br>';
   }
   document.write(myMessage);
}

function DisplayRoster() {
   var myRoster='';
   var myloc='';
//   alert ('In DisplayRoster');

//   alert ('Roster length = ' + roster.length);
   for (i=0;i<roster.length;i++){
      myRoster = '                <tr>'
	  myloc = roster[i].RosterLineNum;
//	  alert ('myloc = ' + myloc );
      myRoster += '                 <td valign="top">' + roster[i].RosterLineNum + '</td>';
//      myRoster += '                 <td valign="top"> <a href=' + myloc + '.html>' + roster[i].RosterLineName + '</a></td>';
      myRoster += '                 <td valign="top"><a href="player.html?id='+i+'"> ' + roster[i].RosterLineName + '</a></td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> ' + roster[i].RosterLinePos + '</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> ' + roster[i].RosterLineHomeTown + '</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '              </tr>';
     document.write(myRoster);
   }
}
function DisplayPractice() {
   var myRoster='';
   var myloc='';
//   alert ('In DisplayRoster');

//   alert ('Roster length = ' + roster.length);
   for (i=0;i<practice.length;i++){
      myRoster = '                <tr>'
	  myloc = practice[i].RosterLineNum;
//	  alert ('myloc = ' + myloc );
      myRoster += '                 <td valign="top">' + practice[i].RosterLineNum + '</td>';
//      myRoster += '                 <td valign="top"> <a href=' + myloc + '.html>' + roster[i].RosterLineName + '</a></td>';
      myRoster += '                 <td valign="top"><a href="practice.html?id='+i+'"> ' + practice[i].RosterLineName + '</a></td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> ' + practice[i].RosterLinePos + '</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '                 <td valign="top"> ' + practice[i].RosterLineHomeTown + '</td>';
      myRoster += '                 <td valign="top"> &nbsp;</td>';
      myRoster += '              </tr>';
     document.write(myRoster);
   }
}

function DisplayHittingStats(){
   var myhstat='';
   var myloc='';
  //alert ('In DisplayHittingStats');

   for (i=0;i<hstat.length;i++){
      myhstat = '                <tr>';
	  myloc = hstat[i].hstatName.nosp();
      myhstat += '                 <td valign="top">' + hstat[i].hstatNum + '</td>';
//      myhstat += '                 <td valign="top"> <a href=' + myloc + '.html>' + hstat[i].hstatLineName + '</a></td>';
      myhstat += '                 <td valign="top">'  + hstat[i].hstatName + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatAVG + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatGP + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatAB + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatR + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatH + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstat2B + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstat3B + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatHR + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatRBI + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatTB + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatSLG + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatBB + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatHBP + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatSO + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatOB + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatSF + '</td>';
      myhstat += '                 <td valign="top"> ' + hstat[i].hstatSH + '</td>';
      myhstat += '              </tr>';
     document.write(myhstat);
   }
}

function DisplayPitchingStats(){
   var mypstat='';
   var myloc='';
//   alert ('In DisplayPitchingStats');

   for (i=0;i<pstat.length;i++){
      mypstat = '                <tr>';
	  myloc = pstat[i].pstatName.nosp();
     mypstat += '                 <td valign="top">' + pstat[i].pstatNum + '</td>';
//      mypstat += '                 <td valign="top"> <a href=' + myloc + '.html>' + pstat[i].pstatLineName + '</a></td>';
      mypstat += '                 <td valign="top">'  + pstat[i].pstatName + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatERA + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatWL + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatAPP + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatGS + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatCG + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatSHO + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatSV + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatIP + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatH + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatR + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatER + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatBB + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatSO + '</td>';
      mypstat += '                 <td valign="top"> ' + pstat[i].pstatHR + '</td>';
      mypstat += '              </tr>';
     document.write(mypstat);
   }
}

function DisplayFieldingStats() {
   var myfstat='';
   var myloc='';
//   alert ('In DisplayPitchingStats');

   for (i=0;i<fstat.length;i++){
      myfstat = '                <tr>';
	  myloc = fstat[i].fstatName.nosp();
     myfstat += '                 <td valign="top">' + fstat[i].fstatNum + '</td>';
//      myfstat += '                 <td valign="top"> <a href=' + myloc + '.html>' + fstat[i].fstatLineName + '</a></td>';
      myfstat += '                 <td valign="top">'  + fstat[i].fstatName + '</td>';
      myfstat += '                 <td valign="top"> ' + fstat[i].fstatC + '</td>';
      myfstat += '                 <td valign="top"> ' + fstat[i].fstatPO + '</td>';
      myfstat += '                 <td valign="top"> ' + fstat[i].fstatA + '</td>';
      myfstat += '                 <td valign="top"> ' + fstat[i].fstatE + '</td>';
      myfstat += '                 <td valign="top"> ' + fstat[i].fstatFLD + '</td>';
      myfstat += '              </tr>';
     document.write(myfstat);
   }
}

var qsParm = new Array();
function qs() {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++) {
   var pos = parms[i].indexOf('=');
   if (pos > 0) {
      var key = parms[i].substring(0,pos);
      var val = parms[i].substring(pos+1);
      qsParm[key] = val;
      }
   }
}
 
function showNumber() {
	qsParm['id'] = null;
	qs();
	var numb=qsParm['id'];

	for (var i=0; i<roster.length; i++) {
	   if (roster[i].RosterLineNum == numb){
	     iNumb = i;
	   }
	}
	document.write(roster[numb].RosterLineNum+'  ' +roster[numb].RosterLineName);
}
function showPNumber() {
	qsParm['id'] = null;
	qs();
	var numb=qsParm['id'];

	for (var i=0; i<practice.length; i++) {
	   if (practice[i].RosterLineNum == numb){
	     iNumb = i;
	   }
	}
	document.write(practice[numb].RosterLineNum+'  ' +practice[numb].RosterLineName);
}

function showPic(){
	qsParm['id'] = null;
	qs();
	var numb=qsParm['id'];
	lname=roster[numb].RosterLineName.substr(roster[numb].RosterLineName.search(' ')+1, roster[numb].RosterLineName.length);
//	if (roster[numb].RosterLineNum == '21') {
//	   lname = 'jbostrom'
//	}
//	if (roster[numb].RosterLineNum == '15') {
//	   lname = 'abostrom'
//	}
	if (lname=='Waller Jr.') {
	   lname='waller';
	}
	if (lname=='William King Thurner'){
	   lname='thurner';
	}
	//alert("lname="+lname);
	var imgSrc='<img src="images/' + lname.toLowerCase() + '.gif" width="180" height="240">';
	document.write(imgSrc);
}

function showInfo(){
	qsParm['id'] = null;
	iNumb = 0;
	qs();
	var numb=qsParm['id'];

	for (var i=0; i<roster.length; i++) {
	   if (roster[i].RosterLineNum == numb){
	     iNumb = i;
	   }
	}
    iNumb = numb;
	infoTab =  '';
	infoTab += '<table width="100%" class="tmc4" >';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Nickname:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineNick+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Position:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLinePos+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Height:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineHgt+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Weight:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineWgt+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Class Year:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineYear+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Age:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineAge+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Major:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineMajor+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Home Town:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineHomeTown+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Father:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFather+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Mother:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineMother+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Prev School:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLinePrevSchl+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Mascot:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineMascot+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Activities in HS:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineActHs+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>';
    infoTab += '    <td valign=top>Activities at CU:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineActCU+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>';
	infoTab += '    <td valign=top>Favorite</td>';
	infoTab += '    <td valign=top></td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Opponent:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavOpp+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Arena:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavArena+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Movie:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavMovie+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>TV Show:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavTV+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Music/Group:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavMusic+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Food:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavFood+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Web Site:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavWeb+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Book:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavBook+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Class:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavClass+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Sport (other than baseball):</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavSport+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Pro Teams(Baseball,Football,Basketball)</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavPro+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Vacation Spot:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavVac+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Quote:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineQuote+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>If you were stranded on an island, who would you be with? </td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineStranded+'</td>';
    infoTab += '</tr>';
    infoTab += '<tr>';
    infoTab += '<td valign=top>Hobbies:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineFavHobb+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>What nobody believes about me, but it&#8217;s true: </td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineItsTrue+'</td>';
    infoTab += '</tr>';
    infoTab += '<tr>';
    infoTab += '<td valign=top>Pet Peeve:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLinePetPeeve+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Most memorable moment in sports: </td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLineMemor+'</td>';
    infoTab += '</tr>';
    infoTab += '<tr>';
    infoTab += '<td valign=top>Pre-Game ritual:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLinePreGame+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Post-game ritual:</td>';
	infoTab += '    <td valign=top>'+ roster[iNumb].RosterLinePostGame+'</td>';
    infoTab += '</tr>';
	infoTab += '</table>';
	document.write(infoTab);
}
function showPPic(){
	qsParm['id'] = null;
	qs();
	var numb=qsParm['id'];
	lname=practice[numb].RosterLineName.substr(practice[numb].RosterLineName.search(' ')+1, practice[numb].RosterLineName.length);
//	if (roster[numb].RosterLineNum == '21') {
//	   lname = 'jbostrom'
//	}
//	if (roster[numb].RosterLineNum == '15') {
//	   lname = 'abostrom'
//	}
    if (lname=='(Jay) Alsdorf'){
	    lname='alsdorf';
	}
	var imgSrc='<img src="images/' + lname.toLowerCase() + '.gif" width="180" height="180">';
	document.write(imgSrc);
}

function showPInfo(){
	qsParm['id'] = null;
	iNumb = 0;
	qs();
	var numb=qsParm['id'];

	for (var i=0; i<practice.length; i++) {
	   if (practice[i].RosterLineNum == numb){
	     iNumb = i;
	   }
	}
    iNumb = numb;
	infoTab =  '';
	infoTab += '<table width="100%" class="tmc4" >';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Nickname:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineNick+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Position:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLinePos+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Height:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineHgt+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Weight:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineWgt+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Class Year:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineYear+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Age:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineAge+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Major:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineMajor+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Home Town:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineHomeTown+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Father:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFather+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Mother:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineMother+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Prev School:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLinePrevSchl+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Mascot:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineMascot+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>'; 
    infoTab += '    <td valign=top>Activities in HS:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineActHs+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>';
    infoTab += '    <td valign=top>Activities at CU:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineActCU+'</td>';
	infoTab += '  </tr>';
    infoTab += '  <tr>';
	infoTab += '    <td valign=top>Favorite</td>';
	infoTab += '    <td valign=top></td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Opponent:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavOpp+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Arena:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavArena+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Movie:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavMovie+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>TV Show:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavTV+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Music/Group:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavMusic+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Food:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavFood+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Web Site:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavWeb+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Book:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavBook+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Class:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavClass+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Sport (other than baseball):</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavSport+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Pro Teams(Baseball,Football,Basketball)</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavPro+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Vacation Spot:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavVac+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Quote:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineQuote+'</td>';
    infoTab += '</tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>If you were stranded on an island, who would you be with? </td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineStranded+'</td>';
    infoTab += '</tr>';
    infoTab += '<tr>';
    infoTab += '<td valign=top>Hobbies:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineFavHobb+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>What nobody believes about me, but it&#8217;s true: </td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineItsTrue+'</td>';
    infoTab += '</tr>';
    infoTab += '<tr>';
    infoTab += '<td valign=top>Pet Peeve:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLinePetPeeve+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Most memorable moment in sports: </td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLineMemor+'</td>';
    infoTab += '</tr>';
    infoTab += '<tr>';
    infoTab += '<td valign=top>Pre-Game ritual:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLinePreGame+'</td>';
	infoTab += '  </tr>';
	infoTab += '  <tr>'; 
	infoTab += '    <td valign=top>Post-game ritual:</td>';
	infoTab += '    <td valign=top>'+ practice[iNumb].RosterLinePostGame+'</td>';
    infoTab += '</tr>';
	infoTab += '</table>';
	document.write(infoTab);
}
function showBlurb(){
	qsParm['id'] = null;
	iNumb = 0;
	qs();
	var numb=qsParm['id'];

	for (var i=0; i<blurb.length; i++) {
	   if (blurb[i].blurbLineNum == numb){
	     iNumb = i;
	   }
	}
    iNumb = numb;
	document.write(blurb[iNumb].blurbLineText);
}

