// JavaScript Document

function switchimage(oldimg, newimg) {
	var img = document.getElementById(oldimg);
	img.setAttribute('src', 'assets/images/' + newimg);
}
function flasher(divname, doit){
	document.getElementById(divname).style.display=doit;
}
var min=14;
var max=20;
function increaseFontSize(divname) {
	var p = document.getElementById(divname);

	if(p.style.fontSize) {
		var s = parseInt(p.style.fontSize.replace("px",""));
	} else {
		var s = min;
	}
	if(s!=max) {
		s += 1;
	}
	p.style.fontSize = s+"px"

}
function decreaseFontSize(divname) {
	var p = document.getElementById(divname);
	if(p.style.fontSize) {
		var s = parseInt(p.style.fontSize.replace("px",""));
	} else {
		var s = min;
	}
	if(s!=min) {
		s -= 1;
	}
	p.style.fontSize = s+"px"

}



