descr=new Array
w=new Array
h=new Array
ratio=new Array
urls=new Array
var wmax
var hmax
var items
var showbg
var buttonbgcolor
var buttontextcolor
var descriptionbgcolor
var textcolor

//changes area

items=25	//number of items (image, url and description pairs)
tablewidth=650	//width of slide show area
tabheight=500	//height of slide show area        

buttonbgcolor="#CCFFFF"		//background color of buttons
buttontextcolor="#990000"	//text color for buttons
descriptionbgcolor="#ffffff"
textcolor="#000000"		//text color of description area
//showbg="images/showbg.jpg"	//background picture for images and buttons area
showbg=""

//leave blank text color to get black text
//leave blank background color to get transparent background
//leave blank showbg to get descriptionbgcolor for background
//experiment, but make sure you don't delete quotation marks!

img=new Array
for(i=1;i<=items;i++)img[i]=new Image()

//web address for images used in show
//add or delete here rows to match the number of images;
//make sure you update the number in the square brackets on line 17;

img[1].src="09_bord_ss/Barbara_Bayes_Nahla_Nimeh-Lewis_Jackie Hallinan.jpg"
img[2].src="09_bord_ss/Charles_Jupiter_Hamilton_Sam_Hickman_Nahla Nimeh-Lewis, Roger JForman_Chuck_Hampshire_Carter_Zerbe.jpg"
img[3].src="09_bord_ss/Christine_Daugherty_Ellen_Allen_Sue_Julian.jpg"
img[4].src="09_bord_ss/Chuck_Wyrostok_Jim_Hightower.jpg"
img[5].src="09_bord_ss/Duet_Classique.jpg"
img[6].src="09_bord_ss/Eli_Rouse_Frank_D'Abreo_Hameed_Farook.jpg"
img[7].src="09_bord_ss/High_Rocks_girls.jpg"
img[8].src="09_bord_ss/Howard_Kenney_Terri_Baur_Jeff_Kessler_Deborah_Somuano.jpg"
img[9].src="09_bord_ss/Jim_Hightower_Barbara_Bayes.jpg"
img[10].src="09_bord_ss/Mark_Blumenstein_Ken_Hechler.jpg"
img[11].src="09_bord_ss/Judy_Azulay_Ray&Sue_Price.jpg"
img[12].src="09_bord_ss/Judy_Deutsch_Ken_Hechler.jpg"
img[13].src="09_bord_ss/Kevin_Deborah_Burgess_Dave_Lynn_Pollard.jpg"
img[14].src="09_bord_ss/Larry_Sandra_Groce_Jeanne_Chandler.jpg"
img[15].src="09_bord_ss/Leonard_Deutsch_Bill&Sarah_Denman.jpg"
img[16].src="09_bord_ss/Marilyn_McGeorge_Jim_Hightower.jpg"
img[17].src="09_bord_ss/Nunush_Jaraiedi_Majid_Jaraiedi_Frank_Calabrese.jpg"
img[18].src="09_bord_ss/Paul&Kate_Sheridan_Jack_Magan.jpg"
img[19].src="09_bord_ss/Rose_Eddington_Mel_Hoover.jpg"
img[20].src="09_bord_ss/Sarah_Riley_Emily_Chittenden.jpg"
img[21].src="09_bord_ss/Sen_Kessler_Sue_Julian.jpg"
img[22].src="09_bord_ss/Sheila_McEntee_Michael_Knight_Dawn_Warfield.jpg"
img[23].src="09_bord_ss/Tom_Burger_Chuck_Daugherty.jpg"
img[24].src="09_bord_ss/Tom_Burger_Bettijane_Burger_Tom_Kinraide.jpg"
img[25].src="09_bord_ss/Ken_Hechler_Frank_Calabrese.jpg"

//image sizes, make sure you enter correct values
//add or delete here rows to match the number of images;
//make sure you update the number in the square brackets:
w[1]=600 
h[1]=450
w[2]=600  
h[2]=450
w[3]=600  
h[3]=450
w[4]=600 
h[4]=450
w[5]=600 
h[5]=450
w[6]=600  
h[6]=450
w[7]=600  
h[7]=450
w[8]=600 
h[8]=450
w[9]=600 
h[9]=450
w[10]=600  
h[10]=450
w[11]=600 
h[11]=450
w[12]=600  
h[12]=450
w[13]=600  
h[13]=450
w[14]=600 
h[14]=450
w[15]=600 
h[15]=450
w[16]=600  
h[16]=450
w[17]=600  
h[17]=450
w[18]=600 
h[18]=450
w[19]=600 
h[19]=450
w[20]=600  
h[20]=450
w[21]=600 
h[21]=450
w[22]=600  
h[22]=450
w[23]=600  
h[23]=450
w[24]=600 
h[24]=450
w[25]=600 
h[25]=450


