//Announcements Lists Defined
var albums = new Array();
// Albums is an array of structured strings.
// Line items are pipe ('|') delimited strings with the following field components:
//	0) tag [unique short identifier, required]
//  1) format [CD or otherwise, required]
//	2) album [title of the album, required]
//	3) availability [avail/<alt string>, required] If not 'avail', string becomes tag strong after description and replaces 'shoppers info' link.
//	4) price [10.00 is standard, required]
//	5) Aside [semi-colon delimited list of song titles, required]
//	6) Bside [semi-colon delimited list of song titles, required]
//	7) description [sales blurb, required]
//
// Examples:
// 
//
albums=[
"brh|CD|Blue Ribbon Highways|2000|avail|10.00|Sadness of Goodbye;Once in a Lifetime;Broken Hearted Dream;Blue Ribbon Highways;14th Street|Love Me Only;Rain;Right Round Rag;Puzzle;Love Will Find A Way|Released in 2000. The mood is reflective and personal, as Jane's pure voice and sure guitar leads you through the landscape of love and loss on this seamless studio album of all original music. The essential Jane.",

	"dt|CD|Downtown|2001|avail|10.00|Everywhere I Go;Candy Store Blues;Diamond in the Rough;Waiting Here for You|Baby Blues;Save it for Later;When I'm with You;Me and that Train|Released in 2001. Jane and her band pull out all the stops on this high-energy, bluesy album. Three favorite originals and a crowd-pleasing complement of foot movers. Fans of Jane know about these power shows, but never has one been caught on cd, until now on this incredible live recording. The energy is all right here. Whatever you were doing when you put it on, Jane's gonna own you before it is over. With Kenny Shore, Chas Scales, & Larry Thompson.",

	"dog|CD|Dreams of Gold|2002|avail|10.00|Mountainside;Heart on Fire;'54 Chevy;The Way Love Grows;Weaver;Crossroads|Beach;Come Home;Once in a Very Blue Moon;Poppy Seed;Saving Grace|Re-released in 2002. This album brings to CD remastered versions of favorite cuts from Ancient Bead and Mountainside&mdash;which were only released on cassette. A beloved album for all CecilyJane fans. Original release: 1993.",

	"kup|CD|Kiss You Up|2001|avail|10.00|Being and Nothingness;May Dream;In Time;Call Waiting;Schroedinger's Cat;Think Not My Heart is Idle;Catch the Sun;Rattan Man;The Three Stones|Post Haste;Virgin Wood;The Wayof Loving;State of Grace;Weave Sonnet;Meadow;Angel;Blush;The Very Best Way|Released in 2001. Jane teamed up with Greg Ray to create this unique collection of spoken-word vignettes. By turns humorous, artful, passionate; Jane creates the perfect musical landscapes for Greg's curious word pictures. This is one intense personal listening experience.",

	"ska|CD|The Skatterbrainz|2002|avail|10.00|Live it Up;I Don't Mind;Life All Over;If I Called|Edge of I;All the Time;I Don't Wanna Say;Black and White|Released in 2002. During the mid- to late eighties, Jane played with the band, Skatterbrainz, which was everywhere on the Gainesville scene&mdash;earning it a following that continues to this day. Finally, some of the favorites from this band have been draw from the archives and put on an album. A limited quantity of these albums have been pressed and are offered for sale for the many fans of the band.",

	"whf|CD|Wild Heart Florida|2002|Private Release|n/a|Wild Heart;Marjorie K. Rawlings;Butterfly;Dudley Farm;San Felasco Bikes;Ginnie Springs;Devil's Millhopper;Wild Alachua Theme|Suwannee Church;Suwannee Reprise;Birds;Hiassen's Blues;Right Round Rag;Whooping Crane Music;Marathon|Released in 2002. This instrumental album is a compilation of music Jane wrote and recorded for two documentaries about the natural beauty of Florida.",

	"veg|CD|Vegetable Baby|2009|Just Released|5.00|Eat Your Vegetables Baby;As the Worm Turns;REduce REuse REcycle|Only available direct from Jane.;Priced at $5 a pop.|From yummy veggies to yucky worms, <em>Vegetable Baby</em> offers a fresh taste of Jane's music for kids&mdash;available on CD for the first time. On this outing, Jane gets a little spirited help from Bree, Caden, Caitlin, Caprial, and Kennedy of the First Firstenberg Girls Choir.",

	"brh96|Cass.|Blue Ribbon Highways|1996|Limited Release|n/a|Sadness of Goodbye;Once in a Lifetime;Broken Hearted Dream;Blue Ribbon Highways;14th Street|Love Me Only;Rain;Right Round Rag;Puzzle;Love Will Find A Way|Released in 1996. There was a limited all acoustic version of this popular album. Accompanied only by her guitar, the performances are intimate and sure. Ten original songs and all pure Jane. (This pre-release version of BRH is no longer available, but you can hear all these beautiful songs on the Blue Ribbon Highways CD.)",

	"ab|Cass.|Ancient Bead|1991|Out of Print|n/a|I Decline;Weaver;Crossroads;Beach|Come Home;Once in a Very Blue Moon;Poppy Seed;Saving Grace|Released in 1991. A terrific debut album for CecilyJane. Great songwriting and a good sampling of the characteristic sound of this duo—Jane Yii and Cecily Paige. The performances are so strong here, even the cover tunes you know sound all their own.",

	"ms|Cass.|Mountainside EP|1992|Out of Print|n/a|Mountainside;Heart on Fire|'54 Chevy;The Way Love Grows|Released in 1992. A full-studio production recording of five CecilyJane favorites. Features the production and engineering work of Mark Pinsky who has worked on albums for many artists, from Frank Zappa to the London Sympony Orchestra).",
	
	"tom|CD|Live in the Theatre of Memory|unreleased|Not Yet Released|n/a|FORTHCOMING|The song line-up for this album;is still well under wraps, but I have ;heard the raw cuts, so I can tell ;you this is definitely an ;album to watch for.|Not yet released. Located in High Springs, the Theatre of Memory was one of Florida's finest listening rooms. A pristine performance recording has been made by Bill Beckett of WUFT- FM. Watch for the album!",

// END OF LIST
	]

