// xGetElementById, Copyright 2001-2005 Michael Foster (Cross-Browser.com) 
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL 

function xGetElementById(e) 
{ 
if(typeof(e)!='string') return e; 
if(document.getElementById) e=document.getElementById(e); 
else if(document.all) e=document.all[e]; 
else e=null; 
return e; 
}

// xTableRowDisplay, Copyright 2004,2005 Michael Foster (Cross-Browser.com) 
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL 

function xTableRowDisplay(bShow, sec, nRow) 
{ 
    sec = xGetElementById(sec); 
	if (sec && nRow < sec.rows.length) { 
		sec.rows[nRow].style.display = bShow ? '' : 'none'; 
	} 
}

function toggleReleases()
{
  var sec = document.getElementById('menutable');
  var dis = sec.rows[3].style.display;
  xTableRowDisplay(dis == 'none', menutable, 3);
}

function toggleTitlesAZ()
{
  var sec = document.getElementById('menutable');
  var dis = sec.rows[9].style.display;
  xTableRowDisplay(dis == 'none', menutable, 9);
}

function toggleAllCategories()
{
  var sec = document.getElementById('menutable');
  var dis = sec.rows[6].style.display;
  xTableRowDisplay(dis == 'none', menutable, 6);
}

function hideAll()
{
	xTableRowDisplay(false, menutable, 9);
	xTableRowDisplay(false, menutable, 3);
	xTableRowDisplay(false, menutable, 6);
}
