var $j = jQuery.noConflict();


$j(document).ready(function() {

	// SUBMENU ANIMATION

	var menuAnimationTime = 200;

	$j('#categories > li:has(ul)').each(function() {
		if (!$j(this).hasClass('active')) {
			$j(this).find('ul').css('display', 'none');
		}
		$j(this).find('a').click(function() {
			var other = $j(this).closest('ul').find('li:has(ul)');
			for (var i = 0; i < other.length; i++) {
				other.removeClass('active').find('ul').slideUp(menuAnimationTime);
			}
			$j(this).nextAll('ul').slideDown(menuAnimationTime);
			$j(this).parent().addClass('active');
			return false;
		});
	});





});