//Canonbury Chamber Choir on-line Concert Archive
//Version 3
//Author: Mike hutchinson 8th May 2006

//There are two archives, the first "concertarchive" was created to get the archive up and running with
//some history to make it worth while publishing the archive at all.
//All new concerts from now on get added to the end of this archive.

//The second archive "archive_b" is to enable older concert records to be added as and when possible 
//without the need to renumber an archives row numbers when inserting the next oldest concert in the series.

//This is achieved by dynamically reversing archive 1 to put the oldest entries at the bottom.
//Archive 2 is then appended to archive 1 (already in the right order). 
//Result: archive 1 now holds all the entries in the correct order for displaying on screen.
//The archive is then output to screen using the write_archive() function below.

//A separate function is used to build the concert year dropdown list and associated bookmarks.

//Each row of the archive contains a single concerts information.

//SPECIAL NOTE:enclose all program details in a single set of " " seperating each program item 
//using a ; where you want it on a new line. This enables the number of program lines needed by each concert list
//to be created dynamically, as many as are needed.
//A temp array is then made up spliting this element using ; as the divider.A for loop then puts each item on its own line in an unordered list.

//Rather than include venue inforamtion in the main array, a lookup is used to read
//in the venue from a smaller dedicated "venues" array.
//This reduces uneccessay duplication in the main array and helps reduce the overall size of this javascript text file.

//Part of the writing process also determines if a year "header" needs to be inserted onto the html page
//and if so inserts this before the first concert of that year.

//A dynamic running total of the no of items in the archive plus the years the archive entries span are
//calculated on the fly and written out to the html page for the visitor.


var archiveyear=""
var yearheader="N"
var yearlist=""

//var uparrow='<a href="archive.htm" target="_self"><img src="up_arrow_noframes.gif" width="19" height="17" border="0" alt="Back to Top"></a>'
var uparrow='<a href="#" target="_self" onClick="backToTop()"><img src="up_arrow_noframes.gif" width="19" height="17" border="0" alt="Back to Top"></a>'

var venues= new Array()
venues[0] = new Array("St Mary's New Church, Stoke Newington, London")
venues[1] = new Array("British Museum, London")
venues[2] = new Array("Church of St. Peter, De Beauvoir Town, De Beauvoir Road, London N1")
venues[3] = new Array("Highgate Literary & Scientific Institution, North London")
venues[4] = new Array("Oh!art centre, Oxford House, Derbyshire St, Bethnal Green, London E2.")
venues[5] = new Array("Church of Our Most Holy Redeemer, Exmouth Market, Clerkenwell, London EC1.")
venues[6] = new Array("St James' Church, Clerkenwell Green, Clerkenwell, London EC1.")
venues[7] = new Array("St Pancress Church, Kings Cross, London NW1.")
venues[8] = new Array("St John's, Smith Square, London.")
venues[9] = new Array("British Library, Reading Room, London.")
venues[10] = new Array("St Silas Church, Risinghill Street (off Penton Street), Islington, London N1 9UL")

//first archive working from 2006 back to 2004
//ONLY add new records to the end of this array anything earlier than the concert on row zero
//must be added to "archive_b" instead. 
//NOTE: the archive below has physically been turned upside down (row 0 is at the bottom!) so you
//can add new entries to the "end" of the array from the "top" rather than having to scroll to the bottom.
//This is the order the concerts will display on screen (most recentatthe top) so easier to relate to when debugging


