/***********************************************
* 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
***********************************************/

var dynimages=new Array()
dynimages[0]=["images/gallery/pasquale.gif",""]
dynimages[1]=["images/gallery/orfeo.gif",""]
dynimages[2]=["images/gallery/governor.gif",""]
dynimages[3]=["images/gallery/pearlfishers.gif",""]
dynimages[4]=["images/gallery/pearlfishers2.gif",""]
dynimages[5]=["images/gallery/viewbridge.gif",""]
dynimages[6]=["images/gallery/boston.gif",""]
dynimages[7]=["images/gallery/rigoletto.gif",""]
dynimages[8]=["images/gallery/rigoletto2.gif",""]
dynimages[9]=["images/gallery/rigoletto3.gif",""]
dynimages[10]=["images/gallery/rigoletto4.gif",""]
dynimages[11]=["images/gallery/derrosen.gif",""]
dynimages[12]=["images/gallery/magicflute.gif",""]
dynimages[13]=["images/gallery/magicflute2.gif",""]
dynimages[14]=["images/gallery/cosi1.gif",""]
dynimages[15]=["images/gallery/cosi2.gif",""]
dynimages[16]=["images/gallery/cosi3.gif",""]
dynimages[17]=["images/gallery/cosi4.gif",""]
dynimages[18]=["images/gallery/tucker6.gif",""]
dynimages[19]=["images/gallery/tucker5.gif",""]
dynimages[20]=["images/gallery/tucker4.gif",""]
dynimages[21]=["images/gallery/tucker3.gif",""]
dynimages[22]=["images/gallery/tucker2.gif",""]
dynimages[23]=["images/gallery/tucker1.gif",""]
dynimages[24]=["images/gallery/tucker7.gif",""]
dynimages[25]=["images/gallery/headshot2.gif",""]
dynimages[26]=["images/gallery/headshot1.gif",""]
dynimages[27]=["images/gallery/personal1.gif",""]
dynimages[28]=["images/gallery/theboys1.gif",""]
dynimages[29]=["images/gallery/merrywidow1.gif",""]
dynimages[30]=["images/gallery/merrywidow2.gif",""]
dynimages[31]=["images/gallery/personal2.gif",""]
dynimages[32]=["images/gallery/theboys2.gif",""]

var preloadimg="yes"
var imgborderwidth=0
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x][0]
}
}

function returnimgcode(theimg){
var imghtml=""
imghtml='<img src="'+theimg[0]+'" border="'+imgborderwidth+'"><br>'
imghtml+='<div class="picdesc">'+theimg[1]+'</div>'
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
}
}
