//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]="images/s01.jpg"
dynimages[1]="images/s02.jpg"
dynimages[2]="images/s03.jpg"
dynimages[3]="images/s04.jpg"
dynimages[4]="images/s05.jpg"
dynimages[5]="images/s06.jpg"
dynimages[6]="images/s07.jpg"
dynimages[7]="images/s08.jpg"


//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.4)"

if (preloadimg=="yes"){
for (x=0; x<dynimages.length; x++){
var myimage=new Image()
myimage.src=dynimages[x]
}
}

function returnimgcode(theimg){
var imghtml=""
imghtml+='<img src="'+theimg+'" border="'+imgborderwidth+'" width="393">'
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
}
}



//Specify image paths and optional link (set link to "" for no link):
var dynimages2=new Array()
dynimages2[0]="images/n01.jpg"
dynimages2[1]="images/n02.jpg"
dynimages2[2]="images/n03.jpg"
dynimages2[3]="images/n04.jpg"
dynimages2[4]="images/n05.jpg"


//Preload images ("yes" or "no"):
var preloadimg2="yes"

//Set optional link target to be added to all images with a link:
var optlinktarget2=""

//Set image border width
var imgborderwidth2=1

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring2="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.4)"

if (preloadimg=="yes"){
for (x=0; x<dynimages2.length; x++){
var myimage=new Image()
myimage.src=dynimages2[x]
}
}

function returnimgcode2(theimg2){
var imghtml=""
imghtml+='<img src="'+theimg+'" border="'+imgborderwidth+'" width="400">'
return imghtml
}

function modifyimage2(loadarea2, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea2)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages2[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}