// JavaScript Document

	var pagAct = 1;
	function limpiarPaginas () {
		document.getElementById("pag1").style.display='none';
		document.getElementById("pag2").style.display='none';
		document.getElementById("pag3").style.display='none';
		document.getElementById("pag4").style.display='none';
	}
	function verPagina(pag) {
		limpiarPaginas();
		document.getElementById("pag" + pag).style.display='';
		pagAct=pag;
	}	
	function verPagAnterior () {
		limpiarPaginas();
		verPagina(pagAct-1);
		document.getElementById("ArticuloBotonAnterior").style.display=(pagAct==1)?('none'):('compact');
		document.getElementById("ArticuloBotonSiguiente").style.display='';
		
	}	
	function verPagSiguiente (pag) {
		limpiarPaginas();
		verPagina(pagAct+1);
		document.getElementById("ArticuloBotonAnterior").style.display='';
		alert ((pagAct+1) + " = " + (document.getElementById("pag" + (pagAct+1)).innerHTML.length));
		document.getElementById("ArticuloBotonSiguiente").style.display=(!document.getElementById("pag" + (pagAct+1)).innerHTML.length || pagAct==4)?('none'):('compact');
		
	}
	

	function imprimeArticulo() {
		
		printSpecial('capaArticulo');
	}
