var flag=-1;
function open_win() 
{
	window.open('http://competiciones.feb.es/autonomicas/?a=14', '', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550');
}
/*function abrirVentanaCobser() 
{
	window.open('http://www.cobser.es');
}*/

function animarImportant (){
	interv=setInterval('animar()',1000);
}
function animar(){
	capa=document.getElementById("important");
	if (flag == -1){
		capa.style.visibility= 'hidden';
	}else{
		capa.style.visibility= 'visible';
	}
	flag = flag * (-1);
}
function pintarTablaPrincipal(){
	td = document.createElement("td");
	td.setAttribute("class", "tdIzda");
	a = document.createElement("a");
	a.setAttribute("href", "index.html");
	img = document.createElement("img");
	img.setAttribute('border', '0');
	img.setAttribute('alt', 'Logotipo del club de madrid villa de vallecas');
	img.setAttribute('src', 'images/escudo.jpg');
	img.setAttribute('height','100');
	img.setAttribute('width','200');
	a.appendChild(img);
	td.appendChild(a);
	document.getElementById("trprincipal").appendChild(td);

	td = document.createElement("td");
	td.setAttribute("class", "tdCentro");
	td.setAttribute("id","tdCabecera");
	img = document.createElement("img");
	img.setAttribute('src', 'images/cabecera.png');
	img.setAttribute('height', '100');

	td.appendChild(img);
	document.getElementById("trprincipal").appendChild(td);

	td = document.createElement("td");
	td.setAttribute("class", "tdDcha");
	td.setAttribute("id","tdCabeceraDcha");
	td.setAttribute("align","center");
	img = document.createElement("img");
	img.setAttribute('alt', 'Pedrin, el Koala de la Zona');
	img.setAttribute('src', 'images/Pedrin.jpg');
	img.setAttribute('height','98');
	img.setAttribute('width','140');
	td.appendChild(img);
	document.getElementById("trprincipal").appendChild(td);
	
}
function pintarTablaIzquierda(){

	ul = document.createElement("ul");
	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'index.html');
	texto = document.createTextNode("Inicio");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'proyecto.html');
	texto = document.createTextNode("Proyecto del Club");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'localizacion.html');
	texto = document.createTextNode("¿Dónde Estamos?");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);


	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'equipos.html');
	texto = document.createTextNode("Equipos");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'proximospartidos.html');
	texto = document.createTextNode("Proximos Partidos");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'noticias.html');
	texto = document.createTextNode("Noticias");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'socios.html');
	texto = document.createTextNode("Socios");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'foros.html');
	texto = document.createTextNode("Foros");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'seguro.html');
	texto = document.createTextNode("Seguro Deportivo");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'patrocinadores.html');
	texto = document.createTextNode("Patrocinadores");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'construccion.html');
	texto = document.createTextNode("Enlaces de Interés");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);

	li = document.createElement("li");
	a = document.createElement("a");
	a.setAttribute('href', 'contacto.html');
	texto = document.createTextNode("Contacta / Participa");
	a.appendChild(texto);
	li.appendChild(a);
	ul.appendChild(li);
	document.getElementById("izquierda").appendChild(ul);

}

function pintarTablaDerecha(){
	
	tr = document.createElement("tr");
	tr.setAttribute('valign','top');
	tr.setAttribute('align','center');
	th = document.createElement("th");
	texto = document.createTextNode("Patrocinadores");
	th.appendChild(texto);
	tr.appendChild(th);
	document.getElementById("seccion1").appendChild(tr);
	
	tr = document.createElement("tr");
	tr.setAttribute('valign','top');
	tr.setAttribute('align','center');
	td = document.createElement("td");
	a = document.createElement("a");
	a.setAttribute('href','');
	a.setAttribute('class','img_izq');
	
	tr = document.createElement("tr");
	tr.setAttribute('valign','top');
	tr.setAttribute('align','center');
	td = document.createElement("td");
	a = document.createElement("a");
	a.setAttribute('href','patrocinadores.html');
	a.setAttribute('class','img_izq');
	img = document.createElement("img");
	
	img.setAttribute('alt','Ayuntamiento de Madrid');
	img.setAttribute('src','images/madrid2.jpg');
	img.setAttribute('border','0');
	img.setAttribute('width','100');
	img.setAttribute('height','100');
	a.appendChild(img);
	td.appendChild(a);
	tr.appendChild(td);
	document.getElementById("seccion1").appendChild(tr);
	
	tr = document.createElement("tr");
	tr.setAttribute('valign','top');
	tr.setAttribute('align','center');
	td = document.createElement("td");
	a = document.createElement("a");
	a.setAttribute('href','patrocinadores.html');
	a.setAttribute('class','img_izq');
	img = document.createElement("img");
	
	img.setAttribute('alt','Comunidad de Madrid');
	img.setAttribute('src','images/Comunidad_de_Madrid.png');
	img.setAttribute('border','0');
	img.setAttribute('width','100');
	a.appendChild(img);
	td.appendChild(a);
	tr.appendChild(td);
	document.getElementById("seccion1").appendChild(tr);
	
	tr = document.createElement("tr");
	tr.setAttribute('valign','top');
	tr.setAttribute('align','center');
	td = document.createElement("td");
	a = document.createElement("a");
	a.setAttribute('href','patrocinadores.html');
	a.setAttribute('class','img_izq');
	img = document.createElement("img");
	
	img.setAttribute('alt','Restaurante el Rincón del Tio Pepe');
	img.setAttribute('src','images/LogoPepe.jpg');
	img.setAttribute('border','0');
	img.setAttribute('width','100');
	a.appendChild(img);
	td.appendChild(a);
	tr.appendChild(td);
	document.getElementById("seccion1").appendChild(tr);
	
	
}
