
window.onload=function(){
	Nifty("div#cabecera","big");
	Nifty("ul#nav a","small transparent top");
	Nifty("ul#split li");
	Nifty("div#container");
	Nifty("div#izq,div#der","same-height small");
	Nifty("div#footer","small");
	Nifty("ul#split h3","top");
	Nifty("ul#split div");
	Nifty("ul#split1 h3","top");
	Nifty("ul#split1 div");
	Nifty("div#centro");
	Nifty("div#centroiz,div#centrode","same-height");

}

function abrir(pagina) {
	var ventana = window.self;
	ventana.opener = window.self;
	window.open(pagina,"CA","width=640, height=480, left=50, top=50, location=no, resizable=no, toolbar=no, menubar=no, scrollbars=yes, status=no, directories=no,");
}

function intranet(pagina) {
	var ventana = window.self;
	ventana.opener = window.self;
	window.open(pagina,"CA","width=740, height=480, left=50, top=50, location=no, resizable=no, toolbar=no, menubar=no, scrollbars=no, status=no, directories=no,");
}

var puntos = ":"
function hora(){
	var fecha = new Date()
	var hora = fecha.getHours()
	var minuto = fecha.getMinutes()
	if (hora < 10) {hora = "0" + hora}
	if (minuto < 10) {minuto = "0" + minuto}
	puntos == ":" ? puntos = " " : puntos = ":"
	var horita = hora + puntos + minuto 
	document.getElementById('hora').firstChild.nodeValue = horita
	tiempo = setTimeout('hora()',1000)
}
function inicio(){
	document.write('<span id="hora">')
	document.write('000000</span>')
	hora()
}

function slctr(texto,valor){
this.texto = texto
this.valor = valor
}

var t2007=new Array()
t2007[0] = new slctr('- - Categoría - -')
t2007[1] = new slctr("Liga EBA",'t2007eba')
t2007[2] = new slctr("1ª Div. Nacional",'t2007primera')

var t2007eba=new Array()
t2007eba[0] = new slctr('- - Fase - -')
t2007eba[1] = new slctr("Liga Regular B",'Liga Regular B')

var t2007primera=new Array()
t2007primera[0] = new slctr('- - Fase - -')
t2007primera[1] = new slctr("Primera Impar",'Primera Impar')

var t2006=new Array()
t2006[0] = new slctr('- - Categoría - -')
t2006[1] = new slctr("Liga EBA",'t2006eba')
t2006[2] = new slctr("1ª Div. Autonómica Fem.",'t2006autonof')
t2006[3] = new slctr("1ª Div. Autonómica Masc.",'t2006autonom')
t2006[4] = new slctr("Junior Preferente Fem.",'t2006juniorfp')
t2006[5] = new slctr("Junior Federado Fem.",'t2006juniorf')
t2006[6] = new slctr("Junior Preferente Masc.",'t2006juniormp')
t2006[7] = new slctr("Cadete Federado Masc.",'t2006cadetem')
t2006[8] = new slctr("Infantil Federado Fem.",'t2006infaf')
t2006[9] = new slctr("Infantil Federado Masc.",'t2006infam')

var t2006eba=new Array()
t2006eba[0] = new slctr('- - Fase - -')
t2006eba[1] = new slctr("Fase: 1 Grupo: B",'Fase: 1 Grupo: B')

var t2006autonof=new Array()
t2006autonof[0] = new slctr('- - Fase - -')
t2006autonof[1] = new slctr("Fase: 1 Grupo: Par",'Fase: 1 Grupo: Par')
t2006autonof[2] = new slctr("Fase: 2 Grupo: C2",'Fase: 2 Grupo: C2')

var t2006autonom=new Array()
t2006autonom[0] = new slctr('- - Fase - -')
t2006autonom[1] = new slctr("Fase: 1 Grupo: D",'Fase: 1 Grupo: D')
t2006autonom[2] = new slctr("Fase: 2 Grupo: 1",'Fase: 2 Grupo: 1')
t2006autonom[3] = new slctr("Playoff 1/4 Ascenso",'Playoff 1/4 Ascenso')
t2006autonom[4] = new slctr("Puesto 5º al 8º",'Puesto 5º al 8º')

var t2006juniorfp=new Array()
t2006juniorfp[0] = new slctr('- - Fase - -')
t2006juniorfp[1] = new slctr("Fase: 1 Grupo: F",'Fase: 1 Grupo: F')
t2006juniorfp[2] = new slctr("Fase: 2 Grupo: B2 E",'Fase: 2 Grupo: B2 E')
t2006juniorfp[3] = new slctr("Fase: 3 Grupo: D3",'Fase: 3 Grupo: D3')

