var myCities = ['Adrian' , 'Advance' , 'Affton' , 'Agency' , 'Akron' , 'Alba' , 'Albany' , 'Aldrich' , 'Alexandria' , 'Allendale' , 'Allenton' , 'Alma' , 'Altamont' , 'Altenburg' , 'Alton' , 'Amazonia' , 'Amity' , 'Amoret' , 'Amsterdam' , 'Anabel' , 'Anderson' , 'Annada' , 'Annapolis' , 'Anniston' , 'Appleton City' , 'Arbela' , 'Arbyrd' , 'Arcadia' , 'Archie' , 'Arcola' , 'Argyle' , 'Armstrong' , 'Arnold' , 'Arrow Rock' , 'Asbury' , 'Ash Grove' , 'Ashburn' , 'Ashland' , 'Atlanta' , 'Augusta' , 'Aurora' , 'Auxvasse' , 'Ava' , 'Avilla' , 'Bakersfield' , 'Ballwin' , 'Baring' , 'Barnard' , 'Barnett' , 'Barnhart' , 'Bates City' , 'Battlefield' , 'Beaufort' , 'Belgrade' , 'Bell City' , 'Belle' , 'Belleview' , 'Bellflower' , 'Belton' , 'Bendavis' , 'Benton' , 'Benton City' , 'Berger' , 'Berkeley' , 'Bernie' , 'Bertrand' , 'Bethany' , 'Bethel' , 'Beulah' , 'Bevier' , 'Billings' , 'Birch Tree' , 'Birmingham' , 'Bismarck' , 'Bixby' , 'Black' , 'Blackburn' , 'Blackwater' , 'Blackwell' , 'Blairstown' , 'Bland' , 'Blodgett' , 'Bloomfield' , 'Bloomsdale' , 'Blue Eye' , 'Blue Springs' , 'Blythedale' , 'Bogard' , 'Bolckow' , 'Bolivar' , 'Bonne Terre' , 'Bonnots Mill' , 'Boonville' , 'Boss' , 'Bosworth' , 'Bourbon' , 'Bowling Green' , 'Bradleyville' , 'Bragg City' , 'Braggadocio' , 'Brandsville' , 'Branson' , 'Branson West' , 'Brashear' , 'Braymer' , 'Brazeau' , 'Breckenridge' , 'Breckenridge Hills' , 'Brentwood' , 'Brewster' , 'Briar' , 'Bridgeport' , 'Bridgeton' , 'Brighton' , 'Brimson' , 'Brinktown' , 'Brixey' , 'Bronaugh' , 'Brookfield' , 'Brookline Station' , 'Broseley' , 'Browning' , 'Brownwood' , 'Brumley' , 'Bruner' , 'Brunswick' , 'Bucklin' , 'Buckner' , 'Bucyrus' , 'Buffalo' , 'Bunceton' , 'Bunker' , 'Burfordville' , 'Burlington Junction' , 'Butler' , 'Butterfield' , 'Cabool' , 'Cadet' , 'Cainsville' , 'Cairo' , 'Caledonia' , 'Calhoun' , 'California' , 'Callao' , 'Camden' , 'Camden Point' , 'Camdenton' , 'Cameron' , 'Camp Clark' , 'Campbell' , 'Canalou' , 'Canton' , 'Cape Fair' , 'Cape Girardeau' , 'Caplinger Mills' , 'Cardwell' , 'Carl Junction' , 'Carrollton' , 'Carterville' , 'Carthage' , 'Caruthersville' , 'Caruthersvlle' , 'Cascade' , 'Cassville' , 'Catawissa' , 'Catron' , 'Caulfield' , 'Cedar City' , 'Cedar Hill' , 'Cedarcreek' , 'Center' , 'Centertown' , 'Centerview' , 'Centerville' , 'Centralia' , 'Chadwick' , 'Chaffee' , 'Chamois' , 'Charleston' , 'Cherryville' , 'Chesterfield' , 'Chestnutridge' , 'Chilhowee' , 'Chillicothe' , 'Chula' , 'Clarence' , 'Clark' , 'Clarkeville' , 'Clarksburg' , 'Clarksdale' , 'Clarksville' , 'Clarkton' , 'Clayton' , 'Clearmont' , 'Cleveland' , 'Clever' , 'Clifton Hill' , 'Climax Springs' , 'Clinton' , 'Clubb' , 'Clyde' , 'Coatsville' , 'Coffey' , 'Cole Camp' , 'Collins' , 'Columbia' , 'Commerce' , 'Conception' , 'Conception Junction' , 'Concordia' , 'Conran' , 'Conway' , 'Cook Station' , 'Cooter' , 'Corder' , 'Cosby' , 'Cottleville' , 'Couch' , 'Cowgill' , 'Craig' , 'Crane' , 'Crawfordville' , 'Creighton' , 'Crestwood' , 'Creve Coeur' , 'Crocker' , 'Cross Timbers' , 'Crystal City' , 'Cuba' , 'Curryville' , 'Dadeville' , 'Daisy' , 'Dalton' , 'Dardenne' , 'Dardenne Prairie' , 'Darlington' , 'Davisville' , 'Dawn' , 'De Kalb' , 'De Soto' , 'De Witt' , 'Dearborn' , 'Deepwater' , 'Deerfield' , 'Deering' , 'Defiance' , 'Delta' , 'Denver' , 'Des Arc' , 'Des Peres' , 'Desloge' , 'Desoto' , 'Devils Elbow' , 'Dexter' , 'Diamond' , 'Diggins' , 'Dittmer' , 'Dixon' , 'Doe Run' , 'Doniphan' , 'Dora' , 'Dover' , 'Dowagiac' , 'Downing' , 'Drexel' , 'Drury' , 'Dudley' , 'Duenweg' , 'Duke' , 'Dunnegan' , 'Durham' , 'Dutchtown' , 'Dutzow' , 'Eagle Rock' , 'Eagleville' , 'Earth City' , 'East Lynne' , 'East Prairie' , 'Easton' , 'Edgar Springs' , 'Edgerton' , 'Edina' , 'Edwards' , 'El Dorado Springs' , 'Eldon' , 'Eldridge' , 'Elk Creek' , 'Elkland' , 'Ellington' , 'Ellisville' , 'Ellsinore' , 'Elmer' , 'Elmo' , 'Elsberry' , 'Emden' , 'Eminence' , 'Emma' , 'Eolia' , 'Essex' , 'Ethel' , 'Etterville' , 'Eudora' , 'Eugene' , 'Eunice' , 'Eureka' , 'Everton' , 'Ewing' , 'Excello' , 'Excelsior Springs' , 'Exeter' , 'Fagus' , 'Fair Grove' , 'Fair Play' , 'Fairdealing' , 'Fairfax' , 'Fairgrove' , 'Fairport' , 'Fairview' , 'Falcon' , 'Farber' , 'Farley' , 'Farmington' , 'Farrar' , 'Faucett' , 'Fayette' , 'Fenton' , 'Ferguson' , 'Ferrelview' , 'Festus' , 'Fillmore' , 'Fisk' , 'Flemington' , 'Fletcher' , 'Flinthill' , 'Floissant' , 'Florence' , 'Florissant' , 'Foley' , 'Fordland' , 'Forest City' , 'Foristell' , 'Forsyth' , 'Fort Leonard Wood' , 'Fort Meade' , 'Fortuna' , 'Foster' , 'Frankenstein' , 'Frankford' , 'Franklin' , 'Freedom' , 'Fredericktown' , 'Freeburg' , 'Freeman' , 'Freistatt' , 'Fremont' , 'French Village' , 'Friedheim' , 'Frohna' , 'Frontenac' , 'Fulton' , 'Gainesville' , 'Galena' , 'Gallatin' , 'Galt' , 'Garden City' , 'Garrison' , 'Gasconade' , 'Gatewood' , 'Gentry' , 'Gerald' , 'Gibbs' , 'Gibson' , 'Gideon' , 'Gilliam' , 'Gilman City' , 'Gipsy' , 'Gladstone' , 'Glasgow' , 'Glenallen' , 'Glencoe' , 'Glenwood' , 'Glover' , 'Gobler' , 'Golden' , 'Golden City' , 'Goodman' , 'Goodson' , 'Gordonville' , 'Gorin' , 'Gower' , 'Graff' , 'Graham' , 'Grain Valley' , 'Granada Hills' , 'Granby' , 'Grandin' , 'Grandview' , 'Granger' , 'Grant City' , 'Grassy' , 'Gravois Mills' , 'Gray Summit' , 'Grayridge' , 'Green Castle' , 'Green City' , 'Green Ridge' , 'Greenfield' , 'Greentop' , 'Greenville' , 'Greenwood' , 'Grover' , 'Grovespring' , 'Grubville' , 'Guilford' , 'Hale' , 'Half Way' , 'Hallsville' , 'Halltown' , 'Hamilton' , 'Hannibal' , 'Hardenville' , 'Hardin' , 'Harris' , 'Harrisburg' , 'Harrisonville' , 'Hartsburg' , 'Hartshorn' , 'Hartville' , 'Harvester' , 'Harviell' , 'Harwood' , 'Hatfield' , 'Hawk Point' , 'Hayti' , 'Hazelwood' , 'Helena' , 'Hematite' , 'Henley' , 'Henrietta' , 'Herculaneum' , 'Hermann' , 'Hermitage' , 'Higbee' , 'Higginsville' , 'High Hill' , 'High Point' , 'High Ridge' , 'Highlandville' , 'Hillsboro' , 'Hiram' , 'Holcomb' , 'Holden' , 'Holland' , 'Holliday' , 'Hollister' , 'Holt' , 'Holts Summit' , 'Hopkins' , 'Hornersville' , 'Horton' , 'House Springs' , 'Houston' , 'Houstonia' , 'Huggins' , 'Hughesville' , 'Humansville' , 'Hume' , 'Humphreys' , 'Hunnewell' , 'Huntsville' , 'Hurdland' , 'Hurley' , 'Iberia' , 'Imperial' , 'Independence' , 'Ionia' , 'Irondale' , 'Ironton' , 'Isabella' , 'Jackson' , 'Jacksonville' , 'Jadwin' , 'Jameson' , 'Jamesport' , 'Jamestown' , 'Jane' , 'Jasper' , 'Jefferson City' , 'Jennings' , 'Jerico Springs' , 'Jerome' , 'Jonesburg' , 'Joplin' , 'Kahoka' , 'Kaiser' , 'Kansas City' , 'Kearney' , 'Kelso' , 'Kennett' , 'Kewanee' , 'Keytesville' , 'Kidder' , 'Kimberling City' , 'Kimmswick' , 'King City' , 'Kingdom City' , 'Kingston' , 'Kingsville' , 'Kirbyville' , 'Kirksville' , 'Kirkwood' , 'Kissee Mills' , 'Knob Lick' , 'Knob Noster' , 'Knox City' , 'Koeltztown' , 'Koshkonong' , 'La Belle' , 'La Grange' , 'La Monte' , 'La Plata' , 'La Russell' , 'Labadie' , 'Laclede' , 'Laddonia' , 'Lake Annette' , 'Lake Lotawana' , 'Lake Ozark' , 'Lake Spring' , 'Lake St Louis' , 'Lake Tapawingo' , 'Lake Winnebago' , 'Lamar' , 'Lampe' , 'Lanagan' , 'Lancaster' , 'Laquey' , 'Laredo' , 'Latham' , 'Lathrop' , 'Laurie' , 'Lawson' , 'Leadwood' , 'Leasburg' , 'Lebanon' , 'Lecoma' , 'Lees Summit' , 'Leeton' , 'Lemay' , 'Lenox' , 'Lentner' , 'Leonard' , 'Leopold' , 'Leslie' , 'Lesterville' , 'Levasy' , 'Lewistown' , 'Lexington' , 'Liberal' , 'Liberty' , 'Licking' , 'Liguori' , 'Lilbourn' , 'Lincoln' , 'Linn' , 'Linn Creek' , 'Linneus' , 'Livonia' , 'Lock Springs' , 'Lockwood' , 'Lodi' , 'Lohman' , 'Lone Jack' , 'Lonedell' , 'Long Lane' , 'Loose Creek' , 'Louisburg' , 'Louisiana' , 'Lowndes' , 'Lowry City' , 'Lucerne' , 'Ludlow' , 'Luebbering' , 'Luray' , 'Lynchburg' , 'Macks Creek' , 'Macomb' , 'Macon' , 'Madison' , 'Maitland' , 'Malden' , 'Malta Bend' , 'Manchester' , 'Manhattan Beach' , 'Mansfield' , 'Mapaville' , 'Maplewood' , 'Marble Hill' , 'Marceline' , 'Marionville' , 'Marquand' , 'Marshall' , 'Marshfield' , 'Marston' , 'Marthasville' , 'Martinsburg' , 'Martinsville' , 'Maryland Heights' , 'Maryville' , 'Matthews' , 'Maysville' , 'Mayview' , 'Maywood' , 'Mc Bride' , 'Mc Clurg' , 'Mc Fall' , 'Mc Gee' , 'Mc Girk' , 'Meadville' , 'Memphis' , 'Mendon' , 'Mercer' , 'Meta' , 'Metz' , 'Mexico' , 'Miami' , 'Middle Brook' , 'Middletown' , 'Milan' , 'Milford' , 'Mill Spring' , 'Miller' , 'Millersville' , 'Milo' , 'Mindenmines' , 'Mineral Point' , 'Missouri City' , 'Moberly' , 'Mokane' , 'Monett' , 'Monroe City' , 'Montgomery City' , 'Montgomery Cy' , 'Monticello' , 'Montier' , 'Montreal' , 'Montrose' , 'Moody' , 'Mooresville' , 'Mora' , 'Morehouse' , 'Morley' , 'Morrison' , 'Morrisville' , 'Morse Mill' , 'Mosby' , 'Moscow Mills' , 'Mound City' , 'Moundville' , 'Mount Sterling' , 'Mount Vernon' , 'Mountain Grove' , 'Mountain View' , 'Myrtle' , 'Napoleon' , 'Naylor' , 'Neck City' , 'Neelyville' , 'Nelson' , 'Neosho' , 'Nevada' , 'New Bloomfield' , 'New Bloomfld' , 'New Boston' , 'New Cambria' , 'New Florence' , 'New Franklin' , 'New Hampton' , 'New Haven' , 'New London' , 'New Madrid' , 'New Melle' , 'New Offenburg' , 'New Wells' , 'New York' , 'Newark' , 'Newburg' , 'Newtonia' , 'Newtown' , 'Niangua' , 'Nixa' , 'Noble' , 'Noel' , 'Norborne' , 'North Kansas City' , 'Norwood' , 'Novelty' , 'Novinger' , 'O Fallon' , 'Oak Grove' , 'Oak Park' , 'Oak Ridge' , 'Oakville' , 'Odessa' , 'Old Appleton' , 'Old Monroe' , 'Oldfield' , 'Olean' , 'Olivette' , 'Olney' , 'Oran' , 'Orchard Farm' , 'Oregon' , 'Oronogo' , 'Orrick' , 'Osage Beach' , 'Osborn' , 'Osceola' , 'Otterville' , 'Overland' , 'Owensville' , 'Oxly' , 'Ozark' , 'Pacific' , 'Pacoima' , 'Painton' , 'Palmyra' , 'Paradise' , 'Paris' , 'Park Hills' , 'Parkville' , 'Parma' , 'Parnell' , 'Pascola' , 'Passaic' , 'Patterson' , 'Patton' , 'Pattonsburg' , 'Peace Valley' , 'Peculiar' , 'Perkins' , 'Perry' , 'Perryville' , 'Pevely' , 'Philadelphia' , 'Phillipsburg' , 'Pickering' , 'Piedmont' , 'Pierce City' , 'Pilot Grove' , 'Pilot Knob' , 'Pineville' , 'Pittsburg' , 'Plato' , 'Platte City' , 'Platte Woods' , 'Plattsburg' , 'Pleasant Hill' , 'Pleasant Hope' , 'Pleasant Valley' , 'Plevna' , 'Pocahontas' , 'Point Lookout' , 'Polk' , 'Pollock' , 'Polo' , 'Pomona' , 'Ponce De Leon' , 'Pontiac' , 'Poplar Bluff' , 'Portage Des Sioux' , 'Portageville' , 'Portland' , 'Potosi' , 'Pottersville' , 'Powell' , 'Powersite' , 'Powersville' , 'Prairie Home' , 'Preston' , 'Princeton' , 'Protem' , 'Purcell' , 'Purdin' , 'Purdy' , 'Puxico' , 'Queen City' , 'Quincy' , 'Quitman' , 'Qulin' , 'Racine' , 'Randolph' , 'Ravenwood' , 'Raymondville' , 'Raymore' , 'Raytown' , 'Rayville' , 'Rea' , 'Redford' , 'Reeds' , 'Reeds Spring' , 'Renick' , 'Republic' , 'Revere' , 'Reynolds' , 'Rhineland' , 'Rich Fountain' , 'Rich Hill' , 'Richards' , 'Richland' , 'Richmond' , 'Richmond Heights' , 'Richwoods' , 'Ridgedale' , 'Ridgeway' , 'Risco' , 'Riverside' , 'Rives' , 'Roach' , 'Robertsville' , 'Roby' , 'Rocheport' , 'Rock Port' , 'Rockaway Beach' , 'Rockbridge' , 'Rockville' , 'Rocky Comfort' , 'Rocky Mount' , 'Rogersville' , 'Rolla' , 'Rombauer' , 'Roscoe' , 'Rosebud' , 'Rosendale' , 'Rothville' , 'Rueter' , 'Rush Hill' , 'Rushville' , 'Russellville' , 'Rutledge' , 'Saginaw' , 'Salem' , 'Salisbury' , 'San Juan Capistrano' , 'Santa Fe' , 'Sappington' , 'Sarcoxie' , 'Savannah' , 'Saverton' , 'Schell City' , 'Scott City' , 'Sedalia' , 'Sedgewickville' , 'Seligman' , 'Senath' , 'Seneca' , 'Seymour' , 'Shawnee Mission' , 'Shelbina' , 'Shelbyville' , 'Sheldon' , 'Shell Knob' , 'Sheridan' , 'Sherman Oaks' , 'Shook' , 'Sibley' , 'Sikeston' , 'Silex' , 'Silva' , 'Skidmore' , 'Slater' , 'Slem' , 'Smithton' , 'Smithville' , 'Solo' , 'South Fork' , 'South Greenfield' , 'South West City' , 'Sparta' , 'Spickard' , 'Spokane' , 'Spring Field' , 'Springfield' , 'Squires' , 'St Ann' , 'St Charles' , 'St Clair' , 'St James' , 'St Joseph' , 'St Peters' , 'St Robert' , 'St Roberts' , 'St Thomas' , 'St Albans' , 'St Ann' , 'St Catharine' , 'St Charles' , 'St Clair' , 'St Elizabeth' , 'St James' , 'St Joseph' , 'St Louis' , 'St Mary' , 'St Patrick' , 'St Paul' , 'St Peters' , 'St Robert' , 'St Thomas' , 'Ste Genevieve' , 'Stanberry' , 'Stanton' , 'Stark City' , 'Steedman' , 'Steele' , 'Steelville' , 'Stella' , 'Stet' , 'Stewartsville' , 'Stockton' , 'Stotts City' , 'Stoutland' , 'Stoutsville' , 'Stover' , 'Strafford' , 'Strasburg' , 'Street Robert' , 'Sturdivant' , 'Sturgeon' , 'Success' , 'Sullivan' , 'Summersville' , 'Sumner' , 'Sunrise Beach' , 'Sunset Hills' , 'Swedeborg' , 'Sweet Springs' , 'Syracuse' , 'Tallapoosa' , 'Taneyville' , 'Taos' , 'Tarkio' , 'Taylor' , 'Tea' , 'Tebbetts' , 'Tecumseh' , 'Thayer' , 'Theodosia' , 'Thompson' , 'Thornfield' , 'Tiff' , 'Tiff City' , 'Tina' , 'Tipton' , 'Treloar' , 'Trenton' , 'Trimble' , 'Triplett' , 'Troy' , 'Truxton' , 'Tunas' , 'Turners' , 'Turney' , 'Tuscumbia' , 'Udall' , 'Ulman' , 'Union' , 'Union Star' , 'Uniontown' , 'Unionville' , 'University City' , 'Urbana' , 'Urich' , 'Utica' , 'Valles Mines' , 'Valley Park' , 'Van Buren' , 'Vandalia' , 'Vanduser' , 'Vanzant' , 'Verona' , 'Versailles' , 'Viburnum' , 'Vichy' , 'Vienna' , 'Villa Ridge' , 'Vinita Park' , 'Vista' , 'Vulcan' , 'Waco' , 'Wakenda' , 'Waldron' , 'Walker' , 'Walnut Grove' , 'Walnut Shade' , 'Wappapello' , 'Wardell' , 'Wardsville' , 'Warrensburg' , 'Warrenton' , 'Warsaw' , 'Washburn' , 'Washington' , 'Wasola' , 'Watson' , 'Waverly' , 'Wayland' , 'Waynesville' , 'Weatherby' , 'Weaubleau' , 'Webb City' , 'Webster Groves' , 'Wellington' , 'Wellsville' , 'Wentworth' , 'Wentzville' , 'Wesco' , 'West Alton' , 'West Plains' , 'Westboro' , 'Weston' , 'Westphalia' , 'Wheatland' , 'Wheaton' , 'Wheeling' , 'Whiteman Afb' , 'Whiteman Air Force Base' , 'Whiteoak' , 'Whiteside' , 'Whitewater' , 'Wildwood' , 'Willard' , 'Williamsburg' , 'Williamstown' , 'Williamsville' , 'Willow Springs' , 'Windsor' , 'Windyville' , 'Winfield' , 'Winigan' , 'Winona' , 'Winston' , 'Wolf Island' , 'Wood Heights' , 'Woodson Terrace' , 'Wooldridge' , 'Worth' , 'Worthington' , 'Wright City' , 'Wyaconda' , 'Wyatt' , 'Yukon' , 'Zalma' , 'Zanoni'];


