// JavaScript Document

if (document.getElementById) { window.onload = swap };
function swap() {
var numimages=11;
rndimg = new Array("http://www.harton-tc.co.uk/images/head01.jpg", "http://www.harton-tc.co.uk/images/head02.jpg", "http://www.harton-tc.co.uk/images/head03.jpg", "http://www.harton-tc.co.uk/images/head04.jpg", "http://www.harton-tc.co.uk/images/head05.jpg", "http://www.harton-tc.co.uk/images/head06.jpg", "http://www.harton-tc.co.uk/images/head07.jpg", "http://www.harton-tc.co.uk/images/head08.jpg", "http://www.harton-tc.co.uk/images/head09.jpg", "http://www.harton-tc.co.uk/images/head10.jpg", "http://www.harton-tc.co.uk/images/head11.jpg"); 
x=(Math.floor(Math.random()*numimages));
randomimage=(rndimg[x]);
document.getElementById("largeTitle").style.backgroundImage = "url("+ randomimage +")"; 
}
