function setNavi(id)
{
  $('nnews').style.display = 'none';
  $('nmatches').style.display = 'none';
  $('nawards').style.display = 'none';
  $('nforum').style.display = 'none';
  
  $('n' + id).style.display = '';
}

function setInfo(id)
{
  $('mnews').style.display = 'none';
  $('mmatches').style.display = 'none';
  $('mawards').style.display = 'none';
  $('mforum').style.display = 'none';
  
  $('m' + id).style.display = '';
  
}

/////////////////////////////////////////////////////////////////
var isHover = new Array(); var clearMe = new Array(); var zIndex=1;
function changePic(id,hide)
{
  isHover['main'] = 0;
  hideNavi('main');

  if(hide != 0) {
    $(id).onmouseout = function() {
      if(isHover[this.id] != 1);
    }
  } else {
    $(id).onmouseout = function() {
      isHover[this.id] = 0;
      hideNavi(this.id);
    }
  } 
}

function hideNavi(id,timer)
{

  if(timer == 1 && isHover[id] != 1)
  { 
    $('n_' + id).style.display = 'none';
  } else window.setTimeout("hideNavi('"+id+"',1)",100);
}

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

function showNavi(id)
{
  changePic(id, 0);
  isHover[id] = 1;
  $('n_' + id).style.display = 'block';
  $('n_' + id).style.zIndex = zIndex; zIndex++;
  
  $('n_' + id).onmouseover = function() {
    var id = this.id.replace(/n\_/, '');
    isHover[id] = 1;
  }

  $('n_' + id).onmouseout = function() {
    var id = this.id.replace(/n\_/, '');
    changePic(id);
  }
}

var img = new Array();
function initNavigation()
{
  var tags = $('navi').getElementsByTagName('img');
  for(var i=0;i<tags.length;i++)
  {
    if(tags[i].className == 'h')
    {
    }
  }
}
