//--script to set up DC Area Events Calendar
//----Array of month names for display on Calendar
var months = new Array(13);
  months[0] = "dummy";
  months[1] = "January";
  months[2] = "February";
  months[3] = "March";
  months[4] = "April";
  months[5] = "May";
  months[6] = "June";
  months[7] = "July";
  months[8] = "August";
  months[9] = "September";
  months[10] = "October";
  months[11] = "November";
  months[12] = "December";
//----Array of venue names/urls Used currently by function fevent4
var venue = new Array();
  venue[46] = "<a href='http://www.kramers.com'>Afterwords Cafe</a> - Washington, DC";
  venue[56] = "<A HREF='http://www.mcleancenter.org'>Alden Theater</a> - McLean, VA";
  venue[43] = "Almost Heaven Farm, Kearneysville, WV";
  venue[87] = "<A HREF='http://www.austingrill.com'>Austin Grill</A>"; 
  venue[51] = "<a href='http://www.avalon-resort.com'>Avalon Resort</a>, Paw Paw, WV";
  venue[0]  = "<a href='http://www.charm.net/~dirtylin/baldwins.html'>Baldwin's Station</a> - Sykesville, MD";
  venue[34] = "<a href='http://www.communitycoffeehouse.org'>Barcroft Community Coffee House</a> - Arlington, VA";
  venue[6]  = "Barnes and Noble - Fairfax, VA - 703-278-0300";
  venue[28] = "<a href='http://www.wolf-trap.org'>The Barns of Wolf Trap</a> - Vienna, VA";
  venue[99] = "<A HREF='http://www.beansinthebelfry.com'>Beans in the Belfry</a> - Brunswick, MD"; 
  venue[85] = "<a href='http://mysite.verizon.net/gdberman/geoffandjuliahouseconcerts2/index.html'>Geoff and Julia House Concerts</a> - Silver Spring, MD"; 
  venue[1]  = "<a href='bethesda.htm'>Bethesda House Concert Series</a>";
  venue[4]  = "<a href='http://www.birchmere.com'>The Birchmere</a> - Alexandria, VA";
  venue[47] = "<a href='http://www.blackrockcenter.org'>BlackRock Center for the Arts</a> - Germantown, MD";
  venue[49] = "<a href='http://www.bluemont.org'>Bluemont Concert Series</a>";
  venue[101] = "Blue Moon Cafe - Shepherdstown, WV - 304-876-1920"; 
 venue[18] = "<a href='http://www.charm.net/~dirtylin/stjohns.html'>The Cellar Stage at Faith Community United Methodist Church</a> - Baltimore, MD";
  venue[65] = "<a href='http://www.claricesmithcenter.umd.edu/'>Clarice Smith Performing Arts Center at Maryland</a> - College Park, MD";
  venue[61] = "Shepherdstown, WV";
  venue[100] = "<A HREF='http://www.collegeperk.org'>College Perk Coffeehouse</A> - College Park, MD"; 
  venue[77] = "<a href=' http://www.commongroundsarlington.com/'>Common Grounds Coffee & Tea House</a> - Arlington, VA"; 
  venue[33] = "<a href='http://www.dawsonconcerts.com'>Dawsonconcerts</a> - Silver Spring, MD";
  venue[97] = "<a href='http://www.dogfish.com'>Dogfish Head Alehouse</a> - Gaithersburg, MD"; 
  venue[53] = "<a href='http://www.irishusa.com/flanagans/'>Flanagan's Irish Pub</a> - Bethesda, MD";
  venue[60] = "<A HREF='http://www.focusmusic.org'>Focus</a>";
  venue[52] = "<A HREF='http://restonherndonfolkclub.com'>Folk Club of Reston-Herndon</A> - Herndon, VA";
  venue[32] = "<a href='http://www.geocities.com/folkintheattic/'>Folk in the Attic House Concerts</a> - Washington, DC";
  venue[7]  = "<a href='http://www.fsgw.org'>Folklore Society of Greater Washington</a>";
  venue[64] = "<a href='http://www.fsgw.org/333/'>Folklore Society of Greater Washington 333 Coffeehouse</a> - Annapolis, MD";
  venue[68] = "<a href='http://www.folkngreatmusic.org'>Folk 'n Great Music House Concerts</a> - Rockville, MD";
  venue[82] = "Frederick Coffee Company - Frederick, MD <br>- 301-698-0039"; 
  venue[8]  = "<a href='http://www.gordoncenter.com'>The Gordon Center for the Performing Arts</a> - Owings Mills, MD";
  venue[76] = "<a href='http://www.grogandtankard.com/'>Grog and Tankard</a> - Washington, DC"; 
  venue[48] = "<a href='http://www.houseinthewoods.com'>House-in-the-Woods House Concerts</a> - Frederick, MD";
  venue[2]  = "<a href='http://www.hmtrad.com/imt/freeconc.html'>House of Musical Traditions</a> - Takoma Park, MD";
  venue[9]  = "<a href='http://www.imtfolk.org'>Institute of Musical Traditions</a>";
  venue[67] = "<a href='http://www.iotaclubandcafe.com'>Iota Club and Cafe</a> - Arlington, VA";
  venue[57] = "<A HREF='http://www.irelandsfourprovinces.com'>Ireland's Four Green Fields(4Ps)</a> - Washington, DC";
  venue[58] = "<A HREF='http://www.4psfallschurch.com'>Ireland's Four Provinces</a> - Falls Church, VA";
  venue[36] = "<a href='http://www.jamminjava.com'>Jammin' Java</a> - Vienna, VA";
  venue[10] = "<a href='http://kennedy-center.org/millennium'>Kennedy Center Millennium Stage</a> - Washington, DC";
  venue[66] = "<a href='http://www.annapolisinns.com/entertainment.html'>King of France Tavern</a> - Annapolis, MD";
  venue[35] = "<a href='http://www.mediumrarecafe.com'>Medium Rare Cafe</a>";
  venue[70] = "<A HREF='http://www.mofolk.com'>MoFolk Concerts</A> - Kearneysville, WV";
  venue[12] = "<a href='http://www.mooremusic.org'>Moore Music (in the House) Concert Series</a> - Rockville, MD";
  venue[69] = "<a href='http://mrsolearys.net  '>Mrs. O'Leary's Irish Pub</a> - Gaithersburg, MD";
  venue[59] = "<A HREF='http://www.newdealcafe.com'>New Deal Cafe</a> - Greenbelt, MD";
  venue[44] = "<A HREF='http://www.obrienspitbarbecue.com'>O'Brien's</a> - Rockville, MD";
  venue[13] = "<a href='http://www.oldbrogue.com'>Old Brogue</a> - Great Falls, VA";
  venue[55] = "<A HREF='mailto:ourhouseconcert@aol.com'>Our House Concerts</a> - McLean, VA - 703-917-0587";
  venue[14] = "<a href='http://www.columbiaskiclub.org/phc/phc.aspx'>Panzer House Concerts</a> - Columbia, MD";
  venue[73] = "<a href='http://www.pattroysirishpub.com'>Pat Troy's Irish Restaurant &amp; Pub</a> - Alexandria, VA";
  venue[71] = "<A HREF='http://www.potomaccelticfest.org'>Potomac Celtic Festival</A> - Leesburg, VA";
  venue[81] = "<a href='http://www.pottershousebooks.org'>The Potters House</A> - Washington, DC"; 
  venue[72] = "<A HREF='http://www.theprism.org'>Prism Coffeehouse</a> - Charlottsville, VA";
  venue[86] = "Ramblewood Resort - Darlington, MD"; 
  venue[17] = "<a href='http://ramsheadtavern.com'>Ram's Head Tavern</a> - Annapolis, MD";
  venue[62] = "<a href='http://www.riverhouseconcerts.com'>River House Concerts</a> - Shepherdstown, WV - 304-876-2690 or <A HREF='mailto:river_house@earthlinknet'>river_house@earthlink.net</a>";
  venue[83] = "<a href='http://www.gbgm-umc.org/rockville-umc/coffeehouse.html'>Rockville Coffeehouse</a> - Rockville, MD"; 
  venue[38] = "<a href='http://www.shenandoahacoustics.com'>The Shenandoah Coffeehouse Series</a>";
  venue[84] = "<a href='http://www.operahouselive.com'>Shepherdstown Opera House</a> - Shepherdstown, WV";
  venue[98] = "<a href='http://www.sleepyhollowfolk.com'>Sleepy Hollow Folk Club</a> - Falls Church, VA";
  venue[20] = "<a href='http://www.si.edu/tsa/rap/'>Smithsonian Resident Associates Program</a>";
  venue[45] = "<a href='http://www.sohotnc.com'>Soho Tea & Coffee</a> - Washington, DC";
  venue[88] = "<A HREF='http://www.stellas.com'>Stella's</A> - Alexandria, VA"; 
  venue[41] = "<a href='http://www.strathmore.org'>Strathmore Hall Arts Center</a> - North Betheda, MD";
  venue[11] = "Starbucks";
  venue[15] = "<a href='http://www.starlandcafe.com'>Starland Cafe</a> - Washington, DC";   //--Starland cafe
  venue[74] = "<a href='http://www.stelmoscoffeepub.com/'>St. Elmo's Coffee Pub</a> - Alexandria, VA"; 
  venue[63] = "<A HREF='http://www.scuu.org/coffeehouse'>Sugarloaf Coffeehouse</a>";
  venue[79] = "<a href='http://www.smaf.info'>Susquehanna Music & Arts Festival</a> - Darlington, MD";
  venue[90] = "<a href='http://www.ionamusic.com/houseconcerts.htm'>Swift Run House Concerts</a> - Fairfax Station, VA"; 
  venue[80] = "<a href='http://www.tpff.org'>Takoma Park Folk Festival</a> - Takoma Park, MD";
  venue[50] = "Takoma Park Middle School, Takoma Park, MD";
  venue[23] = "<a href='http://www.focusmusic.org'>Focus Presents at Vic's Music Corner</a> - Branded 72 (formerly O'Brien's), Rockville, MD";
  venue[78] = "<a href=' http://www.warehousetheater.com/music.php#e98'>Warehouse Cafe</a> - Washington, DC"; 
  venue[5]  = "<a href=' http://ethicalsociety.org'>Washington Ethical Society</a> - Washington, DC - 202-882-6650";
  venue[75] = "<a href='http://www.wpas.org'>Washington Performing Arts Society</a>"; 
  venue[54] = "<a href='http://www.weinbergcenter.org'>Weinberg Center for the Performing Arts</a> - Frederick, MD";
  venue[89] = "<a href='http://www.westside-cafe.com'>Westside Cafe</a> - Frederick, MD"; 
  venue[3]  = "<a href='http://www.fsgw.org/where/'>Where?House Concerts</a> - Silver Spring, MD";
  venue[26] = "<a href='http://www.fsgw.org/where/'>Where? House Concerts</a>";
  venue[27] = "<a href='http://www.wolf-trap.org'>Wolf Trap Filene Center</a> - Vienna, VA";
  venue[91] = "<a href='http://fairfaxcounty.gov/parks/performances/'>Nottoway Park</a> - Vienna, VA"; 
  venue[92] = "<a href='http://fairfaxcounty.gov/parks/performances/'>Mason District Park</a> - Annandale, VA"; 
  venue[93] = "<a href='http://fairfaxcounty.gov/parks/performances/'>Lee District  Park</a> - Franconia, VA"; 
  venue[94] = "<a href='http://fairfaxcounty.gov/parks/performances/'>Kingstowne Town Center</a> - Alexandria, VA"; 
  venue[95] = "<a href='http://fairfaxcounty.gov/parks/performances/'>Royal Lake Park</a> - Fairfax, VA"; 
  venue[96] = "<a href='http://fairfaxcounty.gov/parks/performances/'>Riverbend Park</a> - Great Falls, VA"; 
  venue[102] = "<a href='http://fairfaxcounty.gov/parks/performances/'>Lake Accotink Park</a> - Springfield, VA"; 
  venue[103] = "<a href='http://fairfaxcounty.gov/parks/performances/'>Ossian Hall Park</a> - Annandale, VA"; 
  venue[104] = "<a href='http://www.cameronperks.com'>Cameron Perks Coffeehouse</a> - Alexandria, VA"; //=========== LAST
