/***********************************************
* 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[1]=["../photos/photo1-med.jpg", "photo1.html#top"]
dynimages[2]=["../photos/photo2-med.jpg", "photo2.html#top"]
dynimages[3]=["../photos/photo3-med.jpg", "photo3.html#top"]
dynimages[4]=["../photos/photo4-med.jpg", "photo4.html#top"]
dynimages[5]=["../photos/photo5-med.jpg", "photo5.html#top"]
dynimages[6]=["../photos/photo6-med.jpg", "photo6.html#top"]
dynimages[7]=["../photos/photo7-med.jpg", "photo7.html#top"]
dynimages[8]=["../photos/photo8-med.jpg", "photo8.html#top"]
dynimages[9]=["../photos/photo9-med.jpg", "photo9.html#top"]
dynimages[10]=["../photos/photo10-med.jpg", "photo10.html#top"]
dynimages[11]=["../photos/photo11-med.jpg", "photo11.html#top"]
dynimages[12]=["../photos/photo12-med.jpg", "photo12.html#top"]
dynimages[13]=["../photos/photo13-med.jpg", "photo13.html#top"]
dynimages[14]=["../photos/photo14-med.jpg", "photo14.html#top"]
dynimages[15]=["../photos/photo15-med.jpg", "photo15.html#top"]
dynimages[16]=["../photos/photo16-med.jpg", "photo16.html#top"]
dynimages[17]=["../photos/photo17-med.jpg", "photo17.html#top"]
dynimages[18]=["../photos/photo18-med.jpg", "photo18.html#top"]
dynimages[19]=["../photos/photo19-med.jpg", "photo19.html#top"]
dynimages[20]=["../photos/photo20-med.jpg", "photo20.html#top"]
dynimages[21]=["../photos/photo21-med.jpg", "photo21.html#top"]
dynimages[22]=["../photos/photo22-med.jpg", "photo22.html#top"]
dynimages[23]=["../photos/photo23-med.jpg", "photo23.html#top"]
dynimages[24]=["../photos/photo24-med.jpg", "photo24.html#top"]
dynimages[25]=["../photos/northgate3.jpg", "photo25.html#top"]
dynimages[26]=["../photos/maison1-med.jpg", "photo26.html#top"]
dynimages[27]=["../photos/maison2-med.jpg", "photo27.html#top"]
dynimages[28]=["../photos/med-island.jpg", "photo28html#top"]
dynimages[29]=["../photos/med-aerialhouse1.jpg", "photo29.html#top"]
dynimages[30]=["../photos/med-aerialhouse2.jpg", "photo30.html#top"]
dynimages[31]=["../photos/deer2-300.jpg", "photo31.html#top"]
dynimages[32]=["../photos/deer-300.jpg", "photo32.html#top"]
dynimages[33]=["../photos/heron-300.jpg", "photo33.html#top"]
dynimages[34]=["../photos/maison1-300.jpg", "photo34.html#top"]
dynimages[35]=["../photos/maison2-300.jpg", "photo35.html#top"]
dynimages[36]=["../photos/maison3-300.jpg", "photo36.html#top"]
dynimages[37]=["../photos/maison4-300.jpg", "photo37.html#top"]
dynimages[38]=["../photos/maison5-300.jpg", "photo38.html#top"]
dynimages[39]=["../photos/moose-300.jpg", "photo39.html#top"]
dynimages[40]=["../photos/raton-300.jpg", "photo40.html#top"]
dynimages[41]=["../photos/papillon-300.jpg", "photo41.html#top"]
dynimages[42]=["../photos/porcupine-300.jpg", "photo42.html#top"]
dynimages[43]=["../photos/oiseau-300.jpg", "photo43.html#top"]
dynimages[44]=["../photos/geese-300.jpg", "photo44.html#top"]
dynimages[45]=["../photos/geese2-300.jpg", "photo45.html#top"]

//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+'">'
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
}
}
