﻿var theImages = new Array() 

theImages[0] = 'http://www.alpakka.org/shopimage/1.jpg'
theImages[1] = 'http://www.alpakka.org/shopimage/2.jpg'
theImages[2] = 'http://www.alpakka.org/shopimage/3.jpg'
theImages[3] = 'http://www.alpakka.org/shopimage/4.jpg'
theImages[4] = 'http://www.alpakka.org/shopimage/5.jpg'
theImages[5] = 'http://www.alpakka.org/shopimage/6.jpg'
theImages[6] = 'http://www.alpakka.org/shopimage/7.jpg'
theImages[7] = 'http://www.alpakka.org/shopimage/8.jpg'
theImages[8] = 'http://www.alpakka.org/shopimage/9.jpg'
theImages[9] = 'http://www.alpakka.org/shopimage/10.jpg'
theImages[10] = 'http://www.alpakka.org/shopimage/11.jpg'
theImages[11] = 'http://www.alpakka.org/shopimage/12.jpg'
theImages[12] = 'http://www.alpakka.org/shopimage/13.jpg'
theImages[13] = 'http://www.alpakka.org/shopimage/14.jpg'
theImages[14] = 'http://www.alpakka.org/shopimage/15.jpg'
theImages[15] = 'http://www.alpakka.org/shopimage/16.jpg'
theImages[16] = 'http://www.alpakka.org/shopimage/17.jpg'
theImages[17] = 'http://www.alpakka.org/shopimage/18.jpg'
theImages[17] = 'http://www.alpakka.org/shopimage/19.jpg'
theImages[17] = 'http://www.alpakka.org/shopimage/20.jpg'
theImages[17] = 'http://www.alpakka.org/shopimage/21.jpg'



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=http://www.alpakka.org/zen><img src="'+theImages[whichImage]+'"></a>');
}






