//
//	Westood Football Javascript Objects 20100830
//	copyright 2010 Al Onderick 
//
onderick={
	buildGameDayScores:function(opp, v,vO,jvOrange,jvO,jvWhite,jvWhiteO,fOrange,fOrangeO,fWhite,fWhiteO)
	{
	document.write("<table style=\"width:375px\">");
	document.write("<tr>");
	document.write("	<th colspan=\"6\">Westwood Warrior Scoreboard</th>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("	<td></td>");
	document.write("	<td class=\"center\">Varsity</td>	");
	document.write("	<td class=\"center\">JV-O</td>");
    document.write("	<td class=\"center\">JV-W</td>");
	document.write("	<td class=\"center\">FR-O</td>");
	document.write("	<td class=\"center\">FR-W</td>");
	document.write("</tr>");
	document.write("<tr class=\"center\">");
	document.write("	<td>Westwood</td>");
	document.write("	<td class=\"center\">" + v + "</td>");
	document.write("	<td class=\"center\">" + jvOrange + "</td>");
	document.write("	<td class=\"center\">" + jvWhite + "</td>");
	document.write("	<td class=\"center\">" + fOrange + "</td>");
	document.write("	<td class=\"center\">" + fWhite + "</td>");
	document.write("</tr>");
	document.write("<tr class=\"center\">");
	document.write("	<td>" + opp +"</td>");
	document.write("	<td class=\"center\">" + vO +"  </td>");
	document.write("	<td class=\"center\">" + jvO+"</td>");
	document.write("	<td class=\"center\">" + jvWhiteO+"</td>");
	document.write("	<td class=\"center\">" + fOrangeO +"  </td>");
	document.write("	<td class=\"center\">" + fWhiteO +"  </td>");
	document.write("</tr>");
	document.write("</table> ");
	//document.write("</div>");
	},
	buildPotW:function()
	{
	var args = Array.prototype.slice.call(arguments);
	var imagePath = "http://warriorsports.org/football/pages/roster11/images/121px/";
		{
		document.write("<div class=\"potw-contents\">");
		document.write("<div class=\"potw-pos\">" + args[2] + "</div>");
		document.write("<div class=\"potw-img\">" + "<img alt=\"" + args[0] + " " + args[1] +"\"" + "src=" + imagePath + args[0] + args[1] + ".jpg" +"\></div>");		
		document.write("<div  class=\"potw-name\" >" + args[0] + "<br/>" + args[1] + "</div>");
		document.write("</div>");//close potw-contents
		}
		
			//<div class="potw-pos">Offensive<br/>Lineman</div>
			//<div class="potw-img"><img alt="Offensive Lineman" 
			//src="http://warriorsports.org/football/pages/roster09/images/121px/.jpg" width="121" height="151"/></div>
			//<div  class="potw-name" ><br/></div>
	},
	buildRoster:function()
	{
	var numberArray = ["2","3","4","5","6","7","8","9","10","13","15","16","17","18","19","20","21","22","23","24","27","28","30","32","33","34","35","37","42","44","45","50","51","52","53","54","55","56","58","60","61","70","73","75","76","78","80","85"];

	var firtNameArray = ["Kyle","Carlos","Antwone","Ben","Madden","Grant","Dalton","Zach","Colin","Paul","Ryan","Heru","Quinton","Jordan","Ty","Mitchell","Andrew","Matt","James","Stephen","Weston","Andrew","Justin","Tyler","Brad","Ian","Blake","Ross","D'andre","Abdu","Tyler","Kent","Patrick","James","Garrett","Ryan","Jacob","Jake","Zach","Hunter","Oscar","Dayne","Terrion","Ross","Forrest","Sharran","Rory","Colton"];
	
	var lastNameArray = ["Jacobson","Chinchilla","Alexander","Johnson","Hutcheson","Peterson","Buchan","Coplen","McGuire","Dickensheets","Leggett","Martin","Marshall","Glynn","Marshall","Gibson","Shiery","Schmerber","Ingram","Demauchet","Washington","Meaux","Dixon","Lewis","Florence","Fry","Thomas","Hendrickson","Roach","Issa","Logan","Holmstrom","Onderick","Garinger","Benyo","Jaber","Overstreet","Balog","Crawford","Cottle","Rivera","Bullock","Armstrong","Lodge","Six","Sukumaran","McCullough","Conrad"];
	
	var posArray = ["WR","DB","WR","QB","WR","WR","WR","K/P","K/P","WR","WR","DE","DB","DB","RB","RB","DB","RB","DB","DB","DB","DB","RB","LB","LB","DB","LB","DB","DL","DL","DB","DL","DL","OL","OL","DL","OL","DL","OL","OL","DL","OL","DL","OL","OL","OL","TE","DS"];
	
  var classArray = ["Sr","Sr","Jr","Jr","Jr","Sr","Jr","Sr","Soph","Jr","Jr","Sr","Jr","Jr","Soph","Sr","Jr","Sr","Jr","Jr","Sr","Sr","Soph","Jr","Jr","Jr","Soph","Sr","Soph","Sr","Soph","Sr","Sr","Jr","Sr","Jr","Soph","Sr","Sr","Jr","Jr","Soph","Sr","Jr","Sr","Sr","Jr","Jr"];
	
  document.write("<div style=\"width:350px;position:relative;float:left;margin-left:50px;\">");
	document.write("<table>");
  document.write("<tr><th>Number</th><th>Name</th><th>Position</th><th>Class</th></tr>");
	
	var x=0;
	for (arrayPos=0;arrayPos<24;arrayPos++)
		{
		document.write("<tr><td>" + numberArray[x] + "</td><td>" + 
			"<a target=\"_blank\"" + "href=\"images/lg/" + firtNameArray[x] + lastNameArray[x] + ".jpg\">"  + firtNameArray[x] +" " + lastNameArray[x]  
			+ "<span><img alt=\"" + firtNameArray[x] + " " + lastNameArray[x] + "\"" + "src=\"images/sm/" + firtNameArray[x] + lastNameArray[x] + ".jpg\"" + "/></span></a>"
			+ "</td><td>" +  posArray[x] +"</td><td>" + classArray[x]  + "</td></tr>" ); 
		x++;
		}
	document.write("</table>");
  document.write("</div>");
  
  
  document.write("<div style=\"width:350px;position:relative;float:left;margin-left:50px;\">");
	document.write("<table>");
  document.write("<tr><th>Number</th><th>Name</th><th>Position</th><th>Class</th></tr>");
	
	var x=24;
	for (arrayPos=24;arrayPos<numberArray.length;arrayPos++)
		{
		document.write("<tr><td>" + numberArray[x] + "</td><td>" + 
			"<a target=\"_blank\"" + "href=\"images/lg/" + firtNameArray[x] + lastNameArray[x] + ".jpg\">"  + firtNameArray[x] +" " + lastNameArray[x]  
			+ "<span><img alt=\"" + firtNameArray[x] + " " + lastNameArray[x] + "\"" + "src=\"images/sm/" + firtNameArray[x] + lastNameArray[x] + ".jpg\"" + "/></span></a>"
			+ "</td><td>" +  posArray[x] +"</td><td>" + classArray[x]  + "</td></tr>" ); 
		x++;
		}
	document.write("</table>");
  document.write("</div>");	
	},
buildRoster2011:function ()
{
	var numberArray = ["2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","27","28","29","30","32","33","34","35","37","38","40","42","45","47","49","50","52","53","54","55","56","58","60","61","62","63","64","65","66","68","70","73","75","76","79","80","81","82","83","85","88","89"];

	var firtNameArray = ["Ledeans","Logan","Josh","Ben","Travis","Drew","Garret","Desmond","Colin","Tanner","Sam","Paul","Ben","Ryan","Bear","Quinton","Jordan","Ty","Sean","Drew","Mason","James","Stephen","Brad","Chris","Daniel","Nestor","Chris","Tyler","Brad","Ian","Blake","Marcus","Josh","Wesley","Dandre","Tyler","Travis","Jackson","Daniel","Chris","John","Ryan","Jacob","Lucas","CJ","Hunter","Oscar","Andrew","Tyrell","Brendan","James","Will","Michael","Dayne","Cody","Ross","Forrest","Justin","Rory","Rafael","Jose","Jack","Colton","Parker","Grant"	];
	
	var lastNameArray = ["Anderson","Tellier","Bishop","Johnson","Dale","Hillhouse","Gibbins","Wyatt","McGuire","Osborne","Swenson","Dickensheets","Harris","Leggett","Fenimore","Marshall","Glynn","Marshall","Hoeferkamp","Shiery","Bartek","Ingram","Demauchet","Watson","Baddour","Fry","Rubiano","Sims","Lewis","Florence","Fry","Thomas","Fisher-Jones","Robertson","Rocco","Roach","Logan","Brumley","Crowley","Berry","Beaver","Ferguson","Jaber","Overstreet","Dielman","Dunagan","Cottle","Rivera","Medford","Walker","Moore","Garringer","Pollock","Olson","Bullock","James","Lodge","Six","Yu","McCullough","Garcia","Garcia","Brown","Conrad","Hanusa","Carter"];
	
	var posArray = ["RB","WR","WR","QB","WR","WR","WR","WR","K/P","RB","QB","WR","WR","WR","QB","DB","DB","RB","DB","K/P","RB","DB","DB","DB","DB","DB","LB","DB","DE","LB","LB","LB","LB","DB","RB","DL","LB","DB","LB","LB","OL","DL","DL","OL","OL","OL","OL","DL","DL","OL","OL","OL","OL","OL","OL","DL","OL","OL","OL","WR","WR","WR","WR","DS","DE","DE"];
	
  	var classArray = ["Sr","Sr","Soph","Sr","Soph","Jr","Soph","Sr","Jr","Jr","Jr","Sr","Jr","Sr","Soph","Sr","Sr","Jr","Soph","Sr","Soph","Sr","Sr","Jr","Sr","Soph","Sr","Jr","Sr","Sr","Sr","Jr","Soph","Sr","Sr","Jr","Jr","Sr","Jr","Sr","Sr","Sr","Sr","Jr","Soph","Jr","Sr","Sr","Sr","Sr","Soph","Sr","Sr","Sr","Jr","Sr","Sr","Sr","Sr","Sr","Sr","Sr","Jr","Sr","Jr","Sr"];
	
	document.write("<div style=\"width:350px;position:relative;float:left;margin-left:50px\">");
	document.write("<table>");
  document.write("<tr><th>Number</th><th>Name</th><th>Position</th><th>Class</th></tr>");
	
	var x=0;
	for (arrayPos=0;arrayPos<33;arrayPos++)
		{
		document.write("<tr><td>" + numberArray[x] + "</td><td>" + 
			"<a target=\"_blank\"" + "href=\"images/potw/" + firtNameArray[x] + lastNameArray[x] + ".jpg\">"  + firtNameArray[x] +" " + lastNameArray[x]  
			+ "<span><img alt=\"" + firtNameArray[x] + " " + lastNameArray[x] + "\"" + "src=\"images/121px/" + firtNameArray[x] + lastNameArray[x] + ".jpg\"" + "/></span></a>"
			+ "</td><td>" +  posArray[x] +"</td><td>" + classArray[x]  + "</td></tr>" ); 
		x++;
		}
	document.write("</table>");
  document.write("</div>");
  
  
	document.write("<div style=\"width:350px;position:relative;float:left;margin-left:50px;clear:right\">");
	document.write("<table>");
  document.write("<tr><th>Number</th><th>Name</th><th>Position</th><th>Class</th></tr>");
	
	var x=34;
	for (arrayPos=34;arrayPos<numberArray.length;arrayPos++)
		{
		document.write("<tr><td>" + numberArray[x] + "</td><td>" + 
			"<a target=\"_blank\"" + "href=\"images/potw/" + firtNameArray[x] + lastNameArray[x] + ".jpg\">"  + firtNameArray[x] +" " + lastNameArray[x]  
			+ "<span><img alt=\"" + firtNameArray[x] + " " + lastNameArray[x] + "\"" + "src=\"images/121px/" + firtNameArray[x] + lastNameArray[x] + ".jpg\"" + "/></span></a>"
			+ "</td><td>" +  posArray[x] +"</td><td>" + classArray[x]  + "</td></tr>" ); 
		x++;
		}
	document.write("</table>");
   document.write("</div>");
}

} //close object
