Hola, como anda to'?
 
Mira te dejo este ejemplo (intencionalmente) mal hecho que acabo de hacer. No para que copies y pegues, sino para que te des una idea.     
Código javascript
:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>CaliZzZz</title>
    <script type="text/javascript">
        function init(){
            c1 = document.getElementById('capa1');
            c2 = document.getElementById('capa2');
            
            c1.style.display = c2.style.display = 'none';
        }
        oldCapa = null;
        function cambio(capa){
            if(oldCapa != null){
                document.getElementById(oldCapa).style.display = 'none';
            }
            document.getElementById(capa).style.display = 'block';
            oldCapa = capa;
        }
        
        window.onload = init;
    </script>
</head>
<body>
   <ul>
        <li>
            <a href="#" onclick="cambio('capa1')">Cursos de Programacion</a>
        </li>
        <li>
            <a href="#" onclick="cambio('capa2')">Cursos de Ofimatica</a>
        </li>
    </ul>
    <div id="capa1">
        kljlsdaf
    </div>
    <div id="capa2">
        ljklsajfl@@@@@@22222222
    </div>
</body>
</html>