var mo = false;
var pp = 7; <!--- Adjust this number up for each new peal --->
bb = new Array(12);
bb[0] = 'Treble';
bb[1] = '2<sup>nd</sup>';
bb[2] = '3<sup>rd</sup>';
bb[3] = '4<sup>th</sup>';
bb[4] = '5<sup>th</sup>';
bb[5] = '6<sup>th</sup>';
bb[6] = '7<sup>th</sup>';
bb[7] = '8<sup>th</sup>';
bb[8] = '9<sup>th</sup>';
bb[9] = '10<sup>th</sup>';
bb[10] = '11<sup>th</sup>';
bb[11] = 'Tenor';
bh = new Array(pp);
pb = new Array(pp);
for (i=0;i<pp;i++)
{ pb[i] = new Array(20);
}
bh[0] = 300;
pb[0][0] = 'ANCIENT SOCIETY OF COLLEGE YOUTHS';
pb[0][1] = '19<sup>th</sup> December, 1730';
pb[0][2] = 'in 3 hours 23&frac12; min';
pb[0][3] = '5,040 Bob Triples';
pb[0][4] = '';
pb[0][5] = 'John Ward';
pb[0][6] = 'John Dearmor';
pb[0][7] = 'William Laughton';
pb[0][8] = 'John Hayward';
pb[0][9] = 'Samuel Jeacocke';
pb[0][10] = 'Benjamin Annable';
pb[0][11] = 'John Cundell';
pb[0][16] = 'John Trenell, Anthony Goodwin, George Willis';
pb[0][17] = 'Conducted by Benjamin Annable';
pb[0][18] = 'The first peal on the bells.</em>';
bh[1] = 380;
pb[1][0] = 'ANCIENT SOCIETY OF COLLEGE YOUTHS';
pb[1][1] = '15<sup>th</sup> December, 1735';
pb[1][2] = 'in 6 hours 23 min';
pb[1][3] = '8,008 Grandsire Cinques';
pb[1][4] = '';
pb[1][5] = 'William Pickard';
pb[1][6] = 'Samuel Lee';
pb[1][7] = 'John Dearmor';
pb[1][8] = 'James Watson';
pb[1][9] = 'Robert Mobbs';
pb[1][10] = 'Samuel Jeacocke';
pb[1][11] = 'John Ward'; 
pb[1][12] = 'John Trenell';
pb[1][13] = 'George Elton Hall';
pb[1][14] = 'Benjamin Annable';
pb[1][15] = 'John Cundell';
pb[1][16] = 'Richard Spicer, Matthew East, Richard Wendleborough';
pb[1][17] = 'Conducted by Benjamin Annable';
pb[1][18] = 'The first peal on the twelve.</em>';
bh[2] = 400;
pb[2][0] = 'ANCIENT SOCIETY OF COLLEGE YOUTHS';
pb[2][1] = 'Monday, 23<sup>rd</sup> May, 1923';
pb[2][2] = 'in 9 hours 47 min';
pb[2][3] = '12,675 Stedman Cinques';
pb[2][4] = 'Comp. H G Miles';
pb[2][5] = 'Challice F Winney';
pb[2][6] = 'Charles W Roberts';
pb[2][7] = 'William S Langdon';
pb[2][8] = 'Wilson Rushton';
pb[2][9] = 'Herbert Langdon';
pb[2][10] = 'William Hibbert';
pb[2][11] = 'Richard F Deal';
pb[2][12] = 'Thomas Langdon'; 
pb[2][13] = 'Thomas Groombridge';
pb[2][14] = 'Richard T Hibbert';
pb[2][15] = 'Henry R Newton';
pb[2][16] = 'Alfred B Peck';
pb[2][17] = 'Conducted by Herbert Langdon';
pb[2][18] = 'The greatest length of Stedman Cinques yet rung.<br><br><em>The composition was later proved false.</em>';
bh[3] = 300;
pb[3][0] = 'ANCIENT SOCIETY OF COLLEGE YOUTHS';
pb[3][1] = 'Saturday, 25<sup>th</sup> April, 1987';
pb[3][2] = '';
pb[3][3] = '5,040 Cambridge Surprise Minor';
pb[3][4] = 'Arr. Rev. E Bankes James';
pb[3][5] = 'Michael J Uphill';
pb[3][6] = 'John Hughes D&#146;Aeth';
pb[3][7] = 'Paul N Mounsey';
pb[3][8] = 'Geoffrey K Dodd';
pb[3][9] = 'Philip Rogers';
pb[3][16] = 'Mark Regan';
pb[3][17] = 'Conducted by Paul N Mounsey';
pb[3][18] = 'Rung on the back six, the heaviest bells ever rung to a peal of minor.';
bh[4] = 400;
pb[4][0] = 'ANCIENT SOCIETY OF COLLEGE YOUTHS';
pb[4][1] = 'Monday, 25<sup>th</sup> May, 1998';
pb[4][2] = 'in 9 hours 42 min';
pb[4][3] = '12,675 Stedman Cinques';
pb[4][4] = 'Comp. P N Mounsey';
pb[4][5] = 'Paul N Mounsey';
pb[4][6] = 'Alan D Flood';
pb[4][7] = 'P Quentin Armitage';
pb[4][8] = 'John Hughes D&#146;Aeth';
pb[4][9] = 'David E House';
pb[4][10] = 'James W Belshaw';
pb[4][11] = 'Thomas W Griffiths';
pb[4][12] = 'Hilary F C Small'; 
pb[4][13] = 'Robert C Kippin';
pb[4][14] = 'Paul L Carless';
pb[4][15] = 'Philip Rogers';
pb[4][16] = 'Mark Regan';
pb[4][17] = 'Conducted by Paul N Mounsey';
pb[4][18] = 'Rung to honour the memory of the members of the Society who took part in the (false) peal of 12,675 Stedman Cinques on Whit Monday May 21<sup>st</sup>.1923, and to celebrate their achievement.';
bh[5] = 480;
pb[5][0] = 'JUNIOR SOCIETY OF COLLEGE YOUTHS';
pb[5][1] = 'On Tuesday, 10<sup>th</sup> January, 1837';
pb[5][2] = 'was peformed by the above Society';
pb[5][3] = '5,016 Stedman Cinques';
pb[5][4] = 'being the first Peal in that intricate Method on these Bells.<br>It had been for many years the wish of many Performers to Complete a Peal in this Method on the 12 Bells. But the Honor Remained for the below mentioned Persons, who in 4 hours & 17 minutes brought their Labors to a Conclusion.';
pb[5][5] = 'JN<sup>o</sup> COX';
pb[5][6] = 'ROB<sup>t</sup> WINFIELD';
pb[5][7] = 'JOS<sup>h</sup> HARRISON';
pb[5][8] = 'S W SAWYER';
pb[5][9] = 'R<sup>t</sup> THIMBLEBY';
pb[5][10] = 'JA<sup>s</sup> STITCHBURY';
pb[5][11] = 'JN<sup>o</sup> BRADLEY'; 
pb[5][12] = 'JA<sup>s</sup> MARSH';
pb[5][13] = 'JN<sup>o</sup> WHITING';
pb[5][14] = 'JO<sup>s</sup> HARPER';
pb[5][15] = 'ED<sup>w</sup> LANDSELL';
pb[5][16] = 'JA<sup>s</sup> SURREIN';
pb[5][17] = 'Composed and Called by JN<sup>o</sup> COX';
pb[5][18] = 'JN<sup>o</sup> HERD <em>Church Warden</em><br>GE<sup>o</sup> DAVIS <em>Bell Warden</em>';
bh[6] = 330;
pb[6][0] = 'ANCIENT SOCIETY OF COLLEGE YOUTHS';
pb[6][1] = '24<sup>th</sup> November, 2007';
pb[6][2] = 'in 3 hours 11 min';
pb[6][3] = '5,056 Cambridge Surprise Major';
pb[6][4] = 'Comp. C Middleton arr H Johnson';
pb[6][5] = 'Cathy L A Cheeseman';
pb[6][6] = 'Michael J Uphill';
pb[6][7] = 'Louise C Palmer';
pb[6][8] = 'Peter Valuks';
pb[6][9] = 'Gavin D Bennett';
pb[6][10] = 'Michael J Palmer';
pb[6][11] = 'Jason W Hughes';
pb[6][16] = 'Hilary FC Small';
pb[6][17] = 'Conducted by Jason W Hughes';
pb[6][18] = '1st Peal on the "Jim Prior" eight. To Celebrate the 400th anniversary of the baptism of John Harvard in this church. For the patronal festival. To mark the diamond wedding anniversary of HM the Queen and the Duke of Edinburgh.</em>';