var t2006juniorf=new Array()
t2006juniorf[0] = new slctr('- - Fase - -')
t2006juniorf[1] = new slctr("Fase: 1 Grupo: 2",'Fase: 1 Grupo: 2')
t2006juniorf[2] = new slctr("Fase: 2 Grupo: B",'Fase: 2 Grupo: B')

var t2006juniormp=new Array()
t2006juniormp[0] = new slctr('- - Fase - -')
t2006juniormp[1] = new slctr("Fase: 1 Grupo: A",'Fase: 1 Grupo: A')
t2006juniormp[2] = new slctr("Fase: 2 Grupo: B",'Fase: 2 Grupo: B')
t2006juniormp[3] = new slctr("Fase: 3 Grupo: D2",'Fase: 3 Grupo: D2')

var t2006cadetem=new Array()
t2006cadetem[0] = new slctr('- - Fase - -')
t2006cadetem[1] = new slctr("Fase: 1 Grupo: 2ªDiv G2",'Fase: 1 Grupo: 2ªDiv G2')
t2006cadetem[2] = new slctr("Fase: Clasf. 1/4 Final Grupo: B",'Fase: Clasf. 1/4 Final Grupo: B')

var t2006infaf=new Array()
t2006infaf[0] = new slctr('- - Fase - -')
t2006infaf[1] = new slctr("Fase: 1 Grupo: 1",'Fase: 1 Grupo: 1')
t2006infaf[2] = new slctr("Fase: 2 Grupo: D",'Fase: 2 Grupo: D')

var t2006infam=new Array()
t2006infam[0] = new slctr('- - Fase - -')
t2006infam[1] = new slctr("Fase: 1 Grupo: 2",'Fase: 1 Grupo: 2')
t2006infam[2] = new slctr("Fase: Clasf. 1/4 Final Grupo: 2",'Fase: Clasf. 1/4 Final Grupo: 2')
t2006infam[3] = new slctr("Play-Offs 1/4 Final",'Play-Offs 1/4 Final')

var t2005=new Array()
t2005[0] = new slctr('- - Categoría - -')
t2005[1] = new slctr("1ª Div. Nacional",'t2005primera')
t2005[2] = new slctr("Junior Masc. Fed.",'t2005junior')
t2005[3] = new slctr("Cadete Masc. Fed.",'t2005cadete')
t2005[4] = new slctr("Infantil Masc. Fed.",'t2005infantil')

var t2005primera=new Array()
t2005primera[0] = new slctr('- - Fase - -')
t2005primera[1] = new slctr("Fase: 1 Grupo: B",'Fase: 1 Grupo: B')
t2005primera[2] = new slctr("Fase: 2 Grupo: 1",'Fase: 2 Grupo 1')
t2005primera[3] = new slctr("P. O.: 1/4 Final",'P.O. 1/4 Final')
t2005primera[4] = new slctr("Fase Final",'Fase Final')

var t2005junior=new Array()
t2005junior[0] = new slctr('- - Fase - -')
t2005junior[1] = new slctr("2ª Div/ Fase: 1 Grupo: Único",'2ª Div/Fase:1 Grupo: Único')
t2005junior[2] = new slctr("Fase: 2 Grupo: 1",'Fase: 2 Grupo: 1')

var t2005cadete=new Array()
t2005cadete[0] = new slctr('- - Fase - -')
t2005cadete[1] = new slctr("2ª Div/ Fase: 1 Grupo: 2",'2ª Div/Fase: 1 Grupo: 2')
t2005cadete[2] = new slctr("Clasificación / Grupo: 1",'Clasificación / Grupo: 1')

var t2005infantil=new Array()
t2005infantil[0] = new slctr('- - Fase - -')
t2005infantil[1] = new slctr("Fase: 1 Grupo: 3",'Fase: 1 Grupo: 3')
t2005infantil[2] = new slctr("Fase: 2 Grupo: I",'Fase: 2 Grupo: I')

function slctryole(cual,donde){
if(cual.selectedIndex != 0){
   donde.length=0
   cual = eval(cual.value)
   for(m=0;m<cual.length;m++){
      var nuevaOpcion = new Option(cual[m].texto);
      donde.options[m] = nuevaOpcion;
      if(cual[m].valor != null){
         donde.options[m].value = cual[m].valor
         }
      else{
         donde.options[m].value = cual[m].texto
	 	 }
      }
   }
}


function click() 
{ 
var message="Función deshabilitada.\nSé bueno y no copies.\n©2006 CBCM\nTodos los derechos reservados"; 
if(event.button==2 || event.button==3) 
{ 
alert(message) 
} 
} 
document.onmousedown=click 