var concertarchive = new Array()
//Add in the latest concert below when ready!
//concertarchive[21]= new Array("cccdefault_091107.js","Saturday 7th November","07","11","2009","<b>JS Bach</b>;Mass in A Major;Cantata 173;Cantata 184;<b>Buxtehude</b>;Magnificat in D Major",venues[10])
concertarchive[20]= new Array("cccdefault_090620.js","Saturday 20th June","20","06","2009","<b>Purcell</b>;Anthems and Motets;<b>Mendelssohn</b>;Hora est (for four choirs);Hear my prayer;<b>Charpentier</b>;Mass for four choirs",venues[10])
concertarchive[19]= new Array("cccdefault090321.js","Saturday 21st March","21","03","2009","<b>Ralph Vaughan Williams</b> - Mass in G Minor;<b>George Jeffreys</b>;A set of seven anthems for choir and organ performed under the title - Our Blessed Saviour;Harke, shepard swaynes (Christmas);Bussie tyme this day (Innocents);Brightest of days (Epiphany);Whisper it easily (Good Friday);Ryse hart, thy Lord is risen (Easter);Looke upp, all eyes (Ascension);A musick strange (Whitsun)",venues[2])
concertarchive[18]= new Array("cccdefault081206.js","Saturday 6th December","06","12","2008","<b>500 Years of Christmas Music:</b>;<b>Jean Mouton</b> - Nesciens mater;<b>Flecha (attrib.)</b> - Riu, riu, chiu;<b>Palestrina</b> - Hodie Christus natus est;<b>Victoria</b> - O magnum mysterium;<b>Handl (Gallus)</b> - Resonet in laudibus;<b>Sweelinck</b> - Hodie Christus natus est;<b>Philips</b> - O beatum et sacrosanctum diem;<b>Dering</b> - Quem vidistis, pastores?;<b>Mendelssohn</b> - Frochlocket, ihr Völker auf Erden;<b>Bruckner</b> - Virga jesse floruit;<b>Cui</b> - Magnificat (Vyelichit dusha moya Gospoda);<b>Britten</b> - A Hymn to the Virgin;<b>Andrew Bunbury</b> - Come if you will",venues[10])
concertarchive[17]= new Array("cccdefault080607.js","Saturday 7th June","07","06","2008","<b>Martin</b> - Mass;<b>Monteverdi</b> - Adoramus Te;<b>Monteverdi</b> - Cantate Domino;<b>Monteverdi</b> - Domine Ne In Furore Tuo;<b>Tormis</b> - St John's Day Songs",venues[2])
concertarchive[16]= new Array("cccdefault080112.js","Saturday 12th January","12","01","2008","<b>The Italian Collection</b>;<B>Monteverdi</B> - Beatus vir;<b>Carissimi</b> - Jonah;<b>Vivaldi</b> - Beatus vir;<b>Handel</b> - Laudate pueri Dominum;<b>J.S.Bach</b> - Mass in G major",venues[2])
concertarchive[15]= new Array("cccdefault070324.js","Saturday 24th March","24","03","2007","<b>J.S.Bach:</b>;Cantata's 78, 146 & 150;<b>G.F.Handel</b>;Dixit Dominus",venues[0])
concertarchive[14]= new Array("cccdefault061209.js","Saturday 9th December","09","12","2006","<b>My Beloved Spake - Music to words from the Song of Songs</b>;<b>F. Guerrero (1528 - 1599)</b> - Surge propera amica mea;<b>Anon (early 16th century)</b> - Tota pulchra es;<b>P. de Manchicourt (c.1510 - 1564)</b> - Osculetur me;<B>C. Monteverdi (1567 - 1643)</B> - Nigra sum;<b>T. L. da Victoria (1548 - 1611)</b> - Vidi speciosam;<b>C. Monteverdi (1567 - 1643)</b> - Pulchra es;<b>M. Franck (c.1580 - 1639)</b> - Ich sucht des Nachts;<b>M. Franck (c.1580 - 1639)</b> - Meine Schwester, liebe Braut;<b>P. Phillips (c.1560 - c.1633)</b> - Ecce tu pulchra es;<b>P. Phillips (c.1560 - c.1633)</b> - Quae est ista;<b>G. Jeffreys (1610 - 1685)</b> - Ecce dilectus meus;<b>H. Purcell (1659 - 1695)</b> - My beloved spake;<b>W. Billings (1746 - 1800)</b> - I am the Rose of Sharon;<b>E. C. Bairstow (1874 - 1946)</b> - I sat down under his shadow;<b>W. Walton (1902 - 1983)</b> - Set me as a seal;<b>T. Noakes (b.1935)</b> - Who is this?;<b>A. Milledge (b.1943)</b> - I am a rose",venues[0])
concertarchive[13]= new Array("cccdefault060708.js","Saturday 8th July","08","07","2006","<b>Mozart:</b>; Requiem Mass; Regina Coeli (K276) to celebrate the 250th anv. of his birth);<b>Antonio Bononcini:</b>;Stabat Mater",venues[1])
concertarchive[12]= new Array("cccdefault060617.js","Saturday 17th June","17","06","2006","<b>Treasures of the Baroque</b>;<b>Choral works by:</b>;<b>Antonio Bononcini:</b> Stabat Mater;<b>M.R.de Lalande:</b> Confitebor;<b>B.H.Cernohorský:</b> Quare Domine irasceris;<b>J.S.Bach:</b> Mass in A major",venues[0])
concertarchive[11]= new Array("cccdefault060401.js","Saturday 1st April","01","04","2006","<b>Music for choir and organ from</b>;<b>England, Scotland and Estonia including:</b>;<b>Kenneth Leighton:</b> Crucifixus pro nobis;<b>James MacMillan:</b> A New Song;<b>Arvo Pärt:</b> The Beatitudes;<b>Veljo Tormis:</b> St John's Day songs;<b>Anthony Milledge:</b> The Beatitudes;<b>Benjamin Britten:</b> Rejoice in the Lamb",venues[0])
concertarchive[10]= new Array("cccdefault060204.js","Saturday 4th February","04","02","2006","<b>Bach Cantatas & Motets:</b>;BWV61 - Nun komm der Heiden Heiland (First Chorus);BWV40 - Darzu ist erschienen;BWV155 - Mein Gott, wie lang...;BWV248 - part IV Fallt mit Danken, fallt mit loben;BWV118 - O Jesu Christ Mein's Lebens, Licht (3 Verses);BWV72 - Alles nur nach Gottes willen;BWV65 - Sie werden aus Saba alle kommen",venues[2])
concertarchive[9]= new Array("cccdefault_051203.js","Saturday 3rd December","03","12","2005","<b>Bach</b>;Mass in B minor",venues[0])
concertarchive[8]= new Array("cccdefault_051029.js","Saturday 29th October","29","10","2005","<b>Handel</b>;Highlights from Belshazzar;Music to accompany the exhibition:;'Forgotten Empire: The world of Ancient Persia'",venues[1])
concertarchive[7]= new Array("cccdefault_050709.js","Saturday 9th July","09","07","2005","<b>Handel:</b>;Foundling hospital anthem; Utrecht Te deum & Jubilate;<b>Purcell</b>;Come ye sons of art",venues[1])
concertarchive[6]= new Array("cccdefault_050618.js","Saturday 18th June","18","05","2005","<b>A SERENADE TO MUSIC...</b>;Music by Vaughan Williams;Serenade to Music;Three Shakespeare songs;The Lark Ascending;Five Mystical Songs;Wasps Overture;Mass in G Minor;Toward the Unknown region",venues[0])
concertarchive[5]= new Array("cccdefault_050312.js","Saturday 12th March","12","03","2005","<b>Gerarde:</b> (various works) including: Ego autem cantabo;<b>Gesualdo:</b> O vos omnes;<b>Monteverdi:</b> Adoramus Te, Christe & Cantate Domino;<b>Lotti:</b> Crucifixus;<b>Gibbons:</b> O Clap your hands;and works by <b>Philips</b> and <b>Tallis</b>",venues[3])
concertarchive[4]= new Array("cccdefault_050115.js","Saturday 15th January","15","01","2005","<b>Bach</b>;Magnificat in D Major;Christmas Oratorio (Parts 1,2 & 3 only)",venues[0])
concertarchive[3]= new Array("cccdefault_040925.js","Saturday 25th September","25","09","2004","<b>Music from the 16th to 21st centuries.</b>;The program includes music by Bach, Monteverdi Gabrieli and Vaughan Williams",venues[4])
concertarchive[2]= new Array("cccdefault_040710.js","Saturday 10th July","10","07","2004","<b>Handel:</b>;Belshazzar",venues[1])
concertarchive[1]= new Array("cccdefault_040626.js","Saturday 26th June","26","06","2004","<b>Michel-Richard de Lalande:</b>;De Profundis;Super flumina Babylonis;<b>Charpentier:</b>;Messe a quatre Choeurs",venues[2])
concertarchive[0]= new Array("cccdefault_040328.js","Saturday 28th March","28","03","2004","<b>Henry Purcell:</b> I was glad;<b>Henry Purcell:</b> Remember not Lord, our offences;<B>George Jeffreys:</b> Whisper it easily;<b>Henry Purcell:</b> Lord, how long wilt thou be angry;<b>William Croft:</b> Lord, what love have I;<b>Henry Purcell:</b> Jehova, quam multi sunt hostes mei;<b>Maurice Green:</b> My God,my God, Look upon me;<b>Henry Purcell:</b> Hear my prayer;<b>Scarlatti:</b> Stabat Mater",venues[2])


