//******=========SCRIPTS EN JAVASCRIPT====================*****************************
//***************** SCROLLTEXT EN BARRA DE ESTADO *************************************
var scrollCounter = 0;
var scrollText = "Estās en la pāgina OFICIAL de la Ciutat de  R  I  B  E  S  A  L  B  E  S, grācies per la teua visita";
var scrollDelay = 50;
var i = 0;
while (i ++ < 140)
scrollText = " " + scrollText;
function Scroller()
{window.status = scrollText.substring(scrollCounter++,
scrollText.length);
if (scrollCounter == scrollText.length)
scrollCounter = 0;
setTimeout("Scroller()", scrollDelay);
}
Scroller();
//************************************************************************************** 
//********************* FECHA ESPAŅOL **************************************************

function MakeArray(n)  {
     this.length = n
     return this
}

monthNames = new MakeArray(12)
monthNames[1] = "gener"
monthNames[2] = "febrer"
monthNames[3] = "marį"
monthNames[4] = "abril"
monthNames[5] = "maig"
monthNames[6] = "juny"
monthNames[7] = "juliol"
monthNames[8] = "agost"
monthNames[9] = "setembre"
monthNames[10] = "octubre"
monthNames[11] = "novembre"
monthNames[12] = "desembre"

dayNames = new MakeArray(7)
dayNames[1] = "Diumenge"
dayNames[2] = "Dilluns"
dayNames[3] = "Dimarts"
dayNames[4] = "Dimecres"
dayNames[5] = "Dijous"
dayNames[6] = "Divendres"
dayNames[7] = "Dissabte"

function Data(oneDate)  {
     var theDay = dayNames[oneDate.getDay() + 1]
     var theMonth = monthNames[oneDate.getMonth() + 1]
     var theYear = oneDate.getFullYear() 
     return theDay + ", " + oneDate.getDate() + " de " + theMonth  + " de " + theYear
}
//******************************************************************************************
//********************* FECHA INGLES **************************************************

function i_MakeArray(n)  {
     this.length = n
     return this
}

i_monthNames = new i_MakeArray(12)
i_monthNames[1] = "Enero"
i_monthNames[2] = "Febrero"
i_monthNames[3] = "Marzo"
i_monthNames[4] = "Abril"
i_monthNames[5] = "Mayo"
i_monthNames[6] = "Junio"
i_monthNames[7] = "July"
i_monthNames[8] = "Agosto"
i_monthNames[9] = "Septiembre"
i_monthNames[10] = "Octubre"
i_monthNames[11] = "Noviembre"
i_monthNames[12] = "Diciembre"

i_dayNames = new i_MakeArray(7)
i_dayNames[1] = "Domingo"
i_dayNames[2] = "Lunes"
i_dayNames[3] = "Martes"
i_dayNames[4] = "Miércoles"
i_dayNames[5] = "Jueves"
i_dayNames[6] = "Viernes"
i_dayNames[7] = "Saturday"

function i_Data(oneDate)  {
     var theDay = i_dayNames[oneDate.getDay() + 1]
     var theMonth = i_monthNames[oneDate.getMonth() + 1]
     var theYear = oneDate.getFullYear() 
     if (theYear < 1000) theYear += 1900
     return theDay + ", " + oneDate.getDate() + " " + theMonth  + " " + theYear
}
//******************************************************************************************
//****************IR A *********************************************************************
  function irA(menu){window.location.href = menu.options[menu.selectedIndex].value;}
//******************************************************************************************