window.onload = function() { myShow = new Slideshow('my_slideshow', {hu: '/web/imagenes/', images: ['1.jpg','2.jpg','3.jpg','4.jpg','5.jpg','6.jpg','7.jpg','8.jpg','9.jpg']}); }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function display_date()
{
  date = new Date();
  var day_of_week_number = date.getDay();
  var day_of_month = date.getDate();
  var month_number = date.getMonth();
  var year = date.getYear();
  if(year < 1900)
    year += 1900;
  var day_of_week = '';
  var month = ''
  if(month_number == 0){month = 'Enero';}
  if(month_number == 1){month = 'Febrero';}
  if(month_number == 2){month = 'Marzo';}
  if(month_number == 3){month = 'Abril';}
  if(month_number == 4){month = 'Mayo';} 
  if(month_number == 5){month = 'Junio';}
  if(month_number == 6){month = 'Julio';}
  if(month_number == 7){month = 'Agosto';}
  if(month_number == 8){month = 'Septiembre';}
  if(month_number == 9){month = 'Octubre';}
  if(month_number == 10){month = 'Noviembre';}
  if(month_number == 11){month ='Diciembre';}
  if(day_of_week_number == 0){day_of_week = 'Domingo';}
  if(day_of_week_number == 1){day_of_week = 'Lunes';}
  if(day_of_week_number == 2){day_of_week = 'Martes';}
  if(day_of_week_number == 3){day_of_week = 'Miercoles';}
  if(day_of_week_number == 4){day_of_week = 'Jueves';}
  if(day_of_week_number == 5){day_of_week = 'Viernes';}
  if(day_of_week_number == 6){day_of_week = 'Sábado';}
  var date_to_show = day_of_week + ', ' + day_of_month + ' de ' + month + ' del ' + year; 
  document.write('<font size="1" face="arial">' + date_to_show.fontcolor("#000000") + '</font>');
} 

function comprueba_acceso()
{
  if(document.getElementById("zonaprivada").value!="")
  {
    txt_zonaprivada=document.getElementById("zonaprivada").value;
    if(document.getElementById("usuario").value!="")
    {
      txt_usuario=document.getElementById("usuario").value;
      if(document.getElementById("clave").value!="")
      {
        txt_clave=document.getElementById("clave").value;
        form_vip.submit();
        return true;
      }
      else
      {
        alert("El campo password está vacío");
        return false;
      }
    }
    else
    {
      alert("El campo usuario está vacío");
      return false;
    }
  }
  else
  {
    alert("Debe seleccionar una categoría");
    return false;
  }
}

function cambio()
{
  if((document.getElementById("zonaprivada").value=="4") || (document.getElementById("zonaprivada").value=="3"))
  { 
    alert("Estamos trabajando en la construccion de esta zona privada. En breve estará disponible. Gracias");
  }
}

function cabecera()
{
	document.write('      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">');
	document.write('        <tr>');
	document.write('          <td height="100" class="top">');
	document.write('            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="top">');
	document.write('              <tr>');
	document.write('                <td width="400" rowspan="2">');
	document.write('                  <div align="center">');
	document.write('                    <a href="default.asp">');
	document.write('                      <img src="imagenes/logo-fecan.jpg" width="400" height="85" border="0">');
	document.write('                    </a>');
	document.write('                  </div>');
	document.write('                </td>');
	document.write('                <td>');
	document.write('                  &nbsp;');
	document.write('                </td>');
	document.write('                <td width="36%">');
	document.write('                  <div align="right">');
	document.write('                    <SCRIPT LANGUAGE="javascript" TYPE="text/javascript">display_date();</script>');
	document.write('                    &nbsp;&nbsp;&nbsp;');
	document.write('                  </div>');
	document.write('                </td>');
	document.write('              </tr>');
	document.write('              <tr>');
	document.write('                <td colspan="2">');
	document.write('                  <form name="form_vip" method="post" action="privada_zonaentrar.asp" onSubmit="return comprueba_acceso();">');
	document.write('                  <table border="0" align="right" cellpadding="0" cellspacing="4">');
	document.write('                    <tr>');
	document.write('                      <td class="intranet">');
	document.write('                        <select name="zonaprivada" id="zonaprivada" class="intranet" onChange="javascript:cambio()">');
	document.write('                          <option selected>Elige tu categoria</option>');
	document.write('                          <option value="4">Club</option>');
	document.write('                          <option value="5">Federado</option>');
	document.write('                          <!-- <option value="3">Prensa</option> -->');
	document.write('                        </select>');
	document.write('                      </td>');
	document.write('                      <td class="intranet">usuario:');
	document.write('                        <input name="usuario" id="usuario" class="intranet" type="intranet" size="15" maxlength="15">');                  
	document.write('                      </td>');
	document.write('                      <td class="categoria"><span class="intranet">password</span>:');
	document.write('                        <input name="clave" id="clave" class="intranet" type="password" size="15" maxlength="15">');
	document.write('                      </td>');
	document.write('                      <td class="txt">');
	document.write('                        <input name="Submit" class="intranet" type="submit" value="entrar" DISABLED>');
	document.write('                      </td>');
	document.write('                    </tr>');
	document.write('                  </table>');
	document.write('                  </form>');
	document.write('                </td>');
	document.write('              </tr>');
	document.write('            </table>');
	document.write('          </td>');
	document.write('        </tr>');
	document.write('        <tr>'); 
	document.write('          <td width="100%" height="115">');
	document.write('            <div align="left">');
	document.write('             <DIV ID="my_slideshow" CLASS="slideshow" STYLE="width:902px;height:200px">');
	document.write('               <IMG SRC="/web/imagenes/1.jpg" WIDTH="902" HEIGHT="200">');
	document.write('             </DIV>');
	document.write('            </div>');
	document.write('          </td>');
	document.write('        </tr>');
	document.write('        <tr>');
	document.write('          <td height="8" class="separador">&nbsp;</td>');
	document.write('        </tr>');
	document.write('      </table>');
}

function pie()
{
	document.write('      <table width="100%" border="0" align="center" cellpadding="15" cellspacing="0">');
	document.write('        <tr>'); 
	document.write('          <td width="65%" valign="top" bgcolor="#F2F2F2">');
	document.write('            <div align="left">');
	document.write('              <strong class="separador">Federacion Canaria de Motociclismo</strong></span><br>');
	document.write('              <span class="bottom">');
	document.write('                C/ Tamarco, nº 28. (Camino de La Villa) C.P. 38206 San Cristóbal de La Laguna <br>');
	document.write('                Telefono: 922 25 09 06 Fax 922 31 49 43  -'); 
	document.write('                E-mail <a href="mailto:info@fecanmotos.com">info@fecanmotos.com</a><br>');
	document.write('              </span>');
	document.write('            </div>');
	document.write('          </td>');
	document.write('          <td width="35%" valign="middle">');
	document.write('            <div align="right">');
	document.write('              <span class="bottom">');
	document.write('                <a href="avisolegal.asp">Aviso legal</a> - <a href="mapaweb.asp">Mapa del Web</a> - <a href="creditos.asp">Créditos</a><br>');
	document.write('              </span>');
	document.write('            </div>');
	document.write('          </td>');
	document.write('        </tr>');
	document.write('      </table>');
}