	
	// JavaScript Document

	//
	//	funcAdministrador.js
	//	Fecha de creacion: 21 / 7 / 2010
	//	Descripcion: Contiene funciones para al cambio del tamaño de las fuentes
	//

	// OPERACIONES DE TAMAÑO DE LA FUENTE
	
	var maxFontSize 	= 105;
	var minFontSize		= 70;
	var incrFontSize	= 5;
	
	function biggerSize ()
	{
		var miRegla;
		
		if (document.all)	miRegla = document.styleSheets[0].rules;
		else				miRegla = document.styleSheets[0].cssRules;
		
		for (i = 0; reg = miRegla[i]; i++) 
		{
			if (reg.selectorText != undefined) 
			{
				if (reg.selectorText.toLowerCase() == "body") 
				{
					var valorActual = reg.style["fontSize"];
					
					valorActual.replace("%", "");
					valorActual = parseFloat ( valorActual );
					
					nuevoValor = valorActual + incrFontSize;
					
					if ( nuevoValor < maxFontSize ) 
					{
						reg.style["fontSize"] = nuevoValor + "%";
					}
					
					break;
				}
			}
		}
	}
	
	function smallerSize ()
	{
		var miRegla;
		
		if (document.all)	miRegla = document.styleSheets[0].rules;
		else				miRegla = document.styleSheets[0].cssRules;
		
		for (i = 0; reg = miRegla[i]; i++) 
		{
			if (reg.selectorText != undefined) 
			{
				if (reg.selectorText.toLowerCase() == "body") 
				{
					var valorActual = reg.style["fontSize"];
					
					valorActual.replace("%", "");
					valorActual = parseFloat ( valorActual );
					
					nuevoValor = valorActual - incrFontSize;
					
					if (nuevoValor > minFontSize) 
					{
						reg.style["fontSize"] = nuevoValor + "%";
					}
					
					break;
				}
			}
		}
	}
	
