// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = '<img src="logos/logo1.gif" align="center" hspace="10" border="0">'
theImages[1] = '<a href="products.asp?cat=688"><img src="logos/logo2.gif" align="center" hspace="10" border="0"></a>'
theImages[2] = '<a href="products.asp?cat=129"><img src="logos/logo3.gif" align="center" hspace="10" border="0"></a>'
theImages[3] = '<a href="products.asp?cat=858"><img src="logos/logo4.gif" align="center" hspace="10" border="0"></a>'
theImages[4] = '<a href="products.asp?cat=144"><img src="logos/logo5.gif" align="center" hspace="10" border="0"></a>'
theImages[5] = '<a href="products.asp?cat=159"><img src="logos/logo6.gif" align="center" hspace="10" border="0"></a>'
theImages[6] = '<a href="products.asp?cat=426"><img src="logos/logo7.gif" align="center" hspace="10" border="0"></a>'
theImages[7] = '<a href="products.asp?cat=435"><img src="logos/logo8.gif" align="center" hspace="10" border="0"></a>'
theImages[8] = '<a href="products.asp?cat=1670"><img src="logos/logo9.gif" align="center" hspace="10" border="0"></a>'
theImages[9] = '<a href="products.asp?cat=249"><img src="logos/logo10.gif" align="center" hspace="10" border="0"></a>'
theImages[10] = '<a href="products.asp?cat=254"><img src="logos/logo11.gif" align="center" hspace="10" border="0"></a>'
theImages[11] = '<a href="products.asp?cat=710"><img src="logos/logo12.gif" align="center" hspace="10" border="0"></a>'
theImages[12] = '<a href="products.asp?cat=797"><img src="logos/logo14.gif" align="center" hspace="10" border="0"></a>'
theImages[13] = '<a href="products.asp?cat=265"><img src="logos/logo15.gif" align="center" hspace="10" border="0"></a>'
theImages[14] = '<a href="products.asp?cat=266"><img src="logos/logo16.gif" align="center" hspace="10" border="0"></a>'
theImages[15] = '<a href="products.asp?cat=917"><img src="logos/logo17.gif" align="center" hspace="10" border="0"></a>'
theImages[16] = '<img src="logos/logo18.gif" align="center" hspace="10" border="0">'

// ======================================
// do not change 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-7));
function showImage(id){
//document.write('<img src="'+theImages[whichImage+id]+'">');
//alert(whichImage+id);
document.write(theImages[whichImage+id]);
}
