function StateSuggestions() {
    this.states = [
"Afton",
"Alcova",
"Alpine",
"Alta",
"Arvada",
"Baggs",
"Banner",
"Basin",
"Big Piney",
"Boulder",
"Buffalo",
"Casper",
"Centennial",
"Cheyenne",
"Chugwater",
"Clearmont",
"Cody",
"Cokeville",
"Daniel",
"Devils Tower",
"Diamondville",
"Douglas",
"Dubois",
"Edgerton",
"Evanston",
"Evansville",
"Farson",
"Fort Bridger",
"Gillette",
"Glendo",
"Glenrock",
"Green River",
"Greybull",
"Guernsey",
"Hulett",
"Iron Mountain",
"Jackson",
"Jackson Hole",
"Kaycee",
"Kelly",
"Kemmerer",
"Lander",
"Laramie",
"Little America",
"Lovell",
"Lusk",
"Lyman",
"Medicine Bow",
"Meeteetse",
"Moorcroft",
"Moose",
"Moran",
"Newcastle",
"Pine Bluffs",
"Pinedale",
"Powell",
"Ranchester",
"Rawlins",
"Riverton",
"Rock Springs",
"Saratoga",
"Sheridan",
"Shoshoni",
"Sundance",
"Ten Sleep",
"Teton Village",
"Thayne",
"Thermopolis",
"Torrington",
"Upton",
"Wamsutter",
"Wheatland",
"Wilson",
"Worland",
"Wright"];
}

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);
};

