var time_id = null;
function _show(id, obj) {
	if (time_id) {
		$('#nav ul').each(function(){
			$(this).find('li.aaa').remove();
		});
		$('#subNav dl:visible').hide(200);
		clearTimeout(time_id);
	}

	var _this	= $(obj);
	var oo		= $('.sn_'+id);
	var j		= _this.parent().attr('name');
	var _width	= 0;
	if ($.browser.msie && $.browser.version == '6.0') {
		oo.show();
		oo.find('dt > a').each(function(){
			_width += $(this).width() + 8;
		});
		oo.hide();
		oo.css('width', _width + 'px');
	}
	var _left	= _this.offset().left - ( oo.width() - _this.width() ) / 2 - $('#subNav').offset().left;

	if (_left + oo.width() > 980) _left = 980 - oo.width();
	if (_left < 0) _left = 0;

	$('#nav ul').each(function(){
		$(this).find('li').eq(j).append('<li class="aaa">&nbsp;</li>');
	});
	oo.css({
		'left'	: _left + 'px',
		'top'	: _this.offset().top + 20 - $('#subNav').offset().top + 'px'
	}).show(200);
}

function _hide(id, obj) {
	var _this	= $(obj);
	var oo		= $('.sn_'+id);
	var j		= _this.parent().attr('name');

	time_id = setTimeout(function(){
		$('#nav ul').each(function(){
			$(this).find('li.aaa').remove();
		});
		oo.hide(200);
	}, 500);
}

function __show(obj) {
	if (time_id) clearTimeout(time_id);
	//$(obj).show();
}

function __hide(id, obj) {
	var oo		= $('.sn_'+id);

	time_id = setTimeout(function(){
		$('#nav ul').each(function(){
			$(this).find('li.aaa').remove();
		});
		oo.hide(200);
	}, 200);
}
