function StateSuggestions() {
    this.states = [
"Alma",
"Altus",
"Anchorage",
"Arkadelphia",
"Ashdown",
"Augusta",
"Bald Knob",
"Barling",
"Batesville",
"Beebe",
"Bella Vista",
"Benton",
"Bentonville",
"Berryville",
"Bismarck",
"Blytheville",
"Boles",
"Booneville",
"Brinkley",
"Bryant",
"Bull Shoals",
"Cabot",
"Calico Rock",
"Camden",
"Carlisle",
"Casa",
"Cave City",
"Centerton",
"Cherokee Village",
"Clarendon",
"Clarksville",
"Clinton",
"Conway",
"Corning",
"Cotter",
"Crossett",
"Dardanelle",
"De Queen",
"De Witt",
"Dermott",
"Diamond City",
"Dover",
"Dumas",
"Earle",
"El Dorado",
"Eudora",
"Eureka Springs",
"Fairfield Bay",
"Farmington",
"Fayetteville",
"Flippin",
"Fordyce",
"Forrest City",
"Fort Smith",
"Gamaliel",
"Garfield",
"Gassville",
"Gentry",
"Glenwood",
"Green Forest",
"Greers Ferry",
"Gurdon",
"Hamburg",
"Hampton",
"Hardy",
"Harriet",
"Harrisburg",
"Harrison",
"Hazen",
"Heber Springs",
"Helena",
"Henderson",
"Heth",
"Higden",
"Highland",
"Hindsville",
"Holiday Island",
"Hope",
"Horseshoe Bend",
"Hot Springs",
"Hot Springs National",
"Hot Springs National Park",
"Hot Springs Village",
"Huntsville",
"Huttig",
"Imboden",
"Jacksonville",
"Jasper",
"Jessieville",
"Johnson",
"Jonesboro",
"Kingston",
"Kirby",
"Lake Village",
"Lakeview",
"Little Rock",
"Lonoke",
"Lowell",
"Magnolia",
"Malvern",
"Mammoth Spring",
"Marianna",
"Marion",
"Marked Tree",
"Marshall",
"Maumelle",
"Mc Gehee",
"Mcgehee",
"Melbourne",
"Mena",
"Monticello",
"Morrilton",
"Mount Ida",
"Mountain Home",
"Mountain View",
"Mulberry",
"Murfreesboro",
"Nashville",
"Newport",
"North Little Rock",
"Ola",
"Omaha",
"Osceola",
"Ozark",
"Paragould",
"Paris",
"Peel",
"Perryville",
"Piggott",
"Pine Bluff",
"Pocahontas",
"Prairie Grove",
"Prescott",
"Rogers",
"Royal",
"Russellville",
"Salem",
"Searcy",
"Sheridan",
"Sherwood",
"Siloam Springs",
"Smackover",
"Springdale",
"Stamps",
"Star City",
"Story",
"Stuttgart",
"Texarkana",
"Trumann",
"Tuckerman",
"Van Buren",
"Waldron",
"Walnut Ridge",
"Warren",
"Weiner",
"West Fork",
"West Helena",
"West Memphis",
"Wheatley",
"White Hall",
"Winslow",
"Wrightsville",
"Wynne",
"Yellville"];
}

StateSuggestions.prototype.requestSuggestions = function (oAutoSuggestControl /*:AutoSuggestControl*/,
                                                          bTypeAhead /*:boolean*/) {
    var aSuggestions = [];
    var sTextboxValue = oAutoSuggestControl.textbox.value;
    
    if (sTextboxValue.length > 0){
    	topsuggestion = null;
        for (var i=0; i < this.states.length; i++) { 
            if (this.states[i].toLowerCase().indexOf(sTextboxValue.toLowerCase()) == 0) {
                aSuggestions.push(this.states[i]);
		if (!topsuggestion) {topsuggestion = this.states[i];}
            } 
        }
    }

    oAutoSuggestControl.autosuggest(aSuggestions, bTypeAhead);
};

