// JavaScript Document

function mostrarAsoc(){
	document.getElementById("asoc_abajo").style.visibility = "visible";
}

function ocultarAsoc(){
	document.getElementById("asoc_abajo").style.visibility = "hidden";
}

function mostrarLogin(){
	document.getElementById("log_foro").style.visibility = "visible";
}

function ocultarLogin(){
	document.getElementById("log_foro").style.visibility = "hidden";
}

//////////////////////////

function mostrarSubmenu(submenu, width){
	document.getElementById(submenu).style.visibility = "visible";
	document.getElementById(submenu).style.width = width+"px";
}

function ocultarSubmenu(submenu){
	document.getElementById(submenu).style.visibility = "hidden";
}

/////////////////// NOTICIASSSSSS EVENTOSSSSSSS ///////////////////

function mostrarNoticias(){
	document.getElementById("noticias_i").style.visibility = "visible";
	document.getElementById("eventos_i").style.visibility = "hidden";
	document.getElementById("ul_not").style.background = "#ffffff";
	document.getElementById("ul_ev").style.background = "#E3EDFD";
}

function mostrarEventos(){
	document.getElementById("noticias_i").style.visibility = "hidden";
	document.getElementById("eventos_i").style.visibility = "visible";
	document.getElementById("ul_ev").style.background = "#ffffff";
	document.getElementById("ul_not").style.background = "#E3EDFD";
}

// abrir popup

function abrirPopup(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

// filas alternadas

/*function checkItems() {
  var r,l;
  if (!document.getElementById) return
  var tb=document.getElementsByTagName("table"); 
  for (r=0; r<tb.length; r++) {
  if (tb[r].className=='alternate') {
  tr=tb[r].getElementsByTagName("tr");
  doEven(tr);
  }
  }
}

function doEven(myRows) {
  for (l=0; l<tr.length; l++) {
  if (l%2==0) { tr[l].setAttribute('class', 'alt');
  tr[l].setAttribute('className', 'alt'); }
  }
}

function addLoadEvent(func) {
var onloadBak=window.onload;
  if (typeof window.onload!='function') { window.onload=func; }
  else {
  window.onload=
function() {
    onloadBak();
    func();
  }
  }
}

addLoadEvent(checkItems);*/