//Contents for random image
var theImages = new Array() 

theImages[0] = 'img/1.jpg'
theImages[1] = 'img/2.jpg'
theImages[2] = 'img/3.jpg'
theImages[3] = 'img/4.jpg'
theImages[4] = 'img/5.jpg'
theImages[5] = 'img/6.jpg'
theImages[6] = 'img/7.jpg'
theImages[7] = 'img/8.jpg'
theImages[8] = 'img/9.jpg'
theImages[9] = 'img/10.jpg'

// 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('<img src="'+theImages[whichImage]+'" width="501" height="345">');
}

/*
JavaScript Image slideshow:
By  (www.wsabstract.com)
Over 200+ free JavaScript here!
*/

var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}

function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}

