function rolloverInicio(){
    var titulo = document.getElementById('inicio').getElementsByTagName('h2');
    var seccion = document.getElementById('inicio').getElementsByTagName('p')[0].getElementsByTagName('span');
    for(var i = 0; i < titulo.length; i++){
        titulo[i].firstChild.index = i;
        titulo[i].firstChild.onmouseover = function(){
            this.style.color = 'red';
            seccion[this.index].style.display = 'block';
        }
        titulo[i].firstChild.onmouseout = function(){
            this.style.color = '#cccccb';
            seccion[this.index].style.display = 'none';
        }
    }
}
if(window.addEventListener){window.addEventListener('load', rolloverInicio, false);}
else{window.attachEvent('onload', rolloverInicio);}
