var dynimages=new Array()
dynimages[0]=["http://case.salentovacanza.com/posto_vecchio/0406/1.JPG"]
dynimages[1]=["http://case.salentovacanza.com/posto_vecchio/0406/2.JPG"]
dynimages[2]=["http://case.salentovacanza.com/posto_vecchio/0406/3.JPG"]
dynimages[3]=["http://case.salentovacanza.com/posto_vecchio/0406/4.JPG"]
dynimages[4]=["http://case.salentovacanza.com/posto_vecchio/0406/5.JPG"]
dynimages[5]=["http://case.salentovacanza.com/posto_vecchio/0406/6.JPG"]
dynimages[6]=["http://case.salentovacanza.com/posto_vecchio/0406/7.JPG"]
dynimages[7]=["http://case.salentovacanza.com/posto_vecchio/0406/8.JPG"]
dynimages[8]=["http://case.salentovacanza.com/posto_vecchio/0406/9.JPG"]
dynimages[9]=["http://case.salentovacanza.com/posto_vecchio/0406/10.JPG"]
dynimages[10]=["http://case.salentovacanza.com/posto_vecchio/0406/11.JPG"]
dynimages[11]=["http://case.salentovacanza.com/posto_vecchio/0406/12.JPG"]
dynimages[12]=["http://case.salentovacanza.com/posto_vecchio/0406/13.JPG"]
dynimages[13]=["http://case.salentovacanza.com/posto_vecchio/0406/14.JPG"]
dynimages[14]=["http://case.salentovacanza.com/posto_vecchio/0406/15.JPG"]
dynimages[15]=["http://case.salentovacanza.com/posto_vecchio/0406/16.JPG"]
dynimages[16]=["http://case.salentovacanza.com/posto_vecchio/0406/17.JPG"]
dynimages[17]=["http://case.salentovacanza.com/posto_vecchio/0406/18.JPG"]
dynimages[18]=["http://case.salentovacanza.com/posto_vecchio/0406/19.JPG"]
dynimages[19]=["http://case.salentovacanza.com/posto_vecchio/0406/20.JPG"]
dynimages[20]=["http://case.salentovacanza.com/posto_vecchio/0406/21.JPG"]

var preloadimg="yes"
var optlinktarget="no"
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=""
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
}
}