<div id="migrated_content">

<script type="text/javascript">
// define coach arrary
var coachArray = new Array();
var coach_table_name = "";
var coach_table = "";
//initialize: Coach name, victories, winning percentage, number of games, coaching period
coachArray = [
["Neil Cohalan",33,".550",60,"1946-47"],
["Joe Lapchick",326,".569",573,"1947-48 through 1955-56"],
["Vince Boryla",80,".485",165,"1955-56 through 1957-58"],
["Fuzzy Levane",48,".485",99,"1958-59 through 1959-60"],
["Carl Braun",40,".315",127,"1959-60 through 1960-61"],
["Eddie Donovan",84,".302",278,"1961-62 through 1964-65"],
["Harry Gallatin",25,".397",63,"1964-65 through 1965-66"],
["Dick McGuire",75,".421",178,"1965-66 through 1967-68"],
["Red Holzman",613,".559",1096,"1967-68 through 1976-77; 1978-79 through 1981-82"],
["Willis Reed",49,".510",96,"1989-90 through 1990-91"],
["Hubie Brown",142,".413",344,"1982-83 through 1986-87"],
["Bob Hill",20,".303",65,"1986-87"],
["Rick Pitino",90,".549",164,"1987-88 through 1988-89"],
["Stu Jackson",52,".536",97,"1989-90 through 1990-91"],
["John MacLeod",32,".478",67,"1990-91"],
["Pat Riley",223,".680",328,"1991-92 through 1994-95"],
["Don Nelson",34,".576",59,"1995-96"],
["Jeff Van Gundy",248,".590",420,"1995-96 through 2001-02"],
["Don Chaney",72,".391",184,"2001-02 through 2003-04"],
["Herb Williams",17,".386",44,"2003-04; 2004-05"],
["Lenny Wilkens",40,".494",81,"2003-04 through 2004-05"],
["Larry Brown",23,".280",82,"2005-06"],
["Isiah Thomas",56,".341",164,"2006-07 through 2007-08"],
["Mike D'Antoni",32,".390",82,"2008-09"]
];

function CoachSort(sortby) {
switch(sortby) {
case "wins":
sortColumn = 1;
coach_table_name = "By Victories";
break;
case "percentage":
sortColumn = 2;
coach_table_name = "By Winning Percentage";
break;
case "games":
sortColumn = 3;
coach_table_name = "By Games";
break;
default:
sortColumn = 1;
sortby = "victories";
coach_table_name = "By Victories";
}

coachArray.sort(mySorting);

function mySorting(a,b) {
a = a[sortColumn];
b = b[sortColumn];
return a == b ? 0 : (a > b ? -1 : 1);
}
//var result = coachArray.join("<br />");
document.getElementById("coach_table_name").innerHTML = coach_table_name;

switch(sortby) {
case "wins":
coach_table = '<table id="coach_table_data" border="0" cellpadding="0" cellspacing="0" width="100%">';
coach_table = coach_table + '<tr><th valign="top" align="left" width="20%"><strong>Coach</strong></th><th valign="top" align="center" width="20%"><strong>Number of Wins</strong></th><th valign="top" align="left" width="60%"><strong>Coaching Period</strong></th></tr>';
for(i = 0; i <= coachArray.length - 1; i++) {
coach_table = coach_table + '<tr><td valign="top" align="left">'+ (i+1) +". " + coachArray[i][0] + '</td><td valign="top" align="center">' + coachArray [i][1] + '</td><td valign="top" align="left">' + coachArray[i][4] + '</td></tr>';
}
break;
case "percentage":
coach_table = '<table id="coach_table_data" border="0" cellpadding="0" cellspacing="0">';
coach_table = coach_table + '<tr><th valign="top" align="left" width="200""><strong>Coach</strong></th><th valign="top" align="left"><strong>Winning Percentage</strong></th></tr>';
for(i = 0; i <= coachArray.length - 1; i++) {
coach_table = coach_table + '<tr><td valign="top" align="left">'+ (i+1) +". " + coachArray[i][0] + '</td><td valign="top" align="center">' + coachArray [i][2] + '</td></tr>';
}
break;
case "games":
coach_table = '<table id="coach_table_data" border="0" cellpadding="0" cellspacing="0">';
coach_table = coach_table + '<tr><th valign="top" align="left"><strong>Coach</strong></th><th valign="top" align="left"><strong>Number of Games Coached</strong></th></tr>';
for(i = 0; i <= coachArray.length - 1; i++) {
coach_table = coach_table + '<tr><td valign="top" align="left">'+ (i+1) +". " + coachArray[i][0] + '</td><td valign="top" align="center">' + coachArray [i][3] + '</td></tr>';
}
break;
default:
coach_table = '<table id="coach_table_data" border="0" cellpadding="0" cellspacing="0" width="100%">';
coach_table = coach_table + '<tr><th valign="top" align="left" width="20%"><strong>Coach</strong></th><th valign="top" align="center" width="20%"><strong>Number of Wins</strong></th><th valign="top" align="left" width="60%"><strong>Coaching Period</strong></th></tr>';
for(i = 0; i <= coachArray.length - 1; i++) {
coach_table = coach_table + '<tr><td valign="top" align="left">'+ (i+1) +". " + coachArray[i][0] + '</td><td valign="top" align="center">' + coachArray [i][1] + '</td><td valign="top" align="left">' + coachArray[i][4] + '</td></tr>';
}
}

coach_table = coach_table + '</table>';
document.getElementById("coach_table").innerHTML = coach_table;
return false;
}

</script><div id="NYK_Article">
<div id="intro_text"><!-- Introductory Text--></div>
<div id="coach_data">

<div class="coach_sort_nav">Sort by: <a href="#" onclick="return CoachSort('wins');">Victories</a> | <a href="#" onclick="return CoachSort('percentage');">Winning Percentage</a> | <a href="#" onclick="return CoachSort('games');">Games</a>
</div>
<div id="coach_table_name"></div>
<div id="coach_table"></div>
<div class="coach_sort_nav">Sort by: <a href="#" onclick="return CoachSort('wins');">Victories</a> | <a href="#" onclick="return CoachSort('percentage');">Winning Percentage</a> | <a href="#" onclick="return CoachSort('games');">Games</a>
</div>
</div>
<script type="text/javascript">
CoachSort();
</script>
</div>
</div>