//ATENCION: no eliminar esta funcion...
function function_onload() {
    //esta funcion se ejecuta al iniciar la pagina
}

//ATENCION: no eliminar esta funcion...
function function_onunload() {
    //esta funcion se ejecuta al cerrar la pagina
}

//function anularBotonDerecho() {
//   if (event.button==2) {
//     alert('Botón derecho deshabilitado');
//    }
//  }
//  document.onmousedown=anularBotonDerecho; 

//FUNCIO PER CONTE ENRRERA CURSES//

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

ccDayNow = new Date();
ccDayThen = new Date("January 8, 2006 16:30:00")
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (ccDayThen.getTime()-ccDayNow.getTime());
cc_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(cc_daysLeft);
cc_hrsLeft = (cc_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(cc_hrsLeft);
minsLeft = Math.floor((cc_hrsLeft - hrsLeft)*60);

var tickertapeform
speed=100
len=20
space="                                                                                                    "
tid = 0;
c= -len;

function move() {
  cend=Math.min(c+len,message.length)
  if (c <0)
    cstart=0
  else
    cstart=c

  if (c < 0)
    f.scroll.value=space.substring(0,-c) + message.substring(cstart,cend)
  else
    f.scroll.value=message.substring(cstart,cend)
  c = c +1;
  if (c == message.length ) c = -len;
  tid=window.setTimeout("move()",speed);
}

function start(x) {
  f=x
  tid=window.setTimeout("move()",speed);
}

function cleartid() {
  window.clearTimeout(tid);
}

// for some reason on some pages this crashes netscape

function ticker(m,l,s)
{
message=m
len=l
speed=s
document.write('<FORM name=tickertapeform><input name=scroll size=')
document.write(len)
document.write(' value=""></FORM>')
start(document.tickertapeform);
}

// for some reason on some pages this crashes netscape
function ticker(m)
{
message=m
<!--message="Falten "+daysLeft+" dies, "+hrsLeft+" hores i "+minsLeft+" minuts per l'inici de l'edició 2006 de la Grande Odyseé. Comença el Diumenge 8 a les 16 h 30.                                Faltan "+daysLeft+" dias, "+hrsLeft+" horas y "+minsLeft+" minutos para el comienzo de la edición 2006 de la Grande Odyseé. Empezará el Domingo 8 a las 16 h 30.                                2006 edition starts in "+daysLeft+" days, "+hrsLeft+" hours and "+minsLeft+" minutes on Sunday,8th January 2006, 4:30 pm.";-->
<!--message="La carrera va començar fa "+daysLeft+" dies, "+hrsLeft+" hores i "+minsLeft+" minuts!   ¡Segueix-la aquí!                              La carrera empezó hace "+daysLeft+" dias, "+hrsLeft+" horas y "+minsLeft+" minutos!  ¡Sigela aquí!                        Race has begun "+daysLeft+" days, "+hrsLeft+" hours and "+minsLeft+" minutes ago !";-->
message="La grande Odyssée 2006 s'ha acabat, esperem poder veuren's a l'edició 2007. Gràcies a tots!.       La grande Odyssée 2006 ha terminado, esperamos poder vernos en la edición 2007. Gracias a todos!.       La Grande Odyssée 2006 is over, see you for the 2007 edition.";
len=80
speed=80
document.write('<DIV ALIGN=center><FORM name=tickertapeform><input name=scroll size=80 class="conta_enrrera"></FORM></DIV>');
start(document.tickertapeform);
}
