// JavaScript Document
/***********************************************
* 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/storegallery/recycling_compactor2.jpg", "Solar-powered compactor", ""]
//dynimages[1]=["images/storegallery/recycling_compactor.jpg", "Solar-powered compactor", ""]
//dynimages[2]=["images/storegallery/recycling_bin.jpg", "Recycling at Choices Markets", ""]
//dynimages[3]=["images/storegallery/recycling_center1.jpg", "White Rock Recycling Centre", ""]
//dynimages[4]=["images/storegallery/recycling_center2.jpg", "Inside the recycling centre", ""]
//dynimages[5]=["images/storegallery/recycling_center3.jpg", "Inside the recycling centre", ""]
//dynimages[6]=["images/storegallery/recycling_center4.jpg", "Hydroponic machines - now available", ""]
//dynimages[7]=["images/storegallery/recycling_center5.jpg", "Choices eco-friendly products", ""]
dynimages[8]=["images/storegallery/recycling_center6.jpg", "Meet the Choices Recyclosaurus!", ""]
//dynimages[9]=["images/storegallery/recycling_center7.jpg", "About our local eco-habitats - we can make a difference!", ""]
dynimages[11]=["images/storegallery/recycling_center8.jpg", "Choices White Rock Recycling Centre", ""]
//dynimages[12]=["images/storegallery/recycling_center9.jpg", "Earth Day sale!!", ""]
//dynimages[13]=["images/storegallery/recycling_center10.jpg", "Organic cotton clothing", ""]
//dynimages[14]=["images/storegallery/recycling_center14.jpg", "Bamboo, hemp & organic cotton clothing", ""]
//dynimages[15]=["images/storegallery/recycling_center15.jpg", "Organic cotton bedding", ""]
dynimages[16]=["images/storegallery/recycling_center16.jpg", "Certified organic plant supplies", ""]
//dynimages[18]=["images/storegallery/recycling_center18.jpg", "The Recycling Centre Christmas tree", ""]
//dynimages[19]=["images/storegallery/recycling_center19.jpg", "Green gift ideas", ""]
//dynimages[20]=["images/storegallery/recycling_center20.jpg", "Bamboo clothes Made in Vancouver, Canada, by BrandWear!", ""]
dynimages[21]=["images/storegallery/recycling_center21.jpg", "Now in stock! The Green Cone Food Digester", ""]
dynimages[22]=["images/storegallery/recycling_center22.jpg", "We accept ALL B.C. deposit containers that are clean, liquid free and without lids", ""]
dynimages[23]=["images/storegallery/recycling_centre23.jpg", "The AeroGarden Classic", ""]
dynimages[24]=["images/storegallery/recycling_centre24.jpg", "How the Green Cone Food Digester works", ""]
dynimages[25]=["images/storegallery/recycling_centre25.jpg", "We are an authorized Grotek dealer", ""]
dynimages[26]=["images/storegallery/recycling_centre26.jpg", "You-Can-Help Recycling Program poster", ""]


//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=1

//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.6)"

///////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[2]!="")
imghtml+='<a href="'+theimg[2]+'" target="_blank">'
if (theimg[1]!="")
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[2]!="")
imghtml+='</a>'
if (theimg[1]!="")
imghtml+='<br>'+theimg[1]+''
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
}
}
