var pCount = new Array();pCount['<35>'] = 3;pCount['<16>'] = 19;pCount['<33>'] = 3;pCount['<30>'] = 4;pCount['<21>'] = 3;pCount['<25>'] = 1;pCount['<28>'] = 2;pCount['<09>'] = 7;pCount['<38>'] = 1;pCount['<19>'] = 3;pCount['<02>'] = 1;pCount['<04>'] = 13;pCount['<34>'] = 1;pCount['<10>'] = 6;pCount['<27>'] = 7;pCount['<32>'] = 2;pCount['<18>'] = 6;pCount['<14>'] = 3;pCount['<15>'] = 3;pCount['<12>'] = 5;pCount['<13>'] = 4;pCount['<17>'] = 14;pCount['<39>'] = 8;pCount['<20>'] = 6;pCount['<37>'] = 2;pCount['<08>'] = 3;pCount['<29>'] = 5;pCount['<11>'] = 6;pCount['<06>'] = 9;pCount['<23>'] = 7;pCount['<05>'] = 7;pCount['<31>'] = 5;pCount['<36>'] = 5;pCount['<22>'] = 4;pCount['<01>'] = 3;pCount['<24>'] = 30;
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=amf_02&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=amf_02&item=" + item;
	var iframe = "<a style=\"font-size:8pt\" href=\"javascript:onpageReblogger(\'"+item+"\')\">(hide)</a><iframe style=\"font-family:arial\" src='" + source + "' width='480' 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=amf_02&item=" + item;
	window.open(source,"Reblogger","width=480,height=480,directories=0,toolbar=0,status=1,scrollbars=1");
}

