var N = new Array();
var T = new Array();

N['triangle'] = 4;
N['canadapledge'] = 10;
N['diddledom'] = 2;
N['Internet Outreach'] = 3;
N['Orthodoxy vs. Christopraxy'] = 3;
N['forgottenmyth'] = 2;
N['hipp03.2005'] = 1;
N[''] = 2;
N['pearls before swine'] = 1;
N['why is beardface stinky'] = 2;

function linkComments (id, txt) {
	var n = N[id] || 0;
	document.write('<a href="http://beardedbaby.net/cgi-bin/symbio/index.cgi?id='+escape(id)+'&mode=view" target="_self" '
		+ 'onmouseover="window.status=\'\'; return true;" '
		+ 'onclick="openComments(\''+id+'\'); return false;">'
		+ (txt || (n
			? (n == 1
				? "comments [one]"
				: "comments ["+n+"]"
				)
			: "comments [none]"
			)
		) + '</a>');
}

function openComments (id) {
	window.open('http://beardedbaby.net/cgi-bin/symbio/index.cgi?id='+escape(id)+'&mode=view',
		'comments',
		'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,left=' + parseInt((screen.availWidth - 640)/2) + ',top=' + parseInt((screen.availHeight - 480)/2) + ',width=640,height=480');
}
