var site = function() {
	this.navLi = $('#nav li').children('ul').hide().end();
	this.init();
};

site.prototype = {
 	
 	init : function() {
 		this.setMenu();
 	},
 	
 	// Enables the slidedown menu, and adds support for IE6
 	
 	setMenu : function() {
 	
	 	$.each(this.navLi, function() {
	 		if ( $(this).children('ul')[0] ) {
	 			$('<span></span>', {
	 				class : 'hasChildren'
	 			}).appendTo($(this));
	 		}
	 	});
	 	
		this.navLi.hover(function() {
			$(this).find('> ul').stop(true, true).slideDown(250);
		}, function() {
			$(this).find('> ul').stop(true, true).hide(); 		
		});
 		
 	}
 
}


new site();