// second archive working back from 2003 to 1980 (read forwards to add onto the end of the content of the first archive)

var archive_b = new Array()

archive_b[0]= new Array("cccdefault_040206.js","Saturday 6th February","06","02","2004","<b>Handel:</b>;Belshazzar",venues[1])
archive_b[1]= new Array("none","Saturday 13th December","13","12","2003","<b>Handel:</b>;Utrecht Te Deum & Jubilate;<b>J.S Bach</b>;Mass in G minor;<B>Vivaldi</b>;Dixit Dominus",venues[0])
archive_b[2]= new Array("none","Saturday 4th October","04","10","2003","English Verse Anthems: 1600 - 2003 for Voyces and Vyols:;<b>William Byrd:</b> Christ Rising;<B>John Mundy:</b> Sing joyfully;<b>Peter Phillips:</b> Pavana;<b>William White:</b> Almighty Lord;<b>Martin Peerson:</b> Blow Out the Trumpet;<B>William Stonard:</b> Harken, all yee people;<b>Richard Alison:</b> The sacred quire of angels;<b>Orlando Gibbons:</b> This is the record of John;<b>John Amner:</b> O ye little flock;<b>Simon Ives:</b> Fantasy;<b>George Jeffreys:</b> Ryse Heart, thy Lord is risen;<b>William Croft:</b> The Earth is the Lord's;<b>Maurice Green:</b> Lord let me know mine end;<b>John Clarke Whitfield:</b> O Priase God in his holiness;<b>Samuel Sebastian Wesley:</b> The wilderness;<b>Anthony Milledge:</b> I am a rose",venues[0])
archive_b[3]= new Array("none","Saturday 21st June","21","06","2003","<b>Handel</b>;Deborah",venues[1])
archive_b[4]= new Array("none","Saturday 5th April","05","04","2003","<b>J.S. Bach</b>;Passion according to St John",venues[0])
archive_b[5]= new Array("none","Saturday 22nd February","22","02","2003","<b>A Concert of English Music (followed by supper!)</b>;Includes music from:;Elizabethan & Jacobean period;First half of the 20th Century",venues[5])
archive_b[6]= new Array("stmarys_301102_concert_details.htm","Saturday 30th November","30","11","2002","<b>J.S Bach</b>;Six Motets;Sinfonia from Cantata 169",venues[0])
archive_b[7]= new Array("none","Saturday 6th July","06","07","2002","<b>B.H.Cernohorský:</b> Litaniae Lauretanae;<b>Vivaldi:</b>;Beatus Vir. RV 978;Dixit ominus;<b>Purcell:</b> Te Deum & Jubilate;<b>Handel:</b> Sing unto God",venues[1])
archive_b[8]= new Array("none","Saturday 18th May","18","05","2002","<b>Beethoven</b>;Symphony No 8;<b>Mendelssohn</b>;Hear My Prayer;<b>Wesley</b>;Confitebor",venues[5])
archive_b[9]= new Array("none","Saturday 23rd March","22","03","2002","<b>Handel</b>;Messiah",venues[0])
archive_b[10]= new Array("none","Saturday 1st December","01","12","2001","<b>Claudio Monteverdi</b>;Vespers of 1610",venues[6])
archive_b[11]= new Array("none","Saturday 20th June","20","06","2001","<b>Handel</b>;Athalia",venues[1])
archive_b[12]= new Array("none","Saturday 31st March","31","03","2001","<b>Sergei Rachmaninov</b>;All-night Vigil;<b>Kenneth Leighton</b>;Crucifixus pro nobis",venues[5])
archive_b[13]= new Array("none","Saturday 4th November","04","11","2000","<b>Jan Dismas Zelenka (1679-1745)</b>;Fanfare;<b>Bohuslav Matej Cernohorsky (c.1684-c.1742)</b>;Motet: Quem lapidaverunt;<b>Karel Vaclav Holan Rovensky (1644-1717)</b>; Spanile z archy holubicky;<b>Jan Dismas Zelenka (1679-1745)</b>;Psalmus 129: De profundis;<b>Adam Vaclav Michna(c.1600-1676)</b>;Vanocni rosicka;<b>Pavel Josef Vejvanovsky (c.1640-1693)</b>;Congregati sunt inimici nostri;Sonata Vespertina;<b>Bohuslav Matej Cernohorsky (c.1684-c.1742)</b>;Offertorium: Quare Domine irasceris;<b>Ferdinand Tobias Richter (1651-1711)</b>;Mottetto di San giovanni Nepomuceno;<b>Pavel Josef Vejvanovsky (c.1640-1693)</b>;Balletti per il carnuale;<b>Frantisek Ignac Antonin Tüma (1704-1774)</b>;Stabat Mater;<b>Bohuslav Matej Cernohorsky (c.1684-c.1742)</b>;Litaniae Lauretanae in D major",venues[8])
archive_b[14]= new Array("none","Saturday 8th July","08","07","2000","<b>George Jeffries (c.1610-1685)</b>;Five Anthems:;- Harke, shepard swaynes (for the Nativity);- Brightest of days (for the Ephiphany); - Whisper it easily (for Good Friday); - Ryse hart, thy Lord is risen (for Easter); - A musick strange (for Whitsunday);<b>Giacomo Carissimi (1610-1674)</b>;Jephte;<b>Henry Purcell (1659-1695)</b>;Five Anthems:;- I was glad when they said unto me;- Remember not, Lord, our offences;- Lord, how long wilt thou be angry?;- Jehovah, quam multi sunt hostes mei;- Hear my prayer, O Lord",venues[6])
archive_b[15]= new Array("none","Wednesday 14th June","14","06","2000","<b>Handel</b>;Saul",venues[1])
archive_b[16]= new Array("none","Thursday 06th April","06","04","2000","<b>J.S. Bach</b>;Motet No 6: Lobet den Herrn (Psalm 117);Prelude and Fugue in D minor (Harpsichord-Anthony Milledge);Cantata No 5: Wo soll ich fliehen hin;Prelude and fugue in B Flat Minor (Piano-Christopher Skelton-Foord);Mass no. 4 in G.",venues[7])
archive_b[17]= new Array("none","Saturday 26th February","26","02","2000","<b>Vaughan Williams</b>;Mass in G minor;3 Preludes on Welsh Hymn Tunes;<b>Gesualdo</b>;Omnes amici mei;Resp. IX;Resp. V - Tene brae factae sunt (for Good Friday);<b>'In the Mood:'</b>;- Deep Purple - Peter de Rose;- I got Rythmn - George Gershwin;- Begin the Beguine - Cole Porter;- Autumn Leaves - Jospeh Kosma;- In the Mood - Joe Garland",venues[5])
archive_b[18]= new Array("none","Saturday 11th December","11","12","1999","<b>Ten Centuries of Christmas Music</b>;<b>Plainsong melody</b> - Hodie Christus natus est;<b>Hildegard of Bingen (1098-1179)</b> - Germany - Ave generosa;<b>Anonymous</b> - France - Alle psallite com luya;<b>Guillaume de Machaut (c.1300-1377)</b> - France - Gloria (Messe de Notre Dame);<b>Anonymous</b> - France - Nova! Nova! Ave fit ex Eva;<b>Richard Pygott (Time of Henry VIII)</b> - England - Quid petis, O fili?;<b>Giovanni Gabrieli (1557-1612)</b> - Italy - Angelus ad pastores;<b>Peter Phillips (1561-1628)</b> - England - O Beatum et sacrosanctum diem;<b>Jan Cererols (1618-1676)</b> - Spain - Serafin, que con dulce harmonia;<b>Samuel Scheidt (1587-1654)</b> - Germany - In dulci jublio;<b>J.S.Bach (1685-1750)</b> - Germany - Virga Jesse flourit;<b>Louis-Claude d'Aquin (1694-1772)</b> - France - Noël;<b>Thomas Clarke (1775-1859)</b> - England - While Shepherds watched their flocks by night;<b>Cesar Cui (1835-1918)</b> - Russia - Magnificat, Op.93;<b>Traditional Carol</b> - Poland (arr. Anthony Milledge) - Wzlobie lezy;<b>Samuel Barber (1910-1981)</b> - U.S.A - Twelfth night, Op42, No 1;<b>Petr Ebden (b.1929)</b> - Czech Republic - A Festal Voluntary;<b>John Joubert (b.1927)</b> - South Africa - There is no rose, Op14;<b>Peter Racine Fricker (1920-1990)</b> - England - A babe is born;<b>Kenneth Leighton (1929-1988)</b> - England - Lully Lulla, thou little tiny child;<b>Kenneth Leighton</b> - England - O leave your sheep",venues[6])
archive_b[19]= new Array("none","Saturday 10th July","10","07","1999","<b>Treasures of the Czech Baroque</b>;<b>Bohuslav Matej Cernohorsky (c.1640-1693)</b> - Offertorium: Quare domine irascris - Memento Abraham;<b>Pavel Josef Vejvanovsky (c.1640-1693)</b> - Sonata Tribus Quadrantibus;<b>Ferdinand Tobias Tichter (1651-1711)</b> - Mottetto di San Giovanni Nepomuceno;<b>Heinrich Ignaz von Biber (164-1704)</b> - Requiem in F Minor;<b>Adam Vaclav Michna (c.1600-1676)</b> - Kyrie eleison, from Missa Wenceslai;<b>Pavel Josef Vejvanovsky (c.1640-1693)</b> - Congregati sunt inimici nostri;<b>Pavel Josef Vejvanovsky (c.1640-1693)</b> - Balletti per carnuale;<b>Frantisek Ignac ntonin Tuma (1704-1774)</b> - Stabat Mater;<b>Frantisek Xaver Brixi (1732-1771)</b> - Gloria in excelsis Deo, from 'Missa Integra'",venues[6])
archive_b[20]= new Array("none","Saturday 27th March","27","03","1999","<b>Handel</b>;Passion according to St John",venues[6])
archive_b[21]= new Array("none","Saturday 13th February","13","02","1999","<b>Frank Martin</b> - Messe pour double choeur;<b>Manuel de Sumaya</b> - Lamentations;<b>Claudio Monteverdi</b> - Laudate Dominum;<b>Antonio Lotti</b> - Crucifixus;<b>Carlo Gesualdo</b> - Eram quasi agnus innocens;<b>Claudio Monteverdi</b> - Domine ne in furore tuo;<b>Claudio Monteverdi</b> - Cantate Domino;",venues[5])
archive_b[22]= new Array("none","Saturday 12th December","12","12","1998","<b>Orlando Gibbons</b> - This is the record of John;<b>William Byrd</b> - An earthly tree;<b>John Bull</b> - The starre anthem;<b>William Byrd</b> - This day was Christ born;<b>William Byrd</b> - Christ rising;<b>John Amner</b> - O ye little flock;<b>Tomas Luis da Victoria</b> - O magnum mysterium;<b>Juan Bautista </b> - O magnum mysterium;<b>Juan Bautista Comes</b> - Quem vidistis, pastores?;<b>Joan Cererols</b> - Serafin, che con dulce harmonia;<b>Juan Bautista Comes</b> - Hodie nobis celorum rex",venues[6])
archive_b[23]= new Array("none","Saturday 10th October","10","10","1998","<b>J.S. Bach</b> - Mass in B minor BWV 232",venues[8])
archive_b[24]= new Array("none","Saturday 11th July","11","07","1998","<B>Music by J.S. Bach</B>;Cantata 46 - Schauet doch und sehet;Motet - Jesu meine Freude BWV 227;Mass in A major BWV 234",venues[6])
archive_b[25]= new Array("none","Saturday 6th June","06","06","1998","<b>Tomas Luis da Victoria</b> - Requiem;<b>Carlo Gesualdo</b> - O vos omnes;<b>Carlo Gesualdo</b> - Tristis est anima mea;<b>Carlo Gesualdo</b> - Omnes amici mei;<b>George Jeffreys</b> - A musicke strange;<b>George Jeffreys</b> - Whisper it easily;<b>William Croft</b> - Lord, what love have I;<b>William Croft</b> - The earth is the Lord's;<b>Dyricke Gerarde</b> - Sive vigilem;<b>Dyricke Gerarde</b> - Die lume un tempo al cieco il sole;<b>Dyricke Gerarde</b> - Deus qui superbis resistis",venues[6])
archive_b[26]= new Array("none","Saturday 4th April","04","04","1998","<b>J.S. Bach</b> - St John Passion",venues[6])
archive_b[27]= new Array("none","Saturday 14th February","14","02","1998","<b>William Cornyshe</b> - Adieu mes amours;<b>Tomas Luis da Victoria</b> - Vidi speciosam;<b>William Cornyshe</b> - My love she mourneth;<b>William Cornyshe</b> - Ah Robin;<b>Dyricke Gerarde</b> - Amy souffrez;<b>Dyricke Gerarde</b> - Adieu mon esperance;<b>Dyricke Gerarde</b> - J'ay veu le temps;<b>Dyricke Gerarde</b> - Soions joyeulx joyeulxement;<b>Peter Philips</b> - Ecce tu pulchra es;<b>Ralph Vaughan Williams</b> - The springtime of the year;<b>Ralph Vaughan Williams</b> - Just as the tide was flowing;<b>Ralph Vaughan Williams</b> - The lover's ghost;<b>Anthony Milledge</b> - Pulborough 1976;<b>Anthony Milledge</b> - Crossing the Pennines;<b>Anthony Milledge</b> - Time's Zenith;<b>Tony Noakes</b> - My beloved spake;<b>Tony Noakes</b> - By night on my bed;<b>Tony Noakes</b> - Come with me from Lebanon;<b>Tony Noakes</b> - Who is this?;<b>'Fats' Waller</b> (arr. Gritton) - Ain't misbehavin';<b>Richard Rodgers</b> (arr. Milledge) - Some enchanted evening;<b>David Raskin</b> (arr. Williams) - Laura;<b>George Gershwin</b> (arr. Seago) - Love walked in;<b>George Gershwin</b> (arr.Williams) - Summertime;<b>Joe Garland</b> (arr. Gritton) - In the mood",venues[6])
archive_b[28]= new Array("none","Saturday 13th December","13","12","1997","<b>Giovanni Gabrieli</b> - O magnum mysterium;<b>Giovanni Gabrieli</b> - Hodie Christus natus est;<b>Giovanni Gabrieli</b> - O Jesu mi dulcissime;<b>Heinrich Schutz</b> - Verbum caro;<b>Heinrich Schutz</b> - Ein Kind ist uns gebohren;<b>Heinrich Schutz</b> - Psalm 24 - Domini est terra;<b>Michael Praetorius</b> - Puer natus - Ein Kind geborn;<b>Heinrich Schutz</b> - Hodie Christus natus est;<b>Heinrich Schutz</b> - Psalm 7 - Auf dich, Herr, traue ich;<b>Giovanni Gabrieli</b> - Maria Virgo;<b>Giovanni Gabrieli</b> - Sancta et immaculata virginitas;<b>Giovanni Gabrieli</b> - Nunc dimittis",venues[6])
archive_b[29]= new Array("none","Saturday 22nd November","22","11","1997","<b>J.S. Bach</b> - Mass in G minor;<b>Domenico Scarlatti</b> - Stabat Mater a 10;<b>G.F. Handel</b> - Dixit Dominus",venues[8])
archive_b[30]= new Array("none","Saturday 26th October","26","10","1997","<b>Handel</b> - Messiah",venues[9])
archive_b[31]= new Array("none","Saturday 12th July","12","0","1997","<b>Purcell</b> - Come ye sons of art;<b>Jeremiah Clarke</b> - Music on the death of Henry Purcell;<b>Manuel de Sumaya</b> - Celebren, publiquen;<b>Dyricke Gerarde</b> - Amor piangeva;<b>Handel</b> - Sing unto God",venues[6])
archive_b[32]= new Array("none","Saturday 14th June","14","06","1997","<b>Benjamin Britten</b> - Five songs from A.M.D.G.;<b>John Taverner</b> - Missa Corona Spinea;<b>Arvo Part</b> - De profundis;<b>Benjamin Britten</b> - Hymn to St. Cecilia;<b>Benjamin Britten</b> - Rejoice in the Lamb;<b>John Tavener</b> - Little Requiem for Father Malachy Lynch;<b>Peter Philips</b> - Cantantibu organis;<b>Peter Philips</b> - Ascendit Deus",venues[6])
archive_b[33]= new Array("none","Saturday 22nd March","22","03","1997","<b>G.F. Handel</b> - St John Passion;<b>J.S. Bach</b> - Mass in G major",venues[6])
archive_b[34]= new Array("none","Saturday 22nd February","22","02","1997","<b>The Music of Dyricke Gerarde:</b>;Deus qui superbis resistis;O Maria vernans rosa;Hodie Christus natus est;Ceste belle petite bouche;J'attens secours;Resveillez vous;Soions joyeulx joyeulxement;Timor et tremor(2nd setting);Quare fremuerunt gentes;Dum transisset sabatum;Yf Phebus stormes;Il foco ch'io sentia;Gia piansi;Dulces exuviae;Bonjour m'amye;Je suis desheritee;J'ay veu le temps;Pour une, las, j'endure;Non me vincat, Deus meus;Da mihi, Domine;Domine clamavi;Sive vigilem;Le bergier et la bergierre;Ce mais de may (2nd setting);Je ne suis pas de ses gens la;Or est venu le printemps;Ego autem cantabo;Laudate Dominum in sanctis;Timor et tremor (1st setting)",venues[6])
archive_b[35]= new Array("none","Saturday 14th December","14","12","1996","<b>Heinrich Schutz</b> - Hodie Christus natus est;<b>G.P. da Palestrina</b> - Hodie Christus natus est;<b>G.P. da Palestrina</b> - Missa - Hodie Christus natus est;<b>Giovanni Gabrieli</b> - Maria Virgo;<b>Herbert Howells</b> - Tryste Noel;<b>John Tavener</b> - A Christmas Proclamation - God is withus;<b>Ralph Vaughan Williams</b> - Magnificat for women's voices;<b>Samuel Barber</b> - Twelfth Night;<b>Elizabeth Poston</b> - Jesus Christ the Apple Tree;<b>William Mathias</b> - A babe is born",venues[6])
archive_b[36]= new Array("none","Saturday 9th November","09","11","1996","<b>Music by J.S. Bach:</b>;Motet - Singet dem Herrn;Cantata 65 - Sie werden aus Saba alle kommen;Cantata 47 - Wer sich selbst erhohet, der soll erniedriget werden;Mass in F, BWV 233",venues[6])
archive_b[37]= new Array("none","Saturday 8th June","08","06","1996","<b>Francisco Guerrero</b> - Surge propera amica mea;<b>Claudio Monteverdi</b> - Nigra sum;<b>Tomas Luis de Victoria</b> - Vidi speciosam;<b>Claudio Monteverdi</b> - Puchra es;<b>George Jeffreys</b> - Ecce dilectus meus;<b>William Billings</b> - I am the Rose of Sharon;<b>Edward Bairstow</b> - I sat down under his shadow;<b>William Walton</b> - Set me as a seal upon thine arm;<b>Alessandro Striggio</b> - Ecce beatam lucem;<b>Dyricke Gerarde</b> - Ego flos campi;<b>Anthony Milledge</b> - Ego flos campi (a 40);<b>Tony Noakes</b> - My beloved spake;<b>Tony Noakes</b> - By night on my bed;<b>Tony Noakes</b> - Come with me from Lebanon;<b>Tony Noakes</b> - Who is this?;<b>Thomas Tallis</b> - Spem in alium",venues[6])
archive_b[38]= new Array("none","Saturday 30th March","30","03","1996","<b>J.S. Bach</b> - Mass in B Minor",venues[6])
archive_b[39]= new Array("none","Saturday 10th February","10","02","1996","<b>Orlando Gibbons</b> - O clap your hands;<b>Thomas Tomkins</b> - When David heard;<b>Thomas Weelkes</b> - When David heard;<b>John Milton</b> - When David heard;<b>Michael East</b> - When David heard;<b>John Amner</b> - O love, beseeming well;<b>John Amner</b> - Distressed soule;<b>John Amner</b> - Love wee in one consenting;<b>Robert Carver</b> - O bone Jesu;<b>William Mundy</b> - Vox patris caelestis;<b>William Mundy</b> - O Lorde, the maker of al thing;<b>John Amner</b> - Now that the citie;<b>Thomas Weelkes</b> - Alleluia, I heard a voice",venues[6])
archive_b[40]= new Array("none","Saturday 16th December","16","12","1995","<b>John Tavener</b> - A Hymn to the Mother of God;<b>John Tavener</b> - The Lamb;<b>John Tavener</b> - The Tiger;<b>Geoffrey Bush</b> - Christmas Cantata;<b>Anthony Milledge</b> - Fern Hill;<b>Edmund Rubbra</b> - The Virgin's Cradle Hymn;<b>Gustav Holst</b> - Lullay my liking;<b>Vaughan Williams</b> - The blessed Son of God;<b>Vaughan Williams</b> - No sad thought his soul afright;<b>Dyricke Gerarde</b> - Hodie nobis celorum rex;<b>Dyricke Gerarde</b> - Parvulus filius hodie natus est;<b>Dyricke Gerarde</b> - Hodie Christus natus est;<b>Vaughan Williams</b> - Fantasia on Christmas Carols",venues[6])
archive_b[41]= new Array("none","Saturday 14th October","14","10","1995","<b>Antonio Vivaldi</b> - Beatus vir;<b>John Blow</b> - Ode on the death of Henry Purcell;<b>Domenico Scarlatti</b> - Stabat mater;<b>Heinrich Biber</b> - Requiem mass;<b>Henry Purcell</b> - Dido's lament, from Dido and Aeneas;<b>Dyricke Gerarde</b> - Dulces exuviae",venues[6])
archive_b[42]= new Array("none","Saturday 8th July","08","07","1995","<b>Rachmaninov</b> - Vespers;<b>Purcell</b> - I was glad;<b>Purcell</b> - Remember not, Lord, our offences;<b>Purcell</b> - Lord, how long wilt thou be angry;<b>Purcell</b> - Jehovah quam multi sunt hostes mei",venues[6])
archive_b[43]= new Array("none","Saturday 8th April","08","04","1995","<b>Handel</b> - Messiah",venues[6])
archive_b[44]= new Array("none","Saturday 10th December","10","12","1994","<b>Various - Florentine Intermedi of 1589</b>",venues[6])
archive_b[45]= new Array("none","Saturday 15th October","15","10","1994","<b>Music by Dyricke Gerarde:</b>;Hodie nobis celorum rex;Parvulus filius natus est;Hodie Christus natus est;Ceste belle petite bouche;J'attens secours;Soions joyeulx joyeulxement;Quare tristis es;O Maria vernans rosa;Da mihi Domine;Die lume un temp al cieco;Il foco ch'io sentia;Gia piansi;Dulces exuviae;Bonjour m'amye;J'ay mis mon ceur;J'ay veu le temps;Adieu mon esperance;Domine clamavi ad te;Timor et tremor (2nd setting);Le bergier et la bergierre;Ce mois de mai;Je ne suis pas de ses gens la;Or est venu le printemps gracieulx;Ego autem cantabo;Magi veniunt;Timor et tremor (1st setting)",venues[6])
archive_b[46]= new Array("none","Saturday 9th July","09","07","1994","<b>Giovanni Gabrieli</b> - Jubilate Deo;<b>Martin Peerson</b> - Blow out the trumpet;<b>Michael East</b> - When David heard;<b>Michael East</b> - When Israel came out of Egypt;<b>Robert Wylkinson</b> - Salve Regina;<b>Antonii Brumel</b> - Missa - Et ecce terra motus;<b>Gregorio Allegri</b> - Miserere mei, Deus;<b>Georges Paon</b> - Domine quinque talenta;<b>John Amner</b> - Love wee in one consenting;<b>John Amner</b> - Now that the citie;<b>Giovanni Gabrieli</b> - Missa brevis",venues[6])
archive_b[47]= new Array("none","Saturday 26th March","26","03","1994","<b>J.S. Bach</b> - Cantata 50 - Nun ist das Heil;<b>J.S. Bach</b> - Motet - Der Geist hilft;<b>Purcell</b> - Te Deum and Jubilate;<b>J.S. Bach</b> - Magnificat in D",venues[6])
archive_b[48]= new Array("none","Saturday 12th December","12","12","1993","<b>Giovanni Gabrieli</b> - Sancta et immaculata virginitas;<b>Giovanni Gabrieli</b> - Hodie Christus natus est;<b>Jacob Handl</b> - Resonet in laudibus;<b>Pedro Rimonte</b> - De la piel de sus ovejas;<b>Marc-Antoine Charpentier</b> - Messe de minuit;<b>Arr. Anthony Milledge</b> - W zlobie lezy;<b>Arr. Petr Eben</b> - Troc-a-tron;<b>Rachmaninov</b> - Ave Maria;<b>Rachmaninov</b> - Gloria in excelsis;<b>Peter Cornelius</b> - Die Konigen;<b>Arthur Oldham</b> - Remember O thou man;<b>Geoffrey Bush</b> - I sing of a maiden;<b>John Amner</b> - O ye little flock",venues[6])
archive_b[49]= new Array("none","Saturday 30th November","30","11","1993","<b>Marc-Antoine Charpentier</b> - Missa 'Assumpta est Maria';<b>G.F. Handel</b> - Dixit Dominus",venues[6])
archive_b[50]= new Array("none","Saturday 10th July","10","07","1993","<b>G.F. Handel</b> - Jephtha",venues[6])
archive_b[51]= new Array("none","Saturday 3rd April","03","04","1993","<b>Tomas Luis de Victoria</b> - Vidi speciosam;<b>Juan Gutierrez de Padilla</b> - Salve Regina;<b>Tomas Luis de Victoria</b> - Missa - Vidi speciosam;<b>Filipe de Magalhaens</b> - Comissa mea pavesco;<b>Juan Bautista Comes</b> - O magnum mysterium;<b>Juan Bautista Comes</b> - Quem vidistis, pastores?;<b>Georges Paon</b> - Domine quinque talenta;<b>Giaches de Wert</b> - Vox in Rama;<b>Giaches de Wert</b> - Adeste dolori meo;<b>Giaches de Wert</b> - Ascendente Iesu in naviculum;<b>Carlo Gesualdo</b> - O vos omnes;<b>Carlo Gesualdo</b> - Omnes amici mei;<b>Juan Bautista Comes</b> - Hodie nobis celorum rex",venues[6])
archive_b[52]= new Array("none","Saturday 12th December","12","12","1992","<b>Anon. 13th century</b> - Alle psallite;<b>Anon. 15th century</b> - Nowell, nowell, Dieu vous garde;<b>Richard Pygott</b> - Quid petis. o fili?;<b>Giovanni Gabrieli</b> - O magnum mysterium;<b>Sweelinck</b> - Hodie Christus natus est;<b>Juan Bautista Comes</b> - Hodie nobis celorum rex;<b>Peter Cornelius</b> - Die Hirten;<b>Peter Cornelius</b> - Die Konigen;<b>Herbert Howells</b> - A spotless rose;<b>Elizabeth Poston</b> - Jesus Christ the apple tree;<b>William Mathias</b> - A babe is born",venues[6])
archive_b[53]= new Array("none","Saturday 31th October","31","10","1992","<b>Handel</b> - Zadok the Priest;<b>Handel</b> - Ode for the birthday of Queen Anne;<b>Greene</b> - Lord, let me know mine end;<b>Purcell</b> - Jehovah quam multi sunt;<b>Croft</b> - O give thanks;<b>Handel</b> - Sing unto God",venues[6])
archive_b[54]= new Array("none","Saturday 11th July","11","07","1992","<b>Monteverdi</b> - Beatus Vir;<b>Carissimi</b> - Jephte;<b>J.S. Bach</b> - Motet - Furchte dich nicht;<b>J.S. Bach</b> - Motet - Lobet den Herrn;<b>de Lalande</b> - Super flumina Babylonis",venues[6])
archive_b[55]= new Array("none","Saturday 11th April","11","04","1992","<b>J.S. Bach</b> St. Matthew Passion;with Camden Girls' School Senior Chamber Choir and Latymer School Junior Singers",venues[6])


