//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
dynimages[0]=["", ""]
dynimages[1]=["cecebe1.jpg", "View of the cottage from lake"]
dynimages[2]=["cecebe2.jpg", "View of the cottage from lake"]
dynimages[3]=["cecebe3.jpg", "Lake Cecebe"]
dynimages[4]=["cecebe4.jpg", "Waterfront"]
dynimages[5]=["cecebe5.jpg", "Waterfront"]
dynimages[6]=["cecebe6.jpg", "Waterfront"]
dynimages[7]=["cecebe7.jpg", "View of cottage from back"]
dynimages[8]=["cecebe8.jpg", "View of cottage from back-side"]
dynimages[9]=["cecebe9.jpg", "Sandbox view"]
dynimages[10]=["cecebe10.jpg", "Front deck"]
dynimages[11]=["cecebe11.jpg", "Front deck"]
dynimages[12]=["cecebe12.jpg", "Front deck"]
dynimages[13]=["cecebe13.jpg", "Kitchen"]
dynimages[14]=["cecebe14.jpg", "Kitchen table"]
dynimages[15]=["cecebe15.jpg", "Living room"]
dynimages[16]=["cecebe16.jpg", "Living room"]
dynimages[17]=["cecebe17.jpg", "Living room"]
dynimages[18]=["cecebe18.jpg", "Living room"]
dynimages[19]=["cecebe19.jpg", "Living - Dining rooms"]
dynimages[20]=["cecebe20.jpg", "Master bedroom"]
dynimages[21]=["cecebe21.jpg", "2nd Bedroom"]
dynimages[22]=["cecebe22.jpg", "3rd Bedroom - Basement"]
dynimages[23]=["cecebe23.jpg", "Lower level"]
dynimages[24]=["cecebe24.jpg", "Lake Cecebe"]
//Preload images ("yes" or "no"):
var preloadimg="no"

//pickerel
var dynimagespick=new Array()
dynimagespick[0]=["", ""]
dynimagespick[1]=["pickerel2.jpg", "View from beach"]
dynimagespick[2]=["pickerel3.jpg", "Front of main cottage"]
dynimagespick[3]=["pickerel4.jpg", "Between the two cottages"]
dynimagespick[4]=["pickerel5.jpg", "South-east view"]
dynimagespick[5]=["pickerel6.jpg", "Games room building"]
dynimagespick[6]=["pickerel7.jpg", "Fire Pit"]
dynimagespick[7]=["pickerel8.jpg", "View from beach volleyball court"]
dynimagespick[8]=["pickerel9.jpg", "View of beach volleyball court"]
dynimagespick[9]=["pickerel10.jpg", "Living area"]
dynimagespick[10]=["pickerel11.jpg", "Kitchen area"]
dynimagespick[11]=["pickerel12.jpg", "Family room"]
dynimagespick[12]=["pickerel13.jpg", "2nd Bedroom"]
dynimagespick[13]=["pickerel14.jpg", "Master bedroom"]
dynimagespick[14]=["pickerel15.jpg", "Bathroom"]
dynimagespick[15]=["pickerel16.jpg", "Ducks"]
dynimagespick[16]=["pickerel17.jpg", "Ducks"]
dynimagespick[17]=["pickerel18.jpg", "Loon"]
dynimagespick[18]=["pickerel19.jpg", "Ducks"]

//bernard
var dynimagesbern=new Array()
dynimagesbern[0]=["", ""]
dynimagesbern[1]=["bernard1.jpg", "Front of cottage from lake"]
dynimagesbern[2]=["bernard2.jpg", "Lake view"]
dynimagesbern[3]=["bernard3.jpg", "Lake view"]
dynimagesbern[4]=["bernard4.jpg", "Kitchen & Dining room"]
dynimagesbern[5]=["bernard5.jpg", "Kitchen & Dining room"]
dynimagesbern[6]=["bernard6.jpg", "Living room"]
dynimagesbern[7]=["bernard7.jpg", "Living room"]
dynimagesbern[8]=["bernard8.jpg", "Sunroom"]
dynimagesbern[9]=["bernard9.jpg", "Master bedroom"]
dynimagesbern[10]=["bernard10.jpg", "Bedroom 2"]
dynimagesbern[11]=["bernard11.jpg", "Bedroom 3"]
dynimagesbern[12]=["bernard12.jpg", "Bathroom"]

//forest
var dynimagesfor=new Array()
dynimagesfor[0]=["", ""]
dynimagesfor[1]=["forest1_new.jpg", "Side of cottage"]
dynimagesfor[2]=["forest2_new.jpg", "Back of Cottage"]
dynimagesfor[14]=["forest14_new.jpg", "Main Deck"]
dynimagesfor[4]=["forest4_new.jpg", "Kitchen"]
dynimagesfor[5]=["forest5_new.jpg", "Dining"]
dynimagesfor[6]=["forest6_new.jpg", "Living area"]
dynimagesfor[7]=["forest7_new.jpg", "Bedroom 1"]
dynimagesfor[8]=["forest8_new.jpg", "Bedroom 2"]
dynimagesfor[13]=["forest13_new.jpg", "Bedroom 3"]
dynimagesfor[9]=["forest9_new.jpg", "Upper deck"]
dynimagesfor[10]=["forest10_new.jpg", "Waterfront"]
dynimagesfor[11]=["forest11_new.jpg", "Waterfront"]
dynimagesfor[12]=["forest12_new.jpg", "Waterfront"]
dynimagesfor[3]=["forest3_new.jpg", "Games room (above)"]

//hillside
var dynimageshill=new Array()
dynimageshill[0]=["", ""]
dynimageshill[1]=["hillside1.jpg", "Front from staircase"]
dynimageshill[2]=["hillside2.jpg", "Front cottage"]
dynimageshill[3]=["hillside3.jpg", "Cottage in the summer"]
dynimageshill[4]=["hillside4.jpg", "Outhouse/Shower Room"]
dynimageshill[5]=["hillside5.jpg", "View from lake"]
dynimageshill[6]=["hillside6.jpg", "Cabin in winter"]
dynimageshill[7]=["hillside7.jpg", "Living room"]
dynimageshill[8]=["hillside8.jpg", "Bedroom"]

//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+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

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="cecebe/'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a><br><b>' + theimg[1] + '</b>'
return imghtml
}

function returnimgcodefor(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="forest/'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a><br><b>' + theimg[1] + '</b>'
return imghtml
}

function returnimgcodepick(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="pickerel/'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a><br><b>' + theimg[1] + '</b>'
return imghtml
}

function returnimgcodehill(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="hillside/'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a><br><b>' + theimg[1] + '</b>'
return imghtml
}

function returnimgcodebern(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="bernard/'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a><br><b>' + theimg[1] + '</b>'
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
}
}

function modifyimageForest(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=returnimgcodefor(dynimagesfor[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

function modifyimagePickerel(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=returnimgcodepick(dynimagespick[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

function modifyimageHillside(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=returnimgcodehill(dynimageshill[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

function modifyimageBernard(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=returnimgcodebern(dynimagesbern[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=590,height=410,center = 436,top = 245');");
}