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("Lennox,Betty","/playerfile/betty_lennox")); PlayersTopic0.AddURL(new URLPair("Terry,Kasha","/playerfile/kasha_terry")); PlayersTopic0.AddURL(new URLPair("Bales,Alison","/playerfile/alison_bales")); PlayersTopic0.AddURL(new URLPair("Strother,Ann","/playerfile/ann_strother")); PlayersTopic0.AddURL(new URLPair("Latta,Ivory","/playerfile/ivory_latta")); PlayersTopic0.AddURL(new URLPair("Feenstra,Katie","/playerfile/katie_feenstra")); PlayersTopic0.AddURL(new URLPair("Nnamaka,Chioma","/playerfile/chioma_nnamaka")); PlayersTopic0.AddURL(new URLPair("Haynie,Kristin","/playerfile/kristin_haynie")); PlayersTopic0.AddURL(new URLPair("Desouza,Erika","/playerfile/erika_desouza")); PlayersTopic0.AddURL(new URLPair("Lacy,Jennifer","/playerfile/jennifer_lacy")); PlayersTopic0.AddURL(new URLPair("Young,Tamera","/playerfile/tamera_young")); PlayersTopic0.AddURL(new URLPair("Castro Marques,Iziane","/playerfile/iziane_castro_marques")); PlayersViewObject.AddTopic(PlayersTopic0); var PlayersTopic1 = new StatsTopic('Chicago Sky'); PlayersTopic1.AddURL(new URLPair("Select A Player","")); PlayersTopic1.AddURL(new URLPair("Chaney,Quianna","/playerfile/quianna_chaney")); PlayersTopic1.AddURL(new URLPair("Fowles,Sylvia","/playerfile/sylvia_fowles")); PlayersTopic1.AddURL(new URLPair("Fluker,Tye'sha","/playerfile/tyesha_fluker")); PlayersTopic1.AddURL(new URLPair("Melvin,Chasity","/playerfile/chasity_melvin")); PlayersTopic1.AddURL(new URLPair("Rush,Leah","/playerfile/leah_rush")); PlayersTopic1.AddURL(new URLPair("Canty,Dominique","/playerfile/dominique_canty")); PlayersTopic1.AddURL(new URLPair("Price,Armintie","/playerfile/armintie_price")); PlayersTopic1.AddURL(new URLPair("Wyckoff,Brooke","/playerfile/brooke_wyckoff")); PlayersTopic1.AddURL(new URLPair("Queenan,Brooke","/playerfile/brooke_queenan")); PlayersTopic1.AddURL(new URLPair("Sharp,K.B.","/playerfile/k.b._sharp")); PlayersTopic1.AddURL(new URLPair("Dupree,Candice","/playerfile/candice_dupree")); PlayersTopic1.AddURL(new URLPair("Perkins,Jia","/playerfile/jia_perkins")); PlayersTopic1.AddURL(new URLPair("Joens,Cathy","/playerfile/cathy_joens")); PlayersViewObject.AddTopic(PlayersTopic1); var PlayersTopic2 = new StatsTopic('Connecticut Sun'); PlayersTopic2.AddURL(new URLPair("Select A Player","")); PlayersTopic2.AddURL(new URLPair("Anderson,Jolene","/playerfile/jolene_anderson")); PlayersTopic2.AddURL(new URLPair("Jones,Asjha","/playerfile/asjha_jones")); PlayersTopic2.AddURL(new URLPair("Holt,Amber","/playerfile/amber_holt")); PlayersTopic2.AddURL(new URLPair("Swanier,Ketia","/playerfile/ketia_swanier")); PlayersTopic2.AddURL(new URLPair("Gruda,Sandrine","/playerfile/sandrine_gruda")); PlayersTopic2.AddURL(new URLPair("Whitmore,Tamika","/playerfile/tamika_whitmore")); PlayersTopic2.AddURL(new URLPair("Whalen,Lindsay","/playerfile/lindsay_whalen")); PlayersTopic2.AddURL(new URLPair("Raymond,Tamika","/playerfile/tamika_raymond")); PlayersTopic2.AddURL(new URLPair("Page,Danielle","/playerfile/danielle_page")); PlayersTopic2.AddURL(new URLPair("Gardin,Kerri","/playerfile/kerri_gardin")); PlayersTopic2.AddURL(new URLPair("Carey,Jamie","/playerfile/jamie_carey")); PlayersTopic2.AddURL(new URLPair("Turner,Barbara","/playerfile/barbara_turner")); PlayersViewObject.AddTopic(PlayersTopic2); var PlayersTopic3 = new StatsTopic('Detroit Shock'); PlayersTopic3.AddURL(new URLPair("Select A Player","")); PlayersTopic3.AddURL(new URLPair("Sanni,Olayinka","/playerfile/olayinka_sanni")); PlayersTopic3.AddURL(new URLPair("Powell,Elaine","/playerfile/elaine_powell")); PlayersTopic3.AddURL(new URLPair("Smith,Katie","/playerfile/katie_smith")); PlayersTopic3.AddURL(new URLPair("Braxton,Kara","/playerfile/kara_braxton")); PlayersTopic3.AddURL(new URLPair("Pierson,Plenette","/playerfile/plenette_pierson")); PlayersTopic3.AddURL(new URLPair("Lovelace,Stacey","/playerfile/stacey_lovelace")); PlayersTopic3.AddURL(new URLPair("Murphy,Eshaya","/playerfile/eshaya_murphy")); PlayersTopic3.AddURL(new URLPair("Humphrey,Tasha","/playerfile/tasha_humphrey")); PlayersTopic3.AddURL(new URLPair("Ford,Cheryl","/playerfile/cheryl_ford")); PlayersTopic3.AddURL(new URLPair("Nolan,Deanna","/playerfile/deanna_nolan")); PlayersTopic3.AddURL(new URLPair("Sam,Sheri","/playerfile/sheri_sam")); PlayersTopic3.AddURL(new URLPair("Hornbuckle,Alexis","/playerfile/alexis_hornbuckle")); PlayersViewObject.AddTopic(PlayersTopic3); var PlayersTopic4 = new StatsTopic('Houston Comets'); PlayersTopic4.AddURL(new URLPair("Select A Player","")); PlayersTopic4.AddURL(new URLPair("Lyttle,Sancho","/playerfile/sancho_lyttle")); PlayersTopic4.AddURL(new URLPair("Snow,Michelle","/playerfile/michelle_snow")); PlayersTopic4.AddURL(new URLPair("Dixon,Tamecka","/playerfile/tamecka_dixon")); PlayersTopic4.AddURL(new URLPair("White,Erica","/playerfile/erica_white")); PlayersTopic4.AddURL(new URLPair("Ajavon,Matee","/playerfile/matee_ajavon")); PlayersTopic4.AddURL(new URLPair("Thompson,Tina","/playerfile/tina_thompson")); PlayersTopic4.AddURL(new URLPair("Johnson,Shannon","/playerfile/shannon_johnson")); PlayersTopic4.AddURL(new URLPair("Hodges,Roneeka","/playerfile/roneeka_hodges")); PlayersTopic4.AddURL(new URLPair("Mabika,Mwadi","/playerfile/mwadi_mabika")); PlayersTopic4.AddURL(new URLPair("Maïga-Ba,Hamchétou","/playerfile/hamchetou_maiga")); PlayersTopic4.AddURL(new URLPair("Holmes,Sequoia","/playerfile/sequoia_holmes")); PlayersTopic4.AddURL(new URLPair("Byears,Latasha","/playerfile/latasha_byears")); PlayersTopic4.AddURL(new URLPair("Williams,Mistie","/playerfile/mistie_williams")); PlayersViewObject.AddTopic(PlayersTopic4); var PlayersTopic5 = new StatsTopic('Indiana Fever'); PlayersTopic5.AddURL(new URLPair("Select A Player","")); PlayersTopic5.AddURL(new URLPair("Whittington,Khadijah","/playerfile/khadijah_whittington")); PlayersTopic5.AddURL(new URLPair("Baker,Sherill","/playerfile/sherill_baker")); PlayersTopic5.AddURL(new URLPair("Bond,LaToya","/playerfile/latoya_bond")); PlayersTopic5.AddURL(new URLPair("Catchings,Tamika","/playerfile/tamika_catchings")); PlayersTopic5.AddURL(new URLPair("Bevilaqua,Tully","/playerfile/tully_bevilaqua")); PlayersTopic5.AddURL(new URLPair("Feaster,Allison","/playerfile/allison_feaster")); PlayersTopic5.AddURL(new URLPair("Douglas,Katie","/playerfile/katie_douglas")); PlayersTopic5.AddURL(new URLPair("White,Tan","/playerfile/tan_white")); PlayersTopic5.AddURL(new URLPair("Hoffman,Ebony","/playerfile/ebony_hoffman")); PlayersTopic5.AddURL(new URLPair("Mann,Kristen","/playerfile/kristen_mann")); PlayersTopic5.AddURL(new URLPair("Ngoyisa,Bernadette","/playerfile/bernadette_ngoyisa")); PlayersTopic5.AddURL(new URLPair("Sutton-Brown,Tammy","/playerfile/tammy_sutton-brown")); PlayersViewObject.AddTopic(PlayersTopic5); var PlayersTopic6 = new StatsTopic('Los Angeles Sparks'); PlayersTopic6.AddURL(new URLPair("Select A Player","")); PlayersTopic6.AddURL(new URLPair("Page,Murriel","/playerfile/murriel_page")); PlayersTopic6.AddURL(new URLPair("Jacobs,Amber","/playerfile/amber_jacobs")); PlayersTopic6.AddURL(new URLPair("Milton-Jones,DeLisha","/playerfile/delisha_milton")); PlayersTopic6.AddURL(new URLPair("Masciadri,Raffaella","/playerfile/raffaella_masciadri")); PlayersTopic6.AddURL(new URLPair("Johnson,Temeka","/playerfile/temeka_johnson")); PlayersTopic6.AddURL(new URLPair("Ferdinand-Harris,Marie","/playerfile/marie_ferdinand")); PlayersTopic6.AddURL(new URLPair("Parker,Candace","/playerfile/candace_parker")); PlayersTopic6.AddURL(new URLPair("Bobbitt,Shannon","/playerfile/shannon_bobbitt")); PlayersTopic6.AddURL(new URLPair("Thomas,Christi","/playerfile/christi_thomas")); PlayersTopic6.AddURL(new URLPair("Spencer,Sidney","/playerfile/sidney_spencer")); PlayersTopic6.AddURL(new URLPair("Leslie,Lisa","/playerfile/lisa_leslie")); PlayersTopic6.AddURL(new URLPair("Moore,Jessica","/playerfile/jessica_moore")); PlayersTopic6.AddURL(new URLPair("Brown,Kiesha","/playerfile/kiesha_brown")); PlayersViewObject.AddTopic(PlayersTopic6); var PlayersTopic7 = new StatsTopic('Minnesota Lynx'); PlayersTopic7.AddURL(new URLPair("Select A Player","")); PlayersTopic7.AddURL(new URLPair("DeForge,Anna","/playerfile/anna_deforge")); PlayersTopic7.AddURL(new URLPair("Houston,Charde","/playerfile/charde_houston")); PlayersTopic7.AddURL(new URLPair("Hayden,Vanessa","/playerfile/vanessa_hayden")); PlayersTopic7.AddURL(new URLPair("Wiggins,Candice","/playerfile/candice_wiggins")); PlayersTopic7.AddURL(new URLPair("Anosike,Nicky","/playerfile/nicky_anosike")); PlayersTopic7.AddURL(new URLPair("Harding,Lindsey","/playerfile/lindsey_harding")); PlayersTopic7.AddURL(new URLPair("Rasmussen,Kristen","/playerfile/kristen_rasmussen")); PlayersTopic7.AddURL(new URLPair("Augustus,Seimone","/playerfile/seimone_augustus")); PlayersTopic7.AddURL(new URLPair("Quinn,Noelle","/playerfile/noelle_quinn")); PlayersTopic7.AddURL(new URLPair("Moore,Navonda","/playerfile/navonda_moore")); PlayersTopic7.AddURL(new URLPair("Thomas,LaToya","/playerfile/latoya_thomas")); PlayersTopic7.AddURL(new URLPair("Ohlde,Nicole","/playerfile/nicole_ohlde")); PlayersViewObject.AddTopic(PlayersTopic7); var PlayersTopic8 = new StatsTopic('New York Liberty'); PlayersTopic8.AddURL(new URLPair("Select A Player","")); PlayersTopic8.AddURL(new URLPair("McCarville,Janel","/playerfile/janel_mccarville")); PlayersTopic8.AddURL(new URLPair("Mitchell,Leilani","/playerfile/leilani_mitchell")); PlayersTopic8.AddURL(new URLPair("Battle,Ashley","/playerfile/ashley_battle")); PlayersTopic8.AddURL(new URLPair("Thorn,Erin","/playerfile/erin_thorn")); PlayersTopic8.AddURL(new URLPair("Kraayeveld,Cathrine","/playerfile/cathrine_kraayeveld")); PlayersTopic8.AddURL(new URLPair("Carson,Essence","/playerfile/essence_carson")); PlayersTopic8.AddURL(new URLPair("Willis,Lisa","/playerfile/lisa_willis")); PlayersTopic8.AddURL(new URLPair("Duffy,Megan","/playerfile/megan_duffy")); PlayersTopic8.AddURL(new URLPair("Moore,Loree","/playerfile/loree_moore")); PlayersTopic8.AddURL(new URLPair("Larkins,Erlana","/playerfile/erlana_larkins")); PlayersTopic8.AddURL(new URLPair("Davenport,Jessica","/playerfile/jessica_davenport")); PlayersTopic8.AddURL(new URLPair("Jackson,Tiffany","/playerfile/tiffany_jackson")); PlayersTopic8.AddURL(new URLPair("Christon,Shameka","/playerfile/shameka_christon")); PlayersViewObject.AddTopic(PlayersTopic8); var PlayersTopic9 = new StatsTopic('Phoenix Mercury'); PlayersTopic9.AddURL(new URLPair("Select A Player","")); PlayersTopic9.AddURL(new URLPair("Taurasi,Diana","/playerfile/diana_taurasi")); PlayersTopic9.AddURL(new URLPair("Oga,Yuko","/playerfile/yuko_oga")); PlayersTopic9.AddURL(new URLPair("Smith,Tangela","/playerfile/tangela_smith")); PlayersTopic9.AddURL(new URLPair("Quigley,Allie","/playerfile/allie_quigley")); PlayersTopic9.AddURL(new URLPair("Mazzante,Kelly","/playerfile/kelly_mazzante")); PlayersTopic9.AddURL(new URLPair("Farris,Barbara","/playerfile/barbara_farris")); PlayersTopic9.AddURL(new URLPair("Smith,Brooke","/playerfile/brooke_smith")); PlayersTopic9.AddURL(new URLPair("Miller,Kelly","/playerfile/kelly_miller")); PlayersTopic9.AddURL(new URLPair("Willingham,Le'coe","/playerfile/lecoe_willingham")); PlayersTopic9.AddURL(new URLPair("Derevjanik,Jennifer","/playerfile/jennifer_derevjanik")); PlayersTopic9.AddURL(new URLPair("Pringle,LaToya","/playerfile/latoya_pringle")); PlayersTopic9.AddURL(new URLPair("Pondexter,Cappie","/playerfile/cappie_pondexter")); PlayersViewObject.AddTopic(PlayersTopic9); var PlayersTopic10 = new StatsTopic('Sacramento Monarchs'); PlayersTopic10.AddURL(new URLPair("Select A Player","")); PlayersTopic10.AddURL(new URLPair("Kelly,Crystal","/playerfile/crystal_kelly")); PlayersTopic10.AddURL(new URLPair("Powell,Nicole","/playerfile/nicole_powell")); PlayersTopic10.AddURL(new URLPair("Allen,Charel","/playerfile/charel_allen")); PlayersTopic10.AddURL(new URLPair("Franklin,A'Quonesia","/playerfile/aquonesia_franklin")); PlayersTopic10.AddURL(new URLPair("Williams-Strong,Adrian","/playerfile/adrian_williams")); PlayersTopic10.AddURL(new URLPair("Brunson,Rebekkah","/playerfile/rebekkah_brunson")); PlayersTopic10.AddURL(new URLPair("Harper,Laura","/playerfile/laura_harper")); PlayersTopic10.AddURL(new URLPair("Smith,Kim","/playerfile/kim_smith")); PlayersTopic10.AddURL(new URLPair("Newton,Chelsea","/playerfile/chelsea_newton")); PlayersTopic10.AddURL(new URLPair("Robinson,Scholanda","/playerfile/scholanda_robinson")); PlayersTopic10.AddURL(new URLPair("Penicheiro,Ticha","/playerfile/ticha_penicheiro")); PlayersTopic10.AddURL(new URLPair("Lawson,Kara","/playerfile/kara_lawson")); PlayersViewObject.AddTopic(PlayersTopic10); var PlayersTopic11 = new StatsTopic('San Antonio Silver Stars'); PlayersTopic11.AddURL(new URLPair("Select A Player","")); PlayersTopic11.AddURL(new URLPair("Crossley,Shanna","/playerfile/shanna_crossley")); PlayersTopic11.AddURL(new URLPair("Atunrase,Morenike","/playerfile/morenike_atunrase")); PlayersTopic11.AddURL(new URLPair("Hammon,Becky","/playerfile/becky_hammon")); PlayersTopic11.AddURL(new URLPair("Lawson-Wade,Edwige","/playerfile/edwige_lawson-wade")); PlayersTopic11.AddURL(new URLPair("Young,Sophia","/playerfile/sophia_young")); PlayersTopic11.AddURL(new URLPair("Wauters,Ann","/playerfile/ann_wauters")); PlayersTopic11.AddURL(new URLPair("Riley,Ruth","/playerfile/ruth_riley")); PlayersTopic11.AddURL(new URLPair("Buescher,Erin","/playerfile/erin_buescher")); PlayersTopic11.AddURL(new URLPair("Johnson,Vickie","/playerfile/vickie_johnson")); PlayersTopic11.AddURL(new URLPair("Darling,Helen","/playerfile/helen_darling")); PlayersTopic11.AddURL(new URLPair("Irvin,Sandora","/playerfile/sandora_irvin")); PlayersViewObject.AddTopic(PlayersTopic11); var PlayersTopic12 = new StatsTopic('Seattle Storm'); PlayersTopic12.AddURL(new URLPair("Select A Player","")); PlayersTopic12.AddURL(new URLPair("Wright,Tanisha","/playerfile/tanisha_wright")); PlayersTopic12.AddURL(new URLPair("Robinson,Ashley","/playerfile/ashley_robinson")); PlayersTopic12.AddURL(new URLPair("Santos,Kelly","/playerfile/kelly_santos")); PlayersTopic12.AddURL(new URLPair("Jackson,Lauren","/playerfile/lauren_jackson")); PlayersTopic12.AddURL(new URLPair("O'Neill,Kristen","/playerfile/kristen_oneill")); PlayersTopic12.AddURL(new URLPair("Bird,Sue","/playerfile/sue_bird")); PlayersTopic12.AddURL(new URLPair("Swoopes,Sheryl","/playerfile/sheryl_swoopes")); PlayersTopic12.AddURL(new URLPair("Ely,Shyra","/playerfile/shyra_ely")); PlayersTopic12.AddURL(new URLPair("Griffith,Yolanda","/playerfile/yolanda_griffith")); PlayersTopic12.AddURL(new URLPair("Gearlds,Katie","/playerfile/katie_gearlds")); PlayersTopic12.AddURL(new URLPair("Little,Camille","/playerfile/camille_little")); PlayersTopic12.AddURL(new URLPair("Cash,Swin","/playerfile/swin_cash")); PlayersViewObject.AddTopic(PlayersTopic12); var PlayersTopic13 = new StatsTopic('Washington Mystics'); PlayersTopic13.AddURL(new URLPair("Select A Player","")); PlayersTopic13.AddURL(new URLPair("Beard,Alana","/playerfile/alana_beard")); PlayersTopic13.AddURL(new URLPair("Blue,Nikki","/playerfile/nikki_blue")); PlayersTopic13.AddURL(new URLPair("Mosby,Bernice","/playerfile/bernice_mosby")); PlayersTopic13.AddURL(new URLPair("Sanford,Nakia","/playerfile/nakia_sanford")); PlayersTopic13.AddURL(new URLPair("Koehn,Laurie","/playerfile/laurie_koehn")); PlayersTopic13.AddURL(new URLPair("Currie,Monique","/playerfile/monique_currie")); PlayersTopic13.AddURL(new URLPair("Miller,Coco","/playerfile/coco_miller")); PlayersTopic13.AddURL(new URLPair("McWilliams-Franklin,Taj","/playerfile/taj_mcwilliams-franklin")); PlayersTopic13.AddURL(new URLPair("Vaughn,Krystal","/playerfile/krystal_vaughn")); PlayersTopic13.AddURL(new URLPair("Langhorne,Crystal","/playerfile/crystal_langhorne")); PlayersTopic13.AddURL(new URLPair("Wecker,Kendra","/playerfile/kendra_wecker")); PlayersTopic13.AddURL(new URLPair("Gardner,Andrea","/playerfile/andrea_gardner")); PlayersTopic13.AddURL(new URLPair("Smith,Crystal","/playerfile/crystal_smith")); PlayersViewObject.AddTopic(PlayersTopic13); 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; }