// JavaScript Document

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jay M. Rumsey, OD | http://www.nova.edu/~rumsey */

var num=0;

imgArray = [
    ['/newsroom/0808/_images/d3_DSC03161_ECO.jpg','Commissioner Kanjian','Standing in the foyer entrance, Commissioner Bob Kanjian (center) listens to John Romano explain the integrated systems of the &ldquo;living building&rdquo; that work in harmony with nature.  At left is Michael Goodwin, a college student who accompanied the Commissioner on the tour and at right is the Commissioner&rsquo;s Senior Aide Bob Dovey.'],
	['/newsroom/0808/_images/d3_DSC03163_ECO.jpg','Commissioner Kanjian','The first impression that visitors to the EcoCentre will encounter is this lush foliage and pond at the foyer entrance.'],
	['/newsroom/0808/_images/d3_DSC03160_ECO.jpg','Commissioner Kanjian','A view taken from the fourth floor shows the interior court of the EcoCentre.  Treated graywater and rainwater are reused in the living building to create an appealing green Biolarium&reg; space that is accessible to all.'],
	['/newsroom/0808/_images/d3_DSC03159_ECO.jpg','Commissioner Kanjian','When work is finished, the roof of the EcoCentre will have 60 trees intermixed with grass plots as part of a rooftop garden to collect rainwater, minimize runoff and mitigate internal microclimate changes while providing a restful, relaxing green atmosphere.']
]

function slideshow(slide_num) {
  document.getElementById('mypic').src=imgArray[slide_num][0];
  document.getElementById('mypic').alt=imgArray[slide_num][1];
  document.getElementById('burns').innerHTML=imgArray[slide_num][2];
}

function slideshowUp() {
  num++;
  num = num % imgArray.length;
  slideshow(num);
}

function slideshowBack() {
  num--;
  if (num < 0) {num=imgArray.length-1;}
  num = num % imgArray.length;
  slideshow(num);
}

