function StateSuggestions() {
    this.states = [
"Akron",
"Alamosa",
"Allenspark",
"Alma",
"Almont",
"Anton",
"Antonito",
"Arvada",
"Aspen",
"Aurora",
"Avon",
"Bailey",
"Basalt",
"Bayfield",
"Beaver Creek",
"Bellvue",
"Bennett",
"Black Hawk",
"Bond",
"Boulder",
"Breckenridge",
"Briggsdale",
"Brighton",
"Broomfield",
"Brush",
"Buena Vista",
"Burlington",
"Byers",
"Calhan",
"Canon City",
"Carbondale",
"Castle Rock",
"Cedaredge",
"Centennial",
"Central City",
"Cheyenne Wells",
"Clark",
"Clifton",
"Collbran",
"Colorado City",
"Colorado Springs",
"Commerce City",
"Cortez",
"Craig",
"Crawford",
"Creede",
"Crested Butte",
"Crestone",
"Cripple Creek",
"Del Norte",
"Delta",
"Denver",
"Dillon",
"Dinosaur",
"Divide",
"Dolores",
"Dove Creek",
"Drake",
"Dupont",
"Durango",
"Eads",
"Eagle",
"Eaton",
"Eckert",
"Edwards",
"Englewood",
"Erie",
"Estes Park",
"Evans",
"Evergreen",
"Fairplay",
"Flagler",
"Florence",
"Florissant",
"Fort Collins",
"Fort Garland",
"Fort Lupton",
"Fort Morgan",
"Fountain",
"Fowler",
"Fraser",
"Frisco",
"Fruita",
"Gateway",
"Georgetown",
"Glen Haven",
"Glendale",
"Glenwood Springs",
"Golden",
"Granby",
"Grand Junction",
"Grand Lake",
"Greeley",
"Green Mountain Falls",
"Greenwood Village",
"Guffey",
"Gunnison",
"Gypsum",
"Hayden",
"Henderson",
"Hesperus",
"Highlands Ranch",
"Holyoke",
"Hot Sulphur Springs",
"Hotchkiss",
"Howard",
"Hudson",
"Idaho Springs",
"Idalia",
"Joes",
"Julesburg",
"Keenesburg",
"Keystone",
"Kit Carson",
"Kremmling",
"La Junta",
"La Veta",
"Lafayette",
"Lake City",
"Lake George",
"Lakewood",
"Lamar",
"Laporte",
"Larkspur",
"Las Animas",
"Leadville",
"Limon",
"Littleton",
"Livermore",
"Lone Tree",
"Longmont",
"Louisville",
"Loveland",
"Lucerne",
"Lyons",
"Mancos",
"Manitou Springs",
"Maybell",
"Meeker",
"Mesa",
"Mesa Verde National Park",
"Minturn",
"Moffat",
"Monarch",
"Monte Vista",
"Montrose",
"Monument",
"Morrison",
"Mosca",
"Nathrop",
"Naturita",
"Nederland",
"New Castle",
"Niwot",
"Northglenn",
"Norwood",
"Oak Creek",
"Ordway",
"Ouray",
"Pagosa Springs",
"Palisade",
"Paonia",
"Parachute",
"Parker",
"Penrose",
"Peyton",
"Pine",
"Pitkin",
"Pleasant View",
"Poncha Springs",
"Pueblo",
"Pueblo West",
"Rangely",
"Redstone",
"Rico",
"Ridgway",
"Rifle",
"Rocky Ford",
"Roggen",
"Rye",
"Saguache",
"Salida",
"San Luis",
"Sedalia",
"Silt",
"Silverthorne",
"Silverton",
"Simla",
"Snowmass",
"Snowmass Village",
"South Fork",
"Springfield",
"Steamboat Spr",
"Steamboat Springs",
"Sterling",
"Stoneham",
"Strasburg",
"Stratton",
"Tabernash",
"Telluride",
"Thornton",
"Towaoc",
"Trinidad",
"Twin Lakes",
"Vail",
"Victor",
"Walden",
"Walsenburg",
"Watkins",
"Wellington",
"Westcliffe",
"Westminster",
"Weston",
"Wheat Ridge",
"Whitewater",
"Windsor",
"Winter Park",
"Woodland Park",
"Wray",
"Yampa",
"Yuma"];
}

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