//The clever bit.. reverse the concertarchive so row 0 = latest entry and last row = oldest entry.
//Append archive_b to it which is already in the correct order.
//Result: concertarchive now contains all entries from both archives in descending order.
//As concatination is done on the fly older entries can now continue to be added to archive_b
//as and when with no further code changes to row numbers.

concertarchive=concertarchive.reverse()
concertarchive=concertarchive.concat(archive_b)

// end of clever bit!

var archivelen=concertarchive.length

//used to calc total no of entries and work out oldest and most recent concert years.

x=archivelen-1
var spanfrom =  concertarchive[x][4]
var spanto = concertarchive[0][4]

var archivecount="Currently the archive holds details of "+archivelen+" concerts spanning the period "+spanfrom+" to "+spanto+"."


//main function to write out the newly combined archive to screen


function write_archive(){
for (i=0;i<archivelen;i++){
concertdets=""
concertvenue=""

//establish if new year header needs to be printed

tempyear=concertarchive[i][4]
concertvenue="&nbsp &nbsp &nbsp &nbsp Venue: "+concertarchive[i][6]
if (archiveyear==""){
	archiveyear=concertarchive[i][4]
	yearlist +=archiveyear+";"
	yearheader="Y"
}else{
	if(archiveyear!=tempyear){
		archiveyear=tempyear
		yearlist +=archiveyear+";"
		yearheader="Y"
	
	}else{

		yearheader="N"
	}
}

// if yearheader is Y then header required so define html including associated bookmark

if (yearheader=="Y"){
yearheader='<font color="#CC0000"><b><A NAME="'+archiveyear+'"></A>Concert Year '+archiveyear+':</b></font><hr>'
}else{
yearheader=""
}


//compile list of program items as an unordered list as long as not program item is not blank
concertdets +=uparrow+"&nbsp &nbsp Concert: "+concertarchive[i][1]+" "+concertarchive[i][4]
concertdets +="<br>"+concertvenue
concertdets +="<ul>"

//takes the element containing all the concert prog details,splits it into a temp array for the for loop to process
//to generate the unorderded list.

tempprog=concertarchive[i][5]
concertprog=tempprog.split(";")
progcount= concertprog.length

for (p=0;p<progcount;p++){
tmp=concertprog[p]

if(tmp!=""){
	concertdets +="<li>"+concertprog[p]
}

}
tmp=""
concertdets+="</ul><hr>"

//write out the results
document.writeln(yearheader+concertdets)
}
//what it says on the tin
build_dropdown_list()
}


