$(document).ready(function(){
  $('UL.menu LI:has(UL)').hover(
  	function(){
  		window.status	=	$(this).attr('LEVEL') ;
  		if		($(this).attr('LEVEL') == 0)	$(this).find('> UL').stop().css('left','auto') ;
  		else if	($(this).attr('LEVEL') == 1)	{
  			var	count	=	0 ;
  			var	html	=	$(this).html() ;
  			$(this).parents().find('LI[LEVEL=1]').each(function(){
  				if		($(this).html() == html && html != '')	html	=	'' ;
  				else if	(html != '')							count	+=	1 ;
  			});
  			$(this).find('> UL').stop().css({
  				left	:	'150px',
  				top		:	(count * 28 + 13) + 'px',
  				margin	:	'0px',
  				zIndex	:	15
  			}) ;
  		}
  		else 									$(this).find('> UL').stop().css({
  			left	:	'150px',
  			top		:	'13px',
  			margin	:	'0px',
  			zIndex	:	15
  		}) ;
  	},
  	function(){
  		$(this).find('> UL').animate({borderWidth:'1px'},500).queue(function(){
  			$(this).css({
  				left	:	'-3000em',
  				zIndex	:	10
  			}).dequeue() ;
  		}) ;
  	}
  );
  $('UL.menu LI[@LEVEL>0]').hover(
  	function(){ $(this).addClass('ov') ; },
  	function(){ $(this).removeClass('ov') ; }
  ) ;
});
