//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+:

///////No need to edit beyond here/////



function returnimgcode(theimg){
document.getElementById("imgdesc").innerHTML = "<b>"+theimg[1] +"</b><br />"+theimg[2];
imghtml='<img  src="'+theimg[0]+'"/>';
return imghtml
}


function modifyimage(loadarea, imgindex, trans, desc){
var filterstring="progid:DXImageTransform.Microsoft.revealTrans(Duration=1.0,Transition="+trans+")"

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
}
}
