// JavaScript Document

<!--
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var myimages = new Array(); // don't change this
var Caption = new Array(); // don't change this
var showHot = true;       // don't change this

myimages[0]  = 'images/espey_img1.jpg';
myimages[1]  = 'images/espey_img1.jpg';
myimages[2]  = 'images/espey_img2.jpg';
myimages[3]  = 'images/espey_img3.jpg';
myimages[4]  = 'images/espey_img4.jpg';
myimages[5]  = 'images/espey_img5.jpg';
myimages[6]  = 'images/espey_img6.jpg';
myimages[7]  = 'images/espey_img7.jpg';
myimages[8]  = 'images/espey_img8.jpg';
myimages[9]  = 'images/espey_img9.jpg';
myimages[10] = 'images/espey_img10.jpg';

Caption[0]  = "Click 'Next' to begin.";
Caption[1]  = "The afternoon sun gleamed from the tile façade of the Hearst Building as smoke billows from the adjacent Monadock Building and Palace Hotel along Market Street. Despite severe damage that would later be repaired, all three structures are in place today. [Modern digital technology was able to accurately reproduce this image for the first time from a negative that suffered severe solarization during the developing process.]";
Caption[2]  = "This group pored through the rubble in search of utensils to cook in.";
Caption[3]  = "A woman collected shreds of the wreckage to use in construction of a makeshift shelter.";
Caption[4]  = "Crowds surrounded a collapsing rooming house near Third & Market streets to rescue survivors from the ruins.";
Caption[5]  = "Soils beneath the Valencia Street Hotel, situated between 18th & 19th streets, gave way to liquefaction causing the four-story structure to collapse with as many as 200 people inside. Neighbors were able to pull 70 bodies from the wreckage before the fire consumed all that remained.";
Caption[6]  = "As the city burned, a procession of displaced refugees descended Market Street to the Ferry Building to board vessels bound across the bay. Thousands of survivors arrived at the Oakland Mole and Berkeley Marina – and at ferry landings around the bay – in need of shelter and food.";
Caption[7]  = "The condition of streetcar tracks at 18th and Valencia streets testified to the violence of the ground motion during the earthquake, and the hazards posed by soil liquefaction. Fires eventually engulfed the neighborhood shown in this picture, after two full days of  uncontrolled conflagration.";
Caption[8]  = "By mid-afternoon, the flames had converged on Market Street, with fires descending from both sides, driven by westerly winds. Damage to the water supply emptied fire hydrants and with manpower scarce, the city was helpless against the devastation. Here, just after 2:00 p.m., the flames engulf the offices of the San Francisco Call, the last of the city’s daily newspapers to meet complete destruction.";
Caption[9]  = "Here in Oakland, five residents of an apartment above the Empire Theatre at 466 12th St. died when the roof partially collapsed upon them. Except for extensive brick fall from unreinforced masonry exteriors, the city was spared significant damage in the quake.";
Caption[10] = "As the dawn broke over the city the following morning, the extent of the devastation presented an eerie landscape in this view looking west on Market Street.";

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 0;
var pss = myimages.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
	preLoad[iss] = new Image();
	preLoad[iss].src = myimages[iss];
}

function control(how){
	if (showHot){
		if (how=="N") jss = jss + 1;
		if (how=="P") jss = jss - 1;
		if (jss > (pss)) jss=1;
		if (jss < 1) jss = pss;
		if (document.all){
			document.images.PictureBox.style.filter="blendTrans(duration=2)";
			document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
			document.images.PictureBox.filters.blendTrans.Apply();
		}
		document.images.PictureBox.src = preLoad[jss].src;
		document.imgForm.CaptionBox.value = Caption[jss];
		if (document.all) document.images.PictureBox.filters.blendTrans.Play();
	}
}

var newWin;
function bigImage()
{
	var url;
	if (jss == 0 ){
		var temp = 1;
		url = "http://www.oaklandlibrary.org/Seasonal/Sections/images/espey_img" + temp + "big.jpg";
	}else{
		url = "http://www.oaklandlibrary.org/Seasonal/Sections/images/espey_img" + jss + "big.jpg";
	}
  	newWin = window.open(url, "enlarge", "menubar = 0, toolbar = 0, status = 0, resizable = 1, scrollbars=1, width=700, height=480");
}

			
// -->

