var pCount = new Array();pCount[''] = 0;pCount['523810324297215776'] = 1;pCount['2580578623150186043'] = 2;pCount['4309923317584976964'] = 1;pCount['2397401203913584413'] = 1;pCount['113415334209305152'] = -179;pCount['4681183640072637153'] = 1;pCount['113442264802139379'] = -55;pCount['7857382998313120080'] = 1;pCount['9153799438027323092'] = 1;pCount['113302850510828960'] = -164;pCount['3727328978867225681'] = 1;
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=canuckdon2&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=canuckdon2&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=canuckdon2&item=" + item;
	window.open(source,"Reblogger","width=450,height=480,directories=0,toolbar=0,status=1,scrollbars=1");
}

