function LoadActualFontSize() {
	tempArray = document.cookie.split(";");

	for (tA = 0; tA < tempArray.length; tA++) {
		if (tempArray[tA].indexOf('NEFontSize') > -1) {
			fontSizeValue = tempArray[tA].split("=");
			ACTUAL_FONTSIZE = parseInt(fontSizeValue[1]);
		}
	}
}

function SaveActualFontSize() {
	var expire = new Date();
	expire.setTime (expire.getTime() + (6000 * 24 * 3600000));
	expire = expire.toGMTString();
	document.cookie = "NEFontSize=" + ACTUAL_FONTSIZE + "; path=/; expires=" + expire;
}

function txt_more() {
	if (ACTUAL_FONTSIZE < LARGEST_FONTSIZE) {
		ACTUAL_FONTSIZE++;
		var cuerpo = new get_obj('cuerpo');
		cuerpo.style.fontSize = ACTUAL_FONTSIZE + "px";
		SaveActualFontSize();
	}
}

function txt_less() {
	if (ACTUAL_FONTSIZE > SMALLEST_FONTSIZE) {
		ACTUAL_FONTSIZE--;
		var cuerpo = new get_obj('cuerpo');
		cuerpo.style.fontSize = ACTUAL_FONTSIZE + "px";
		SaveActualFontSize();
	}
}

function txt_equal() {
	if (ACTUAL_FONTSIZE != 13) {
		ACTUAL_FONTSIZE = 13;
		var cuerpo = new get_obj('cuerpo');
		cuerpo.style.fontSize = ACTUAL_FONTSIZE + "px";
		SaveActualFontSize();
	}
}

function mail(from) {
	var xmail = new get_obj('xmail');

	if (xmail.style.display == '') {
		if (subnotas_fotos) {
			var sf = new get_obj('foto_subnotas');
			sf.style.margin = '10px 0px 10px 10px';
		}
		var sepa = new get_obj('sepa');
		sepa.style.height = '';
		xmail.style.display = 'none';
	}
	else {
		if (subnotas_fotos) {
			var sf = new get_obj('foto_subnotas');
			sf.style.margin = '177px 0px 10px 10px';
		}
		var sepa = new get_obj('sepa');
		sepa.style.height = '167px';
		if (user.get_user()) document.formu.tuemail.value = user.get_user();
		if (user.get_name()) document.formu.nombre.value = user.get_name();
		xmail.style.display = '';
		if (from) location.href('#inicio');
	}

}

var ACTUAL_FONTSIZE = 13;
LoadActualFontSize();
var SMALLEST_FONTSIZE = 10;
var LARGEST_FONTSIZE = 18;