// SUPPORT ROUTINES
var itag=0; var iformat=1; var ititle=2; var iyear=3; var iavail=4; var iprice=5; var iaside=6; var ibside=7; var idesc=8; //expected order of things in array.
var mydelimiter = "|"; //array delimiter is pipe.

var album = new Array(albums.length);
	album = splitArrayOn(albums,mydelimiter);

function splitArrayOn(givenArray,delim) {
	var sa = new Array(givenArray.length);
	for (var i=0;i<givenArray.length;i++) {
		var n = givenArray[i].split(delim).length;
		sa[i] = new Array(n);
		sa[i] = givenArray[i].split(delim);
	}
	return sa;
}

function headspinner() {
	for (var i=0; i<album.length; i++) {
		document.write(headstring(i));
	}
}
function headstring(i) {
	var s = '<a class="quietlink" href="albums.html?'+i+'"><img src="minis/mini-'+(album[i][itag].toUpperCase())+'cover-53px.jpg" width="53" height="52" border="0"></a>&nbsp;&nbsp;';
	return s
}
function getquerystring() {
	var q = location.search;
	if (q=="?" || q=="") {q="0"} else {
		q = q.substr(1)
	}
	return q
}
function playlistspinner(listArray) {
	var k = "";
	for (var i=0; i<listArray.length; i++) {
		if (i+1<listArray.length){k="<br>"} else {k=""}
		document.write(listArray[i],k);
	}
}


function eventspinner() {
	if (ev.length==1) {
		// expects the 'no events' line at index 0
		document.write(eventstring(0));
	} else {
		for (var i=1; i<ev.length; i++) {
			document.write(eventstring(i));
		}
	}
}
function eventstring(i) {
	//suppose i is current event index
	var s = '<p class="event">';
	var n = ev[i].length
	if (n>idate){if (!ev[i][idate]==""){
		s = s + '<span class="date">&bull; '+ev[i][idate]+'</span>'
	}}
	if(n>itime){if (!ev[i][itime]==""){
		s = s + ' - <span class="time">'+ev[i][itime]+'</span>'
	}}
	if(n>iinstitution){if (!ev[i][iinstitution]==""){
		var h="#";
		if(n>ilink){if (!ev[i][ilink]==""){
			h = ev[i][ilink];
		}}
		s = s + ', <a href="'+h+'"><span class="institution">'+ev[i][iinstitution]+'</span></a>'
	}}
	if(n>iplace){if (!ev[i][iplace]==""){
		s = s + ' - <span class="place">'+ev[i][iplace]+'</span>'
	}}
	s = s +"."
	if(n>inote){if (!ev[i][inote]==""){
		s = s + ' <span class="note">'+ev[i][inote]+'</span>'
	}}
	s = s + '</p>'
	return s
}	
