And here is your example redone…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
<script type="text/javascript">
var img500poundforksArray = new Array();
var img2000poundforksArray = new Array();
var img4000poundforksArray = new Array();
function preloading(){
var imgarray;
for (x=0; x<preloading.arguments.length; x++){
//argument 1 is the img array to use
if(x == 0)
imgarray = preloading.arguments[x];
else{
imgarray[x-1] = new Image();
imgarray[x-1].src = preloading.arguments[x];
}
}
}
function ImgSwap(imageToShow, whereToShow){
var show = document.getElementById(whereToShow);
if(show){
//alert(imageToShow.src + ' ' + whereToShow);
show.src = imageToShow.src;
}
}
//preload the arrays
preloading(
img500poundforksArray,
"http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup1.gif",
"http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup2.gif",
"http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup3.gif",
"http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup4.gif",
"http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup5.gif",
"http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup6.gif",
"http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup7.gif",
"http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup8.gif",
"http://www.silverlakefabrication.com/productmainpics/500poundforksmainpic.gif"
);
preloading(
img2000poundforksArray,
"http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup1.gif",
"http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup2.gif",
"http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup3.gif",
"http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup4.gif",
"http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup5.gif",
"http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup6.gif",
"http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup7.gif",
"http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup8.gif",
"http://www.silverlakefabrication.com/productmainpics/2000poundforksmainpic.gif"
);
preloading(
img4000poundforksArray,
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup1.gif",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup2.bmp",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup3.bmp",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup4.gif",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup5.gif",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup6.gif",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup7.bmp",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup8.gif",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup9.gif",
"http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup10.gif",
"http://www.silverlakefabrication.com/productmainpics/4000poundforksmainpic.gif"
);
</script>
</head>
<body>
<div style="border: 1px solid red;">
<a name="500poundforks"></a>
<img id="500poundforks" src="http://www.silverlakefabrication.com/productmainpics/500poundforksmainpic.gif" border="0" height="480" width="640" />
<br />
<b>PLEASE CLICK ON THE PICTURES BELOW TO SEE CLOSE-UPS OF THE FORKS</b>
<br />
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[0], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup1th.gif" border="0" alt="Close up 1"></img></a>
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[1], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup2th.gif" border="0" alt="Close up 2"></img></a>
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[2], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup3th.gif" border="0" alt="Close up 3"></img></a>
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[3], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup4th.gif" border="0" alt="close up 4"></img></a>
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[4], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup5th.gif" border="0" alt="Close up 5"></img></a>
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[5], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup6th.gif" border="0" alt="Close up 6"></img></a>
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[6], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup7th.gif" border="0" alt="Close up 7"></img></a>
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[7], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/closeup8th.gif" border="0" alt="Close up 8"></img></a>
<a href="#500poundforks" onclick="ImgSwap(img500poundforksArray[8], '500poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/500poundforks/500poundforksth.gif" border="0" alt="500poundforksth"></img></a>
</div>
<div style="border: 1px solid green; margin-top: 15px;">
<a name="2000poundforks"></a>
<img id="2000poundforks" src="http://www.silverlakefabrication.com/productmainpics/2000poundforksmainpic.gif" border="0" height="480" width="640" />
<br />
<b>PLEASE CLICK ON THE PICTURES BELOW TO SEE CLOSE-UPS OF THE FORKS</b>
<br />
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[0], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup1th.gif" border="0" alt="Close up 1"></img></a>
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[1], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup2th.gif" border="0" alt="Close up 2"></img></a>
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[2], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup3th.gif" border="0" alt="Close up 3"></img></a>
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[3], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup4th.gif" border="0" alt="close up 4"></img></a>
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[4], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup5th.gif" border="0" alt="Close up 5"></img></a>
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[5], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup6th.gif" border="0" alt="Close up 6"></img></a>
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[6], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup7th.gif" border="0" alt="Close up 7"></img></a>
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[7], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/closeup8th.gif" border="0" alt="Close up 8"></img></a>
<a href="#2000poundforks" onclick="ImgSwap(img2000poundforksArray[8], '2000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/2000poundforks/2000poundforksth.gif" border="0" alt="2000poundforksth"></img></a>
</div>
<div style="border: 1px solid blue; margin-top: 15px;">
<a name="4000poundforks"></a>
<img id="4000poundforks" src="http://www.silverlakefabrication.com/productmainpics/4000poundforksmainpic.gif" border="0" height="480" width="640" />
<br />
<b>PLEASE CLICK ON THE PICTURES BELOW TO SEE CLOSE-UPS OF THE FORKS</b>
<br />
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[0], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup1th.gif" border="0" alt="Close up 1"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[1], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup2th.gif" border="0" alt="Close up 2"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[2], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup3th.gif" border="0" alt="Close up 3"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[3], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup4th.gif" border="0" alt="close up 4"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[4], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup5th.gif" border="0" alt="Close up 5"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[5], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup6th.gif" border="0" alt="Close up 6"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[6], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup7th.gif" border="0" alt="Close up 7"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[7], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup8th.gif" border="0" alt="Close up 8"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[8], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup9th.gif" border="0" alt="Close up 9"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[9], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/closeup10th.gif" border="0" alt="Close up 10"></img></a>
<a href="#4000poundforks" onclick="ImgSwap(img4000poundforksArray[10], '4000poundforks')"><img src="http://www.silverlakefabrication.com/productcloseups/4000poundforks/4000poundforksth.gif" border="0" alt="4000poundforksth"></img></a>
</div>
</body>
</html>