var sizeContent = 14;

function isIE(){
	var browser=navigator.appName;

	if(browser=="Microsoft Internet Explorer")
		return true;
	else
	 	return false;
}

function sizeFont(action){
/*
 * @author: Paulo Henrique dos Santos Costa
 * @description: Aumenta e diminui o tamanho da fonte, provendo ao usuário um maior conforto ao ler o conteúdo.
 * 				 Destina-se principalmente para deficientes visuais.
 */	
	var elmContent = document.getElementById("conteudo");
	var isIEvar    = isIE();
	if (action == "+") {
		if (sizeContent <= 24) {
			sizeContent = sizeContent + 1;
			
			if (isIEvar == true) {
				elmContent.style.fontSize = sizeContent + "px";
			}
			else 
				elmContent.setAttribute("style", "font-size: " + sizeContent + "px;");
		}
	}
	else 
		if (action == "-") {
			if (sizeContent > 10) {
				sizeContent = sizeContent - 1;
			if (isIEvar == true) {
				elmContent.style.fontSize = sizeContent + "px";
			}
			else 
				elmContent.setAttribute("style", "font-size: " + sizeContent + "px;");
			}
		}
}

function printContent(){
	window.print();
}