Afterwords=46
Alden=56
AustinSS=87
Avalon=51  //--resort
AvalonTheater=122
Baldwins=0
Bangkok=118
Barcroft=34
Barns=28
Beans=99
Berwyn=105
Birch=4
Blackrock=47
Bluemoon=101
Blumont=49
Brookside=110
Cameron=104
CarrollCafe=127
Cellar=18
Csmith=65
CollegePerk=100
CommonGrdArl=77
CoopersHouse=126
AlmostHeaven=43
DAR=123
Dawson=33
Dogfish=97
ECLawrence=115
Focus=60
Attic=32
FSGW=7
FSGW333=64
Kagan=68
Geoff=85
Gordon=8
GristMill=117
Grog=76
Hayfield=94
Woods=48
HMT=2
IMT=9
Iota=67
I4GF=57
I4P=58
Java=36
KCMS=10

Accotink=102
LakeFairfax=116
Leedistrict=93
Masondistrict=92
McLeanCentral=114
Medrare=35
Moore=12
Mosaic = 129
MusicMatters=121
Newdeal=59
Nottoway=91
Oldbrouge=13
OneWorld=113
Ossian=103
Ourhouse=55
Overlook=106
Panzer=14
PierSix=128
Troys=73
Potter=81
Ram=17
RedRocks=119
Restonherndon=52
Riverbend=96
Riverhouse=62
Rockcoffee=83
Royallake=95
Elmo=74
SAW=111
Shenandoah=38
Sleepyhollow=98
SOho=45
Stacys=109
Strathmore=41
Stella=88
StoneRoom=130
Sugarloaf=63
Sunspot=124
SMAF=86
Swiftrun=90
Vics=23
Vics09=125
WES=5
Weinberg=54
Westside=89
Filene=27
//new array for venues
//--col1 X=external, L=local, T=text
//--col2 Y=display, N=do not display, S=display only from may through august

