var pCount = new Array();pCount['110866318368264551'] = 2;pCount['111571769811828670'] = 1;pCount['111806374296344768'] = 2;pCount['112043948940711209'] = 1;pCount['111858324987410975'] = 4;pCount['111162684334219601'] = 1;pCount['110847863418602925'] = 1;pCount['111599808655526256'] = 1;pCount['111050540089639353'] = 2;pCount['112380976228160178'] = 5;pCount['111357492180914182'] = 1;pCount['111331293864471641'] = 2;pCount['111392767080846267'] = 2;pCount['111226757183648770'] = 4;pCount['110890901054508055'] = 2;pCount['112109096356463726'] = 3;
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=jgrand&item=" + item;
	var linktext = "<a href=\"javascript:displayReblogger('"+item+"');\">Comentar ["+pCount[item]+"]</a><!--" + source + "-->";
	document.write(linktext);
}

function onpageReblogger(item) {

	
	var source = "http://jsoft.ca/cgi-bin/reblogger/reblogger.pl?command=show&user=jgrand&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=jgrand&item=" + item;
	window.open(source,"Reblogger","width=450,height=480,directories=0,toolbar=0,status=1,scrollbars=1");
}

