function StateSuggestions() {
    this.states = [
"Albany",
"Alexandria",
"Allen",
"Ashland",
"Auburn",
"Barbourville",
"Bardstown",
"Beattyville",
"Beaver Dam",
"Belfry",
"Benham",
"Benton",
"Berea",
"Blaine",
"Booneville",
"Bowling Green",
"Brandenburg",
"Bronston",
"Brooks",
"Buckhorn",
"Burkesville",
"Burlington",
"Burnside",
"Butler",
"Cadiz",
"California",
"Calvert City",
"Campbellsville",
"Campton",
"Canton",
"Carlisle",
"Carrollton",
"Catlettsburg",
"Cave City",
"Central City",
"Clarkson",
"Clay City",
"Columbia",
"Corbin",
"Covington",
"Cumberland",
"Cynthiana",
"Danville",
"Dawson Springs",
"Dry Ridge",
"Dunmor",
"Eddyville",
"Edmonton",
"Elizabethtown",
"Elkhorn City",
"Emmalena",
"Erlanger",
"Falls Of Rough",
"Flemingsburg",
"Florence",
"Fort Campbell",
"Fort Knox",
"Fort Mitchell",
"Frankfort",
"Franklin",
"Ft Wright",
"Fulton",
"Georgetown",
"Ghent",
"Gilbertsville",
"Glasgow",
"Glencoe",
"Grand Rivers",
"Grayson",
"Greenup",
"Greenville",
"Guthrie",
"Hagerhill",
"Hardin",
"Hardinsburg",
"Harlan",
"Harrodsburg",
"Hazard",
"Hebron",
"Henderson",
"Hindman",
"Hodgenville",
"Hopkinsville",
"Horse Cave",
"Hueysville",
"Inez",
"Irvine",
"Ivel",
"Jackson",
"Jamestown",
"Jeffersontown",
"Kuttawa",
"La Center",
"La Grange",
"Lawrenceburg",
"Lebanon",
"Leitchfield",
"Lewisburg",
"Lewisport",
"Lexington",
"Liberty",
"London",
"Loretto",
"Louisa",
"Louisville",
"Madisonville",
"Mammoth Cave",
"Manchester",
"Marion",
"Martin",
"Mayfield",
"Maysville",
"Mc Kee",
"Middlesboro",
"Monticello",
"Morehead",
"Morganfield",
"Morgantown",
"Mortons Gap",
"Mount Sterling",
"Mount Vernon",
"Mount Washington",
"Muldraugh",
"Munfordville",
"Murray",
"New Concord",
"Newport",
"Nicholasville",
"Oak Grove",
"Olive Hill",
"Owensboro",
"Owenton",
"Owingsville",
"Paducah",
"Paintsville",
"Paris",
"Park City",
"Park Hills",
"Parkers Lake",
"Perryville",
"Phelps",
"Pikeville",
"Pineville",
"Powderly",
"Prestonsburg",
"Princeton",
"Providence",
"Radcliff",
"Richmond",
"Rogers",
"Russell Springs",
"Russellville",
"Sandy Hook",
"Scottsville",
"Sebree",
"Shelbyville",
"Shepherdsville",
"Slade",
"Smiths Grove",
"Somerset",
"South Williamson",
"Sparta",
"Springfield",
"Stanford",
"Stanton",
"Stearns",
"Taylorsville",
"Tompkinsville",
"Vanceburg",
"Versailles",
"Walton",
"Washington",
"Wendover",
"West Liberty",
"West Paducah",
"Whitesburg",
"Whitley City",
"Wilder",
"Williamsburg",
"Williamstown",
"Wilmore",
"Winchester"];
}

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

