// Load Random Image.
//Then put this where you want the images to appear: <script>showImage();</script >

var theImages = new Array()

//Random-loading images
theImages[0] = 'http://www.myartisttree.com/images/banners/myartisttree_0.jpg' // replace with names of images
theImages[1] = 'http://www.myartisttree.com/images/banners/myartisttree_Fountains_1.jpg' 
theImages[2] = 'http://www.myartisttree.com/images/banners/myartisttree_Fountains_2.jpg' 
theImages[3] = 'http://www.myartisttree.com/images/banners/myartisttree_October_3.jpg' 
theImages[4] = 'http://www.myartisttree.com/images/banners/myartisttree_October_4.jpg' 
theImages[5] = 'http://www.myartisttree.com/images/banners/myartisttree_batarang_1.jpg' 
theImages[6] = 'http://www.myartisttree.com/images/banners/myartisttree_batarang_2.jpg'
theImages[7] = 'http://www.myartisttree.com/images/banners/myartisttree_digital_art_1.jpg'
theImages[8] = 'http://www.myartisttree.com/images/banners/myartisttree_digital_art_2.jpg'
theImages[9] = 'http://www.myartisttree.com/images/banners/myartisttree_digital_art_3.jpg'
theImages[10] = 'http://www.myartisttree.com/images/banners/myartisttree_illustration_1.jpg'
theImages[11] = 'http://www.myartisttree.com/images/banners/myartisttree_painting_1.jpg'
theImages[12] = 'http://www.myartisttree.com/images/banners/myartisttree_painting_2.jpg'
theImages[13] = 'http://www.myartisttree.com/images/banners/myartisttree_painting_3.jpg'
theImages[14] = 'http://www.myartisttree.com/images/banners/myartisttree_scuplture_1.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(){
if(whichImage==0){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==1){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==2){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==3){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==4){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==5){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==6){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==7){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==8){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==9){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==10){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==11){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==12){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==13){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}
else if(whichImage==14){
document.write('<a href ="http://www.myartisttree.com"><img src="'+theImages[whichImage]+'" border=0 width=850 height=185></a>');
}


}
