// JavaScript Document
function fix_height_menu()
{
document.getElementById('A_menu').style.height=String(document.getElementById('limitador').offsetHeight)+'px';
document.getElementById('C_lateral_d').style.height=String(document.getElementById('limitador').offsetHeight-170)+'px' ;
}
function fix_height_menu2()
{
document.getElementById('A_menu').style.height=String(document.getElementById('limitador').offsetHeight)+'px';
document.getElementById('C_lateral_d').style.height=String(document.getElementById('limitador').offsetHeight-274)+'px' ;
}
function fix_height_menu3()
{
document.getElementById('A_menu').style.height=String(document.getElementById('limitador').offsetHeight)+'px';
document.getElementById('C_body2').style.height=String(document.getElementById('limitador').offsetHeight-170)+'px' ;
}
//generar fecha con javascript
var pong;
function makeArray(n){
  this.length = n;
  for (i=1;i<=n;i++){
    this[i]=0;
  }
  return this;
}

// standard date display function with y2k compatibility
function displayDate() {
  var this_month = new makeArray(12);
  this_month[0]  = "Enero";
  this_month[1]  = "Febrero";
  this_month[2]  = "Marzo";
  this_month[3]  = "Abril";
  this_month[4]  = "Mayo";
  this_month[5]  = "Junio";
  this_month[6]  = "Julio";
  this_month[7]  = "Agosto";
  this_month[8]  = "Septiembre";
  this_month[9]  = "Octubre";
  this_month[10] = "Noviembre";
  this_month[11] = "Diciembre";

  var this_day_e = new makeArray(7);
  this_day_e[0]  = "Domingo";
  this_day_e[1]  = "Lunes";
  this_day_e[2]  = "Martes";
  this_day_e[3]  = "Miércoles";
  this_day_e[4]  = "Jueves";
  this_day_e[5]  = "Viernes";
  this_day_e[6]  = "Sábado";

  var today = new Date();
  var day   = today.getDate();
  var month = today.getMonth();
  var year  = today.getYear();
  var dia = today.getDay();
    if (year < 1000) {
       year += 1900; }
  return( " " + this_day_e[dia] + ", " + day + " de " + this_month[month] + " del "+" " + year);
}
// -->

// standard date display function with y2k compatibility
function displayDate_eu() {
  var this_month = new makeArray(12);
  this_month[0]  = "Urtarrilak";  
  this_month[1]  = "Otsailak";
  this_month[2]  = "Martxoak";
  this_month[3]  = "Apirilak";
  this_month[4]  = "Maiatzak";
  this_month[5]  = "Ekainak";
  this_month[6]  = "Uztailak";
  this_month[7]  = "Abuztuak";
  this_month[8]  = "Irailak";
  this_month[9]  = "Urriak";
  this_month[10] = "Azaroak";
  this_month[11] = "Abenduak";  

  var this_day_e = new makeArray(7);
  this_day_e[0]  = "Igandea";
  this_day_e[1]  = "Astelehena";
  this_day_e[2]  = "Asteartea";
  this_day_e[3]  = "Asteazkena";
  this_day_e[4]  = "Osteguna";
  this_day_e[5]  = "Ostirala";
  this_day_e[6]  = "Larunbata";

  var today = new Date();
  var day   = today.getDate();
  var month = today.getMonth();
  var year  = today.getYear();
  var dia = today.getDay();
    if (year < 1000) {
       year += 1900; }
  return( " " + year + "ko " + this_month[month]+ " "+ day + ", " + this_day_e[dia] + " ");
}

// -->


