<!--
function setDynamicContent()
{
	<!-- Function to generate a random group of images for display on the homepage. E Dunne. 14/07/2009
	<!-- Added generation of Alt attributes for subtext images. W O'Hara. 20/08/2009
	
	//create arrays for selections
	var mainImages =  [  "home-red-quote.jpg",   "home-blue-quote.jpg",   "home-green-quote.jpg",   "home-orange-quote.jpg",   "home-pink-quote.jpg" ];
	var mainImagesAlt =  [  "In general I find your magazine extremely dull.",   "Going forward.",   "We don't do dull.",   "Economic Miracle.",   "Highly Effective." ];
	var awardImages =  [  "home-red-award.jpg",   "home-blue-award.jpg",   "home-green-award.jpg",   "home-orange-award.jpg",   "home-pink-award.jpg" ];
	var subtextImages =  [  "home-red-intro.jpg",   "home-blue-intro.jpg",   "home-green-intro.jpg",   "home-orange-intro.jpg",   "home-pink-intro.jpg" ];
	var subtextImagesAlt =  [  "A despairing reader wrote this about his membership magazine, and he was right. So the client asked us to take the mag apart and redesign it according to BCB& principles. The result? 'Tremendous, your work has transformed the magazine.'",   "We specialise in bringing clarity to complexity. That means good writing and sharp editing. Or, as it doesn't say, in the BCB& style book: 'Avoid cliches like the plague and make ongoing assessments on the use of jargon'.",   "Magazines have to engage and entertain to inform. Stating the obvious? Sure, but it's amazing how many titles fail to understand the importance of style and spark or a bit of with and warmth. We know it works, and we know how to do it.",   "We recognise that all publishing projects have to pay their way. And many years' experience in extracting quarts from pint pots have made us the sort of lean and efficient outfit that can cut your costs without sacrificing our quality.",   "Don't take our word for it. The UK magazine publishing industry also thinks highly of BCB&'s design and editorial judgement. That's why we're the current holders of the truly prestigious APA Effectiveness Award for membership magazines." ];
	var sIFRCSS = [  	".sIFR-root { background-color: #CCCCCC; color: #EC0019; }",   
						".sIFR-root { background-color: #CCCCCC; color: #0066FF; }",   
						".sIFR-root { background-color: #CCCCCC; color: #009900; }",   
						".sIFR-root { background-color: #CCCCCC; color: #FF6600; }",   
						".sIFR-root { background-color: #CCCCCC; color: #FF00CC; }" ];
	
	//choose a random number from the array
	var selectedNum = Math.floor(Math.random()*mainImages.length); 
	
	//build the image filenames
	var mainImageName = "assets/images/"+mainImages[selectedNum]; 
	var awardImageName = "assets/images/"+awardImages[selectedNum];
	var subtextImageName = "assets/images/"+subtextImages[selectedNum];
	
	//select the image Alt text
	var mainImageAlt = mainImagesAlt[selectedNum];
	var subtextImageAlt = subtextImagesAlt[selectedNum];
	
	//select the CSS to format the subheading using sIFR
	var selectedsIFRCSS = sIFRCSS[selectedNum];
	
	//get references to the images in the page
	var mainImage = document.getElementById('mainimage'); 
	var awardImage = document.getElementById('awardimage'); 
	var subtextImage = document.getElementById('subtextimage'); 
				
	//set the image(s) src and alt tags dynamically
	mainImage.src=mainImageName; 
	mainImage.alt=mainImageAlt; 
	awardImage.src=awardImageName; 
	subtextImage.src=subtextImageName; 
	subtextImage.alt=subtextImageAlt; 
	
	//finally, call the sIFR replace function with the selected CSS to format the sIFR subheading	
	sIFR.replace(griffith, {
					  selector: 'h2#subhead',
					  css: selectedsIFRCSS,
					  wmode: 'transparent'
				});
}
-->