$(document).ready(function() {
	$('.menu_hv_div').each(function() {
		is_first = true;
		$(this).css('z-index', '100');
		$(this).find('div').each(function() {
			$(this).css('z-index', '100');
			if ($(this).attr('class') == 'menu_li') {
				if (navigator_is_ie6) {
					getWidth = 257;
				} else {
					getWidth = 256;
				}
				$(this).css('margin-left', getWidth + 'px');
			}
		});
	});
	
	$('span.menu_hv').hover(
		function() {
			$(this).css('z-index', '100');
			getNum = $(this).attr('id').substr(1, 1);
			$('#menu'+getNum).show();
		},
		function() {
			getNum = $(this).attr('id').substr(1, 1);
			$('#menu'+getNum).hide();
		});
	$('.menu_hv_div').hover(
		function() {
			$(this).show();
		},
		function() {
			$(this).fadeOut();
		});
	
	$('.menu_hv_div').hide();
	$('.menu_hv_div ul li div').hide();
	$('.menu_hv_div ul li').hover(function() {
		if (navigator_is_ie6) {
			id_html = $(this).attr('id');
			$('#div_'+id_html).show();
		}
		$(this).find('div').show();
	}, function() {
		if (navigator_is_ie6) {
			id_html = $(this).attr('id');
			$('#div_'+id_html).hide();
		}
		$(this).find('div').hide();
	});
	$('.menu_hv_div ul li').click(function() {
		lien = $(this).find('a').attr('href');
		if (lien.length > 0) {
			window.location.replace(lien);
		}
	});
});
