$(document).ready(function() {
	navigationPrimary();
	tabsPrimary();
});

function navigationPrimary() {
	$('.TabbedPanelsTabSelected').css({ opacity: 1.0 });
	$('.TabbedPanelsTab')
		.css({ opacity: 1.0 })
		.mouseover(function() {
			$(this).stop().animate({ opacity: 0.4 }, 300);
			$('.TabbedPanelsTabSelected').css({ opacity: 1.0 });
		})
		.mouseout(function() {
			$(this).stop().animate({ opacity: 1.0 }, 1000);
		});
}

function tabsPrimary() {
	$('.TabbedPanelsContent').removeClass('hover');
	$('.TabbedPanelsContent')

}
function initMenu() {
	$('.TabbedPanelsContent').hide();
	$('.TabbedPanelsContent').show();
	$('#menu li a').click(
	function() {
		var checkElement = $(this).next();
		if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
			return false;
		}
		if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
			$('#menu ul:visible').slideUp('normal');
			checkElement.slideDown('normal');
			return false;
	}
	}
	);
}


