// JavaScript Document

var arrParticipants = new Array();
arrParticipants[0] = ['lv','LV=','0800 169 11 11','annuity.quotes@lv.com','www.lvadviser.co.uk','0870 243 0078','LV= Retirement Solutions, Keynes House, Tilehouse Street, Hitchin, Herts, SG5 2DX','LV= is a trade mark of Liverpool Victoria Friendly Society Limited and a trading style of the Liverpool Victoria group of companies.<br /><br />Liverpool Victoria Friendly Society Limited is a member of the ABI, AMI, AFS and ILAG. NM Pensions Trustees Limited, registered no. 4299742; LV Life Services Limited, registered no. 4330120 and LV Equity Release Limited, registered no. 1951289. Registered address for all companies: County Gates, Bournemouth BH1 2NF. Tel: 01202 292333. All authorised and regulated by the Financial Services Authority. Visit our website: www.LV.com.<br /><br />Calls may be recorded for training and monitoring purposes.'];
arrParticipants[1] = ['aviva','Aviva','0845 300 6294','enhancedannuity@aviva.co.uk','www.aviva.co.uk','0845 304 1122','Annuity New Business Team, FAO Angela Patterson, PO Box 520, Surrey Street, Norwich NR1 3WG','Aviva Life Services UK Limited. Registered in England No 2403746. 2 Rougier Street, York, YO90 1UU.<br />Aviva Life Services UK Limited is authorised and regulated by the Financial Services Authority.'];
arrParticipants[2] = ['partnership','Partnership','0845 108 7237','info@partnership.co.uk','www.partnership.co.uk','0845 108 7238','Sackville House, 143-149 Fenchurch Street, London EC3M 6BN','Partnership is a trading style of The Partnership Group of Companies, which includes: Partnership Life Assurance Company Limited (registered in England and Wales No. 05465261), and Partnership Home Loans Limited (registered in England and Wales No. 05108846).<br /><br />Both companies are authorised and regulated by the Financial Services Authority.<br />The registered office for both companies is Sackville House, 143-149 Fenchurch Street, London EC3M 6BN.'];
arrParticipants[3] = ['pru','Prudential','0808 234 5100','enhanced.annuities@prudential.co.uk','www.pruadviser.co.uk','0845 600 3658','FREEPOST, Prudential, Stirling, FK9 4UE','Calls may be monitored or recorded for quality and security purposes<br />"Prudential" is a trading name of The Prudential Assurance Company Limited, of Prudential Annuities Limited and of Prudential Retirement Income Limited. This name is also used by other companies within the Prudential Group, which between them provide a range of financial products including life assurance, pensions, savings and investment products. The Prudential Assurance Company Limited and Prudential Annuities Limited are registered in England and Wales. Registered Office at Laurence Pountney Hill, London, EC4R 0HH. Registered numbers 15454 and 2554213 respectively. Prudential Retirement Income Limited is registered in Scotland. Registered Office at PO Box 25, Craigforth, Stirling FK9 4UE.Registered number SCO47842. Authorised and regulated by the Financial SServices Authority.'];
arrParticipants[4] = ['justretirement','Just Retirement','0845 302 2287','ifasupport@justretirement.com','www.justretirement.com','0845 301 2287','Vale House, Roebuck Close, Bancroft Road, Reigate, Surrey RH2 7RU','Just Retirement Limited. Registered office: Vale House, Roebuck Close, Bancroft Road, Reigate, Surrey RH2 7RU. Tel 01737 233296 www.justretirement.com.<br />Registered in England Number 05017193. Just Retirement Limited is authorised and regulated by the Financial Services Authority. We may record and monitor telephone calls to improve customer services. Please contact us if you would like this document in an alternative format.'];
arrParticipants[5] = ['canadalife','Canada Life','01707 421992','ifa_sales_support@canadalife.co.uk','www.canadalife.co.uk/ifazone','01707 671194','Sales Support Canada Life Limited, Canada Life Place, Potters Bar, Hertfordshire EN6 5BA','Canada Life Limited, registered in England no. 973271. Registered office: Canada Life Place, Potters Bar, Hertfordshire EN6 5BA.  Telephone 0845 6060708 Facsimile 01707 646088 www.canadalife.co.uk<br />Canada Life Limited is authorised and regulated by the Financial Services Authority.'];
arrParticipants[6] = ['legalandgeneral','Legal and General','08456 740 747','nsa.team@landg.com','www.legalandgeneral.com/advisercentre','02920 354 684','undefined','We may record and monitor calls. Call charges will vary.<br /><br />Legal & General Assurance Society Limited. Registered in England No. 166055.<br /><br />Registered office: One Coleman Street, London EC2R 5AA.'];
arrParticipants[7] = ['mgmadvantage','MGM Advantage','0845 608 6070','ifaservice@mgmadvantage.com','www.mgmadviser.com','0845 601 6070','MGM Advantage, MGM House, Heene Road, Worthing, West Sussex, BN11 3AT','Telephone calls may be recorded for training and quality monitoring purposes. MGM Assurance Group, Marine and General Mutual Life Assurance Society * Registered no. 0000006. MGM Home Finance PLC* Registered no. 2041570. Both are authorised and regulated by the Financial Services authority. MGM Assurance (Trustees) Limited* Registered no. 1279948. MGM Advantage, Designs for Retirement, MGM Assurance and the MGM logo are Trade Marks of Marine and General Mutual Life Assurance Society. All companies registered in England and Wales. *Registered office One Coleman Street, London EC2R 5AA'];


//Name: showParticipantDetails
//Purpose: To show the contact details for any of the participants
function showParticipantDetails(participant) {
	
	for(i=0;i<arrParticipants.length;i++) {
		
		if(arrParticipants[i][0] == participant) {
			
			for(j=1;j<=7;j++) {
				
				if(document.getElementById('participantDetails' + j) != null) {
					
					var objCurrElement = document.getElementById('participantDetails' + j);
					
					while(objCurrElement.hasChildNodes() == true && objCurrElement.childNodes[0].nodeType == 1) {
				
						var objCurrElement = objCurrElement.childNodes[0];
						
					}
										   
					objCurrElement.innerHTML = arrParticipants[i][j];
					
				}
				
			}
			
		}
		
	}
	
}

//Name: pickRandomParticipant
//Purpose: To pick a random number from the participants array
function pickRandomParticipant() {

	//get a random number
	var iRndNum = Math.floor(Math.random()*arrParticipants.length);
	
	//execute external function
	showParticipantDetails(arrParticipants[iRndNum][0]);
	
}
