function switchlayer(listr)
{
  var FK = document.getElementById? 1:0 ;
  var NS = document.layers? 1:0 ;
  var IE = document.all? 1:0 ;

  if (FK)
       {document.getElementById(listr).style.display=
	   (document.getElementById(listr).style.display=='block') ? 'none' : 'block';}
  else if (NS)
       {document.layers[listr].display=(document.layers[listr].display==
	   'block') ? 'none' : 'block';}
  else if (IE)
       {document.all[listr].style.display=(document.all[listr].style.display==
	   'block') ? 'none' : 'block';}
	   
  /*
  if($(listr).style.display == "block") {
    $(listr).style.display = "none";
  } else {
    $(listr).style.display = "block";
  }
  */
}

function SetContent(file) {
    var filename = file+".html";
    new Ajax.Updater("content", filename, {method:"get"});

    document.getElementById("content").style.backgroundColor = '#fff';
    document.getElementById("content").style.border = '5px #7A0000 ridge';
    document.getElementById("content").style.overflow = 'auto';
}