function cityfill(lttrs, onoff) {
var id = "fillbox";
if (onoff == ""){onoff="0";}
if(document.getElementById(id).style.display == "block") { document.getElementById(id).style.display = "none"; }

			if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP"; 

			if (document.all) type="IE"; 

			if (document.layers) type="NN";

			if (!document.all && document.getElementById) type="MO"; 


var str="";


for ( var i in myCities )
{
lttrs =  lttrs.replace(/[^a-zA-Z 0-9]+/g,'');
var macthto="^"+lttrs;
var citymatch = new RegExp(macthto, "i");


if( myCities[i].match(citymatch)) {
var lowercsed=myCities[i].toLowerCase();
lowercsed=lowercsed.replace(/\s/g,'');
str = str + " <a href=http://" + lowercsed + ".missouri.me>" + myCities[i] + ", Mo</a>";
}

} 


if(document.getElementById(id).style.display == "none") { document.getElementById(id).style.display = "block"; }
		  if (type=="IE") {
			document.all[id].innerHTML = str;
		  }
		  if (type=="NN") {
			document.layers[id].document.open();
			document.layers[id].document.write(str);
			document.layers[id].document.close();
		  }
		  if (type=="MO" || type=="OP") {
			document.getElementById(id).innerHTML = str;
		  }

if (lttrs.length == 0 || str == "") {ReverseDisplay(id);}

}
function ReverseDisplay(id) {
if(document.getElementById(id).style.display == "none") { document.getElementById(id).style.display = "block"; }
else { document.getElementById(id).style.display = "none"; }
}


