function resizeText(multiplier) {
	var maincontent = null;
	var maincontenth2 = null;
	var maincontenth3 = null;
	maincontent = document.getElementById("maincontent");
	maincontenth1 = maincontent.getElementsByTagName("h1");
	maincontenth2 = maincontent.getElementsByTagName("h2");
	maincontenth3 = maincontent.getElementsByTagName("h3");
	maincontenth4 = maincontent.getElementsByTagName("h4");
	maincontenth5 = maincontent.getElementsByTagName("li");
	
	if (maincontent.style.fontSize == "") {
    	maincontent.style.fontSize = "14px";//set body text to 14px
	}
	if (maincontent.style.fontSize > "10px" && multiplier < 0)
	{
		changeTextSize(multiplier);
	}
	else if (maincontent.style.fontSize < "18px" && multiplier > 0)
	{
		changeTextSize(multiplier);
	}
	
	function changeTextSize(multiplier) {
		maincontent.style.fontSize = parseInt(maincontent.style.fontSize) + multiplier + "px"; //increase/decrease by 1px
		
		if (typeof maincontenth1[0] != 'undefined') {
			if (maincontenth1[0].style.fontSize == "") {
				for (var i = 0; i < maincontenth1.length; i++) {   
					maincontenth1[i].style.fontSize = "22px";//set body text to 22px
				}
			}
			for (var i = 0; i < maincontenth1.length; i++) {   
				maincontenth1[i].style.fontSize = parseInt(maincontenth1[i].style.fontSize) + multiplier + "px";
			}
		}
		
		if (typeof maincontenth2[0] != 'undefined') {
			if (maincontenth2[0].style.fontSize == "") {
				for (var i = 0; i < maincontenth2.length; i++) {   
					maincontenth2[i].style.fontSize = "15px";//set body text to 15px
				}
			}
			for (var i = 0; i < maincontenth2.length; i++) {   
				maincontenth2[i].style.fontSize = parseInt(maincontenth2[i].style.fontSize) + multiplier + "px";
			}
		}
		
		if (typeof maincontenth3[0] != 'undefined') {
			if (maincontenth3[0].style.fontSize == "") {
				for (var i = 0; i < maincontenth3.length; i++) {   
					maincontenth3[i].style.fontSize = "13px";//set body text to 13px
				}
			}
			for (var i = 0; i < maincontenth3.length; i++) {   
				maincontenth3[i].style.fontSize = parseInt(maincontenth3[i].style.fontSize) + multiplier + "px";
			}
		}
		
		if (typeof maincontenth4[0] != 'undefined') {
			if (maincontenth4[0].style.fontSize == "") {
				for (var i = 0; i < maincontenth4.length; i++) {   
					maincontenth4[i].style.fontSize = "18px";//set body text to 18px
				}
			}
			for (var i = 0; i < maincontenth4.length; i++) {   
				maincontenth4[i].style.fontSize = parseInt(maincontenth4[i].style.fontSize) + multiplier + "px";
			}
		}
		
		if (typeof maincontenth5[0] != 'undefined') {
			if (maincontenth5[0].style.fontSize == "") {
				for (var i = 0; i < maincontenth5.length; i++) {   
					maincontenth5[i].style.fontSize = "14px";//set body text to 14px
				}
			}
			for (var i = 0; i < maincontenth5.length; i++) {   
				maincontenth5[i].style.fontSize = parseInt(maincontenth5[i].style.fontSize) + multiplier + "px";
			}
		}
	}
}
