$(function () {
	$('.folio').hover(function () {
		hideAllMenus()
	},
	function () {});
	$('.header').hover(function () {
		hideAllMenus()
	},
	function () {});
	$('.content').hover(function () {
		hideAllMenus()
	},
	function () {});
	$('.menufleet').hover(function () {
		if ($('.menufleetdetail').css('display') == "none") {
			hideAllMenus();
			$(this).css({
				'background': 'url("/images/bluearrowlightdown.png") no-repeat right center #E6EAEB'
			});
			$('.menufleetdetail').show();
			$('.menupanel > .insidecontent').show();
			menuFadeAllExcept(1)
		}
	},
	function () {});
	$('.menushipyard').hover(function () {
		if ($('.menushipyarddetail').css('display') == "none") {
			hideAllMenus();
			$(this).css({
				'background': 'url("/images/bluearrowlightdown.png") no-repeat right center #E6EAEB'
			});
			$('.menushipyarddetail').show();
			$('.menupanel > .insidecontent').show();
			menuFadeAllExcept(2)
		}
	},
	function () {});
	$('.menudirectory').hover(function () {
		if ($('.menudirectorydetail').css('display') == "none") {
			hideAllMenus();
			$(this).css({
				'background': 'url("/images/bluearrowlightdown.png") no-repeat right center #E6EAEB'
			});
			$('.menudirectorydetail').show();
			$('.menupanel > .insidecontent').show();
			menuFadeAllExcept(3)
		}
	},
	function () {});
	$('.menureports').hover(function () {
		if ($('.menureportsdetail').css('display') == "none") {
			hideAllMenus();
			$(this).css({
				'background': 'url("/images/bluearrowlightdown.png") no-repeat right center #E6EAEB'
			});
			$('.menureportsdetail').show();
			$('.menupanel > .insidecontent').show();
			menuFadeAllExcept(4)
		}
	},
	function () {});
	$('.menuconsultancy').hover(function () {
		if ($('.menuconsultancydetail').css('display') == "none") {
			hideAllMenus();
			$(this).css({
				'background': 'url("/images/bluearrowlightdown.png") no-repeat right center #E6EAEB'
			});
			$('.menuconsultancydetail').show();
			$('.menupanel > .insidecontent').show();
			menuFadeAllExcept(4)
		}
	},
	function () {});
	$('.menuhelp').hover(function () {
		if ($('.menuhelpdetail').css('display') == "none") {
			hideAllMenus();
			$(this).css({
				'background': 'url("/images/bluearrowlightdown.png") no-repeat right center #E6EAEB'
			});
			$('.menuhelpdetail').show();
			$('.menupanel > .insidecontent').show();
			menuFadeAllExcept(4)
		}
	},
	function () {});
	$('.container').click(function () {
		hideAllMenus()
	});
	$('.header').click(function () {
		hideAllMenus()
	});
	$('.content').click(function () {
		hideAllMenus()
	});
	hideAllMenus()
});
function hideAllMenus() {
	$('.menupanel > .insidecontent').hide();
	$('.menudetail').hide();
	$('.menuitem').css({
		'opacity': '1',
		'border-bottom': 'none'
	});
	$('.menu li a').css('background', 'url("/images/bluearrowlight.png") no-repeat right center #E6EAEB')
}
function menuFadeAllExcept(a) {
	if (a != 1) $('.menufleet').css({
		'opacity': '0.3',
		'border-bottom': '1px solid #fff'
	});
	if (a != 2) $('.menushipyard').css({
		'opacity': '0.3',
		'border-bottom': '1px solid #fff'
	});
	if (a != 3) $('.menudirectory').css({
		'opacity': '0.3',
		'border-bottom': '1px solid #fff'
	});
	if (a != 4) $('.menureports').css({
		'opacity': '0.3',
		'border-bottom': '1px solid #fff'
	});
	if (a != 5) $('.menuconsultancy').css({
		'opacity': '0.3',
		'border-bottom': '1px solid #fff'
	});
	if (a != 6) $('.menuhelp').css({
		'opacity': '0.3',
		'border-bottom': '1px solid #fff'
	})
}
