var MainImages = new Array()
 
//Random-loading images
MainImages[0] = '../UserMods/img/index_lg1.jpg' // replace with names of images
MainImages[1] = '../UserMods/img/index_lg2.jpg' // replace with names of images
MainImages[2] = '../UserMods/img/index_lg3.jpg' // replace with names of images
MainImages[3] = '../UserMods/img/index_lg4.jpg' // replace with names of images
MainImages[4] = '../UserMods/img/index_lg5.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/prodView_maternity.asp?idproduct=905"><img src="'+MainImages[whichImage]+'" border=0 width=435 height=305></a>');
    }
    else if(whichImage==1){
    document.write('<a href ="../Scripts/prodList_brands.asp?idCategory=223"><img src="'+MainImages[whichImage]+'" border=0 width=435 height=305></a>');
    }
    else if(whichImage==2){
    document.write('<a href ="../Scripts/prodList_brands.asp?idCategory=225"><img src="'+MainImages[whichImage]+'" border=0 width=435 height=305></a>');
    } 
    else if(whichImage==3){
    document.write('<a href ="../Scripts/prodView_brands.asp?idproduct=878"><img src="'+MainImages[whichImage]+'" border=0 width=435 height=305></a>');
    }
    else if(whichImage==4){
    document.write('<a href ="../Scripts/prodView.asp?idproduct=884"><img src="'+MainImages[whichImage]+'" border=0 width=435 height=305></a>');
    }
}
 

var LinkImages = new Array()
 
//Random-loading images
LinkImages[0] = '../UserMods/img/index_link1.gif' // replace with names of images
LinkImages[1] = '../UserMods/img/index_link2.gif' // replace with names of images
LinkImages[2] = '../UserMods/img/index_link3.gif' // replace with names of images
LinkImages[3] = '../UserMods/img/index_link4.gif' // replace with names of images
LinkImages[4] = '../UserMods/img/index_link5.gif' // replace with names of images
 
var j = 0
var p = LinkImages.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = LinkImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showLinkImage(){
    if(whichImage==0){
    document.write('<a href ="../Scripts/prodView_maternity.asp?idproduct=905"><img src="'+LinkImages[whichImage]+'" border=0 width=615 height=42></a>');
    }
    else if(whichImage==1){
    document.write('<a href ="../Scripts/prodList_brands.asp?idCategory=223"><img src="'+LinkImages[whichImage]+'" border=0 width=615 height=42></a>');
    }
    else if(whichImage==2){
    document.write('<a href ="../Scripts/prodList_brands.asp?idCategory=225"><img src="'+LinkImages[whichImage]+'" border=0 width=615 height=42></a>');
    } 
    else if(whichImage==3){
    document.write('<a href ="../Scripts/prodView_brands.asp?idproduct=878"><img src="'+LinkImages[whichImage]+'" border=0 width=615 height=41></a>');
    }
    else if(whichImage==4){
    document.write('<a href ="../Scripts/prodView.asp?idproduct=884"><img src="'+LinkImages[whichImage]+'" border=0 width=615 height=42></a>');
    }
}
 
 

var TextImages = new Array()
 
//Random-loading images
TextImages[0] = '../UserMods/img/index_text1.gif' // replace with names of images
TextImages[1] = '../UserMods/img/index_text2.gif' // replace with names of images
TextImages[2] = '../UserMods/img/index_text3.gif' // replace with names of images
TextImages[3] = '../UserMods/img/index_text4.gif' // replace with names of images
TextImages[4] = '../UserMods/img/index_text5.gif' // replace with names of images
 
var j = 0
var p = TextImages.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = TextImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showTextImage(){
    if(whichImage==0){
    document.write('<img src="'+TextImages[whichImage]+'" border=0 width=180 height=164>');
    }
    else if(whichImage==1){
    document.write('<img src="'+TextImages[whichImage]+'" border=0 width=180 height=164>');
    }
    else if(whichImage==2){
    document.write('<img src="'+TextImages[whichImage]+'" border=0 width=180 height=164>');
    } 
    else if(whichImage==3){
    document.write('<img src="'+TextImages[whichImage]+'" border=0 width=180 height=164>');
    }
    else if(whichImage==4){
    document.write('<img src="'+TextImages[whichImage]+'" border=0 width=180 height=164>');
    }
}


var ShadowImages = new Array()
 
//Random-loading images
ShadowImages[0] = '../UserMods/img/index_shadow1.gif' // replace with names of images
ShadowImages[1] = '../UserMods/img/index_shadow2.gif' // replace with names of images
ShadowImages[2] = '../UserMods/img/index_shadow3.gif' // replace with names of images
ShadowImages[3] = '../UserMods/img/index_shadow4.gif' // replace with names of images
ShadowImages[4] = '../UserMods/img/index_shadow5.gif' // replace with names of images
 
var j = 0
var p = ShadowImages.length;
var preBuffer = new Array()
 
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = ShadowImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
 
function showShadowImage(){
    if(whichImage==0){
    document.write('<img src="'+ShadowImages[whichImage]+'" border=0 width=96 height=141>');
    }
    else if(whichImage==1){
    document.write('<img src="'+ShadowImages[whichImage]+'" border=0 width=96 height=141>');
    }
    else if(whichImage==2){
    document.write('<img src="'+ShadowImages[whichImage]+'" border=0 width=96 height=141>');
    } 
    else if(whichImage==3){
    document.write('<img src="'+ShadowImages[whichImage]+'" border=0 width=96 height=141>');
    }
    else if(whichImage==4){
    document.write('<img src="'+ShadowImages[whichImage]+'" border=0 width=96 height=141>');
    }
}
 
 

