/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["Images/Products/Baths/AM152JDTS_001.gif", ""]
dynimages[1]=["Images/Products/Baths/AM139_001.gif", ""]
dynimages[2]=["Images/Products/Baths/AM151JDTSZ_001a.gif", ""]
dynimages[3]=["Images/Products/Baths/AM121JDCLZ_001.gif", ""]
dynimages[4]=["Images/Products/Baths/AM151_1a.gif", ""]
dynimages[5]=["Images/Products/Baths/AM127a.gif", ""]
dynimages[6]=["Images/Products/Baths/AM154JDTSZ_001.gif", ""]
dynimages[7]=["Images/Products/Baths/AM146JDTS_001.gif", ""]
dynimages[8]=["Images/Products/Baths/AM152JDTStxt_blk.gif", ""]
dynimages[9]=["Images/Products/Baths/AM139txt_blk.gif", ""]
dynimages[10]=["Images/Products/Baths/AM151JDTSZtxt_blk.gif", ""]
dynimages[11]=["Images/Products/Baths/AM121JDCLZtxt_blk.gif", ""]
dynimages[12]=["Images/Products/Baths/AM151JDTSZ_1txt_blk.gif", ""]
dynimages[13]=["Images/Products/Baths/AM127txt_blk.gif", ""]
dynimages[14]=["Images/Products/Baths/AM154JDTSZtxt_blk.gif", ""]
dynimages[15]=["Images/Products/Baths/AM146JDTStxt_blk.gif", ""]
dynimages[16]=["Images/Products/DynArea/InStock.gif", ""]
dynimages[17]=["Images/Products/DynArea/Del_6W.gif", ""]
dynimages[18]=["Images/Products/DynArea/FinalRed.gif", ""]
dynimages[19]=["Images/Products/DynArea/SpecialOffer.gif", ""]
dynimages[20]=["Images/Products/DynArea/BestPrice.gif", ""]
dynimages[21]=["Images/Products/DynArea/PricesFrom.gif", ""]
dynimages[22]=["Images/Products/DynArea/Del_12W.gif", ""]
dynimages[23]=["Images/Products/DynArea/OctOffer.gif", ""]
dynimages[24]=["Images/Products/DynArea/NP2048.gif", ""]
dynimages[25]=["Images/Products/DynArea/NP1217.gif", ""]
dynimages[26]=["Images/Products/DynArea/NP1852.gif", ""]
dynimages[27]=["Images/Products/DynArea/AM123JDCWtxt_blk.gif", ""]
dynimages[28]=["Images/Products/DynArea/AM123JDCWtxt_blk.gif", ""]
dynimages[29]=["Images/Products/DynArea/AM123JDCWtxt_blk.gif", ""]
dynimages[30]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[31]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[32]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[33]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[34]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[35]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[36]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[37]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[38]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[39]=["Images/Products/DynArea/PriceXXX.gif", ""]
dynimages[40]=["Images/Products/Prices/P02355.gif", ""]//152
dynimages[41]=["Images/Products/Prices/P01400.gif", ""]//139
dynimages[42]=["Images/Products/Prices/P02130.gif", ""]//151
dynimages[43]=["Images/Products/Prices/P01456.gif", ""]//121
dynimages[44]=["Images/Products/Prices/P02928.gif", ""]//151-1
dynimages[45]=["Images/Products/Prices/P00995.gif", ""]//127
dynimages[46]=["Images/Products/Prices/P01636.gif", ""]//154
dynimages[47]=["Images/Products/Prices/P02243.gif", ""]//146
dynimages[48]=["Images/Products/Prices/P00850.gif", ""]
dynimages[49]=["Images/Products/Prices/P0XXX.gif", ""]
dynimages[50]=["Images/Products/Prices/P0XXX.gif", ""]

//Preload images ("yes" or "no"):
var preloadimg="yes"

//Set optional link target to be added to all images with a link:
var optlinktarget=""

//Set image border width
var imgborderwidth=0

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}

function returnimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

function modifyimage(loadarea, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}