var venue1 = new Array();
  for (i=0;i<150;i++) {
    venue1[i]=""
  }
  venue1[46]  = "XYafterwordswww.kramers.com'>Afterwords Cafe</a> - Washington, DC";
  venue1[56]  = "XYaldentheatwww.mcleancenter.org'>Alden Theater</a> - McLean, VA";
  venue1[43]  = "TNalmostheavAlmost Heaven Farm, Kearneysville, WV";
  venue1[120] = "XNannapolismwww.amaritime.org'>Annapolis Maritime Museum</a> - Annapolis, MD"; 
  venue1[87]  = "XNaustingrilwww.austingrill.com'>Austin Grill</A>"; 
  venue1[51]  = "XNavalonresowww.avalon-resort.com'>Avalon Resort</a>, Paw Paw, WV";
  venue1[122] = "XYavalontheawww.avalontheatre.com '>Avalon Theater</a> - Easton, MD";  
  venue1[0]   = "XYbaldwinsstwww.uptownconcerts.com'>Baldwin's Station</a> - Sykesville, MD";
  venue1[118] = "XYbangkokbluwww.bangkokblues.com'>Bangkok Blues</a> - Falls Church, VA"; 
  venue1[34]  = "TNbarcroftcoBarcroft Community Coffee House</a> - Arlington, VA";
  venue1[6]   = "TNbarnesandnBarnes and Noble - Fairfax, VA - 703-278-0300";
  venue1[28]  = "XYbarnsofwolwww.wolf-trap.org'>The Barns of Wolf Trap</a> - Vienna, VA";
  venue1[99]  = "XYbeansinthewww.beansinthebelfry.com'>Beans in the Belfry</a> - Brunswick, MD"; 
  venue1[105] = "XNberwyncafewww.berwyncafe.net'>Berwyn Cafe</a> - College Park, MD"; 

  venue1[1]   = "TNbethesdahoBethesda House Concert Series";
  venue1[4]   = "XYbirchmere www.birchmere.com'>The Birchmere</a> - Alexandria, VA";
  venue1[47]  = "XYblackrockcwww.blackrockcenter.org'>BlackRock Center for the Arts</a> - Germantown, MD";
  venue1[49]  = "XSbluemontcowww.bluemont.org'>Bluemont Concert Series</a>";
  venue1[101] = "XNbluemooncawww.bluemoonshepherdstown.com/'>Blue Moon Cafe</a> - Shepherdstown, WV";
  venue1[112] = "XNbrewersallwww.brewers-alley.com'>Brewer's Alley</a> - Frederick, MD";
  venue1[104] = "XNcameronperwww.cameronperks.com'>Cameron Perks Coffeehouse</a> - Alexandria, VA"; 
  venue1[127] = "XYcarrollcafwww.carrollcafe.org'>Carroll Cafe</a> - Seekers Church, Takoma Park, MD";
  venue1[18]  = "XYcellarstagwww.uptownconcerts.com'>The Cellar Stage at Faith Community United Methodist Church</a> - Baltimore, MD";
  venue1[65]  = "XNclaricesmiwww.claricesmithcenter.umd.edu/'>Clarice Smith Performing Arts Center at Maryland</a> - College Park, MD";
  venue1[61]  = "TNshepherdstShepherdstown, WV";
  venue1[100] = "XNcollegeperwww.collegeperk.org/'>College Perk Coffeehouse</A> - College Park, MD"; 
  venue1[77]  = "TNcommongrdaCommon Grounds Coffee & Tea House - Arlington, VA"; 
  venue1[126] = "XYcoopershoucoopershouse1790.org'>Concerts at the Historic Cooper's House at Oakland Mills</a> - Columbia, MD"; 
  venue1[123] = "XNdarconstitwww.dar.org/conthall/'>DAR Constitution Hall</a> - Washington, DC"; 
  venue1[33]  = "XYdawsonconcwww.dawsonconcerts.com'>Dawsonconcerts</a> - Silver Spring, MD";
  venue1[97]  = "XNdogfishheawww.dogfish.com'>Dogfish Head Alehouse</a> - Gaithersburg, MD"; 
  venue1[53]  = "TNflanagansiFlanagan's Irish Pub - Bethesda, MD";
  venue1[60]  = "XYfocus     www.focusmusic.org'>Focus</a>";
  venue1[52]  = "XYfolkclubrerestonherndonfolkclub.com'>Folk Club of Reston-Herndon</A> - Herndon, VA";
  venue1[32]  = "XNfolkintheawww.geocities.com/folkintheattic/'>Folk in the Attic House Concerts</a> - Washington, DC";
  venue1[7]   = "XYfolkloresowww.fsgw.org'>Folklore Society of Greater Washington</a>";
  venue1[64]  = "XYfolklor333www.fsgw.org/333/'>Folklore Society of Greater Washington 333 Coffeehouse</a> - Annapolis, MD";
  venue1[68]  = "XYfolkingreawww.folkngreatmusic.org'>Folk 'n Great Music House Concerts</a> - Rockville, MD";
  venue1[82]  = "TNfrederickcFrederick Coffee Company - Frederick, MD <br>- 301-698-0039";
  venue1[85]  = "XYgoef&juliausers.rcn.com/geoffrey.berman/index.html'>Geoff and Julia House Concerts</a> - Silver Spring, MD";  
  venue1[8]   = "XYgordoncentwww.gordoncenter.com'>The Gordon Center for the Performing Arts</a> - Owings Mills, MD";
  venue1[76]  = "XNgrog&tankawww.grogandtankard.com/'>Grog and Tankard</a> - Washington, DC"; 
  venue1[48]  = "XNhousewoodswww.houseinthewoods.com'>House-in-the-Woods House Concerts</a> - Frederick, MD";
  venue1[2]   = "XNhousemusicwww.hmtrad.com/imt/freeconc.html'>House of Musical Traditions</a> - Takoma Park, MD";
  venue1[9]   = "XYinstitutemwww.imtfolk.org'>Institute of Musical Traditions</a>";
  venue1[67]  = "XYiotaclub&cwww.iotaclubandcafe.com'>Iota Club and Cafe</a> - Arlington, VA";
  venue1[57]  = "XYirelandfgfwww.irelandsfourprovinces.com'>Ireland's Four Fields(4Ps)</a> - Washington, DC";
  venue1[58]  = "XNirelandfpswww.4psfallschurch.com'>Ireland's Four Provinces</a> - Falls Church, VA";
  venue1[36]  = "XYjamminjavawww.jamminjava.com'>Jammin' Java</a> - Vienna, VA";
  venue1[10]  = "XYkennedycenkennedy-center.org/millennium'>Kennedy Center Millennium Stage</a> - Washington, DC";
  venue1[66]  = "TNkingfranceKing of France Tavern - Annapolis, MD";
  venue1[107] = "XNmarylandhawww.mdhallarts.org'>Maryland Hall for the Creative Arts</a> - Annapolis, MD";
  venue1[35]  = "XNmediumrarewww.mediumrarecafe.com'>Medium Rare Cafe</a>";
  venue1[70]  = "XNmofolkconcwww.mofolk.com'>MoFolk Concerts</A> - Kearneysville, WV";
  venue1[129] = "XNmosaic    www.mosaiccuisine.com'>Mosaic Cuisine and Cafe</a> - Rockville, MD"; 
  venue1[12]  = "XYmooremusicwww.mooremusic.org'>Moore Music (in the House) Concert Series</a> - Rockville, MD";
  venue1[69]  = "XNmrsolearysmrsolearys.net  '>Mrs. O'Leary's Irish Pub</a> - Gaithersburg, MD";
  venue1[121] = "XYmusicmattewww.josephisaacs.com '>Music Matters Showcase</a>"; 
  venue1[59]  = "XYnewdealcafwww.newdealcafe.com'>New Deal Cafe</a> - Greenbelt, MD";
  venue1[44]  = "XNbranded72 www.branded72.com'>Branded72 (formerly O'Brien's)</a> - Rockville, MD";
  venue1[13]  = "XYoldbrouguewww.oldbrogue.com'>Old Brogue</a> - Great Falls, VA";
  venue1[55]  = "TNourhouseco<A HREF='mailto:ourhouseconcert@aol.com'>Our House Concerts</a> - McLean, VA - 703-917-0587";
  venue1[14]  = "XYpanzerhouscolumbiaskiclub.org/Home/MoreThanSkiing/PanzerHouseConcerts/tabid/63/Default.aspx'>Panzer House Concerts</a> - Columbia, MD";
  venue1[73]  = "XYpattroysirwww.pattroysirishpub.com'>Pat Troy's Irish Restaurant &amp; Pub</a> - Alexandria, VA";
  venue1[128] = "XNpiersixpavwww.piersixpavilion.com'>Pier Six Pavilion</a> - Baltimore, MD"; 
  venue1[71]  = "XYpotomaccelwww.potomaccelticfest.org'>Potomac Celtic Festival</A> - Leesburg, VA";
  venue1[106] = "XNpotomacovewww.nvrpa.org/parks/potomacoverlook/index.php?pg=events.html'>Potomac Overlook Regional Park</a> - Arlington, VA";
  venue1[81]  = "XYpottershouwww.pottershousebooks.org'>The Potters House</A> - Washington, DC"; 
  venue1[72]  = "XNprismcoffewww.theprism.org'>Prism Coffeehouse</a> - Charlottsville, VA";
  venue1[86]  = "TNHavre de GHavre de Grace, MD"; 
  venue1[17]  = "XYramsheadtaramsheadtavern.com'>Ram's Head Tavern</a> - Annapolis, MD";
  venue1[119] = "XNredrockscawww.restaurant.com/redrocks'>Red Rocks Cafe & Tequila Bar</a> - Centerville, VA"; 
  venue1[62]  = "TNriverhouseRiver House Concerts - Shepherdstown, WV";
  venue1[83]  = "XNrockvillecwww.gbgm-umc.org/rockville-umc/coffeehouse.html'>Rockville Coffeehouse</a> - Rockville, MD"; 
  venue1[38]  = "XYshenandoahwww.shenandoahcoffeehouse.org'>The Shenandoah Coffeehouse Series</a> - Leesburg, VA";
  venue1[84]  = "XNshepherdstwww.operahouselive.com'>Shepherdstown Opera House</a> - Shepherdstown, WV";
  venue1[98]  = "XYsleepyhollwww.sleepyhollowfolk.com'>Sleepy Hollow Folk Club</a> - Falls Church, VA";
  venue1[20]  = "XNsmithsoniawww.si.edu/tsa/rap/'>Smithsonian Resident Associates Program</a>";
  venue1[45]  = "TNsohotea&coSoho Tea & Coffee - Washington, DC";
  venue1[88]  = "XNstellas   www.stellas.com'>Stella's</A> - Alexandria, VA"; 
  venue1[41]  = "XYstrathmorewww.strathmore.org'>Strathmore Hall Arts Center</a> - North Betheda, MD";
  venue1[11]  = "TNstarbucks Starbucks";
  venue1[15]  = "XNstarlandcawww.starlandcafe.com'>Starland Cafe</a> - Washington, DC";   //--Starland cafe
  venue1[74]  = "XYstelmos   www.stelmoscoffeepub.com/'>St. Elmo's Coffee Pub</a> - Alexandria, VA"; 
  venue1[130] = "XYstoneroom www.stoneroomconcerts.com'>The Stone Room House Concerts</a> - Falls Church, VA"; //========== LAST
  venue1[63]  = "XYsugarloafcwww.scuu.org/coffeehouse'>Sugarloaf Coffeehouse</a> - Germantown, MD";
  venue1[124] = "XYsunspotconwww.sunspotpro.com'>Sunspot Concerts</a> - Alexandria, VA"; 
  venue1[79]  = "XYsusquehannwww.susquehannamusicandartsfestival.com'>Susquehanna Music & Arts Festival</a> - Havre de Grace, MD";
  venue1[90]  = "XYswiftruncoswiftruncelticconcerts.com'>Swift Run House Concerts</a> - Fairfax Station, VA"; 
  venue1[80]  = "XYtakomaparkwww.tpff.org'>Takoma Park Folk Festival</a> - Takoma Park, MD";
  venue1[50]  = "TNtakomaparkTakoma Park Middle School, Takoma Park, MD";
  venue1[23]  = "XNvicsmusiccwww.focusmusic.org'>Focus Presents Vic's Music Corner</a> - Unitarian Universalist Church - Rockville, MD";
  venue1[125] = "XNvicsmusiccwww.focusmusic.org'>Focus Presents Vic's Music Corner</a> - Big Saigon - Rockville, MD"; 
  venue1[78]  = "XNwarehousecwww.warehousetheater.com/music.php#e98'>Warehouse Cafe</a> - Washington, DC"; 
  venue1[5]   = "XNwashethicaethicalsociety.org'>Washington Ethical Society</a> - Washington, DC";
  venue1[75]  = "XNwashperforwww.wpas.org'>Washington Performing Arts Society</a> - Washington, DC"; 
  venue1[54]  = "XYweinbergcewww.weinbergcenter.org'>Weinberg Center for the Performing Arts</a> - Frederick, MD";
  venue1[89]  = "XNwestsidecawww.westside-cafe.com'>Westside Cafe</a> - Frederick, MD"; 
  venue1[3]   = "XNwherehousewww.fsgw.org/where/'>Where?House Concerts</a> - Silver Spring, MD";
  venue1[26]  = "XNwherehousewww.fsgw.org/where/'>Where? House Concerts</a>";
  venue1[27]  = "XYwolftrapfiwww.wolf-trap.org'>Wolf Trap Filene Center</a> - Vienna, VA";
  venue1[91]  = "XSnottowaypafairfaxcounty.gov/parks/performances/'>Nottoway Park</a> - Vienna, VA"; 
  venue1[92]  = "XSmasondistrfairfaxcounty.gov/parks/performances/'>Mason District Park</a> - Annandale, VA"; 
  venue1[93]  = "XSleedistricfairfaxcounty.gov/parks/performances/'>Lee District  Park</a> - Franconia, VA"; 
  venue1[94]  = "XShayfieldelfairfaxcounty.gov/parks/performances/'>Hayfield Elementary School</a> - Alexandria, VA"; 
  venue1[95]  = "XNroyallakepfairfaxcounty.gov/parks/performances/'>Royal Lake Park</a> - Fairfax, VA"; 
  venue1[96]  = "XNriverbendpfairfaxcounty.gov/parks/performances/'>Riverbend Park</a> - Great Falls, VA"; 
  venue1[102] = "XSlakeaccotifairfaxcounty.gov/parks/performances/'>Lake Accotink Park</a> - Springfield, VA"; 
  venue1[103] = "XSossianhallfairfaxcounty.gov/parks/performances/'>Ossian Hall Park</a> - Annandale, VA"; 
  venue1[115] = "XSeclawrencefairfaxcounty.gov/parks/performances/'>E.C. Lawrence Park Amphitheater</a> - Chantilly, VA";  
  venue1[116] = "XSlakefairfafairfaxcounty.gov/parks/performances/'>Lake Fairfax Park Amphitheater</a> - Reston, VA";  
  venue1[117] = "XSgristmillpfairfaxcounty.gov/parks/performances/'>Grist Mill Park</a> - Alexandria, VA"; 
  venue1[108] = "XN1stmarinerwww.baltimorearena.com'>1st Mariner Arena</a> - Baltimore, MD"; 
  venue1[109] = "XNstacyscoffwww.stacyscoffee.com'>Stacy's Coffee Parlor</a> - Falls Church, VA"; 
  venue1[110] = "XNbrooksidegwww.mc-mncppc.org/Parks/brookside/light.shtm'>Brookside Gardens Holiday Light Show</a> - Wheaton, MD"; 
  venue1[111] = "XYsongwriterwww.saw.org'>Songwriter's Association of Washington</a>"; 
 
  venue1[113] = "XYoneworldcowww.uucolumbia.net/concerts'>One World Coffeehouse</a>, Unitarian Universalist Church - Columbia, MD"; 
  venue1[114]  = "XSmcleancentwww.mcleancenter.org/alden/gazeboconcerts.asp'>McLean Central Park</a> - McLean, VA";
