function showAdvert1Image(){document.write('<a href="'+theLinks[Advert1Image]+'"><img src="'+theImages[Advert1Image]+'" width="180" height="180" border="0"></a>');}function showAdvert2Image(){document.write('<a href="'+theLinks[Advert2Image]+'"><img src="'+theImages[Advert2Image]+'" width="180" height="180" border="0"></a>');}function showAdvert3Image(){document.write('<a href="'+theLinks[Advert3Image]+'"><img src="'+theImages[Advert3Image]+'" width="180" height="180" border="0"></a>');}function showAdvert4Image(){document.write('<a href="'+theLinks[Advert4Image]+'"><img src="'+theImages[Advert4Image]+'" width="180" height="180" border="0"></a>');}function showAdvert5Image(){document.write('<a href="'+theLinks[Advert5Image]+'"><img src="'+theImages[Advert5Image]+'" width="180" height="180" border="0"></a>');}var theImages = new Array();//Advert 1theImages[0] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/1.jpg';theImages[1] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/2.jpg';theImages[2] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/3.jpg';theImages[3] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/16.jpg';//Advert 2theImages[4] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/4.jpg';theImages[5] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/5.jpg';theImages[6] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/6.jpg';theImages[7] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/17.jpg';//Advert 3theImages[8] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/7.jpg';theImages[9] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/8.jpg';theImages[10] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/9.jpg';theImages[11] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/18.jpg';//Advert 4theImages[12] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/10.jpg';theImages[13] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/11.jpg';theImages[14] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/12.jpg';theImages[15] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/19.jpg';//Advert 5theImages[16] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/13.jpg';theImages[17] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/14.jpg';theImages[18] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/15.jpg';theImages[19] = 'http://www.neesham.co.uk/wp-content/themes/neesham/images/homepanels/20.jpg';var theLinks = new Array();//Advert 1theLinks[0] = 'http://www.neesham.co.uk/clients';theLinks[1] = 'http://www.neesham.co.uk/clients';theLinks[2] = 'http://www.neesham.co.uk/clients';theLinks[3] = 'http://www.neesham.co.uk/clients';//Advert 2theLinks[4] = 'http://www.neesham.co.uk/clients';theLinks[5] = 'http://www.neesham.co.uk/clients';theLinks[6] = 'http://www.neesham.co.uk/clients';theLinks[7] = 'http://www.neesham.co.uk/clients';//Advert 3theLinks[8] = 'http://www.neesham.co.uk/clients';theLinks[9] = 'http://www.neesham.co.uk/clients';theLinks[10] = 'http://www.neesham.co.uk/clients';theLinks[11] = 'http://www.neesham.co.uk/clients';//Advert 4theLinks[12] = 'http://www.neesham.co.uk/clients';theLinks[13] = 'http://www.neesham.co.uk/clients';theLinks[14] = 'http://www.neesham.co.uk/clients';theLinks[15] = 'http://www.neesham.co.uk/clients';//Advert 5theLinks[16] = 'http://www.neesham.co.uk/clients';theLinks[17] = 'http://www.neesham.co.uk/clients';theLinks[18] = 'http://www.neesham.co.uk/clients';theLinks[19] = 'http://www.neesham.co.uk/clients';var j = 0;var p = theImages.length;var preBuffer = new Array();for (i = 0; i < p; i++){	preBuffer[i] = new Image();	preBuffer[i].src = theImages[i];}var Advert1Image = Math.floor(Math.random()*(4));var Advert2Image = Math.floor(Math.random()*(4)) + 4;var Advert3Image = Math.floor(Math.random()*(4)) + 8;var Advert4Image = Math.floor(Math.random()*(4)) + 12;var Advert5Image = Math.floor(Math.random()*(4)) + 16;
