
// Manually controlled fading slideshow script- cross-browser compatible
// Built by Chad Chadwick ccemmett@there.net

var pic = 0

var captions = new Array()
captions[0] = "A classic victorian house like many found along the streets of Alameda.<br>&nbsp;"
captions[1] = "California Heritage Bay</b><br>Though Measure A compliant still lacking the charm of classic Alameda..."
captions[2] =  "...unlike the Croll's Building with its charming architecture and off street apartments.<br>&nbsp;"
captions[3] = "<b>Neptune Court Apartments</b>, circa1925.<br>Forbidden under A."
captions[4] = "<b>Bay Port</b><br>Tasteful Measure A compliant single-family housing."
captions[5] = "Open space provided by this Measure A compliant development<br>&nbsp;"
captions[6] = "<b>Prospect</b><br>Townhouses next to single-family house."
captions[7] = "<b>Cottages</b><br>&nbsp;"
captions[8] = "<b>Garden Isle Townhomes (1973)</b><br>Under Measure A today, a non-compliant development."
captions[9] = "<b>Webster Street</b><br>&nbsp;"
captions[10] = "<b>Chestnut Corner</b><br>Illustration of a traditional Alameda mixed-use neighborhood."
captions[11] = "Another classic victorian house.<br>&nbsp;"

var pix = new Array()
pix[0] = new Image()
pix[0].src = "gallery/00vic.jpg"
pix[1] = new Image()
pix[1].src = "gallery/00cherbay.jpg"
pix[2] = new Image()
pix[2].src = "gallery/00crolls.jpg"
pix[3] = new Image()
pix[3].src = "gallery/h01.jpg"
pix[4] = new Image()
pix[4].src = "gallery/00bayport.jpg"
pix[5] = new Image()
pix[5].src = "gallery/h27.jpg"
pix[6] = new Image()
pix[6].src = "gallery/00prospect.jpg"
pix[7] = new Image()
pix[7].src = "gallery/h14.jpg"
pix[8] = new Image()
pix[8].src = "gallery/h57.jpg"
pix[9] = new Image()
pix[9].src = "gallery/00webster.jpg"
pix[10] = new Image()
pix[10].src = "gallery/h36.jpg"
pix[11] = new Image()
pix[11].src = "gallery/00vic2.jpg"

// Image loader- calls transition function
function loader(){
document.getElementById("viewer").src = pix[pic].src
// Next line changes caption text
document.getElementById("caption").innerHTML = captions[pic]
}

// Next slide function
function forward(){
pic = pic + 1
if(pic==pix.length){
pic=0
}
loader()
}

// Previous slide function
function back(){
pic = pic - 1
if(pic<0){
pic=pix.length-1
}
loader()
}
