function activateNavRollOvers(){
    var rolls = new Array();
    var navs = document.getElementById('nav').getElementsByTagName('img');
    for (var i=0; i < navs.length; i++) {
        if (navs[i].parentNode.id != 'active') {
            navs[i].onmouseover = function() {
                if (this.src.indexOf('_on') == -1) {
                    this.src = this.src.replace('.gif', '_on.gif');
                } 
            }
            navs[i].onmouseout = function() {
                if (this.src.indexOf('_on') != -1) {
                    this.src = this.src.replace('_on.gif', '.gif');
                }
            }
            // preload rollovers
            rolls[i] = new Image();
            rolls[i].src = navs[i].src.replace('.gif', '_on.gif');
        }
        
    }
}

window.onload = function() {
    activateNavRollOvers();
}