<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set up the image files to be used.
var theImages = new Array()
var theTexts = new Array()// do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/home_01.jpg'
theImages[1] = 'images/home_02.jpg'
theImages[2] = 'images/home_03.jpg'
theImages[3] = 'images/home_04.jpg'

theTexts[0] = 'images/text_01.png'
theTexts[1] = 'images/text_02.png'
theTexts[2] = 'images/text_03.png'
theTexts[3] = 'images/text_04.png'

// do not edit anything below this line

var p = theImages.length;
var preBuffer = new Array()

var q = theTexts.length;
var buffer = new Array()

for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

for (j = 0; j < q; j++){
	buffer[j] = new Image()
	buffer[j].src = theTexts[j]
}

var whichImage = Math.round(Math.random()*(p-1));

var whichText = Math.round(Math.random()*(q-1));

function showImage(){
document.write('<img src="http://pro.ilion.com/wp-content/themes/ilion/'+theImages[whichImage]+'">');
}

function showText(){
document.write('<img src="http://pro.ilion.com//wp-content/themes/ilion/'+theTexts[whichText]+'">');
}

//  End -->
