function slideSwitch() {
    var $active = $('#spons_logo IMG.active');

    if ( $active.length == 0 ) $active = $('#spons_logo IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#spons_logo IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

sfHover = function() {
	var sfEls = document.getElementById("navbar").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
}

volBtn = document.getElementById("volunteer");
volBtn.onmouseover = function (){
	volBtn.src = "images/volunteerover.JPG";
}
volBtn.onmouseout = function (){
	volBtn.src = "images/volunteer.JPG";
}
