

//Set image border width
//Preload images ("yes" or "no"):
var preloadimg="yes"
var optlinktarget=""
var imgborderwidth=0
var filterstring= "revealTrans(duration=0.4,transition=12);"
// "progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=0.5 Duration=1.2)"
/**********************************************************************************************\ */
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]!="")
		var jAction = 'onclick="window.open(\''+ theimg[2] +'\');" ';
	if (theimg[1]!="")
	imghtml='<a href="'+theimg[1]+'" '+jAction+'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)
//		wait(1000);
		imgobj.filters[0].Play()
		return false
	}
}


