// JavaScript Document

	var case_studies = new Array();
	
	// NOTE: Please ensure no single quotes are entered. Also, convert symbols
	// to their respective HTML entities: i.e '&' becomes '&amp;'
	case_studies = [
		[
			'HM Revenue &amp; Customs – Support organisation review',
			'documents/HMRC support.pdf',
			'hmrc.gif'
		],
		[
		 	'HM Revenue &amp; Customs - Migration to new organisation.',
			'documents/HMRC migration.pdf',
			'hmrc.gif'
		],
		[
			'Association of British Insurers – Upward and peer feedback',
			'documents/ABI upward and peer feedback.pdf',
			'abi.gif'
		],
		[
			'Association of British Insurers – Staff surveys',
			'documents/ABI staff surveys.pdf',
			'abi.gif'
		],
		[
			'Northern Ireland Local Government Association - Strategic review.',
			'documents/NILGA.pdf',
			'logoNilga.gif'
		],
		[
		 	'Local Government Association - Quinquennial Review of the Local Authorities\' Coordinators of Regulatory Services (LACORS).',
			'documents/LACORS.pdf',
			'lacors.gif'
		],
		[
		 	'Department of Work and Pensions - Review of inspection, monitoring and support (in relation to Local Authority administration of Housing Benefit).',
			'documents/DWP.pdf',
			'dwplogo.gif'
		],
		[
			'Benefit Fraud Inspectorate – Assessment and development centres for inspection staff',
			'documents/BFI ACs and DCs.pdf',
			'bfi.gif'
		]
	];
	
	// Select a random number from 0 to the length of the array
	var i = Math.random() * case_studies.length;
	i = Math.floor(i);
	
	// Create the HTML to output
	var html = '';

	html += '<p>';
	// Link
	html += '<a href="'+case_studies[i][1]+'">';
	// Filename of logo
	html += '<img src="images/logos/'+case_studies[i][2]+'" width="150" border="0" />';
	html += '</a></p>'
	
	html += '<p>';
	// Link
	html += '<a href="'+case_studies[i][1]+'">';
	// Text
	html += case_studies[i][0];
	html += '</a></p>';
	

	
	document.write(html);
