if (!window.Vanilla){ var Vanilla = new PathFinder(); Vanilla.webRoot=''; /*Vanilla.webRoot = Vanilla.getRootPath('script', 'src', 'js/global.js');*/ Vanilla.styleUrl = Vanilla.getRootPath('link', 'href', 'vanilla.css'); Vanilla.baseURL = Vanilla.params.httpMethod + Vanilla.params.domain + Vanilla.webRoot; } var theImages = new Array() theImages[0] = '' theImages[1] = '' theImages[2] = '' theImages[3] = '' theImages[4] = '' theImages[5] = '' theImages[6] = '' theImages[7] = '' theImages[8] = '' theImages[9] = '' 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] //preloads } var whichImage = Math.round(Math.random()*(p-1)); function showImage(){ document.write(theImages[whichImage]); }