/* © Master AETOS */

function addFavoritos(){
	var dir = 'http://www.aetos.das'; 
	var tit = 'Master AETOS de Especialización en Túneles y Obras Subterráneas'; 
	var ns = 'Para añadir la página a Marcadores, pulsa: [Ctrl] + [ D ]'; 
	var op = 'Para añadir la página a Preferidos, pulsa: [Ctrl] + [Mays] + [T]'; 
	if(navigator.userAgent.toLowerCase().indexOf("opera") != -1) alert(op);
	else{
		if(navigator.userAgent.toLowerCase().indexOf("firefox") != -1 || navigator.userAgent.toLowerCase().indexOf("netscape") != -1) alert(ns);
		else window.external.AddFavorite(dir, tit); 
	}
}

function printPag(){
	gId('rightC').style.fontSize = '12px';
	gId('estilo').href = "/css/print.css"; 
	window.print();
	if(navigator.userAgent.toLowerCase().indexOf("firefox") != -1 || navigator.userAgent.toLowerCase().indexOf("netscape") != -1) setTimeout('printPagBack()', 1000);
}
function printPagBack(){
	//setFont('init');
	gId('estilo').href = "/css/difusion.css"; 
}

function tamTxt(tipo){
	//Blur
	gId('txtMasLk').blur();
	gId('txtMenLk').blur();
	//
	if(tipo == 'mas'){
		if(parseInt(gId('rightC').style.fontSize) >= 14) return;
		else{
			gId('rightC').style.fontSize = parseInt(gId('rightC').style.fontSize) + 1 + 'px';
			setFont();
			if(parseInt(gId('rightC').style.fontSize) > 12){
				gId('txtMenLk').className = 'txtMenCl';
				gId('txtMenLk').title = 'Reducir el tamaño del texto';
			}
			if(parseInt(gId('rightC').style.fontSize) == 14){
				gId('txtMasLk').className = 'txtMasCl2';
				gId('txtMasLk').title = '';
			}
		}
	}else{
		if(parseInt(gId('rightC').style.fontSize) <= 12) return;
		else{
			gId('rightC').style.fontSize = parseInt(gId('rightC').style.fontSize) - 1 + 'px';
			setFont();
			if(parseInt(gId('rightC').style.fontSize) < 14){
				gId('txtMasLk').className = 'txtMasCl';
				gId('txtMasLk').title = 'Aumentar el tamaño del texto';
			}
			if(parseInt(gId('rightC').style.fontSize) == 12){
				gId('txtMenLk').className = 'txtMenCl2';
				gId('txtMenLk').title = '';
			}
		}
	}
	dataAlt();
}