function popup( p )
{
	var b;
	var l = 100;
	var t = 40;
	var tx = '<table width=100% border=0 cellspacing=0 cellpadding=0>';
	tx += '<tr><td colspan=2 class="peal1">'+pb[p][0]+'</td></tr>';
	tx += '<tr><td colspan=2 class="peal1">'+pb[p][1]+'</td></tr>';
	tx += '<tr><td colspan=2 class="peal1">'+pb[p][2]+'</td></tr>';
	tx += '<tr><td colspan=2 class="peal1"><strong>'+pb[p][3]+'</strong></td></tr>';
	tx += '<tr><td colspan=2 class="peal1"><em>'+pb[p][4]+'</em><br><br></td></tr>';
	for (b=5; b<17; b++)
	{ if (pb[p][b]!=null)
		{ tx += '<tr><td class="peal2">'+pb[p][b]+'</td><td class="peal3">'+bb[b-5]+'</td></tr>';
		}
	}
	tx += '<tr><td colspan=2 class="peal1"><em>'+pb[p][17]+'</em><br><br></td></tr>';
	tx += '<tr><td colspan=2 class="peal2">'+pb[p][18]+'</td></tr>';
	tx += '</table>';
	if (document.documentElement)
	{	t += document.documentElement.scrollTop;
		l += document.documentElement.scrollLeft;
	}
	else
	{	t += document.body.scrollTop;
		l += document.body.scrollLeft;
	}
	document.getElementById('peal').style.top = t+"px";
	document.getElementById('peal').style.left = l+"px";
	document.getElementById('peal').style.height = bh[p]+'px';
	document.getElementById('peal').innerHTML = tx;
	document.getElementById('peal').style.visibility = 'visible';
}

function xpopup()
{
	document.getElementById('peal').innerHTML = '';
	document.getElementById('peal').style.visibility = 'hidden';
}
