// Aumentamos y disminuimos el texto
//tamaño inical
var txtSz = 1;
var detalleUrl = document.location.href;
if(detalleUrl.indexOf("?")>0)
	querystring = detalleUrl.substring(detalleUrl.indexOf("?")+1);
else
	querystring = "";

if(querystring.indexOf("idPestanya=")>0 && querystring.indexOf("padre=")>0){
	querystring = querystring.substring(querystring.indexOf("padre=")+16);
}else if(querystring.indexOf("idPestanya=")>0){
	querystring = querystring.substring(querystring.indexOf("idPestanya=")+16);
}
function textSize(signo)
{
	var cuerpo = document.getElementsByTagName("BODY")
	if(signo=="plus") 
		txtSz = txtSz+0.10;
	else if(signo == "same") 
		txtSz = txtSz;
	else 
		txtSz = txtSz-0.10;

	//txtSz = (signo=="plus") ? txtSz+0.10 : txtSz-0.10;
	//tamaño máximo
	if (txtSz>1.5) txtSz = 1.5;
	//Tamaño minimo
	if (txtSz<0.6) txtSz = 0.6;
	ts = txtSz+"em";
	cuerpo[0].style.fontSize = ts;
	createCookie("txtSz",txtSz);
}
//Funciones para las cookies
function createCookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
}
