var pCount = new Array();pCount['2010080519244928227'] = 1;pCount['2010040517425624112'] = 2;pCount['2010020504175022465'] = 2;pCount['2010041000035824261'] = 2;pCount['2010061917022027281'] = 1;pCount['2010031516554623522'] = 4;pCount['2010040205020224037'] = 4;pCount['2010041501365124444'] = 2;pCount['2010022123490222932'] = 3;pCount['2010040800424924207'] = 2;pCount['2010042617024024797'] = 1;pCount['2010031000330923389'] = 3;pCount['2010072217002527965'] = 1;pCount['2010041218204424349'] = 2;pCount['2010082910330128636'] = 1;pCount['2010050312150625019'] = 4;pCount['2010062723254927442'] = 3;pCount['2010052001055626013'] = 4;
var commentsOpen = new Array();
function postCount(pre,item,post){
	if (pCount[item]){
		var output = pre + pCount[item] + post;
		document.write(output);
	} else {
		document.write(pre+"0"+post);
	}
}

function rebloggerLink(item) {

	if (!pCount[item]) {
		pCount[item] = 0;
	}
	var source = "http://jsoft.ca/cgi-bin/reblogger/reblogger.pl?command=show&user=prompt&item=" + item;
	var linktext = "<a href=\"javascript:displayReblogger('"+item+"');\">Comment ["+pCount[item]+"]</a><!--" + source + "-->";
	document.write(linktext);
}

function onpageReblogger(item) {

	
	var source = "http://jsoft.ca/cgi-bin/reblogger/reblogger.pl?command=show&user=prompt&item=" + item;
	var iframe = "<a style=\"font-size:8pt\" href=\"javascript:onpageReblogger(\'"+item+"\')\">(hide)</a><iframe style=\"font-family:arial\" src='" + source + "' width='450' height='480'></iframe>";
	var id = "reblogger" + item;
	if (!commentsOpen[item]) {
		commentsOpen[item] = 1;
		document.getElementById(id).innerHTML = iframe;
	}
	else {
		commentsOpen[item] = 0;
		document.getElementById(id).innerHTML = "";
	}
}


function displayReblogger(item){
	var source = "http://jsoft.ca/cgi-bin/reblogger/reblogger.pl?command=show&user=prompt&item=" + item;
	window.open(source,"Reblogger","width=450,height=480,directories=0,toolbar=0,status=1,scrollbars=1");
}

