<!-- begin script
var dynimages=new Array()
dynimages[0]=["images/homeimages/35.jpg", "Corner View"]
dynimages[1]=["images/homeimages/65.jpg", "16th Century entrance fountain"]
dynimages[2]=["images/homeimages/70.jpg", "Formal dining room"]
dynimages[3]=["images/homeimages/62.jpg", "Living room"]
dynimages[4]=["images/homeimages/39.jpg", "Vista"]
dynimages[5]=["images/homeimages/38.jpg", "Vista"]
dynimages[6]=["images/homeimages/72.jpg", "Master bedroom"]
dynimages[7]=["images/homeimages/08.jpg", "Outdoor dining room/ terrace"]
dynimages[8]=["images/homeimages/40.jpg", "Garden"]
dynimages[9]=["images/homeimages/44.jpg", "Lower Bedroom"]
dynimages[10]=["images/homeimages/37.jpg", "Upstairs"]
dynimages[11]=["images/homeimages/61.jpg", "One of two master bathrooms"]
dynimages[12]=["images/homeimages/13.jpg", "Library"]
dynimages[13]=["images/homeimages/58.jpg", "First floor - guest room , garden view"]
dynimages[14]=["images/homeimages/41.jpg", "Veranda"]
dynimages[15]=["images/homeimages/42.jpg", "Arbor"]
dynimages[16]=["images/homeimages/59.jpg", "Pool bedroom"]
dynimages[17]=["images/homeimages/64.jpg", "Gym in historic Michoacan Troje"]
dynimages[18]=["images/homeimages/36.jpg", "Garden"]
dynimages[19]=["images/homeimages/20.jpg", "Street level, guest room"]
dynimages[20]=["images/homeimages/71.jpg", "Outdoor dining and living room in barbeque area"]
dynimages[21]=["images/homeimages/45.jpg", "Vista"]
dynimages[22]=["images/homeimages/63.jpg", "Daybed in street level guest room"]
dynimages[23]=["images/homeimages/24.jpg", "View of San Miguel from Rooftop Terrace"]
dynimages[24]=["images/homeimages/60.jpg", "Top floor, guest room - garden view"]
dynimages[25]=["images/homeimages/43.jpg", "Hammock"]
dynimages[26]=["images/homeimages/50.jpg", "Lower Bedroom"]
dynimages[27]=["images/homeimages/52.jpg", "Table"]
dynimages[28]=["images/homeimages/46.jpg", "Cascade & Hammock"]
dynimages[29]=["images/homeimages/47.jpg", "Kitchen"]
dynimages[30]=["images/homeimages/48.jpg", "Master Patio"]
dynimages[31]=["images/homeimages/49.jpg", "Study"]
dynimages[32]=["images/homeimages/51.jpg", "Pond"]

dynimages[33]=["images/2009_11_001.jpg", "Gym"]
dynimages[34]=["images/2009_11_002.jpg", "Gym"]
dynimages[35]=["images/2009_11_003.jpg", "Gym"]
dynimages[36]=["images/2009_11_004.jpg", "Gym"]


var preloadimg="no"
var optlinktarget=""
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='<img class=img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
imghtml+='<br><nobr><span class=normal>'+theimg[1]+'</span></nobr>'
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
}
}
// end script -->