function showAdvert1Image(){document.write('<a href="'+theLinks[Advert1Image]+'"><img src="'+theImages[Advert1Image]+'" width="190" height="106" border="0"></a>');}function showAdvert2Image(){document.write('<a href="'+theLinks[Advert2Image]+'"><img src="'+theImages[Advert2Image]+'" width="190" height="106" border="0"></a>');}function showAdvert3Image(){document.write('<a href="'+theLinks[Advert3Image]+'"><img src="'+theImages[Advert3Image]+'" width="190" height="106" border="0"></a>');}var theImages = new Array();//Advert 1theImages[0] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/1a.jpg';theImages[1] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/1b.jpg';theImages[2] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/1c.jpg';//Advert 2theImages[3] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/2a.jpg';theImages[4] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/2b.jpg';theImages[5] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/2c.jpg';//Advert 3theImages[6] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/3a.jpg';theImages[7] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/3b.jpg';theImages[8] = 'http://www.pilotwarehouse.co.uk/sitegraphics/randomiser/3c.jpg';var theLinks = new Array();//Advert 1theLinks[0] = 'http://shop.pilotwarehouse.co.uk/product294023.html';theLinks[1] = 'http://shop.pilotwarehouse.co.uk/product13140023.html';theLinks[2] = 'http://shop.pilotwarehouse.co.uk/product139023.html';//Advert 2theLinks[3] = 'http://shop.pilotwarehouse.co.uk/product19670023.html';theLinks[4] = 'http://shop.pilotwarehouse.co.uk/product547000023.html';theLinks[5] = 'http://shop.pilotwarehouse.co.uk/product284023.html';//Advert 3theLinks[6] = 'http://shop.pilotwarehouse.co.uk/product608000023.html';theLinks[7] = 'http://shop.pilotwarehouse.co.uk/product14390023.html';theLinks[8] = 'http://shop.pilotwarehouse.co.uk/product21070023.html';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()*(3));var Advert2Image = Math.floor(Math.random()*(3)) + 3;var Advert3Image = Math.floor(Math.random()*(3)) + 6;