//----Array of City names used by fevent

var city = new Array();
  city[0]  = "Laurel, MD";
  city[1]  = "Bethesda, MD";
  city[2]  = "Takoma Park, MD";
  city[3]  = "Silver Spring, MD";
  city[4]  = "Alexandria, VA";
  city[5]  = "Gaithersburg, MD";
  city[6]  = "Glen Echo Town Hall, Glen Echo, MD";
  city[7]  = "Washington, DC";
  city[8]  = "Owings Mills, MD";
  city[9]  = "Vienna, VA";
  city[10] = "Annapolis, MD";
  city[11] = "Columbia, MD";
  city[12] = "Rockville, MD";
  city[13] = "O'brien's, Rockville, MD";
  city[14] = "Reston, VA";
  city[15] = "Shepherdstown, WV";
  city[16] = "Leesburg, VA";
  city[17] = "Germantown, MD";
  city[18] = "Baltimore, MD";
  city[19] = "Adelphi, MD";
  city[20] = "UU Church of Rockville, Rockville, MD - 202-244-7524";
  city[21] = "Church of the Resurrection, Alexandria, VA - 202-244-7524";
  city[22] = "North Betheda, MD";
  city[23] = "Oakton, VA";
  city[24] = "Great Falls, VA";
  city[25] = "River Road Unitarian Church, Bethesda, MD";
  city[40] = "Sterling, VA - 703-421-0932";  //--Starbucks
  city[41] = "Leesburg, VA - 703-443-9251";  //--Starbucks
  city[42] = "McLean, VA - 703-241-9482";    //--Starbucks
  city[43] = "North Chevy Chase, MD - 301-986-5187";
  city[44] = "Ashburn, VA";
  city[45] = "Culpeper, VA";
  city[46] = "Fredericksburg, VA";
  city[47] = "Haymarket, VA";
  city[48] = "Luray, VA";
  city[49] = "Warrenton, VA";
  city[50] = "Winchester, VA";
  city[51] = "Middleburg, VA";
  city[52] = "Mount Rainier, MD";
  city[53] = "Mt Washington Mill, Baltimore, MD - 410-435-6530";    //--Starbucks
  city[54] = "South Ridings, Centreville, VA - 703-327-6763";    //--Starbucks
  city[55] = "Hyattsville, MD - 301-985-5244";                         //--Starbucks
  city[56] = "Oakton, VA - 703-242-8244";                             //--Starbucks
  city[57] = "Charles Town, WV";
  city[58] = "Lisner Auditorium, Washington, DC";  //--WPAS
  city[59] = "Kennedy Center, Washington, DC";  //--WPAS
