/***********************************************
* 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]=["/new/img-bin/carpet_mohawk_custom_weave.jpg", "/new/html/carpet.shtml"]
dynimages[1]=["/new/img-bin/carpet_mohawk_horizon_carpet.jpg", "/new/html/carpet.shtml"]
dynimages[2]=["/new/img-bin/carpet_mohawk_wundaweave_carpet.jpg", "/new/html/carpet.shtml"]
dynimages[3]=["/new/img-bin/carpet_shaw_ag_clean_living.jpg", "/new/html/carpet.shtml"]
dynimages[4]=["/new/img-bin/carpet_shaw_coastal_trellis_carpet.jpg", "/new/html/carpet.shtml"]
dynimages[5]=["/new/img-bin/carpet_shaw_folklore_carpet.jpg", "/new/html/carpet.shtml"]
dynimages[6]=["/new/img-bin/countertops_daltile_coto_antico.jpg", "/new/html/countertops.shtml"]
dynimages[7]=["/new/img-bin/countertops_daltile_crystaltex.jpg", "/new/html/countertops.shtml"]
dynimages[8]=["/new/img-bin/countertops_daltile_gold_rush_mosaic.jpg", "/new/html/countertops.shtml"]
dynimages[9]=["/new/img-bin/countertops_silestone_capri_limestone.jpg", "/new/html/countertops.shtml"]
dynimages[10]=["/new/img-bin/countertops_silestone_ivory_coast.jpg", "/new/html/countertops.shtml"]
dynimages[11]=["/new/img-bin/countertops_silestone_stellar_meadow.jpg", "/new/html/countertops.shtml"]
dynimages[12]=["/new/img-bin/tile_daltile_fiorito_cotto.jpg", "/new/html/tile.shtml"]
dynimages[13]=["/new/img-bin/tile_daltile_Navelli_ambrato_brown.jpg", "/new/html/tile.shtml"]
dynimages[14]=["/new/img-bin/tile_marazzi_carrara.jpg", "/new/html/tile.shtml"]
dynimages[15]=["/new/img-bin/tile_marrazi_africa_slate.jpg", "/new/html/tile.shtml"]
dynimages[16]=["/new/img-bin/tile_mohawk_alamo_gris.jpg", "/new/html/tile.shtml"]
dynimages[17]=["/new/img-bin/tile_mohawk_egyptian_stone_ramses.jpg", "/new/html/tile.shtml"]
dynimages[18]=["/new/img-bin/vinyl_earthwerks_canyonstone2_vinyl_tile.jpg", "/new/html/vinyl.shtml"]
dynimages[19]=["/new/img-bin/vinyl_earthwerks_canyonstone_vinyl_tile.jpg", "/new/html/vinyl.shtml"]
dynimages[20]=["/new/img-bin/vinyl_earthwerks_vinyl_plank.jpg", "/new/html/vinyl.shtml"]
dynimages[21]=["/new/img-bin/vinyl_mannington_style_and_pace_belmonte_vinyl.jpg", "/new/html/vinyl.shtml"]
dynimages[22]=["/new/img-bin/vinyl_mannington_style_and_pace_checkpoint_vinyl.jpg", "/new/html/vinyl.shtml"]
dynimages[23]=["/new/img-bin/vinyl_mannington_style_and_pace_malpensa_vinyl.jpg", "/new/html/vinyl.shtml"]
dynimages[24]=["/new/img-bin/wood_anderson_exotic_collection.jpg", "/new/html/wood.shtml"]
dynimages[25]=["/new/img-bin/wood_anderson_rhino_tuff_hardwood.jpg", "/new/html/wood.shtml"]
dynimages[26]=["/new/img-bin/wood_mannington_madison_oak_hardwood.jpg", "/new/html/wood.shtml"]
dynimages[27]=["/new/img-bin/wood_mannington_pompeii_stone_laminate.jpg", "/new/html/wood.shtml"]
dynimages[28]=["/new/img-bin/wood_shaw_natural_splendor_laminate.jpg", "/new/html/wood.shtml"]
dynimages[29]=["/new/img-bin/wood_shaw_rustic_sensations_laminate.jpg", "/new/html/wood.shtml"]



//Preload images ("yes" or "no"):
var preloadimg="no"

//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+'" class="imageMed">'
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
}
}
