var PlayersViewObject = new StatsView(); var PlayersTopic = new StatsTopic('Select A Team'); PlayersTopic.AddURL(new URLPair("Select A Player","")); PlayersViewObject.AddTopic(PlayersTopic); var PlayersTopic0 = new StatsTopic('Atlanta Dream'); PlayersTopic0.AddURL(new URLPair("Select A Player","")); PlayersTopic0.AddURL(new URLPair("Bales, Alison","/playerfile/alison_bales")); PlayersTopic0.AddURL(new URLPair("Castro Marques, Iziane","/playerfile/iziane_castro_marques")); PlayersTopic0.AddURL(new URLPair("de Souza, Erika","/playerfile/erika_desouza")); PlayersTopic0.AddURL(new URLPair("Lehning, Shalee","/playerfile/shalee_lehning")); PlayersTopic0.AddURL(new URLPair("Leuchanka, Yelena","/playerfile/yelena_leuchanka")); PlayersTopic0.AddURL(new URLPair("Lyttle, Sancho","/playerfile/sancho_lyttle")); PlayersTopic0.AddURL(new URLPair("McCoughtry, Angel","/playerfile/angel_mccoughtry")); PlayersTopic0.AddURL(new URLPair("Miller, Coco","/playerfile/coco_miller")); PlayersTopic0.AddURL(new URLPair("Miller, Kelly","/playerfile/kelly_miller")); PlayersTopic0.AddURL(new URLPair("Price, Armintie","/playerfile/armintie_price")); PlayersTopic0.AddURL(new URLPair("Raven, Brittainey","/playerfile/brittainey_raven")); PlayersViewObject.AddTopic(PlayersTopic0); var PlayersTopic1 = new StatsTopic('Chicago Sky'); PlayersTopic1.AddURL(new URLPair("Select A Player","")); PlayersTopic1.AddURL(new URLPair("Bass, Mistie","/playerfile/mistie_bass")); PlayersTopic1.AddURL(new URLPair("Canty, Dominique","/playerfile/dominique_canty")); PlayersTopic1.AddURL(new URLPair("Christon, Shameka","/playerfile/shameka_christon")); PlayersTopic1.AddURL(new URLPair("Fowles, Sylvia","/playerfile/sylvia_fowles")); PlayersTopic1.AddURL(new URLPair("Kraayeveld, Cathrine","/playerfile/cathrine_kraayeveld")); PlayersTopic1.AddURL(new URLPair("Murphy, Eshaya","/playerfile/eshaya_murphy")); PlayersTopic1.AddURL(new URLPair("Perkins, Jia","/playerfile/jia_perkins")); PlayersTopic1.AddURL(new URLPair("Prince, Epiphanny","/playerfile/epiphanny_prince")); PlayersTopic1.AddURL(new URLPair("Thomas, Christi","/playerfile/christi_thomas")); PlayersTopic1.AddURL(new URLPair("Thorn, Erin","/playerfile/erin_thorn")); PlayersTopic1.AddURL(new URLPair("Young, Tamera","/playerfile/tamera_young")); PlayersViewObject.AddTopic(PlayersTopic1); var PlayersTopic2 = new StatsTopic('Connecticut Sun'); PlayersTopic2.AddURL(new URLPair("Select A Player","")); PlayersTopic2.AddURL(new URLPair("Charles, Tina","/playerfile/tina_charles")); PlayersTopic2.AddURL(new URLPair("Gardin, Kerri","/playerfile/kerri_gardin")); PlayersTopic2.AddURL(new URLPair("Griffin, Kelsey","/playerfile/kelsey_griffin")); PlayersTopic2.AddURL(new URLPair("Gruda, Sandrine","/playerfile/sandrine_gruda")); PlayersTopic2.AddURL(new URLPair("Hightower, Allison","/playerfile/allison_hightower")); PlayersTopic2.AddURL(new URLPair("Jekabsone-Zogota, Anete","/playerfile/anete_jekabsone-zogota")); PlayersTopic2.AddURL(new URLPair("Jones, Asjha","/playerfile/asjha_jones")); PlayersTopic2.AddURL(new URLPair("Lawson, Kara","/playerfile/kara_lawson")); PlayersTopic2.AddURL(new URLPair("Montgomery, Renee","/playerfile/renee_montgomery")); PlayersTopic2.AddURL(new URLPair("Walker, DeMya","/playerfile/demya_walker")); PlayersTopic2.AddURL(new URLPair("White, Tan","/playerfile/tan_white")); PlayersViewObject.AddTopic(PlayersTopic2); var PlayersTopic3 = new StatsTopic('Indiana Fever'); PlayersTopic3.AddURL(new URLPair("Select A Player","")); PlayersTopic3.AddURL(new URLPair("Bevilaqua, Tully","/playerfile/tully_bevilaqua")); PlayersTopic3.AddURL(new URLPair("Catchings, Tamika","/playerfile/tamika_catchings")); PlayersTopic3.AddURL(new URLPair("Cheek, Joy","/playerfile/joy_cheek")); PlayersTopic3.AddURL(new URLPair("Davenport, Jessica","/playerfile/jessica_davenport")); PlayersTopic3.AddURL(new URLPair("Douglas, Katie","/playerfile/katie_douglas")); PlayersTopic3.AddURL(new URLPair("Hoffman, Ebony","/playerfile/ebony_hoffman")); PlayersTopic3.AddURL(new URLPair("January, Briann","/playerfile/briann_january")); PlayersTopic3.AddURL(new URLPair("Moore, Jessica","/playerfile/jessica_moore")); PlayersTopic3.AddURL(new URLPair("Morris, Jene","/playerfile/jene_morris")); PlayersTopic3.AddURL(new URLPair("Sutton-Brown, Tammy","/playerfile/tammy_sutton-brown")); PlayersTopic3.AddURL(new URLPair("Zellous, Shavonte","/playerfile/shavonte_zellous")); PlayersViewObject.AddTopic(PlayersTopic3); var PlayersTopic4 = new StatsTopic('Los Angeles Sparks'); PlayersTopic4.AddURL(new URLPair("Select A Player","")); PlayersTopic4.AddURL(new URLPair("Ferdinand-Harris, Marie","/playerfile/marie_ferdinand")); PlayersTopic4.AddURL(new URLPair("Lennox, Betty","/playerfile/betty_lennox")); PlayersTopic4.AddURL(new URLPair("Milton-Jones, DeLisha","/playerfile/delisha_milton")); PlayersTopic4.AddURL(new URLPair("Mokango, Chanel","/playerfile/chanel_mokango")); PlayersTopic4.AddURL(new URLPair("Parker, Candace","/playerfile/candace_parker")); PlayersTopic4.AddURL(new URLPair("Penicheiro, Ticha","/playerfile/ticha_penicheiro")); PlayersTopic4.AddURL(new URLPair("Pringle, LaToya","/playerfile/latoya_pringle")); PlayersTopic4.AddURL(new URLPair("Quinn, Noelle","/playerfile/noelle_quinn")); PlayersTopic4.AddURL(new URLPair("Riley, Andrea","/playerfile/andrea_riley")); PlayersTopic4.AddURL(new URLPair("Thompson, Tina","/playerfile/tina_thompson")); PlayersTopic4.AddURL(new URLPair("Toliver, Kristi","/playerfile/kristi_toliver")); PlayersTopic4.AddURL(new URLPair("Wisdom-Hylton, Lindsay","/playerfile/lindsay_wisdom-hylton")); PlayersViewObject.AddTopic(PlayersTopic4); var PlayersTopic5 = new StatsTopic('Minnesota Lynx'); PlayersTopic5.AddURL(new URLPair("Select A Player","")); PlayersTopic5.AddURL(new URLPair("Adair, Jessica","/playerfile/jessica_adair")); PlayersTopic5.AddURL(new URLPair("Anosike, Nicky","/playerfile/nicky_anosike")); PlayersTopic5.AddURL(new URLPair("Augustus, Seimone","/playerfile/seimone_augustus")); PlayersTopic5.AddURL(new URLPair("Brunson, Rebekkah","/playerfile/rebekkah_brunson")); PlayersTopic5.AddURL(new URLPair("Hollingsworth, Quanitra","/playerfile/quanitra_hollingsworth")); PlayersTopic5.AddURL(new URLPair("Hornbuckle, Alexis","/playerfile/alexis_hornbuckle")); PlayersTopic5.AddURL(new URLPair("Houston, Charde","/playerfile/charde_houston")); PlayersTopic5.AddURL(new URLPair("Mann, Kristen","/playerfile/kristen_mann")); PlayersTopic5.AddURL(new URLPair("Maïga-Ba, Hamchétou","/playerfile/hamchetou_maiga")); PlayersTopic5.AddURL(new URLPair("Whalen, Lindsay","/playerfile/lindsay_whalen")); PlayersTopic5.AddURL(new URLPair("Wiggins, Candice","/playerfile/candice_wiggins")); PlayersTopic5.AddURL(new URLPair("Wright, Monica","/playerfile/monica_wright")); PlayersViewObject.AddTopic(PlayersTopic5); var PlayersTopic6 = new StatsTopic('New York Liberty'); PlayersTopic6.AddURL(new URLPair("Select A Player","")); PlayersTopic6.AddURL(new URLPair("Blue, Nikki","/playerfile/nikki_blue")); PlayersTopic6.AddURL(new URLPair("Carson, Essence","/playerfile/essence_carson")); PlayersTopic6.AddURL(new URLPair("Greene, Kalana","/playerfile/kalana_greene")); PlayersTopic6.AddURL(new URLPair("McCarville, Janel","/playerfile/janel_mccarville")); PlayersTopic6.AddURL(new URLPair("McWilliams-Franklin, Taj","/playerfile/taj_mcwilliams")); PlayersTopic6.AddURL(new URLPair("Mitchell, Leilani","/playerfile/leilani_mitchell")); PlayersTopic6.AddURL(new URLPair("Pierson, Plenette","/playerfile/plenette_pierson")); PlayersTopic6.AddURL(new URLPair("Pondexter, Cappie","/playerfile/cappie_pondexter")); PlayersTopic6.AddURL(new URLPair("Powell, Nicole","/playerfile/nicole_powell")); PlayersTopic6.AddURL(new URLPair("Spencer, Sidney","/playerfile/sidney_spencer")); PlayersTopic6.AddURL(new URLPair("Vaughn, Kia","/playerfile/kia_vaughn")); PlayersViewObject.AddTopic(PlayersTopic6); var PlayersTopic7 = new StatsTopic('Phoenix Mercury'); PlayersTopic7.AddURL(new URLPair("Select A Player","")); PlayersTopic7.AddURL(new URLPair("Bonner, DeWanna","/playerfile/dewanna_bonner")); PlayersTopic7.AddURL(new URLPair("Braxton, Kara","/playerfile/kara_braxton")); PlayersTopic7.AddURL(new URLPair("Dupree, Candice","/playerfile/candice_dupree")); PlayersTopic7.AddURL(new URLPair("Holmes, Sequoia","/playerfile/sequoia_holmes")); PlayersTopic7.AddURL(new URLPair("Johnson, Temeka","/playerfile/temeka_johnson")); PlayersTopic7.AddURL(new URLPair("Lilley, Taylor","/playerfile/taylor_lilley")); PlayersTopic7.AddURL(new URLPair("Smith, Brooke","/playerfile/brooke_smith")); PlayersTopic7.AddURL(new URLPair("Smith, Tangela","/playerfile/tangela_smith")); PlayersTopic7.AddURL(new URLPair("Swanier, Ketia","/playerfile/ketia_swanier")); PlayersTopic7.AddURL(new URLPair("Taurasi, Diana","/playerfile/diana_taurasi")); PlayersTopic7.AddURL(new URLPair("Taylor, Penny","/playerfile/penny_taylor")); PlayersViewObject.AddTopic(PlayersTopic7); var PlayersTopic8 = new StatsTopic('San Antonio Silver Stars'); PlayersTopic8.AddURL(new URLPair("Select A Player","")); PlayersTopic8.AddURL(new URLPair("Appel, Jayne","/playerfile/jayne_appel")); PlayersTopic8.AddURL(new URLPair("Battle, Ashley","/playerfile/ashley_battle")); PlayersTopic8.AddURL(new URLPair("Darling, Helen","/playerfile/helen_darling")); PlayersTopic8.AddURL(new URLPair("Hammon, Becky","/playerfile/becky_hammon")); PlayersTopic8.AddURL(new URLPair("Hodges, Roneeka","/playerfile/roneeka_hodges")); PlayersTopic8.AddURL(new URLPair("Holdsclaw, Chamique","/playerfile/chamique_holdsclaw")); PlayersTopic8.AddURL(new URLPair("Kelly, Crystal","/playerfile/crystal_kelly")); PlayersTopic8.AddURL(new URLPair("Lawson-Wade, Edwige","/playerfile/edwige_lawson-wade")); PlayersTopic8.AddURL(new URLPair("Riley, Ruth","/playerfile/ruth_riley")); PlayersTopic8.AddURL(new URLPair("Snow, Michelle","/playerfile/michelle_snow")); PlayersTopic8.AddURL(new URLPair("Young, Sophia","/playerfile/sophia_young")); PlayersViewObject.AddTopic(PlayersTopic8); var PlayersTopic9 = new StatsTopic('Seattle Storm'); PlayersTopic9.AddURL(new URLPair("Select A Player","")); PlayersTopic9.AddURL(new URLPair("Abrosimova, Svetlana","/playerfile/svetlana_abrosimova")); PlayersTopic9.AddURL(new URLPair("Bird, Sue","/playerfile/sue_bird")); PlayersTopic9.AddURL(new URLPair("Bishop, Abby","/playerfile/abby_bishop")); PlayersTopic9.AddURL(new URLPair("Cash, Swin","/playerfile/swin_cash")); PlayersTopic9.AddURL(new URLPair("Jackson, Lauren","/playerfile/lauren_jackson")); PlayersTopic9.AddURL(new URLPair("Lacey, Alison","/playerfile/alison_lacey")); PlayersTopic9.AddURL(new URLPair("Little, Camille","/playerfile/camille_little")); PlayersTopic9.AddURL(new URLPair("Robinson, Ashley","/playerfile/ashley_robinson")); PlayersTopic9.AddURL(new URLPair("Vesela, Jana","/playerfile/jana_vesela")); PlayersTopic9.AddURL(new URLPair("Willingham, Le'coe","/playerfile/lecoe_willingham")); PlayersTopic9.AddURL(new URLPair("Wright, Tanisha","/playerfile/tanisha_wright")); PlayersViewObject.AddTopic(PlayersTopic9); var PlayersTopic10 = new StatsTopic('Tulsa Shock'); PlayersTopic10.AddURL(new URLPair("Select A Player","")); PlayersTopic10.AddURL(new URLPair("Black, Chante","/playerfile/chante_black")); PlayersTopic10.AddURL(new URLPair("Brown, Kiesha","/playerfile/kiesha_brown")); PlayersTopic10.AddURL(new URLPair("Crossley, Shanna","/playerfile/shanna_crossley")); PlayersTopic10.AddURL(new URLPair("Holt, Amber","/playerfile/amber_holt")); PlayersTopic10.AddURL(new URLPair("Jackson, Tiffany","/playerfile/tiffany_jackson")); PlayersTopic10.AddURL(new URLPair("Jones, Marion","/playerfile/marion_jones")); PlayersTopic10.AddURL(new URLPair("Lacy, Jennifer","/playerfile/jennifer_lacy")); PlayersTopic10.AddURL(new URLPair("Lacy, Natasha","/playerfile/natasha_lacy")); PlayersTopic10.AddURL(new URLPair("Latta, Ivory","/playerfile/ivory_latta")); PlayersTopic10.AddURL(new URLPair("McCants, Rashanda","/playerfile/rashanda_mccants")); PlayersTopic10.AddURL(new URLPair("Ohlde, Nicole","/playerfile/nicole_ohlde")); PlayersTopic10.AddURL(new URLPair("Robinson, Scholanda","/playerfile/scholanda_robinson")); PlayersViewObject.AddTopic(PlayersTopic10); var PlayersTopic11 = new StatsTopic('Washington Mystics'); PlayersTopic11.AddURL(new URLPair("Select A Player","")); PlayersTopic11.AddURL(new URLPair("Ajavon, Matee","/playerfile/matee_ajavon")); PlayersTopic11.AddURL(new URLPair("Beard, Alana","/playerfile/alana_beard")); PlayersTopic11.AddURL(new URLPair("Coleman, Marissa","/playerfile/marissa_coleman")); PlayersTopic11.AddURL(new URLPair("Currie, Monique","/playerfile/monique_currie")); PlayersTopic11.AddURL(new URLPair("Harding, Lindsey","/playerfile/lindsey_harding")); PlayersTopic11.AddURL(new URLPair("Houts, Ashley","/playerfile/ashley_houts")); PlayersTopic11.AddURL(new URLPair("Langhorne, Crystal","/playerfile/crystal_langhorne")); PlayersTopic11.AddURL(new URLPair("Melvin, Chasity","/playerfile/chasity_melvin")); PlayersTopic11.AddURL(new URLPair("Monroe, Jacinta","/playerfile/jacinta_monroe")); PlayersTopic11.AddURL(new URLPair("Sanford, Nakia","/playerfile/nakia_sanford")); PlayersTopic11.AddURL(new URLPair("Smith, Katie","/playerfile/katie_smith")); PlayersViewObject.AddTopic(PlayersTopic11); var isNav = null; var isIE = null; var theTopicSelectionList = null; var theStatsCategorySelectionList = null; var theCurrentViewObject = null; function LoadViewObject(aStatsViewObject) { // set the current view theCurrentViewObject = aStatsViewObject; // clear the topic select list theTopicSelectionList.options.length = 0; var tmpTopic = theCurrentViewObject.FirstTopic(); while (tmpTopic != null ) { AddSelectionListEntry(tmpTopic.label,0,theTopicSelectionList); tmpTopic = theCurrentViewObject.NextTopic(); } var theTopicIndexStr = ''; var theTopicIndex = parseInt(theTopicIndexStr); if (isNaN(theTopicIndex) == false ) theTopicSelectionList.selectedIndex = theTopicIndex; else theTopicSelectionList.selectedIndex = 0; // now load the statistics categories from the current topic var theTopicObject = theCurrentViewObject.GetTopic(theTopicSelectionList.selectedIndex); LoadStatsCategoryList(theTopicObject); } function LoadStatsCategoryList(aTopicObject) { // clear the list theStatsCategorySelectionList.options.length = 0; var aURLPair = aTopicObject.FirstURLPair(); while (aURLPair != null ) { AddSelectionListEntry(aURLPair.label,aURLPair.url,theStatsCategorySelectionList); aURLPair = aTopicObject.NextURLPair(); } // select the first list entry theStatsCategorySelectionList.options.selectedIndex = 0; } function OnChangeTopic() { var bUseGoButton = false; if ( bUseGoButton == false ) { SwitchTopic(); } } function SwitchTopic() { var aTopicObject = theCurrentViewObject.GetTopic(theTopicSelectionList.selectedIndex); LoadStatsCategoryList(aTopicObject); } function Head2Head() { var topicIndex = theTopicSelectionList.selectedIndex; var categoryIndex = theStatsCategorySelectionList.selectedIndex; if (theStatsCategorySelectionList.options[theStatsCategorySelectionList.selectedIndex].value !=''){ var secondguy = theStatsCategorySelectionList.options[theStatsCategorySelectionList.selectedIndex].value; openWindow(player1,secondguy); } } function GoToPage() { var topicIndex = theTopicSelectionList.selectedIndex; var categoryIndex = theStatsCategorySelectionList.selectedIndex; if (theStatsCategorySelectionList.options[theStatsCategorySelectionList.selectedIndex].value !=''){ location.href = theStatsCategorySelectionList.options[theStatsCategorySelectionList.selectedIndex].value; } } function AddSelectionListEntry(entryString,entryValue,aSelectListObject) { if ( isNav == true ) { var oOption = new Option(entryString,entryValue); aSelectListObject.options[aSelectListObject.options.length] = oOption; } else { var oOption = document.createElement("option"); oOption.text = entryString; oOption.value = entryValue; aSelectListObject.add(oOption); } } // // Internet Explorer or Netscape? // function DetectBrowser() { if (parseInt(navigator.appVersion) >= 4) { if (navigator.appName == "Netscape") { isNav = true; } else { isIE = true; } } } function URLPair(urlLabel,urlTarget) { this.label = urlLabel; this.url = urlTarget; } function StatsTopic(topicLabel) { this.URLPairs = new Array(); this.URLPairsIndex = 0; this.label = topicLabel; this.AddURL = StatsTopicAddURL; this.FirstURLPair = StatsTopicFirstURLPair; this.NextURLPair = StatsTopicNextURLPair; } function StatsTopicAddURL(aURLPair) { this.URLPairs[this.URLPairs.length] = aURLPair; } function StatsTopicFirstURLPair() { var aURLPair = null; if ( this.URLPairs.length > 0 ) { this.URLPairsIndex = 0; aURLPair = this.URLPairs[this.URLPairsIndex]; this.URLPairsIndex++; } return aURLPair; } function StatsTopicNextURLPair() { var aURLPair = null; if ( (this.URLPairs.length > 0) && (this.URLPairsIndex < this.URLPairs.length) ) { aURLPair = this.URLPairs[this.URLPairsIndex]; this.URLPairsIndex++; } return aURLPair; } function StatsView() { this.TopicArray = new Array(); this.TopicArrayIndex = 0; this.AddTopic = StatsViewAddTopic; this.FirstTopic = StatsViewFirstTopic; this.NextTopic = StatsViewNextTopic; this.GetTopic = StatsViewTopicByIndex; } function StatsViewAddTopic(aTopicObject) { this.TopicArray[this.TopicArray.length] = aTopicObject; } function StatsViewFirstTopic() { var aTopicObject = null; if ( this.TopicArray.length > 0 ) { this.TopicArrayIndex = 0; aTopicObject = this.TopicArray[this.TopicArrayIndex]; this.TopicArrayIndex++; } return aTopicObject; } function StatsViewNextTopic() { var aTopicObject = null; if ( (this.TopicArray.length > 0) && (this.TopicArrayIndex < this.TopicArray.length) ) { aTopicObject = this.TopicArray[this.TopicArrayIndex]; this.TopicArrayIndex++; } return aTopicObject; } function StatsViewTopicByIndex(anIndex) { var aTopicObject = null; if ( anIndex < this.TopicArray.length) { aTopicObject = this.TopicArray[anIndex]; } return aTopicObject; } function InitializeStatsFinder() { // first set the browser type DetectBrowser(); // set selection list variables if ( isNav == true ) { theTopicSelectionList = document.TheForm.TheTopicSelectionList; theStatsCategorySelectionList = document.TheForm.TheStatsCategoryList; } else { theTopicSelectionList = document.all.TheTopicSelectionList; theStatsCategorySelectionList = document.all.TheStatsCategoryList; } LoadViewObject(PlayersViewObject); // set the topic and category default selection if possible var theTopicIndexStr = ''; var theTopicIndex = parseInt(theTopicIndexStr); if (isNaN(theTopicIndex) == false ) theTopicSelectionList.selectedIndex = theTopicIndex; var theStatsCategoryIndexStr = ''; var theStatsCategoryIndex = parseInt(theStatsCategoryIndexStr); if (isNaN(theStatsCategoryIndex) == false) theStatsCategorySelectionList.selectedIndex = theStatsCategoryIndex; }