//number of photographs to select from...var number_of_backgrounds = 16; var photograph_title = new Array(number_of_backgrounds);photograph_title[0] = "St Andrews Castle ruins (photograph copyright by Gušmundur Andri Hjįlmarsson)";photograph_title[1] = "The Sea at St Andrews (photograph copyright by Gušmundur Andri Hjįlmarsson)";photograph_title[2] = "St Andrews Castle ruins  (photograph copyright by Gušmundur Andri Hjįlmarsson)";photograph_title[3] = "St Andrews seen from the West Sands (photograph copyright by Gušmundur Andri Hjįlmarsson)";photograph_title[4] = "St Andrews seen from the South (photograph copyright by Simon Prosser)";photograph_title[5] = "St Andrews Long Pier (photograph copyright by Simon Prosser)";photograph_title[6] = "St Andrews seen from the South (photograph copyright by Simon Prosser)";photograph_title[7] = "The Sky over St Andrews (photograph copyright by Simon Prosser)";photograph_title[8] = "The Sea at St Andrews (photograph copyright by Simon Prosser)";photograph_title[9] = "St Andrews seen from the South (photograph copyright by Simon Prosser)";photograph_title[10] = "The Sea at St Andrews  (photograph copyright by Simon Prosser)";photograph_title[11] = "St Andrews seen from the South (photograph copyright by Simon Prosser)";photograph_title[12] = "The Sea at St Andrews (photograph copyright by Simon Prosser)";photograph_title[13] = "St Andrews seen from the South (photograph copyright by Simon Prosser)";photograph_title[14] = "St Andrews seen from the South (photograph copyright by Simon Prosser)";photograph_title[15] = "The Sea at St Andrews (photograph copyright by Simon Prosser)";//random selection of heading photograph...function randomHeading(){			var photograph = document.getElementById('heading_photograph');		var i = Math.round(Math.random()*(number_of_backgrounds-1));		photograph.src = "graphic/headings/" + i + ".jpg";	photograph.title = photograph_title[i];}