function build_dropdown_list(){
ddlist= yearlist.split(";")
max=ddlist.length
qt="'"
dlcode=""
dlcode='<select size="1" id="reviews_list" OnChange="namosw_goto_byselect(this, '+qt+"self"+qt+')"><option selected value="archive.htm">Jump to a specific Concert Year</option>'

for (i=0;i<max;i++){
	dlcode +='<option value="'+"#"+ddlist[i]+'">'+ddlist[i]+'</option>'
}

dlcode +='</select>'
document.getElementById("year_drop_down").innerHTML = ""
document.getElementById("year_drop_down").innerHTML = dlcode
tidyup()
} // end of function


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
	
     }
  }
window.focus()
}

function backToTop(reload) {
//http://web-graphics.com/mtarchive/001659.php
//I have added the reload option to his original code
    var x1 = x2 = x3 = 0;
    var y1 = y2 = y3 = 0;

    if (document.documentElement) {
        x1 = document.documentElement.scrollLeft || 0;
        y1 = document.documentElement.scrollTop || 0;
    }

    if (document.body) {
        x2 = document.body.scrollLeft || 0;
        y2 = document.body.scrollTop || 0;
    }

    x3 = window.scrollX || 0;
    y3 = window.scrollY || 0;

    var x = Math.max(x1, Math.max(x2, x3));
    var y = Math.max(y1, Math.max(y2, y3));

    window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));

    if (x > 0 || y > 0) {
        window.setTimeout("backToTop()", 25);
    }

if(reload=="Y"){
window.location.reload(true)
return false;
}

}


function tidyup(){
//clears out all the variables and arrays from memory
concertarchive=""
archive_b=""
archiveyear=""
yearheader=""
yearlist=""
uparrow=""
venues=""
archivelen=""
spanfrom =""
x=""
spanto =""
archivecount=""
concertdets=""
concertvenue=""
tempyear=""
tmp=""
ddlist=""
max=""
qt=""
dlcode=""
index=""
targetstr=""
tempprog=""
concertprog=""
progcount=""
}

