// JavaScript Document

var mesg = new Array();
mesg[0] = new MessageLine('<font color=000000>2009 Season Underway</font>','t');
mesg[1] = new MessageLine('<a href=video.html><font color=000000>Watch the CU Baseball Video</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('Nate Artist','','','Boulder, CO','30','','','P','','','So','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[1] = new  RosterLine('Brandon Barron','','','San Mateo, CA','1','','','SS','','','Jr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[2] = new  RosterLine('Matt Cochran','','','Burlingame, CA','14','','','C','','','Fr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[3] = new  RosterLine('Patrick Darrow','','','Englewood, CO','21','','','P','','','Jr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[4] = new  RosterLine('Matt Degraaf','','','Rockford, MI','29','','','P','','','Jr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[5] = new  RosterLine('Matt Fithian','','','Evergreen, CO','18','','','OF','','','So','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[6] = new  RosterLine('Chris Flanagan','','','Centennial, CO','20','','','P','','','Sr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[7] = new  RosterLine('Ben Fuchs','','','Tallahassee, FL','9','','','P','','','Fr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[8] = new  RosterLine('Andy Fyfe','','','San Mateo, CA','22','','','2B','','','Sr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[9] = new  RosterLine('Matt Holstein','','','Indianapolis, IN','19','','','OF','','','Fr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[10] = new  RosterLine('Mike Kerner','','','Ridgewood, NJ','8','','','1B        ','','','Fr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[11] = new  RosterLine('Joe Lipnosky','','','Truckee, CA','10','','','3B','','','Jr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[12] = new  RosterLine('Kerry Masock','','','Littleton, CO','16','','','OF/C','','','So','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[13] = new  RosterLine('Brendon Marek','','','Paonia, CO','24','','','SS/P','','','Jr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[14] = new  RosterLine('Mike Martin','','','Palo Alto, CA','5','','','OF','','','Fr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[15] = new  RosterLine('Matt Nippes','','','Mountain View, CA','13','','','3B','','','Sr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[16] = new  RosterLine('Chad Petersen','','','Louisville, CO','17','','','OF','','','Jr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[17] = new  RosterLine('Tony Piha','','','Palo Alto, CA','15','','','C','','','So','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[18] = new  RosterLine('Kyle Quinn','','','San Carlos, CA','26','','','1B/P','','','So','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[19] = new  RosterLine('Nick Rosenberger','','','Los Angeles, CA','11','','','SS/P','','','Fr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[20] = new  RosterLine('Shams Sayed','','','Golden, CO','4','','','P/OF','','','So','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[21] = new  RosterLine('Garrett Smith','','','Littleton, CO','2','','','2B','','','Jr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[22] = new  RosterLine('Keith Warner','','','Loveland, CO','3','','','OF       ','','','Sr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');
roster[23] = new  RosterLine('Eric Welsh','','','Boulder, CO','25','','','OF','','','Sr','','','','','','','','','','','','','','','','','','','','','','','','','','','','');

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    H   2B   3B   HR   RBI  TB   SLG%     BB  HBP   SO    OB%    SF    SH
hstat[0] = new hstatline('','Brandon Barron','0.429','24', '56', '28', '24', '5', '0', '1', '19', '32', '0.571', '18', '6', '14', '0.600', '0', '0');
hstat[1] = new hstatline('','Matt Cochran','0.298','14', '47', '10', '14', '5', '0', '0', '6', '19', '0.404', '7', '0', '13', '0.389', '0', '0');
hstat[2] = new hstatline('','Matt Fithian','0.345','17', '29', '16', '10', '2', '2', '2', '12', '22', '0.759', '12', '1', '5', '0.548', '0', '0');
hstat[3] = new hstatline('','Andy Fyfe','0.243','15', '37', '9', '9', '0', '1', '0', '7', '11', '0.297', '2', '3', '10', '0.333', '0', '0');
hstat[4] = new hstatline('','Matt Holstein','0.360','11', '25', '6', '9', '0', '0', '0', '13', '9', '0.360', '4', '0', '1', '0.448', '0', '0');
hstat[5] = new hstatline('','Mike Kerner','0.500','5', '4', '4', '2', '0', '0', '0', '3', '2', '0.500', '2', '1', '1', '0.714', '0', '0');
hstat[6] = new hstatline('','Brendon Marek','0.306','22', '49', '18', '15', '3', '0', '4', '15', '30', '0.612', '17', '3', '9', '0.507', '0', '0');
hstat[7] = new hstatline('','Mike Martin','0.538','5', '13', '5', '7', '0', '0', '0', '5', '7', '0.538', '2', '0', '5', '0.600', '0', '0');
hstat[8] = new hstatline('','Kerry Masock','0.429','11', '14', '13', '6', '2', '0', '0', '2', '8', '0.571', '10', '2', '4', '0.692', '0', '0');
hstat[9] = new hstatline('','Matt Nippes','0.449','23', '69', '20', '31', '6', '0', '4', '23', '49', '0.710', '4', '6', '10', '0.519', '0', '0');
hstat[10] = new hstatline('','Chad Petersen','0.420','22', '50', '19', '21', '5', '0', '3', '14', '35', '0.700', '11', '3', '16', '0.547', '0', '0');
hstat[11] = new hstatline('','Tony Piha','0.429','14', '35', '13', '15', '2', '1', '1', '10', '22', '0.629', '1', '2', '2', '0.474', '0', '0');
hstat[12] = new hstatline('','Kyle Quinn','0.483','15', '29', '22', '14', '3', '0', '1', '9', '20', '0.690', '15', '0', '5', '0.659', '0', '0');
hstat[13] = new hstatline('','Nick Rosenberger','0.538','7', '13', '4', '7', '2', '0', '0', '4', '9', '0.692', '1', '0', '0', '0.571', '0', '0');
hstat[14] = new hstatline('','Shams Sayed','0.222','6', '9', '2', '2', '1', '0', '0', '4', '3', '0.333', '3', '0', '4', '0.417', '0', '0');
hstat[15] = new hstatline('','Garret Smith','0.448','22', '58', '23', '26', '4', '2', '2', '24', '40', '0.690', '11', '2', '12', '0.549', '0', '0');
hstat[16] = new hstatline('','Keith Warner','0.378','20', '45', '18', '17', '3', '0', '0', '21', '20', '0.444', '4', '3', '5', '0.462', '0', '0');
hstat[17] = new hstatline('','Eric Welsh','0.250','13', '32', '8', '8', '1', '0', '0', '6', '9', '0.281', '5', '2', '7', '0.385', '0', '0');
hstat[18] = new hstatline('','Matt Degraaf','0.000','1', '2', '1', '0', '0', '0', '0', '0', '0', '0.000', '0', '0', '0', '0.000', '0', '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('','Patrick Darrow','6.50','0-1', '6', '2', '1', '0',   '0', '18', '22', '21', '13', '16', '27', '3');
pstat[1] = new pstatline('','Matt DeGraaf','3.66','6-1', '9', '7', '1', '0',   '0', '32', '24', '16', '13', '11', '29', '2');
pstat[2] = new pstatline('','Chris Flanagan','9.90','2-2', '7', '5', '2', '0',   '0', '30', '46', '39', '33', '19', '18', '3');
pstat[3] = new pstatline('','Ben Fuchs','6.75','2-2', '7', '3', '2', '0',   '0', '21.33', '23', '26', '16', '11', '25', '2');
pstat[4] = new pstatline('','Brendon Marek','13.49','0-0', '3', '', '', '0',   '0', '4.67', '11', '7', '7', '1', '4', '2');
pstat[5] = new pstatline('','Kyle Quinn','2.70','2-0', '3', '2', '1', '0',   '0', '10', '13', '3', '3', '3', '7', '0');
pstat[6] = new pstatline('','Nick Rosenberger','2.70','1-0', '5', '1', '', '0',   '0', '10', '10', '4', '3', '3', '9', '0');
pstat[7] = new pstatline('','Shams Sayed','8.64','3-2', '5', '4', '', '0',   '0', '16.67', '19', '25', '16', '18', '12', '0');


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);
}
