//Aumentar y reducir el tamaņo del texto
var prefsLoaded = false;
var original= 1.10;
incremento = 0;
tamano = 0;
function aumentar () {	
	incremento+=.15;
	tamano = original + incremento;
	document.getElementById("contenido").style.fontSize = tamano + "em";
}
function reducir () {	
	incremento-=.15;
	tamano = original + incremento;
	document.getElementById("contenido").style.fontSize = tamano + "em";
}
function restaurar () {
	document.getElementById("contenido").style.fontSize = original + "em";
	tamano = 0;
	incremento = 0;
}
function establecer(tamano) {
	if (tamano!=0) {
		document.getElementById("contenido").style.fontSize = tamano + "em";
	}	
}





function comboLink(e){
	if(e!="" && e!="null" && e!=null){
		splitURL=e.split(";");
		linkURL=splitURL[0];
		linkTarget=splitURL[1];
		
		if(linkTarget=="blank"){
			window.open(linkURL,'nueva','directories=yes,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,width=800,height=600');			
		}else if(linkTarget=="popup"){
			window.eval(linkURL);			
		}else if(linkTarget=="self"){
                        location.href=linkURL;
		}else if(linkTarget=="null"){
                    //si recibe null
                }else{
			parent.eval(linkTarget).location.href=linkURL;	
		}
	}
}

function imprimir(e){
        self.print();
}

function cambiaIdioma(){
	document.forms[0].submit();
}

function tOpinion(){
        window.open("opinion/","topina","directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,width=200,height=300");
}

function votePoll(e,f){
        if(f && f != ""){
                window.location.href="/votacion.html?poll="+e+"&voto="+f;
        }else{
                alert("Seleccione una respuesta.\nGracias");
        }
}

function resultsPoll(e){
        window.location.href="/resultados.html?poll="+e;
}


function resizeHeightWindow(e){
	var addPixels = (document.all)?36:46;
	var winHeight = (this.document.body.scrollHeight + addPixels);
	window.resizeTo(e,winHeight);
}