function HideContent(d) {
document.getElementById(d).style.display = "none";
}


function listCities(lttr) {
if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP"; 

if (document.all) type="IE"; 

if (document.layers) type="NN";

if (!document.all && document.getElementById) type="MO"; 
var str="";
var str2="";
var id = "citylist";
emptyDiv(id);
for ( var i in myCities )
{
var startw=new Array();
startw = myCities[i].split("");

if (startw[0] === lttr){
var lowercsed=myCities[i].replace(/\s/g,''); 
lowercsed=lowercsed.toLowerCase();


str = str + " <a href=http://" + lowercsed + ".missouri.me>" + myCities[i] + ", Mo</a>";


} 
}

  if (type=="IE") {
    document.all[id].innerHTML = str;
  }
  if (type=="NN") {
    document.layers[id].document.open();
    document.layers[id].document.write(str);
    document.layers[id].document.close();
  }
  if (type=="MO" || type=="OP") {
    document.getElementById(id).innerHTML = str;
  }

}




function emptyDiv() {
if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP"; 

if (document.all) type="IE"; 

if (document.layers) type="NN";

if (!document.all && document.getElementById) type="MO"; 
var id = "citylist";
var str="";
  if (type=="IE") {
    document.all[id].innerHTML = str;
  }
  if (type=="NN") {
    document.layers[id].document.open();
    document.layers[id].document.write(str);
    document.layers[id].document.close();
  }
  if (type=="MO" || type=="OP") {
    document.getElementById(id).innerHTML = str;
  }
}





google.load('search', '1', {language : 'en'});
      // Call this function when the page has been loaded
function search(q) {
  emptyDiv();
  
    var customSearchControl = new google.search.CustomSearchControl('009392974949082296334:gruzitxsafg');
	var options = new google.search.SearcherOptions();

		options.setExpandMode(google.search.CustomSearchControl.EXPAND_MODE_OPEN);

        customSearchControl.addSearcher(new google.search.WebSearch(), options);
        
		customSearchControl.setResultSetSize(GSearch.FILTERED_CSE_RESULTSET);

        var options = new google.search.DrawOptions();
        options.setSearchFormRoot('cse');
    customSearchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
            customSearchControl.draw('cse', options);
        customSearchControl.execute(q);

}


      function initialize() {
	  

        var searchControl = new google.search.SearchControl();
        searchControl.addSearcher(new google.search.WebSearch());
        
		searchControl.setResultSetSize(GSearch.FILTERED_CSE_RESULTSET);

        var options = new google.search.DrawOptions();
        options.setSearchFormRoot(document.getElementById("searchResults"));
        searchControl.draw(document.getElementById("searchResults"), options);
        




      }
     google.setOnLoadCallback(initialize);