var MainImages = new Array()
 
//Random-loading images
MainImages[0] = '../UserMods/img/index_main1.jpg' // replace with names of images
MainImages[1] = '../UserMods/img/index_main2.jpg' // replace with names of images
MainImages[2] = '../UserMods/img/index_main3.jpg' // replace with names of images
MainImages[3] = '../UserMods/img/index_main4.jpg' // replace with names of images
MainImages[4] = '../UserMods/img/index_main5.jpg' // replace with names of images
MainImages[5] = '../UserMods/img/halloween_contest.jpg' // replace with names of images

var j = 0
var p = MainImages.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = MainImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showMainImage(){
    if(whichImage==0){
    document.write('<img src="'+MainImages[whichImage]+'" border=0 width=535 height=253>');
    }
    else if(whichImage==1){
    document.write('<img src="'+MainImages[whichImage]+'" border=0 width=535 height=253>');
    }
    else if(whichImage==2){
    document.write('<img src="'+MainImages[whichImage]+'" border=0 width=535 height=253>');
    } 
    else if(whichImage==3){
    document.write('<img src="'+MainImages[whichImage]+'" border=0 width=535 height=253>');
    }
    else if(whichImage==4){
    document.write('<img src="'+MainImages[whichImage]+'" border=0 width=535 height=253>');
    }
    else if(whichImage==5){
    document.write('<img src="'+MainImages[whichImage]+'" border=0 width=535 height=253>');
    }
}
 

var BotAImages = new Array()
 
//Random-loading images
BotAImages[0] = '../UserMods/img/indexa_bedtime.jpg' // replace with names of images
BotAImages[1] = '../UserMods/img/indexa_cleaning.jpg' // replace with names of images
BotAImages[2] = '../UserMods/img/indexa_cradles.jpg' // replace with names of images
BotAImages[3] = '../UserMods/img/indexa_feeding.jpg' // replace with names of images
BotAImages[4] = '../UserMods/img/indexa_travelgear.jpg' // replace with names of images
 
var j = 0
var p = BotAImages.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = BotAImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showBotAImage(){
    if(whichImage==0){
    document.write('<a href="../Scripts/prodList.asp?idCategory=237"><img src="'+BotAImages[whichImage]+'" border=0 width=181 height=186></a>');
    }
    else if(whichImage==1){
    document.write('<a href="../Scripts/prodList.asp?idCategory=228"><img src="'+BotAImages[whichImage]+'" border=0 width=181 height=186></a>');
    }
    else if(whichImage==2){
    document.write('<a href="../Scripts/prodList.asp?idCategory=227"><img src="'+BotAImages[whichImage]+'" border=0 width=181 height=186></a>');
    } 
    else if(whichImage==3){
    document.write('<a href="../Scripts/prodList.asp?gifts0=y"><img src="'+BotAImages[whichImage]+'" border=0 width=181 height=186></a>');
    }
    else if(whichImage==4){
    document.write('<a href="../Scripts/prodList.asp?idCategory=229"><img src="'+BotAImages[whichImage]+'" border=0 width=181 height=186></a>');
    }
}


var BotBImages = new Array()
 
//Random-loading images
BotBImages[0] = '../UserMods/img/indexb_accesories.jpg' // replace with names of images
BotBImages[1] = '../UserMods/img/indexb_essentials.jpg' // replace with names of images
BotBImages[2] = '../UserMods/img/indexb_feeding.jpg' // replace with names of images
BotBImages[3] = '../UserMods/img/indexb_playtime.jpg' // replace with names of images
BotBImages[4] = '../UserMods/img/indexb_puzzles.jpg' // replace with names of images
 
var j = 0
var p = BotBImages.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = BotBImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showBotBImage(){
    if(whichImage==0){
    document.write('<a href="../Scripts/prodList.asp?idCategory=220"><img src="'+BotBImages[whichImage]+'" border=0 width=174 height=186></a>');
    }
    else if(whichImage==1){
    document.write('<a href="../Scripts/prodList.asp?idCategory=223"><img src="'+BotBImages[whichImage]+'" border=0 width=174 height=186></a>');
    }
    else if(whichImage==2){
    document.write('<a href="../Scripts/prodList.asp?idCategory=224"><img src="'+BotBImages[whichImage]+'" border=0 width=174 height=186></a>');
    } 
    else if(whichImage==3){
    document.write('<a href="../Scripts/prodList.asp?idCategory=232"><img src="'+BotBImages[whichImage]+'" border=0 width=174 height=186></a>');
    }
    else if(whichImage==4){
    document.write('<a href="../Scripts/prodList.asp?idCategory=231"><img src="'+BotBImages[whichImage]+'" border=0 width=174 height=186></a>');
    }
}


var BotCImages = new Array()
 
//Random-loading images
BotCImages[0] = '../UserMods/img/indexc_diapering.jpg' // replace with names of images
BotCImages[1] = '../UserMods/img/indexc_footwear.jpg' // replace with names of images
BotCImages[2] = '../UserMods/img/indexc_maternity.jpg' // replace with names of images
BotCImages[3] = '../UserMods/img/indexc_organics.jpg' // replace with names of images
BotCImages[4] = '../UserMods/img/indexc_toys.jpg' // replace with names of images
 
var j = 0
var p = BotCImages.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = BotCImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showBotCImage(){
    if(whichImage==0){
    document.write('<a href="../Scripts/prodList.asp?idCategory=221"><img src="'+BotCImages[whichImage]+'" border=0 width=180 height=186></a>');
    }
    else if(whichImage==1){
    document.write('<a href="../Scripts/prodList.asp?idCategory=222"><img src="'+BotCImages[whichImage]+'" border=0 width=180 height=186></a>');
    }
    else if(whichImage==2){
    document.write('<a href="../Scripts/prodList.asp?idCategory=225"><img src="'+BotCImages[whichImage]+'" border=0 width=180 height=186></a>');
    } 
    else if(whichImage==3){
    document.write('<a href="../Scripts/prodList.asp?idCategory=238"><img src="'+BotCImages[whichImage]+'" border=0 width=180 height=186></a>');
    }
    else if(whichImage==4){
    document.write('<a href="../Scripts/prodlist.asp?topsellers=Y"><img src="'+BotCImages[whichImage]+'" border=0 width=180 height=186></a>');
    }
}