// JavaScript Document

<!-- 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() // do not change this
var theURL = new Array()
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/photos/banner/1.jpg'
theImages[1] = 'images/photos/banner/2.jpg'
theImages[2] = 'images/photos/banner/3.jpg'
theImages[3] = 'images/photos/banner/4.jpg'
theImages[4] = 'images/photos/banner/5.jpg'
theImages[5] = 'images/photos/banner/6.jpg'
theImages[6] = 'images/photos/banner/7.jpg'
theImages[7] = 'images/photos/banner/8.jpg'

theURL[0] = 'http://www.awgdesign.com/demo/bnb/';
theURL[1] = 'http://www.travguide.info';
theURL[2] = 'http://www.travguideasia.info';
theURL[3] = 'http://www.travguideus.info';
theURL[4] = 'http://www.travguideeurope.info';
theURL[5] = 'http://www.onlinetravelguide.com.au';
theURL[6] = 'http://www.suesengravedglass.com';
theURL[7] = 'http://www.yourcityguide.info';

// do not edit anything below this line

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 whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<a href="'+ theURL[whichImage] +'" onclick="window.open(this.href,\'_blank\'); return false"><img src="'+theImages[whichImage]+'" border="0" /></a>');
}