// JavaScript Document

function showSpecialLogo() {
    $('#header-signature #special').html("<a href='http://www.csuchico.edu/125/'><img src='http://www.csuchico.edu/125/_assets/images/125-logo.jpg' alt='125 logo, click to go to the 125th anniversary website' height='89' /></a>");
}

startList = function() {
    //alert('function called');
    if (document.all && document.getElementById) {
        //alert('if statement called');
        var prospective = document.getElementById("prospective-students-ul");
        var current = document.getElementById("current-students-ul");
        var faculty = document.getElementById("faculty-staff-ul");
        var alumni = document.getElementById("alumni-friends-ul");
        var quick = document.getElementById("quicksearch-ul");
        
        for (i = 0; i < prospective.childNodes.length; i++) {
            node = prospective.childNodes[i];
            if (node.nodeName == "LI") {
                node.onmouseover=function() {
                this.className += " over";
                }
                node.onmouseout = function() {
                    this.className = this.className.replace(" over", "");
                }
            }
        }       
        for (j = 0; j < current.childNodes.length; j++) {
            node = current.childNodes[j];
            if (node.nodeName == "LI") {
                node.onmouseover=function() {
                    this.className += " over";
                }
                node.onmouseout = function() {
                    this.className = this.className.replace(" over", "");
                }
            }
        }       
        for (k = 0; k < faculty.childNodes.length; k++) {
            node = faculty.childNodes[k];
            if (node.nodeName == "LI") {
                node.onmouseover=function() {
                    this.className += " over";
                }
                node.onmouseout = function() {
                    this.className = this.className.replace(" over", "");
                }
            }
        }       
        for (l = 0; l < alumni.childNodes.length; l++) {
            node = alumni.childNodes[l];
            if (node.nodeName == "LI") {
                node.onmouseover=function() {
                    this.className += " over";
                }
                node.onmouseout = function() {
                    this.className = this.className.replace(" over", "");
                }
            }
        }       
        for (m = 0; m < quick.childNodes.length; m++) {
            node = quick.childNodes[m];
            if (node.nodeName == "LI") {
                node.onmouseover=function() {
                    this.className += " over";
                }
                node.onmouseout = function() {
                    this.className = this.className.replace(" over", "");
                }
            }
        }       
    }
}
