<!--
// Jordi - 24-01-2005. En aquest fitxer fitxers hi ha les funcions per crear, fer
// actualitzar i fer apareixer el missatge de "Carregant pàgina".
// S'utilitza en els includes "p04_pre3_..."
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var timerID = 0;
var alternar=0;

function Start() {
   timerID  = setTimeout("cargandoPagina()", 500);
}

function cargandoPagina(){
	if(alternar==0){
		document.getElementById('puntsSuspensius').style.visibility="hidden";
		alternar=1;
	}
	else{
		document.getElementById('puntsSuspensius').style.visibility="visible";
		alternar=0;
	}

	timerID  = setTimeout("cargandoPagina()", 500);
}

function Stop() {
   if(timerID) {
      clearTimeout(timerID);
      timerID  = 0;
   }   
}

function paginaCargada(){
	document.getElementById('showScreenSplash').style.display = 'none';
	Stop();	
}

function inicioCargaPagina(msg){
document.write('<div id="showScreenSplash" class="showScreenSplash" align="center">'+msg+'<span id="puntsSuspensius">...</span></div>');
Start();
}
//-->
