
// ==============================================
// 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] = 'images/bookswap/chasing-repousse.jpg'
theImages[1] = 'images/bookswap/jewelry-illustration.jpg'
theImages[2] = 'images/bookswap/CLLC.jpg'
theImages[3] = 'images/bookswap/PMCBasics.jpg'
theImages[4] = 'images/bookswap/CM-DVD.jpg'
theImages[5] = 'images/bookswap/Cold-Connections.jpg'
theImages[6] = 'images/bookswap/PMCBeads.jpg'
theImages[7] = 'images/bookswap/MBBL.jpg'
theImages[8] = 'images/bookswap/CMPro.jpg'
theImages[9] = 'images/bookswap/CMStudent.jpg'
theImages[10] = 'images/bookswap/CMProPlus.jpg'
theImages[11] = 'images/bookswap/CS.jpg'
theImages[12] = 'images/bookswap/CK.jpg'
theImages[13] = 'images/bookswap/DL.jpg'
theImages[14] = 'images/bookswap/DLie.jpg'
theImages[15] = 'images/bookswap/foldforming.jpg'
theImages[16] = 'images/bookswap/JFM.jpg'
theImages[17] = 'images/bookswap/IPM.jpg'
theImages[18] = 'images/bookswap/JP.jpg'
theImages[19] = 'images/bookswap/MT.jpg'
theImages[20] = 'images/bookswap/PMC-Decade.jpg'
theImages[21] = 'images/bookswap/PMC-Technic.jpg'
theImages[22] = 'images/bookswap/PC.jpg'
theImages[23] = 'images/bookswap/PJ.jpg'
theImages[24] = 'images/bookswap/PushPlay.jpg'
theImages[25] = 'images/bookswap/SSMC.jpg'
theImages[26] = 'images/bookswap/SO.jpg'
theImages[27] = 'images/bookswap/TPG.jpg'
theImages[28] = 'images/bookswap/EG.jpg'
theImages[29] = 'images/bookswap/PBdvd.jpg'
theImages[30] = 'images/bookswap/spinspiration-app.jpg'
theImages[31] = 'images/bookswap/Notes.jpg'
theImages[32] = 'images/bookswap/metalsmith-app.jpg'
theImages[33] = 'images/bookswap/VL.jpg'
theImages[34] = 'images/bookswap/PJM.jpg'

// theImages[2] = '300.jpg'
// theImages[3] = '400.jpg'
// theImages[4] = '500.jpg'

// ======================================
// 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-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//
