/* 
Original:  Nicholas Lupien (smylex@aol.com) 
Modifications: Peter Chowla (peter@cseindia.org)
This script and many more are available free online at 
The JavaScript Source!! http://javascript.internet.com 
*/

topimage = new Array;
midimage = new Array;
botimage = new Array;
for (var ind = 0; ind <4; ind++){
	topimage[ind] = new Image();
	midimage[ind] = new Image();
	botimage[ind] = new Image();
} 

topimage[0].src = "/sumangalam1.jpg";
topimage[1].src = "/desert1.jpg";
topimage[2].src = "/johad1.jpg";
topimage[3].src = "/arvari1.jpg";

midimage[0].src = "/sumangalam2.jpg";
midimage[1].src = "/desert2.jpg";
midimage[2].src = "/johad2.jpg";
midimage[3].src = "/arvari2.jpg";

botimage[0].src = "/sumangalam3.jpg";
botimage[1].src = "/desert3.jpg";
botimage[2].src = "/johad3.jpg";
botimage[3].src = "/arvari3.jpg";


function swapPic() {
var Rand = Math.round((topimage.length * Math.random())-0.5);
if(document.layers){
var place=document.MAIN;
place.document.TopPix.src = topimage[Rand].src;
place.document.MidPix.src = midimage[Rand].src;
place.document.BotPix.src = botimage[Rand].src;
place.document.ShadPix.src = "frontshadow.jpg";
place.document.ShadPix.src = "/ieshadow.jpg";
}
else{
document.TopPix.src = topimage[Rand].src;
document.MidPix.src = midimage[Rand].src;
document.BotPix.src = botimage[Rand].src;
document.ShadPix.src = "/ieshadow.jpg";
}
}

