var blogDisplayNum = 0;
var fs = 1;
var x = 1;
function displayBlock(articleNum, blogNum)
{
	var content = "";
	var expandLink = "";
	var article = "contentText" + articleNum;
	var selectedExpandLink = "expandLink" + articleNum;
	if (document.getElementById(article).style.display == "none")
	{
		document.getElementById(article).style.display = "block";
	}
	else
	{
		document.getElementById(article).style.display = "none";
	}
	if (blogNum < 6)
	{
		var maxNum = blogNum;
	}
	else
	{
		var maxNum = blogDisplayNum;
	}
	for (var num = 1; num <= maxNum; num++)
	{
		content = "contentText" + num;
		expandLink = "expandLink" + num;
		if (content != article) //Close all blogs
		{
			document.getElementById(content).style.display = "none"; 
		}
		if (expandLink != selectedExpandLink)
		{
			document.getElementById(expandLink).firstChild.nodeValue = "Show More >>>"; //Revert all "Show More" interfaces
		}
	}
	var expandLinkValue = document.getElementById(selectedExpandLink).firstChild.nodeValue;
	if (expandLinkValue == "Show More >>>")
	{
		document.getElementById(selectedExpandLink).firstChild.nodeValue = "Show Less <<<";
	}
	else
	{
		document.getElementById(selectedExpandLink).firstChild.nodeValue = "Show More >>>";
	}
}

function displayNext()
{
	var minValueNext = parseInt(document.getElementById("min").value);
	var maxValueNext = parseInt(document.getElementById("max").value);
	document.getElementById("min").value = minValueNext + 5;
	document.getElementById("max").value = maxValueNext + 5;
	document.getElementById("nextPrevForm").submit();
}

function displayPrev()
{
	var minValuePrev = parseInt(document.getElementById("min").value);
	var maxValuePrev = parseInt(document.getElementById("max").value);
	document.getElementById("min").value = minValuePrev - 5;
	document.getElementById("max").value = maxValuePrev - 5;
	document.getElementById("nextPrevForm").submit();
}
function increaseFontSize() {
	if (fs < 2)
	{
		fs += 0.1;
	}		
    document.getElementById('extra').style.fontSize = fs + "em";
	document.getElementById('content').style.fontSize = fs + "em";
}
function decreaseFontSize() {
	if (fs > 0.8)
	{
		fs -= 0.1;
	}
	document.getElementById('extra').style.fontSize = fs + "em";
	document.getElementById('content').style.fontSize = fs + "em";
}



