/**
 * @file utility.js
 * Various common Javascript functions to all doucments on the website
 *
 * @author Matthew Oliveira
 * @date July 15, 2009
 */

$(document).ready(function () {
  
  $('#expand').bind ('click', function () {

    $('.folder').animate({height: '385px'}, 'slow');
    $('#expand').hide();
  });
});

sfHover = function() {    
	var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";         
		} 
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	} 
} 

if (window.attachEvent) window.attachEvent("onload", sfHover); 
