var MainImages = new Array()
 
//Random-loading images
MainImages[0] = '../UserMods/index_lg1.jpg' // replace with names of images
MainImages[1] = '../UserMods/index_lg2.jpg' // replace with names of images
MainImages[2] = '../UserMods/index_lg3.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('<a href ="../Scripts/prodList.asp?idCategory=14"><img src="'+MainImages[whichImage]+'" border=0 width=500 height=451></a>');
    }
    else if(whichImage==1){
    document.write('<a href ="../Scripts/prodList.asp?idCategory=5"><img src="'+MainImages[whichImage]+'" border=0 width=500 height=451></a>');
    }
    else if(whichImage==2){
    document.write('<a href ="../Scripts/prodList.asp?idCategory=101"><img src="'+MainImages[whichImage]+'" border=0 width=500 height=451></a>');
    }
}


var SmallLeft = new Array()
 
//Random-loading images
SmallLeft[0] = '../UserMods/index_sm1t.jpg' // replace with names of images
SmallLeft[1] = '../UserMods/index_sm2t.jpg' // replace with names of images
SmallLeft[2] = '../UserMods/index_sm3t.jpg' // replace with names of images

var j = 0
var p = SmallLeft.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = SmallLeft[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showSmallLeft(){
    if(whichImage==0){
    document.write('<a href ="../Scripts/prodView.asp?idproduct=237"><img src="'+SmallLeft[whichImage]+'" border=0 width=246 height=223></a>');
    }
    else if(whichImage==1){
    document.write('<a href ="../Scripts/prodView.asp?idproduct=201"><img src="'+SmallLeft[whichImage]+'" border=0 width=246 height=223></a>');
    }
    else if(whichImage==2){
    document.write('<a href ="../Scripts/prodView.asp?idproduct=108"><img src="'+SmallLeft[whichImage]+'" border=0 width=246 height=223></a>');
    }
}


var SmallRight = new Array()
 
//Random-loading images
SmallRight[0] = '../UserMods/index_sm1b.jpg' // replace with names of images
SmallRight[1] = '../UserMods/index_sm2b.jpg' // replace with names of images
SmallRight[2] = '../UserMods/index_sm3b.jpg' // replace with names of images

var j = 0
var p = SmallRight.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = SmallRight[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showSmallRight(){
    if(whichImage==0){
    document.write('<a href ="../Scripts/prodView.asp?idproduct=196"><img src="'+SmallRight[whichImage]+'" border=0 width=246 height=223></a>');
    }
    else if(whichImage==1){
    document.write('<a href ="../Scripts/prodView.asp?idproduct=290"><img src="'+SmallRight[whichImage]+'" border=0 width=246 height=223></a>');
    }
    else if(whichImage==2){
    document.write('<a href ="../Scripts/prodView.asp?idproduct=291"><img src="'+SmallRight[whichImage]+'" border=0 width=246 height=223></a>');
    }
}