//----Get the current month and year
today = new Date();
thismonth=today.getMonth()+1;
thisyear=today.getFullYear();
thisday=today.getDate();
if (thisyear < 1950) //--compensate for non-y2k browsers
 thisyear = thisyear-1900;
else
 thisyear =thisyear - 2000;
var keymonth = (thisyear*12)+thismonth; //keymonth is number of months since 1/1/2000
var keyday = (keymonth * 35)+thisday;
var thiskeymo;

//=== function to return a venue link from the venue1 array
//------fven = venue number
//------pre = text to precede link
//------app = text to append to link
function getvlink(fven,pre,app)
  {
    thisven = venue1[fven];
    thisvtype = thisven.substr(0,1);
    outstring = thisven.substr(12)
    if (thisvtype == "X") {
      outstring = "<a href='http://"+outstring;
    }
    if (thisvtype == "L") {
      outstring = "<a href='"+outstring+"</a>";
    }
    outstring = pre+outstring+app
    return outstring;
  }



//----Function to change a character string to bold (<b></b>) if upit == y
//------bstring is the string to be
function boldit(bstring,upit)
  {
   var nstring = bstring;
   if (upit == "Y" )
     nstring = "<b>"+bstring+"</b>";
   return nstring;
  }
//----Final Fevent function
//------fdate is day of month
//------fperf1,fperf2 are performers or event names if numeric, they are indexes into performer/event array
//------fvenue is the venue name string or index into venue array
//------fcity is the city name or index into the city array
//------fpass if Y, will make it bold, if P, will make it bold and add WFMA pass event
//------output is date (cell1) fperf1 and 2 (cell2) venue and city (cell3)
function fevent(fdate,fperf1,fperf2,fvenue,fcity,fpass)
  {
   var thiskeyday = (thiskeymo * 35)+fdate;
   if (thiskeyday > keyday-1)
      {	var dobold = "N";
        if (fpass == "Y")
          dobold = "Y";
        if (fpass == "P")
          dobold = "Y";
        var outstring = "<tr><td>"+boldit(fdate,dobold)+"</td><td>"; //build date cell
        if (isNaN(fperf1))
          var namestring = fperf1;                 //use string as first artist
        else
          var namestring = getlink(fperf1,"","");      //get first artist from array
         if (fperf2 !== "")
           if (isNaN(fperf2))
             namestring = namestring+"<br>"+fperf2;   //use string as 2nd artist
           else
             namestring = namestring+"<br>"+getlink(fperf2,"",""); //get 2nd artist from array
        outstring = outstring+boldit(namestring,dobold);         //add it to the string
        outstring = outstring+"</td><td>";  //--start new cell
        if (isNaN(fvenue))
          var venstring = fvenue;                 //use string as venue
        else
          var venstring = getvlink(fvenue,"","");         //get venue from table
        if (fcity == "")
          ;
        else if (isNaN(fcity))
             venstring = venstring+" - "+fcity;  // use string as city
           else
              venstring = venstring+" - "+city[fcity]; // get city from table
        if (fpass == "P")
          venstring = venstring+"<br>(This is a WFMA pass event)";
        outstring=outstring+boldit(venstring,dobold)+"</td></tr>";
        document.write(outstring);
      }
  }