//description for each images
//add or delete here rows to match the number of images;
//make sure you update the number in the square brackets:
descr[1]="Barbara Bayes, Nahla Nimeh-Lewis, Jackie Hallinan"
descr[2]="Charles Jupiter Hamilton, Sam Hickman, Nahla Nimeh-Lewis, <br>Roger JForman, Chuck Hampshire, Carter Zerbe"
descr[3]="Christine Daugherty, Ellen Allen, Sue Julian"
descr[4]="Chuck Wyrosto and Jim Hightower"
descr[5]="Duet Classique"
descr[6]="Eli Rouse, Frank D'Abreo, and Hameed Farook"
descr[7]="High Rocks Girls"
descr[8]="Howard Kenney, Terri Baur, Jeff Kessler and Deborah Somuano"
descr[9]="Jim Hightower and Barbara Bayes"
descr[10]="Mark Blumenstein and Ken Hechler"
descr[11]="Judy Azulay, Ray & Sue Price"
descr[12]="Judy Deutsch and Ken Hechler"
descr[13]="Kevin & Deborah Burgess, Dave & Lynn Pollard"
descr[14]="Larry & Sandra Groce, Jeanne Chandler"
descr[15]="Leonard Deutsch, Bill & Sarah Denman"
descr[16]="Marilyn McGeorge and Jim Hightower"
descr[17]="Nunush Jaraiedi, Majid Jaraiedi, and Frank Calabrese"
descr[18]="Paul & Kate Sheridan, Jack Magan"
descr[19]="Rose Eddington and Mel Hoover"
descr[20]="Sarah Riley (High Rocks), Emily Chittenden"
descr[21]="Sen Kessler and Sue Julian"
descr[22]="Sheila McEntee, Michael Knight, and Dawn Warfield"
descr[23]="Tom Burger and Chuck Daugherty"
descr[24]="Tom Burger, Bettijane Burger, and Tom Kinraide"
descr[25]="Ken Hechler and Frank Calabrese"


//link urls for each image
//add or delete here rows to match the number of images;
//make sure you update the number in the square brackets:

//urls[1]="slideshow.html"
//urls[2]="slideshow.html"
//urls[3]="slideshow.html"
//urls[4]="slideshow.html"

//end of changes area

for(i=1;i<=items;i++)descr[i]='<font color="' + textcolor + '">' + descr[i] + '</font>'


for(i=1;i<=items;i++)ratio[i]=h[i]/w[i]
maxs()

if(wmax>tablewidth)
{
for(i=1;i<=items;i++)
	{
		if(w[i]>tablewidth)
			{
			 w[i]=tablewidth
			 h[i]=w[i]*ratio[i]
			}
	}
maxs()
}

if(hmax>tabheight)
{
for(i=1;i<=items;i++)
	{
		if(h[i]>tabheight)
		{
		 h[i]=tabheight 
		 w[i]=h[i]/ratio[i]
		}
	}
}
maxs()


function maxs()
{
hmax=h[1]
for(j=1;j<=items;j++)
{
if(h[j]>hmax)hmax=h[j]
}
wmax=h[1]
for(j=1;j<=items;j++)
{
if(w[j]>wmax)wmax=w[j]
}
}

layerLeft = new Array
layerTop = new Array

position_layers()

function position_layers()
{
for(i=1;i<=items;i++)
{
layerLeft[i] = Math.floor((wmax-w[i])/2);
layerTop[i] = Math.floor((hmax-h[i])/2);
}
}

document.write('<STYLE TYPE="text/css">')
document.write('# container {position: relative; z-index: 1; top:0px; left:0px}')
document.write('.buttons { background: ' + buttonbgcolor + '; color: ' + buttontextcolor + '; font-weight: bold; }')
if(document.layers)document.write('# description {position: absolute; z-index: 3; top:0px; left:0px;}')

document.write('#con {position: relative; z-index: 1; top:0px; left:0px}')
for(i=1;i<=items;i++)
{
document.write('#pic'+ i + '{position: absolute; z-index: 1; top:' + layerTop[i] + 'px; left:' + layerLeft[i] + 'px; visibility:hidden}');
}
document.write('</style>')


navtest="KO"
j=0
if (document.layers)
{
navtest="OK"
layerRef="document.layers"
styleDef=""
}

if(document.all)
{
navtest="OK"
layerRef="document.all"
styleDef=".style"
}

function start()
{
eval(layerRef + '["con"].' + layerRef + '["pic1"]' + styleDef + '.visibility="visible"')
displayText(1)
currentcommand="stop"
j=1

}
var rotation
var rotspeed
rotspeed=3000

function rotate()
{
for(i=1;i<=items;i++)
{
eval(layerRef + '["con"].' + layerRef + '["pic' + i + '"]' + styleDef + '.visibility="hidden"')
}
j++
if(j==0)j=items
if(j>items)j=1
eval(layerRef + '["con"].' + layerRef + '["pic' + j + '"]' + styleDef + '.visibility="visible"')
displayText(j)
rotation = setTimeout("rotate()",rotspeed)
}

function displayText(opt){
text='<center><b>'+descr[opt]+'</b></center>'

if(document.layers){
document.layers["container"].document.layers["description"].document.write(text)
document.layers["container"].document.layers["description"].document.close();
}

if(document.all)
{
document.all["description"].innerHTML=text;
}
}

currentcommand="play"
function player(command)
{

if(command=="next")
	{ 
	clearTimeout(rotation)
	rotate()
	if(currentcommand=="stop")clearTimeout(rotation)
}

if(command=="previous")
	{ 
	clearTimeout(rotation)
	j=j-2
	rotate()
	if(currentcommand=="stop")clearTimeout(rotation)
}

if(command=="first")
	{ 
	clearTimeout(rotation)
	j=0
	rotate()
	if(currentcommand=="stop")clearTimeout(rotation)
}

if(command=="last")
	{ 
	clearTimeout(rotation)
	j=-1
	rotate()
	if(currentcommand=="stop")clearTimeout(rotation)
}

}



