var _123105 = 'New Year&lsquo;s eve, 2005, Louise&lsquo;s, Lawrence, KS.' ;

var content = new Array(
	{ src : 'pods.jpg', width : 400, height : 300 },
	{ src : 'arthur.jpg', width : 300, height : 350, caption : 'Arthur' },
	{ src : 'dave.jpg', width : 400, height : 300, caption : 'Dave' },
	{ src : 'jeremy.jpg', width : 400, height : 300, caption : 'Jeremy' },
	{ src : 'kenny.jpg', width : 400, height : 300, caption : 'Kenny' },
	{ src : 'matt.jpg', width : 400, height : 300, caption : 'Matt' },
	{ src : 'ad_01_05_01.jpg', width : 400, height : 300, caption : _123105 },
	{ src : 'ad_01_05_02.jpg', width : 400, height : 300, caption : _123105 },
	{ src : 'ad_01_05_03.jpg', width : 262, height : 350, caption : _123105 },
	{ src : 'ad_01_05_04.jpg', width : 400, height : 300, caption : _123105 },
	{ src : 'ad_01_05_05.jpg', width : 263, height : 350, caption : _123105 },
	{ src : 'ad_01_05_06.jpg', width : 400, height : 300, caption : _123105 },
	{ src : 'songs101.jpg', width : 400, height : 277, caption : 'September 1, 2000, Eighth Street Tap Room, Lawrence, KS, the &ldquo;<a href="javascript:void openFlyer();">Super 100<\/a>.&rdquo; Arthur performs 101 songs, from 6pm to 2am, with the band joining him for five or six tunes.' },
/*	{ src : 'ad_06_04_06.jpg', width : 400, height : 300 },
	{ src : 'track.jpg', width : 400, height : 246, credit : 'Photo by Rick McCauley&nbsp; &nbsp;Blaker Studio, Manhattan, KS' },
	{ src : 'maes041003.jpg', width : 288, height : 192, caption : 'Pre-show, Auntie Mae&lsquo;s Parlor, Manhattan, KS.' },
*/	{ src : 'ad_06_04_08.jpg', width : 220, height : 275, caption : 'Recording Stripper In A Cab for <em>Nervous Habit<\/em>.' },
	{ src : 'piano.jpg', width : 400, height : 276 },
	{ src : 'ad_06_04_10.jpg', width : 206, height : 330 },
	{ src : 'ad_06_04_11.jpg', width : 249, height : 219 },
	{ src : 'ad_06_04_09.jpg', width : 216, height : 328 },
	{ src : 'ad_06_04_03.jpg', width : 263, height : 350 },
	{ src : 'ad_06_04_04.jpg', width : 400, height : 300 },
	{ src : '12.15.01.34.jpg', width : 400, height : 300 },
	{ src : 'ad_06_04_02.jpg', width : 400, height : 300 },
	{ src : 'ad_06_04_05.jpg', width : 400, height : 300 },
	{ src : '12.15.01.19.jpg', width : 400, height : 300 },
	{ src : '12.15.01.35.jpg', width : 400, height : 300 },
	{ src : 'ad_06_04_13.jpg', width : 324, height : 350, credit : 'Photo: Adam Mansfield' },
	{ src : 'newyears.jpg', width : 400, height : 276, caption : 'New Year&lsquo;s eve, 2001, Louise&lsquo;s, Lawrence, KS.' },
	{ src : 'ad_06_04_14.jpg', width : 224, height : 350, credit : 'Photo: Adam Mansfield' },
	{ src : 'ad_06_04_12.jpg', width : 400, height : 270 },
	{ src : 'ad_06_04_15.jpg', width : 400, height : 324, credit : 'Photo: Adam Mansfield' },
	{ src : 'ad_06_04_07.jpg', width : 262, height : 350 },
	{ src : 'ad_06_04_01.jpg', width : 400, height : 272 },
	{ src : 'admattGrueneHallTX.jpg', width : 400, height : 235, caption : 'Arthur and Matt, pre-show, Gruene Hall, Texas.' },
	{ src : 'tire.jpg', width : 400, height : 276, caption : 'Off the road with a flat tire in Texas.' },
	{ src : 'proppin5.jpg', width : 400, height : 300 }
) ;

loadContent = function()
{
	var subnavArr = new Array() ;
	var preloaded = new Array() ;

	for( var i = 0; i < content.length; i++ )
	{
		subnavArr[ i ] = '<img id="img' + i + '" class="imgsq" src="/images/square006.gif" alt="" width="14" height="14" border="0" onmouseover="getContent( ' + i + ' ) ;">' ;

		if( i > 0 )
		{
			preloaded[ i ] = document.createElement( 'img' ) ;
			preloaded[ i ].setAttribute( 'src', '/images/' + content[ i ].src ) ;
		}
	}

	var subnav = '' ;
	var navRows = new Array( 6, 7, 5, 7, 6 ) ;
	subnavCount = 0 ;

	for( var i = 0; i < navRows.length; i++ )
		subnav += subnavArr.slice( subnavCount, subnavCount += navRows[ i ] ).join( '' ) + "<br\/>" ;

	subnav += subnavArr.slice( subnavCount ).join( '' ) ;
	document.getElementById( 'subnav' ).innerHTML = subnav ;
	document.getElementById( 'img0' ).src = '/images/square006o.gif' ;
	var html = '<img src="/images/' + content[ 0 ].src + '" alt="" width="' + content[ 0 ].width + '" height="' + content[ 0 ].height + '" border="0"\/>' ;
	document.getElementById( 'content' ).style.height = '392px' ;
	document.getElementById( 'content' ).style.width = content[ 0 ].width + 'px' ;
	document.getElementById( 'content' ).innerHTML = html ;
}

getContent = function( id )
{
	for( var i = 0; i < content.length; i++ )
		document.getElementById( 'img' + i ).src = '/images/square006.gif' ;

	document.getElementById( 'img' + id ).src = '/images/square006o.gif' ;
	var html = '<img src="/images/' + content[ id ].src + '" alt="" width="' + content[ id ].width + '" height="' + content[ id ].height + '" border="0"\/>' ;

	if( content[ id ].credit )
		html += '<p class="credit">' +  content[ id ].credit + '<\/p>' ;

	if( content[ id ].caption )
		html += '<p class="caption">' + content[ id ].caption + '<\/p>' ;

	document.getElementById( 'content' ).style.width = content[ id ].width + 'px' ;
	document.getElementById( 'content' ).innerHTML = html ;
}

openFlyer = function()
{
	window.open( '100songflyer.htm', '', 'scrollbars=1,width=' + ( ( /msie/i.test( navigator.appName ) ? 530 : 541 ) ) + ',height=' + ( screen.availHeight * .95 ) ) ;
}

window.onload = function() { loadContent() ; }