//----Function to display venue links on a page
//------selector is the 2 character prefix for the records to be selected XY 
//------columns is the number of columns to display the data - currently ignored
function listven(selector,columns)
  {
    venlist = new Array();                // new array to hold selected venues
    j=0
    for (i=0;i<venue1.length;i++) {     // loop through list of all venues
      thisven=venue1[i]

      if (thisven != "") {                // only use ones that have values
        venpre=thisven.substr(0,2)       // get the prefix
        if (venpre == "XS") {            // if this is a summer only venue 
          if ((thismonth>4) && (thismonth <9)) {  // and this is a summer month
            venpre = "XY"                // display this venue 
          }          
        } 
        if (venpre==selector) {           // compart to what was passed to function 
          vensort=thisven.substr(2,10)   // get sort field
          venrem=thisven.substr(12)      // get actual data
          venlist[j]=vensort+i;          // put data and index into the new array
          j=j+1
        }
      }
    }
    sortedlist = new Array();              // new array to hold sorted performer list
    sortedlist = venlist.sort();          // sort list and put in new array
//  collength=1+sortedlist.length/columns    // set the number of links to be displayed in each column
//  incol=1                                // start the count at 1
//  oldfirstlet="A"                        // start with a
//  document.write("<b>A</b><br>")         // write an A
    for (j=0;j<sortedlist.length;j++) {    // loop through sorted list
      thisven=sortedlist[j]               // get each record
//    firstlet=thisperf.substr(0,1)        // get first character of sort field
//    firstlet=firstlet.toUpperCase();
//    if (firstlet != oldfirstlet ) {
//      document.write("<b>"+firstlet+"</b><br>");
//      oldfirstlet=firstlet;
//    }
      thisindex=thisven.substr(10,3)      // get the index into main performer array (assumes 3 digits 
      index=thisindex.valueOf()            // change to integer
      document.write(getvlink(index,"","<br>"));  //write the link on the page followed by a br
//    incol=incol+1                        // add to count in column
//    if (incol > collength) {
//      document.write ("</td><td valign=top>");  // start a new column
//      incol=1                            // reset the column count
//    }
    }
  }
//----function to format month header and set switch to indicate if month is to be printed
//------fmo is the month, fyr is the year
function smonth(fmo,fyr)
  {
   thiskeymo = (fyr*12)+fmo; //--calculate the key month
   var moswitch = "N";  //-- initialize the switch to N
   var lastmonth = keymonth + 6
   if (thiskeymo >= keymonth && thiskeymo <= lastmonth )  //-- month must be = or greater than current month and less than or equal to cur month +6
     {
      var moline = "<tr><td colspan=3 align ='center'><h2>"; //--build month cell
      moline = moline+months[fmo];  // put in the name of the month
      var hyr = fyr+2000 //-- calculate the real year
      moline = moline+" - "+hyr; //-- add it to the line
      moline = moline+"</h2></td></tr>";  //-- close out the cell
      document.write(moline); //--write the line
      moswitch = "Y"; //--signal to print the month
     }
   return moswitch;
  }
//==this function retained for compatability
function venlink(fven)
  {
    outstring = getvlink(fven,"<li>","");
    document.write(outstring);
   }
//----->

