function createClubsTable(rss){
		var row; //initialize variables
		Element.cleanWhitespace(rss); //clean out empty text nodes
		var xml = xml2json(rss,"").evalJSON(true)["rss"]["channel"]; //convert JSON to JS object
		var table = $$('table#clublist > tbody').reduce().cleanWhitespace();
		table.descendants().invoke('remove'); //remove empty cells
		
		xml["item"].each(function(it){
			row = new Element('tr').insert(new Element('th').insert(typeof it["link"] != "undefined" ? new Element('a', { href: it["link"], rel: "external" }).insert(it["title"]) : it["title"]));
			table.insert(row);
			table.insert(new Element('tr').insert(new Element('td').insert(it["description"]["#cdata"])));
		});
		$('clublist').show();
		$$('table#clublist').invoke('setStyle',{clear:"both"});
		//reset external links
		$$('table#clublist a[rel="external"]').invoke('writeAttribute','target','_blank');
	}


function createAgendasTable(rss){
		var row, links, pubDate, agenda, minutes; //initialize variables
		Element.cleanWhitespace(rss); //clean out empty text nodes
		var xml = xml2json(rss,"").evalJSON(true)["rss"]["channel"]; //convert JSON to JS object
		var table = $$('table#agendas > tbody').reduce().cleanWhitespace();
		table.descendants().invoke('remove'); //remove empty cells
		
		xml["item"].each(function(it){
			pubDate = new Date(it['pubDate']);
			pubDate = weekdays[pubDate.getDay()]+", "+months[pubDate.getMonth()]+" "+pubDate.getDate()+", "+pubDate.getFullYear().toPaddedString(4);
			
			links = new Element('div').insert(it["description"]["#cdata"]);
			agenda = "\u00a0";
			minutes = "\u00a0";
			links.select('a[href*="agenda"]').each(function(l){
				agenda = new Element('a', { href: l["href"], 'target': '_blank' }).insert("Agenda");
			});
			links.select('a[href*="minutes"]').each(function(l){
				minutes = new Element('a', { href: l["href"], 'target': '_blank' }).insert("Minutes");
			});
			
			row = new Element('tr').insert(new Element('td', { title: pubDate }).addClassName('title').insert(it["title"])).insert(new Element('td', { title: pubDate }).insert(agenda)).insert(new Element('td', { title: pubDate }).insert(minutes));
			table.insert(row);
		});
		
		$('agendas').show();
	}

function createTable3(rss){
	if(typeof rss == "undefined") return false;
	var link;
	var ul = new Element('ul').addClassName('newsItems'); //initialize variables
	Element.cleanWhitespace(rss); //clean out empty text nodes
	var xml = xml2json(rss,"").evalJSON(true)["rss"]["channel"]; //convert JSON to JS object
	
	xml["item"].each(function(it){
		link = it["link"];
		if(it["link"].include('news.html') && it["guid"]["#text"]) link += "#"+it["guid"]["#text"];
		ul.insert(new Element('li').insert(new Element('a',{ href: link }).insert(it["title"])));
	});
	$$('div#left div.sideinfo').reduce().insert(new Element('h3').insert("News")).insert(ul);
}

function createPSlamDates(rss){
	Element.cleanWhitespace(rss); //clean out empty text nodes
	var xml = xml2json(rss,"").evalJSON(true)["rss"]["channel"]; //convert JSON to JS object
	
	var pslam = xml["item"].find(function(it){
		return (it["title"].include("Poetry Slam") || it["description"]["#cdata"].include("Poetry Slam"));
	});
	if(pslam) $('main').insert(new Element('div').addClassName('greenbox').insert(pslam["description"]["#cdata"]));
}