/* Image switcher for Song Tree Concert Series home page */

var f = '"images\/';
var wh = ' WIDTH="451" HEIGHT="208" STYLE="border:1px solid white; "';

var image = [f + 'Interior-with-band-451x208.jpg"' + wh,
f + 'Rasmussen-and-Robertson.jpg"' + wh,
f + 'TMB-at-Song-Tree-051510.jpg"' + wh,
f + 'Song-Tree-05-24-09-Hawaiian.jpg"' + wh,
f + 'Exterior-020709.jpg" WIDTH="312" HEIGHT="208" STYLE="border:1px solid white; margin:0px 70px 0px 69px; "',
f + 'Interior-020709.jpg"' + wh,
f + 'TL.jpg" WIDTH="139" HEIGHT="208" STYLE="border:1px solid white; margin:0px 156px 0px 156px; "'
];

var caption = ['The Chris Cairns Band at the building dedication, Spring 2009',
'Laurie Rasmussen and Kim Robertson, October 31 2010',
'Gilles Apap and The Transylvanian Mountain Boys, May 15 2010',
'Hawaiian music and dance at Song Tree, May 19 2009',
'The performance space, from the outside',
'Not a bad seat in the house',
'Tom Lee, Founder and Host'
];

var x = image.length;

var array1 = ['cf0','cf1','cf2','cf3','cf4','cf5','cf6'];

// var array2 = [array1[n],array1[n+1],array1[n+2],array1[n+3],array1[n+4],array1[n+5],array1[n+6]];


if (cf_okay) { // crossfade slide show

//	document.writeln('<TABLE BORDER="0" STYLE="margin:0px; padding:0px; " CELLSPACING="0" CELLPADDING="0" WIDTH="200"><TR><TD COLSPAN="2" VALIGN="top" HEIGHT="329">'); // 

for (var j=0; j<x; j=j+1) {
	nn = j;
	document.writeln('<div class="cf_element" id="cf' + nn + '"><div class="content">');
	document.writeln('<IMG SRC=' + image[nn] + ' ALT="">');
	document.writeln('<P ALIGN="center" CLASS="caption">' + caption[nn] + '<\/P>');
	document.writeln('<\/div><\/div>');
}

//	document.writeln('<\/TD><\/TR><\/TABLE>');
	
	var cf = new Crossfader( array1, 2000, 2000 ); // (array, cross-fade time, wait time)

} else { // static image

	document.writeln('<IMG STYLE="border:1px solid white; " ALT="" SRC="images\/Interior-with-band-451x208.jpg" WIDTH="451" HEIGHT="208">');
}

