iLastSize = '11';
function F_ChangeFontSize(sLayer, iInitialSize, sType) {
	if (iInitialSize == 1) {
		iInitialSize = '11px';
	} else if (iInitialSize == 2) {
		iInitialSize = '13px';
	} else if (iInitialSize == 3) {
		iInitialSize = '15px';
	}
	
	//iQuantPaginas = document.getElementById('quantpage');
	/*if ((typeof(iQuantPaginas) == "object") && (document.getElementById('quantpage') != null)) {
		for (iCounter = 1; iCounter <= parseInt(iQuantPaginas.innerHTML); iCounter++) {
			oContent = document.getElementById('pag'+ iCounter);
		
			if (iInitialSize == 0) { //Define o tamanho automaticamente
				iActualSize = oContent.style.fontSize;
				if (iActualSize == '') { iActualSize = iLastSize; }
				iLastSize = iActualSize;
				
				if (iActualSize.indexOf('pt') > -1) {
					sTypeSize = 'pt';
				} else if (iActualSize.indexOf('px') > -1) {
					sTypeSize = 'px';
				} else {
					sTypeSize = 'px';
				}
				iActualSize = iActualSize.replace(sTypeSize, '');
				
				if (sType == '-') {
					iNewSize = parseInt(iActualSize) - 3;
					if (iNewSize <= 8) { iNewSize = 8; }
					iNewSize = iNewSize + sTypeSize;
				} else if (sType == '+') {
					iNewSize = parseInt(iActualSize) + 3;
					if (iNewSize >= 17) { iNewSize = 17; }
					iNewSize = iNewSize + sTypeSize;
				}
				oContent.style.setAttribute('font-size', iNewSize);
				oContent.style.fontSize = iNewSize;
			} else { //define o tamanho de acordo com o valor informado
				oContent.style.fontSize = iInitialSize;
			}
		}
	} else {
	*/	oContent = document.getElementById('esqMat');

		if (iInitialSize == 0) { //Define o tamanho automaticamente
			iActualSize = oContent.style.fontSize;
			if (iActualSize == '') { iActualSize = iLastSize; }
			iLastSize = iActualSize;
			
			if (iActualSize.indexOf('pt') > -1) {
				sTypeSize = 'pt';
			} else if (iActualSize.indexOf('px') > -1) {
				sTypeSize = 'px';
			} else {
				sTypeSize = 'px';
			}
			iActualSize = iActualSize.replace(sTypeSize, '');
			
			if (sType == '-') {
				iNewSize = parseInt(iActualSize) - 3;
				if (iNewSize <= 8) { iNewSize = 8; }
				iNewSize = iNewSize + sTypeSize;
			} else if (sType == '+') {
				iNewSize = parseInt(iActualSize) + 3;
				if (iNewSize >= 17) { iNewSize = 17; }
				iNewSize = iNewSize + sTypeSize;
			}
			//oContent.style.setAttribute('font-size', iNewSize);
			oContent.style.fontSize = iNewSize;
		} else { //define o tamanho de acordo com o valor informado
			oContent.style.fontSize = iInitialSize;
		}
	//}
}

// ----- FOTO ----- //

function amplia(img){
	if(arguments[2]!="" && arguments[2]!=undefined && arguments[3]!="" && arguments[3]!=undefined){
		width=arguments[2];
		height=arguments[3];
	}
	else{
		width=730;
		height=600;
	}
	
	if(arguments[1] != "")
		titulo = arguments[1];
	else
		titulo = "QUATRO RODAS";
	

	janela = window.open('http://quatrorodas.abril.com.br/QR2/includes/popimg.shtml?'+img+'|'+titulo,'foto','width='+width+',height='+height+',top=0,left=0,scrollbars=no,status=no,menubars=no,location=no');
	janela.document.title=titulo;
	janela.document.close();
	janela.focus();
}

// - FIM FOTO ----- //