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("Adams, Demetress","/playerfile/demetress_adams")); 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("Holdsclaw, Chamique","/playerfile/chamique_holdsclaw")); PlayersTopic0.AddURL(new URLPair("Ivanyi, Dalma","/playerfile/dalma_ivanyi")); PlayersTopic0.AddURL(new URLPair("Lacy, Jennifer","/playerfile/jennifer_lacy")); PlayersTopic0.AddURL(new URLPair("Latta, Ivory","/playerfile/ivory_latta")); 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("Price, Armintie","/playerfile/armintie_price")); PlayersTopic0.AddURL(new URLPair("White, Erica","/playerfile/erica_white")); 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("Dupree, Candice","/playerfile/candice_dupree")); PlayersTopic1.AddURL(new URLPair("Ely, Shyra","/playerfile/shyra_ely")); PlayersTopic1.AddURL(new URLPair("Fowles, Sylvia","/playerfile/sylvia_fowles")); PlayersTopic1.AddURL(new URLPair("Mattera, Katie","/playerfile/katie_mattera")); PlayersTopic1.AddURL(new URLPair("Paris, Courtney","/playerfile/courtney_paris")); PlayersTopic1.AddURL(new URLPair("Perkins, Jia","/playerfile/jia_perkins")); PlayersTopic1.AddURL(new URLPair("Sharp, K.B.","/playerfile/k.b._sharp")); PlayersTopic1.AddURL(new URLPair("Thorn, Erin","/playerfile/erin_thorn")); PlayersTopic1.AddURL(new URLPair("Toliver, Kristi","/playerfile/kristi_toliver")); 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("Black, Chante","/playerfile/chante_black")); PlayersTopic2.AddURL(new URLPair("Brown, Kiesha","/playerfile/kiesha_brown")); PlayersTopic2.AddURL(new URLPair("Gardin, Kerri","/playerfile/kerri_gardin")); PlayersTopic2.AddURL(new URLPair("Gruda, Sandrine","/playerfile/sandrine_gruda")); PlayersTopic2.AddURL(new URLPair("Holt, Amber","/playerfile/amber_holt")); 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("Phillips, Erin","/playerfile/erin_phillips")); PlayersTopic2.AddURL(new URLPair("Walker, DeMya","/playerfile/demya_walker")); PlayersTopic2.AddURL(new URLPair("White, Tan","/playerfile/tan_white")); PlayersTopic2.AddURL(new URLPair("Whitmore, Tamika","/playerfile/tamika_whitmore")); 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("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("Littles, Lyndra","/playerfile/lyndra_littles")); PlayersTopic3.AddURL(new URLPair("Moore, Jessica","/playerfile/jessica_moore")); PlayersTopic3.AddURL(new URLPair("Murphy, Eshaya","/playerfile/eshaya_murphy")); PlayersTopic3.AddURL(new URLPair("Owino, Josephine","/playerfile/josephine_owino")); PlayersTopic3.AddURL(new URLPair("Risper, Jennifer","/playerfile/jennifer_risper")); PlayersTopic3.AddURL(new URLPair("Sutton-Brown, Tammy","/playerfile/tammy_sutton-brown")); PlayersTopic3.AddURL(new URLPair("Wirth, Christina","/playerfile/christina_wirth")); PlayersViewObject.AddTopic(PlayersTopic3); var PlayersTopic4 = new StatsTopic('Los Angeles Sparks'); PlayersTopic4.AddURL(new URLPair("Select A Player","")); PlayersTopic4.AddURL(new URLPair("Bobbitt, Shannon","/playerfile/shannon_bobbitt")); PlayersTopic4.AddURL(new URLPair("Ferdinand-Harris, Marie","/playerfile/marie_ferdinand")); PlayersTopic4.AddURL(new URLPair("Harrower, Kristi","/playerfile/kristi_harrower")); PlayersTopic4.AddURL(new URLPair("Hayden, Vanessa","/playerfile/vanessa_hayden")); PlayersTopic4.AddURL(new URLPair("Lennox, Betty","/playerfile/betty_lennox")); PlayersTopic4.AddURL(new URLPair("Milton-Jones, DeLisha","/playerfile/delisha_milton")); 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("Thompson, Tina","/playerfile/tina_thompson")); 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("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("Houston, Charde","/playerfile/charde_houston")); PlayersTopic5.AddURL(new URLPair("Maïga-Ba, Hamchétou","/playerfile/hamchetou_maiga")); PlayersTopic5.AddURL(new URLPair("McCants, Rashanda","/playerfile/rashanda_mccants")); PlayersTopic5.AddURL(new URLPair("Miller, Kelly","/playerfile/kelly_miller")); PlayersTopic5.AddURL(new URLPair("Montanana, Anna","/playerfile/anna_montanana")); PlayersTopic5.AddURL(new URLPair("Whalen, Lindsay","/playerfile/lindsay_whalen")); PlayersTopic5.AddURL(new URLPair("Wiggins, Candice","/playerfile/candice_wiggins")); PlayersViewObject.AddTopic(PlayersTopic5); var PlayersTopic6 = new StatsTopic('New York Liberty'); PlayersTopic6.AddURL(new URLPair("Select A Player","")); PlayersTopic6.AddURL(new URLPair("Battle, Ashley","/playerfile/ashley_battle")); PlayersTopic6.AddURL(new URLPair("Carson, Essence","/playerfile/essence_carson")); PlayersTopic6.AddURL(new URLPair("Christon, Shameka","/playerfile/shameka_christon")); PlayersTopic6.AddURL(new URLPair("Jackson, Tiffany","/playerfile/tiffany_jackson")); PlayersTopic6.AddURL(new URLPair("Kraayeveld, Cathrine","/playerfile/cathrine_kraayeveld")); PlayersTopic6.AddURL(new URLPair("Larkins, Erlana","/playerfile/erlana_larkins")); PlayersTopic6.AddURL(new URLPair("McCarville, Janel","/playerfile/janel_mccarville")); PlayersTopic6.AddURL(new URLPair("Mitchell, Leilani","/playerfile/leilani_mitchell")); PlayersTopic6.AddURL(new URLPair("Moore, Loree","/playerfile/loree_moore")); 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("Johnson, Temeka","/playerfile/temeka_johnson")); PlayersTopic7.AddURL(new URLPair("Mazzante, Kelly","/playerfile/kelly_mazzante")); PlayersTopic7.AddURL(new URLPair("Ohlde, Nicole","/playerfile/nicole_ohlde")); PlayersTopic7.AddURL(new URLPair("Paris, Ashley","/playerfile/ashley_paris")); PlayersTopic7.AddURL(new URLPair("Pondexter, Cappie","/playerfile/cappie_pondexter")); 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")); PlayersTopic7.AddURL(new URLPair("Williams, Lenae","/playerfile/lenae_williams")); PlayersViewObject.AddTopic(PlayersTopic7); var PlayersTopic8 = new StatsTopic('San Antonio Silver Stars'); PlayersTopic8.AddURL(new URLPair("Select A Player","")); PlayersTopic8.AddURL(new URLPair("Chaney, Quianna","/playerfile/quianna_chaney")); PlayersTopic8.AddURL(new URLPair("Crossley, Shanna","/playerfile/shanna_crossley")); PlayersTopic8.AddURL(new URLPair("Darling, Helen","/playerfile/helen_darling")); PlayersTopic8.AddURL(new URLPair("Frazee, Megan","/playerfile/megan_frazee")); PlayersTopic8.AddURL(new URLPair("Hammon, Becky","/playerfile/becky_hammon")); PlayersTopic8.AddURL(new URLPair("Harper, Laura","/playerfile/laura_harper")); PlayersTopic8.AddURL(new URLPair("Hodges, Roneeka","/playerfile/roneeka_hodges")); PlayersTopic8.AddURL(new URLPair("Humphrey, Tasha","/playerfile/tasha_humphrey")); PlayersTopic8.AddURL(new URLPair("Johnson, Vickie","/playerfile/vickie_johnson")); PlayersTopic8.AddURL(new URLPair("Lawson-Wade, Edwige","/playerfile/edwige_lawson-wade")); PlayersTopic8.AddURL(new URLPair("Perperoglou, Erin","/playerfile/erin_perperoglou")); PlayersTopic8.AddURL(new URLPair("Riley, Ruth","/playerfile/ruth_riley")); PlayersTopic8.AddURL(new URLPair("Snell, Belinda","/playerfile/belinda_snell")); PlayersTopic8.AddURL(new URLPair("Snow, Michelle","/playerfile/michelle_snow")); PlayersTopic8.AddURL(new URLPair("Wauters, Ann","/playerfile/ann_wauters")); 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("Batkovic-Brown, Suzy","/playerfile/suzy_batkovic-brown")); PlayersTopic9.AddURL(new URLPair("Bird, Sue","/playerfile/sue_bird")); PlayersTopic9.AddURL(new URLPair("Burse, Janell","/playerfile/janell_burse")); PlayersTopic9.AddURL(new URLPair("Cash, Swin","/playerfile/swin_cash")); PlayersTopic9.AddURL(new URLPair("Gearlds, Katie","/playerfile/katie_gearlds")); PlayersTopic9.AddURL(new URLPair("Jackson, Lauren","/playerfile/lauren_jackson")); PlayersTopic9.AddURL(new URLPair("Johnson, Shannon","/playerfile/shannon_johnson")); PlayersTopic9.AddURL(new URLPair("Little, Camille","/playerfile/camille_little")); PlayersTopic9.AddURL(new URLPair("Newton, Chelsea","/playerfile/chelsea_newton")); PlayersTopic9.AddURL(new URLPair("Robinson, Ashley","/playerfile/ashley_robinson")); PlayersTopic9.AddURL(new URLPair("Walker, Ashley","/playerfile/ashley_walker")); 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("Braxton, Kara","/playerfile/kara_braxton")); PlayersTopic10.AddURL(new URLPair("Davis-Cain, Tanae","/playerfile/tanae_davis-cain")); PlayersTopic10.AddURL(new URLPair("Ford, Cheryl","/playerfile/cheryl_ford")); PlayersTopic10.AddURL(new URLPair("Hornbuckle, Alexis","/playerfile/alexis_hornbuckle")); PlayersTopic10.AddURL(new URLPair("Jones, Marion","/playerfile/marion_jones")); PlayersTopic10.AddURL(new URLPair("Kelly, Crystal","/playerfile/crystal_kelly")); PlayersTopic10.AddURL(new URLPair("Lacy, Natasha","/playerfile/natasha_lacy")); PlayersTopic10.AddURL(new URLPair("McWilliams, Taj","/playerfile/taj_mcwilliams")); PlayersTopic10.AddURL(new URLPair("Nolan, Deanna","/playerfile/deanna_nolan")); PlayersTopic10.AddURL(new URLPair("Pierson, Plenette","/playerfile/plenette_pierson")); PlayersTopic10.AddURL(new URLPair("Robinson, Scholanda","/playerfile/scholanda_robinson")); PlayersTopic10.AddURL(new URLPair("Sanni, Olayinka","/playerfile/olayinka_sanni")); PlayersTopic10.AddURL(new URLPair("Teasley, Nikki","/playerfile/nikki_teasley")); PlayersTopic10.AddURL(new URLPair("Tillis, Iciss","/playerfile/iciss_tillis")); PlayersTopic10.AddURL(new URLPair("Zellous, Shavonte","/playerfile/shavonte_zellous")); 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("Atkinson, La'Tangela","/playerfile/latangela_atkinson")); PlayersTopic11.AddURL(new URLPair("Beard, Alana","/playerfile/alana_beard")); PlayersTopic11.AddURL(new URLPair("Blue, Nikki","/playerfile/nikki_blue")); PlayersTopic11.AddURL(new URLPair("Coleman, Marissa","/playerfile/marissa_coleman")); PlayersTopic11.AddURL(new URLPair("Currie, Monique","/playerfile/monique_currie")); PlayersTopic11.AddURL(new URLPair("Ervin, Lauren","/playerfile/lauren_ervin")); PlayersTopic11.AddURL(new URLPair("Harding, Lindsey","/playerfile/lindsey_harding")); PlayersTopic11.AddURL(new URLPair("Haynie, Kristin","/playerfile/kristin_haynie")); PlayersTopic11.AddURL(new URLPair("Langhorne, Crystal","/playerfile/crystal_langhorne")); PlayersTopic11.AddURL(new URLPair("Mann, Kristen","/playerfile/kristen_mann")); PlayersTopic11.AddURL(new URLPair("Melvin, Chasity","/playerfile/chasity_melvin")); PlayersTopic11.AddURL(new URLPair("Mosby, Bernice","/playerfile/bernice_mosby")); 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; }