function pxcSite(_name, _url, _key)
{
	this.name = _name;
	this.url = _url;
	this.key = _key;
}

var sites = new Array();
sites[0] = new pxcSite("Billion 2 One", "http://www.billion2one.org/", "b2one");
sites[1] = new pxcSite("Card Catalogue", "http://www.perplexcitycardcatalog.com/", "catalog");
sites[2] = new pxcSite("Community Wiki", "http://www.perplexcitywiki.com/", "wiki");
sites[3] = new pxcSite("Perplex City Card Manager", "http://www.perplexcitycardmanager.com/", "ppccm");
sites[4] = new pxcSite("Perplex City Trades", "http://www.perplexcitytrades.com/", "pxctrades");
sites[5] = new pxcSite("Quote Database", "http://pxcbash.com/", "bash");
sites[6] = new pxcSite("Street Team", "http://www.perplexcitystreetteam.com", "streetteam");
sites[7] = new pxcSite("#syzygy Gallery", "http://www.flickr.com/groups/83484171@N00/", "syzygy");
sites[8] = new pxcSite("Thirteenth Labour", "http://www.13thlabour.tk", "13th");
function showBanner(current)
{
	document.write("<form name='pxcform'><table class='com_banner'><tr><td width='50%' class='com_banner_left'>Perplex City Community Sites</td><td class='com_banner_right'>Go To: <select onChange='document.location.href=this.options[this.selectedIndex].value'>");

	for(i = 0; i < sites.length; i++) 
	{
		document.write("<option value='" + sites[i].url + "'");
		if (sites[i].key == current) document.write(" SELECTED");
		document.write(">" + sites[i].name + "</option>");
	}

	document.write("</select></td></tr></table></form>\n");
}
