// JavaScript Document

var min = 12;
var max = 18;
var tags = new Array('div','p','a','td','li');

function increaseFontSize() {
	var content = document.getElementById('content');
	for (j=0; j<tags.length; j++)
	{
		var p = content.getElementsByTagName(tags[j]);
		for (i = 0; i < p.length; i++) {
			if (p[i].style.fontSize) {
				var s = parseInt(p[i].style.fontSize.replace("px", ""));
			} else {
				var s = 12;
			}
			if (s != max) {
				s += 1;
			}
			p[i].style.fontSize = s + "px";
		}
	}
}


function decreaseFontSize() {
	var content = document.getElementById('content');
	for (j=0; j<tags.length; j++)
	{
		var p = content.getElementsByTagName(tags[j]);
		for (i = 0; i < p.length; i++) {
			if (p[i].style.fontSize) {
				var s = parseInt(p[i].style.fontSize.replace("px", ""));
			} else {
				var s = 12;
			}
			if (s != min) {
				s -= 1;
			}
			p[i].style.fontSize = s + "px"
		}
	}
}
