jQuery.noConflict();
jQuery(document).ready(function() {
 jQuery.easing.custom = function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	}
var site = function() {
	this.navLi = $('#menu li').children('div').hide().end();
	this.init();
};

site.prototype = {
 	
 	init : function() {
 		this.setMenu();
 	},
 	
 	// Enables the slidedown menu, and adds support for IE6
 	
 	setMenu : function() {
 	
 	jQuery.each(jQuery('#menu .toplevel_sub'), function() {
 		if ( jQuery(this).children('ul')[0] ) {
 			jQuery(this)
 				.append('<span />')
 				.children('span')
 					.addClass('hasChildren')
 		}
 	});
	
 		this.navLi.hover(function() {
 			// mouseover
 			jQuery(this).find('> div').stop(true, true).slideDown(400);
 		}, function() {
 			// mouseout
 			jQuery(this).find('> div').stop(true, true).slideUp(300); 		});
 		
 	}
 
}

new site();
});

