$(document).ready(function() {
	
	navHover.init("navbar", 90, 50, 400);
	
});

	var navHover = {
		        
    changeHeight: function (linkObj, newValue, duration) {	
			$(linkObj).animate( { height: newValue + "px"}, duration );
    },					
		
		init: function(navId, newValue, oldValue, duration) {
			var self = this;
			var anchors = document.getElementById(navId).getElementsByTagName("a");
			var size = anchors.length;				
			
			for (var i = 0; i < size; i++) {	
				if($(anchors[i]).hasClass("slide")) {
					$(anchors[i]).hover(												
						function () {							
							self.changeHeight(this, newValue, duration);																											
						}, 
						function () {								
							self.changeHeight(this, oldValue, duration);																		
						}
					);
				}
			};
		}           
	}