
/**
 * Provides suggestions for state names (USA).
 * @class
 * @scope public
 */
function StateSuggestions() {
    this.states = ["Abel John - Gardener - Argyle St.","Adam J. - Farmer & Contractor - Stony Creek","Albretch Franz - Butcher - Crescent","Alexander Jas. - Bootmaker - Crescent","Allan T.H. - Miner - Commercial St.","Allen William - Carter - Talbot Flat","Amory D. - Butcher - Commercial St.","Anderson G.T. - Blacksmith - Commercial St.","Anderson Robert - Carter - Talbot Flat","Andrews David - Miner - Talbot Flat","Andrews Issiah - Town clerk - Crescent","Anketell Thomas - Clerk - Crescent","Ashley L.K. - Beershop - Argyle St.","Astbury Daniel - Miner - Talbot Flat","Austin David - Miner - Commercial St.","Bach Antoni - Butcher - Crescent","Bail George - Miner - Commercial Street","Baltimore T. - Crusher - Talbot Flat","Barker J. - Miner - Hongkong Hill","Barker R. - Epis. Minister - Talbot Flat","Barker Rev. R. - Church of E - Talbot","Barr Agnes - Hotelkeeper - Camp St.","Barrett Jas. - Miner - Commercial St.","Barton Hy. - Compositor - Talbot Flat","Bateman E.J. - Polisher - Camp St.","Bedward George - Miner - Argyle St.","Beer J.G. - Butcher - Commercial St.","Bell Robert B. - Grocer - Crescent","Bennett Eliz. - Fruiterer - Crecent","Bennett Mat. - Bootmaker - Talbot Flat","Berella Pietro - Splitter - Talbot Flat","Bertrand L.J. - Bookmaker - Ballarat Flat","Bey Peter - Ironmonger - Crescent","Biggers F.F. - Baker - Kangaroo Flat","Bossart G.H. - Ironmonger - Crescent","Boully James - Druggist - Crescent","Bowman N. - Miner - Kangaroo Flat","Bowman William - Bootmaker - Crescent","Boxhall Thomas - Splitter - Stony Creek","Boyd Alex. - Miner - Commercial St.","Boyd Jas. - Insurance - Vict. - Talbot","Boyd Jas. - Timber merchant - Ballarat St.","Brabender Duncan - Dairyman - none","Breadfort Mary - Strkpr. - Ballarat St.","Brown Elliott - Beershop - Crescent","Budds John - Printer - Crescent","Bunce Edward - Butcher - Argyle St.","Bunn Thomas W. - Miner - Long Gully","Burall R. D. - Ratecollector - Bell St.","Burchill J & W - Butchers - Crescent","Burdess Jos. - Bootmaker - Crescent","Busch William - Painter - Crescent","Butterworth J & F - Carpenters - Argyle St.","Cadwallander W. - Miller - Crescent","Cadzow T. - Miner - Kangaroo Flat","Cameron D. - Miner - Talbot Flat","Campbell A. - Blacksmith - Ballarat St.","Campbell Ivie - Farmer - Stony Ck.","Cardinal R. - Publican - Liverpool Arms","Carr (M.D.) Robert - Doctor - Crescent","Chancellor E. - Gardener - Ballarat Rd.","Chiltorn J. - Gardener - Talbot Flat","Clark Robert - Printer - Talbot Flat","Clarke B. - Insurance - Alliance - Talbot","Clausen Peter - Miner - Amherst Rd.","Cleary N - Dairyman - Kangaroo Flat","Cleverly F & T - Mnrs - Landsdowne St.","Clough Rich. - Mason - Argyle St.","Coates Thomas - Watchmaker - Crescent","Cohn Moritz - Brewer - Talbot Flat","Colles J. - E. Tel. Mngr. & Postmr. - Talbot","Collier George - Agent - Bell St.","Collier John - Cooper - Racecourse","Cooper Eliza - Publican - Ballarat St.","Copeland Rev. Thomas - Presb - Talbot","Corfield C.H. - Storekeeper - Eglington","Cornish William - Miner - Red Hill","Couglin P. - Miner - Taafe's Paddock","Cousen James - Carter - Crescent","Cowley J. - Miner - Commercial St.","Cox Thomas - Engineer - Talbot Flat","Crespigny P.C. - P.M.  Dep. Shrff. Prtetr. Aborig. - Talbot","Crespigny P.C. - P.M. - Daisy Hill Farm","Crespigny P.C. - Junior clerk - Crescent","Crooks J. - Leather merchant - Chapman St.","Crooks R. - Storeman - Talbot Flat","Crosby Jas. - Miner - Mia Mia Flat","Crump A.P. - Storekeeper - Crescent","Culley Benjn. - Draper - Crescent","Cullip Hy. - Gardener - Kangaroo Flat","Cunningham J. - Miner - Taafe's Paddock","Curtis Joseph - Grocer - Commercial Rd.","Cussack Pat. - Miner - Taafe's Paddock","Dallimore F.W. - None - Big Waterhole","Dalton Hannah - None - Talbot Flat","Daly John - Miner - Ballarat St.","Daly Peter - Detective - Barracks","D'Arcy Edward - Publican - Camp St.","Davey John - Farmer - Eglinton","Davis Mrs. C. - Hotelkeeper - Ballarat St.","Davis W. - Post carrier - none","Day Jas. - Farmer - Kangaroo Flat","Dentithorne J. - Mason - Mt. Grnk. Rd.","Deveril H. - Photographer - Crescent","Devlin Jno - Miner - Kangaroo Flat","Dibdin George - Tailor - Crescent","Dick Isaac - Miner - Scandinavian lead","Dobell Jno - Brickmaker - Talbot Flat","Donovan Jas. - Farmer - Kangaroo Flat","Dormaille J.N. - Storeman - Chapman St.","Douglas D. - Farmer - Kangaroo Flat","Douglas Daniel - Miner - Baptist Hill","Dowding W.S. - Accountant - Argyle St.","Dowdle John - Carter - Argyle St.","Dowling Frank - Surgeon - Crescent","Downing George - Miner - Taaffe's Paddock","Downing J. - Splitter - Kangaroo Flat","Draper William - Baker - Crescent","Dunn James - Agent - Talbot Flat","Edwards J. B. - Watchmaker - Chapman St.","Eggleao G.E. - Upholsterer - Heales St.","Elliott George - Carpenter - Crescent","Elmer John - Miner - Talbot Flat","England Charles - Butcher - Elgin St.","Eustice William - Miner - Nuggety Gully","Evans Miss S. - None - Wallinford Farm","Farnbach J. - Miner - Kangaroo Flat","Fawcey Jno. - Miner - Mt. Greenock Rd.","Ferguson D. - Miner - Botanical Rd.","Ferrers T.J. - Schoolmaster - Crescent","Filby Henry - Butcher - Ballarat St.","Finch William - Fruiterer - Crescent","Finter Peter - Miner - Ballarat Hill","Fletcher T. - Cordialmaker - Argyle St.","Flynn Annie - Schoolmrs. - Crescent","Flynn Pat. - Storekeeper - Crescent","Ford George - Watchmaker - Crescent","Ford Henry - Storekeeper - Talbot Flat","Foster J. - Schoolmaster - Landsdowne St.","Fowler James - Bank Mngr. Lond. Chartd.(acting) - Talbot","Fraser James - Hairdresser - Crescent","Frazer D. - Dairyman - Maryborough Rd.","Furber J. - Beerhouse keeper - Argyle St.","Gair John - Miner - Ballarat St.","Gale Henry - Cch.-prop. - Camp St.","Gane C.J. - Slaughterman - Barkly St.","Garner J & J - Farmers - Ballarat Rd.","Garrignes H. - Coach agent - Crescent","Gatward John - Butcher - Talbot Flat","Geach Benj. - Wheelwright - Crescent","Gearing James - Compositor - Crescent","Geddes Rich. - Carpenter - Crescent","Gibton Robert - Clerk P and C  Warden - Talbot","Gilbee William - Labourer - Talbot St.","Gill H.R. - Slaughterman - Slaughteryard H.","Gilles Donald - Splitter - Stony Ck.","Goldspring C. - Bootmaker - Argyle St.","Goodman William - Billiardsaloon keeper - none","Gordon Jos. - Bootmaker - Camp St.","Green Mat. - Storekeeper - Amherst Rd.","Grey James - Miner - Mia-mia Flat","Griffiths Thomas - Farmer - Stony Creek","Grove William - Pound Keeper - Talbot","Gullick Thomas - Stonemason - Camp St.","Haigh Geo. - Miner - Nuggety Gully","Hall C. - Mailcoach driver - Crescent","Hallen Andrew - Carpenter - Ballarat St.","Halpin Jas. - Contractor - Camp St.","Halsted H. - Gardener - Talbot Flat","Halterman T. - Dairy - Kangaroo Flat","Hamilton Edward - Schoolmaster - none","Hamming D. - Miner - Dunn's Paddock","Hammond Wiiliam - Miner - Commercial St.","Harbottle A. - Draper - Crescent","Harcombe Mrs. Francis - Laundress - none","Hardy Thos. D. - Produce dealer - none","Harris Henry - Butcher - Talbot Flat","Harrison Jno. L. - Tailor - Heales St.","Harrison T. - Compositor - Heales St.","Hawkins John - Carter - Argyle St.","Hay Robert - Miner - Rocky Flat","Hayes C & G - Miners - Ballarat Hill","Heggie William - Miner - Commercial St.","Henderson D. N. & A. - Farmers - none","Heppner H. - Bootmaker - Crescent","Hernaman Jacob & W - Gardeners - none","Hesse Henry - Storeman - Crescent","Higham Alex - Draper - Crescent","Hinks J.H. - Beershop - Ballarat St.","Hinks Peter - Carter - Talbot Flat","Hobson J & N - Brickmakers - Talbot Flat","Hogan Jer. H. - Miner - Talbot Flat","Hogg William - Miner - Kangaroo Flat","Holmes John - Blacksmith - Camp St.","Hood William - Miner - Kangaroo Flat","Hoskins Edw. - Law student - Camp St.","Hoskins H. H. - Solicitor - Camp St.","Howard John - Carter - Kangaroo Flat","Howard W. H. - Farmer - Big Waterhole","Hutchinson J. - Miner - Kangaroo Flat","Jackson J. N. - Traveller - Elgin St.","James Griffy - Miner - Kangaroo Flat","James Martha - Beershop - Argyle St.","James W. E. - Photographer - Crescent","Jenkins H.E. - Receiver & Paymaster - Talbot","John Lewis - Brewer - Talbot Flat","Johnston Chas. - Fruiterer - Crescent","Johnston S. - Liverystable - Ballarat St.","Jolly James W. - Publican - Camp St.","Jones Evan L. - Miner - Kangaroo Flat","Jones Henry - Miner - Mt. Greenock Rd.","Jones James - Carter - Crescent","Jones James - Miner - Baptist Hill","Jones William - Miner - Red Hill","Julian John - Splitter - Fells Gully","Kearney J. - Potato dealer - Camp Street","Kelly Daniel - Miner - Argyle St.","Kerwin Edward - Store keeper - Oxford St.","Kieley M. - Miner - near Taaffe's Pdk.","King Nash D. - Baker - Ballarat St.","Kirk Mrs. E. - School - Nuggety Gully","Kirk William - Coach builder - Crescent","Klein F. G. - Publican - Ballarat St.","Knight J. W. - Wheelwright - Chapman St.","Knight W. - Bookseller - Ballarat St.","Knight W. S. - Farmer - Commercial St.","Kortlang L. - Cabinetmaker - Ballarat St.","Ladd Thos. - Storekpr. - Crescent","Lambert And. - Miner - Commercial St.","Large Robert - Farmer - Elginton","Lawrence Ann - School - Talbot Flat","Le Page J. - Sheepdlr. - Kangaroo Flat","Lea George - Miner - Commercial St.","Lean John D. - Miner - Nuggety Gully","Lehman A. - Soapmaker - Crescent","Lembcke J. - Tobccnist. - Crescent","Lessman A. - Reservoir-keeper - none","Leyland William - Miner - Stony Ck.","Liddell D. B. - Bank Mngr. Vict. - Talbot","Liddell D. B. - Bank agent - Crescent","Lindupp Hy. - Miner - Nuggety Gully","Livingston D. - Tinsmith - Crescent","Lloyd B. - Beershop-kpr. - Ballarat St.","Lloyd W. H. - Chemist - Commercial St.","Lloyde F. A. - Billiard saloon - Oxford St.","Loceland T. - Lawstatnr. - Camp St.","Logan E. - Carter - Kangaroo Flat","Lowe Simon - Draper - Crescent","Macfarland J.P. - Keeper of Powder Magazine - Talbot","Mackett J. - Carpenter - Ballarat St.","Macoboy M.F. - Judge - Court of Petty Sess.","Madden Jas. - Carpenter - Crescent","M'Andrew W. - Sheepdlr - Btcl. Rd.","Manning J. - Carpenter - Ballarat St.","Mant William - Miner - Dunn's Paddock","Mara Patrick - Miner - Talbot Flat","Marrs James - Carter - nr. Crescent","Marston J. T. - Painter - Chapman St.","Masters John - Sawyer - Ballarat St.","Matthews Chas. - Miner - Talbot Flat","Matthews Henry - Farmer - Eglinton","Matthews R. - Solicitor - Camp St.","Mays John - Splitter - Kangaroo Flat","Mays Sam - Carter - Mia Mia Flat","M'Carthy N. - Publican - Crescent","McDonald A. - Carter - Botanical Road","M'Clelland G. T. - Draper - Crescent","M'Clelland Mary - Hotelkeeper - Crescent","M'Cullough J. - Gardener - Kangaroo Flat","M'Dermott D. - Miner - Commercial St.","M'Donald R. - Farmer - Eglinton","Medley John - Publican - Crescent","Melbourne A. - Miner - Commercial St.","M'Ewan William - M.D. - Crescent","M'Farlane D. - Baker - Kangaroo Flat","M'Glashan A. - Dairyman - Talbot Flat","Michelson A. K. - Miner - Talbot St.","Miller John - Butcher - Ballarat St..","Miller Jos. - Miner - Commercial St.","M'Intyre N. - Miner - Taaffe's Paddock","Mitchell Wm. - Fruiterer - Crescent","M'Kenzie G. D. - Carter - Oxford St.","M'Lean Alex. - Splitter - Stony Creek","M'Leary J. & S. - Farmers - Eglinton","M'Leod Angus - Farmer - Mt. Greenock","M'Leod Jno. - Blacksmith - Crescent","M'Leod Malcolm - Splitter - Stony Creek","M'Masters Martha - None - Ballarat St.","M'Neill John - Blacksmith - Crescent","Moloney Thos. - Publican - Crescent","Moore Thos. - Constable - Argyle St.","Moorhouse G. & F. - Miners - Baptist Hill","More James - Miner - Stony Creek","Morrow Jas. - Miner - Kangaroo Flat","Morse Robert - Stonemason - Argyle St.","Morton James - Carter - Argyle St.","Moseley B. P. - Watchmaker - Crescent","M'Parland Patrick - Police sergeant - none","M'Taggart M. - Corndealer - Oxford St.","Muller C. - Miner - Hongkong Hill","Muller H. - Dancingsaloon - Ballarat St.","Mumford E. - Storekeeper - Mia-mia Flat","Mundy J. - Carpenter - Mt. Greenock Rd.","Murphy Jas. - Blacksmith - Crescent","Nelson Hans - Farmer - Eglinton","Nichol Rev. J. - Presb - Talbot","Nicholson J. C. - Storekeeper - Craigie Rd.","Noblett G. - Gingerbeer-mr. - Ballarat St.","Nolan J.F. - Crown Pros - none","Nolan Peter - Carter - Talbot Flat","Norris Seth - Newsagent - Crescent","Nutt Wm. H. - Contractor - Argyle St.","Ockleman Peter - Carpenter - Ballarat St.","Ogier D. - Miner - Hongkong Hill","O'Loughlan M & Pat. - Dairymen - none","Oxley G. W. & J. - Tailors - Crescent","Paine John - Carpenter - Camp St.","Painter Edward - Miner - Hongkong Hill","Palframan W. - Farmer - Big Waterhole","Palmer J. H. - Dairy - Kangaroo Flat","Parker L. - Schoolmrs. - Argyle St.","Parkinson T. - Constable - Barracks","Parks Frederick - Miner - Talbot Flat","Parole G. - Charcoal burner - M'Cllm's Creek","Parry E. - Hotelkpr. - L. Ballarat St.","Parry John - Gasmaker - Argyle St.","Pasco J. & W. - Farmers - Wdside. Farm","Patterson Geo. - Storekeeper - Ballarat St.","Paul J. M. - Druggist - Crescent","Paul J.M. - Insurance - Lancas. - Talbot","Pearson R. - Producedlr. - Camp St.","Pease Henry - Miller - Crescent","Penrice Edgar W. - Miner - Avoca Rd.","Phelan W. - Timber merch. - Ballarat St.","Pierce T. - Merchant - L Ballarat St.","Pim George - Miner - Commercial St.","Ponsford W. - Butcher - Crescent","Porter Robert - Miner - Red Hill","Potter H. - Coach driver - Commercial St.","Poynter C. - Bank Mngr. Aust. - Talbot","Preston J. - Boot maker - Chapman St.","Proud George - Miner - Red Hill","Prout J. I. - Farmers - Spring M.","Purdy G. B. - Compositor - Crescent","Quinlan A. R. - Solicitor - Camp St.","Quinlan M. - Teacher - Commercial St.","Ramsay G & S - Tinsmiths - Ballarat St.","Rathjen Adlph. - Builder - Argyle St.","Rawlings J. - Engineer - rear Ballarat St.","Reed James & William - Storekeepers - none","Richards Samuel - Miner - Red Hill","Richardson John - Draper - Crescent","Richter H. E. - Dyer - Talbot Flat","Robilliard D. - Miner - Commercial Street","Robinson Henry - Agent - Crescent","Robinson James - Storeman - King St.","Rodan John - Farmer - Big Waterhole","Roffey A. C. - Law clerk - Crescent","Rogerson G. - Law clerk - Camp St.","Rose Henry G. - Builder - Talbot Flat","Ross W. - Beershop keeper - Commercial St.","Rowe Thomas - Baker - Crescent","Rowe William - Miner - Dunn's Paddock","Ruby George - Baker - Crescent","Rumbold William - Farmer - Craigie","Rutter Titus - Miner - Kangaroo Flat","Ryan Martin - Miner - The Paddocks","Samuels M. J. - Gold broker - Crescent","Sandbach W. - Miner - Commercial St.","Sandland C. - Store keeper - Kangaroo Flat","Sanphy Martin - Farmer - Stony Creek","Schieblich C. - Chandler - Argyle St.","Schmidt August - Carter - Talbot","Schultz Carl - Turner - Argyle St.","Schulze T. - Blacksmith - Ballarat St.","Scott E. F. - School master - Ballatat St.","Scott J. & T. G. - Sheepdlrs. - Kangaroo Flat","Scott R. - Produce dealer - Crescent","Shackles Edw. - Miner - Commercial St.","Sheehan Richard - Agent - Crescent","Shepherd Chas. - Miner - Nuggety Gully","Short William - Carpenter - Camp St.","Short William - Constable - Police Barracks","Simpson Mrs. Susan J. - None - Crescent","Sloan N. - Miner - Commercial St.","Small David - Grocer - Crescent","Smith E. & A. - Grocers - Commercial St.","Smith J. F. - Miner - Mt. Greenock Rd.","Smith Joseph - Mine surveyor - Crescent","Smith William - Surveyor - Talbot Flat","Smyth Andy - Miner - Ballarat St.","Spargo Peter - Engineer - Crescent","Sparling C. - Constable - Police Barracks","Steel John - Miner - Talbot Flat","Stein Alex. - Tentmaker - Crescent","Stewart Alex. - Blacksmith - Camp Street","Stewart J. S. - Coroner - Nuggety Gully","Stewart John - Bootmaker - Crescent","Sullivan J. - Mounted constable - Barracks","Tamblyn W. H. - Miner - Commercial St.","Teitz Robert - Miner - Dunn's Paddock","Thomas H. - Fruiterer - Crescent","Thomas Henry - Miner - Talbot Flat","Thomas Wm. - Engineer - Oxford St.","Thompson H. - Ironmonger - Crescent","Thorne R. - Store keeper - Talbot Flat","Tierney John - Miner - Oxford St.","Toe Elijah - Saddler - Crescent","Tolhurst R. - Butcher - M'Cullum's Creek","Tozer Edgar - Butcher - Ballarat St.","Treat Jas. - Miner - Taaffe's Paddock","Trollope W. - Farmer - Big Waterhole","Tyers William - Miner - Commercial St.","Tyrrell Edw. - Miner - Oxford St.","Tysoe John & Joseph - Miners - none","Varley N. - Com. Trvlr. - Argyle St.","Varley Walter - Butcher - Crescent","Vogler Chas. - Farmer - Kangaroo Flat","Vowles Geo. - Butcher - Ballarat St.","Waddell Sam - Miner - Splitters Creek","Wade J. B. - Bootmaker - Ballarat Street","Wade Joseph - Publican - Crescent","Wallace J. B. - Miner - Scndnvn. L.","Wallis Charles - Butcher - Elgin St.","Wallis Edward - Builder - Camp St.","Walls Robt. - Miner - Nuggety Gully","Walton Patrick - Painter - Crescent","Weatherley W. - Publican - Crescent","Webber H. - Slaughterman - Slaughteryard","Wells Harriet - None - Wallinford Farm","Wells Thomas - Carter - Commercial St.","West J. & T. - Miners - Mysterious Lead","Westwood John - Carter - Crescent","Wheelwright E. - Bottler - Ballarat St.","White Mary A. - Asst. Tchr. - Argyle St.","Whitehead John - Clerk - Argyle St.","Whitney J. - Vet. Surgeon - Ballarat St.","Whittaker Wm. - Carter - Argyle St.","Widdop Henry - Draper - Crescent","Wighton A. & R. - Farmers - Stony Creek","Wilkinson R. W. - Druggist - Crescent","Wilkinson R.W. - Insurance - European - Talbot","Williams R. V. - Miner - Kangaroo Flat","Willox Jas. L. - Schoolmaster - Talbot Flat","Wilson John A. - Gunsmith - Camp St.","Wilson Samuel - Miner - Nuggety Gully","Wilson Stewart - Storekeeper - Ballarat St.","Winch John - Butcher - Camp St.","Winch Martha - Schoolms. - Camp St.","Windebank J. - Storeman - L. Ballarat St.","Withers J. - Miner - Commercial St.","Wood W. - Civil engineer - Crescent","Woods Maria - Dressmaker - Ballarat St.","Woolcock J. - Mason - Mt. Greenock Rd.","Wrigley T. D. - Hotelkeeper - Crescent","Young C. G. - Storekeeper - Ballarat Hill","Young Leonora - Dyer - Mt. Greenock Rd."
    ];
}

/**
 * Request suggestions for the given autosuggest control. 
 * @scope protected
 * @param oAutoSuggestControl The autosuggest control to provide suggestions for.
 */
StateSuggestions.prototype.requestSuggestions = function (oAutoSuggestControl /*:AutoSuggestControl*/,
                                                          bTypeAhead /*:boolean*/) {
    var aSuggestions = [];
    var sTextboxValue = oAutoSuggestControl.textbox.value;
    
    if (sTextboxValue.length > 0){
    
        //search for matching states
        for (var i=0; i < this.states.length; i++) { 
            if (this.states[i].indexOf(sTextboxValue) == 0) {
                aSuggestions.push(this.states[i]);
            } 
        }
    }

    //provide suggestions to the control
    oAutoSuggestControl.autosuggest(aSuggestions, bTypeAhead);
};