function showMore(postId, postLink) {
	postBodyId = "postbody" + postId;
	showExtLink = "showlink" + postId;
	hideExtLink = "hidelink" + postId;
	if (document.getElementById) {
		var postElement = document.getElementById(postBodyId);
		var fullPostElement = null;
		var showExtLinkElement = document.getElementById(showExtLink);
		var hideExtLinkElement = document.getElementById(hideExtLink);

		// find fullpost div
		if (postElement) {
			for (var j = 0; j <postElement.childNodes.length; j++) {
				if (postElement.childNodes.item(j).className == "fullpost") {
					fullPostElement = postElement.childNodes.item(j);
					break;
				}
			}

			if (fullPostElement) {
				// show
				if (postLink != 0) {
					fullPostElement.style.display = "block";
					showExtLinkElement.style.display = "none";
					hideExtLinkElement.style.display = "block";
				}
				// hide
				else {
					fullPostElement.style.display = "none";
					showExtLinkElement.style.display = "block";
					hideExtLinkElement.style.display = "none";
					location.href = '#'+postId;
				}
				return false;
			}
			else {
				location.href = postLink;
				return true;
			}
		}
		else {
			location.href = postLink;
			return true;
		}
	}
	else {
		location.href = postLink;
		return true;
	}
}

function initShowLink (postId) {
	postBodyId = "postbody" + postId;
	showExtLink = "showlink" + postId;
	hideExtLink = "hidelink" + postId;
	if (document.getElementById) {
		var postElement = document.getElementById(postBodyId);
		var foundFullPostElement = 0;
		var showExtLinkElement = document.getElementById(showExtLink);
		var hideExtLinkElement = document.getElementById(hideExtLink);

		// find fullpost div
		if (postElement) {
			for (var j = 0; j <postElement.childNodes.length; j++) {
				if (postElement.childNodes.item(j).className == "fullpost") {
					foundFullPostElement = 1;
					break;
				}
			}
			if (foundFullPostElement == 1) {
				showExtLinkElement.style.display = "block";
				hideExtLinkElement.style.display = "none";
			}
			else {
				showExtLinkElement.style.display = "none";
				hideExtLinkElement.style.display = "none";
			}
		}
	}
}