FUENTE_DEFAULT = 9;
FUENTE_ACTUAL = 9;
FUENTE_MASPEQUENA = 7;
FUENTE_MASGRANDE = 18;


var contador=0;
function sizear(opcion){
	var divas;
	divas = document.getElementsByTagName("div");
	var x;
	x=0;
	//alert(divas.length);
	if(opcion=='menos'){
		if(contador<-2)return; 
		contador--;
		//alert(divas(2).id);
		while(x<=divas.length){
			if(isNaN(parseInt(divas(x).style.fontSize)))continue;
			divas.item(x).style.fontSize=(parseInt(divas.item(x).style.fontSize)-2)+'px';
			divas.item(x).style.lineHeight=(parseInt(divas.item(x).style.lineHeight)-2)+'px';
			
			/*divas(x).style.fontSize=(parseInt(divas(x).style.fontSize)-2)+'px';*/
			//divas(x).style.lineHeight=(divas(x).style.lineHeight)-2)+'px';
			x++;
		}
	}else{
		if(contador>2)return; 
		contador++;
		while(x<=divas.length){
			if(isNaN(parseInt(divas(x).style.fontSize)))continue;
			divas.item(x).style.fontSize=(parseInt(divas.item(x).style.fontSize)-2)+'px';
			divas.item(x).style.lineHeight=(parseInt(divas.item(x).style.lineHeight)-2)+'px';
			
			/*divas(x).style.fontSize=(parseInt(divas(x).style.fontSize)-2)+'px';*/
			//divas(x).style.lineHeight=(divas(x).style.lineHeight)-2)+'px';
			x++;
		}
	}
	alert(x);
}

