
		$('.menu-level2').each(function(){
			t = $(this).attr('id');
			$('#'+t+' .level2:last').css('borderBottom','#FFFFFF');
		})
		$('.level1').each(function(){
			h = $(this).attr('href');
			if (h == '#'){
				;
			} else {
				$(this).css('background-image','none');
				return;
			}
			$(this).bind('click',function(){
				h = $(this).attr('href');
				if (h == '#'){
					t = $('#parent-'+$(this).attr('ref')).css('display');
					$('.menu-level2').hide();
					if (t == 'none') $('#parent-'+$(this).attr('ref')).toggle();
					return false;
				}
			})
		})
		$('.level2').each(function(){
			$(this).mouseover(function(){
				if ($(this).attr('rel') != '#') return ;
				a = $(this).position();
				$('#parent-'+$(this).attr('ref')).css('top',a.top);
				$('#parent-'+$(this).attr('ref')).show();}).mouseout(function(){
				$('#parent-'+$(this).attr('ref')).hide();
				})
		})
		$('.menu-level3').each(function(){
			$(this).mouseover(function(){$(this).show();}).mouseout(function(){$(this).hide();})
			})
			
$(document).ready(function(){
			if (!menuItem) return;
			obj = $('a[ref=menu-'+menuItem+']');
			cc = obj.attr('class');
			if (!cc) return;
			var cnt = 0;
			while(cc != 'level1' && cnt < 2){
				cnt++;
				
				ct = obj.parent().attr('id').replace('parent-menu-','');
				obj = $('a[ref=menu-'+ct+']');
				cc = obj.attr('class');
			}
			if (cc == 'level1'){
				if (obj.attr('href') == '#')	obj.click();
			}
		})
