function colorChange(choice)
{
	if (choice == "catalogs")
	{
		$('#catalogs').addClass("newColor");
	} else if (choice == "books")
	{
		$('#books').addClass("newColor");
	} else if (choice == "magazines")
	{
		$('#magazines').addClass("newColor");
	} else if (choice == "more")
	{
		$('#more').addClass("newColor");
	} else if (choice == "sustainability")
	{
		$('#sustainability').addClass("newColor");
	} else if (choice == "aboutUs")
	{
		$('#aboutUs').addClass("newColor");
	} else 
	{
		$('#clientTools').addClass("newColor");
	}
}

$(document).ready(function ()
{
	$('.wpc_menu > li > a, .wpc_submenu > li > a').click(function() {
                $('.wpc_submenu').css('visibility', 'hidden');
                $('.wpc_submenu2').css('visibility', 'hidden');
	});

	$(".fLLinks").hover(function()
	{
		var indx = $('.fLLinks').index(this);
		$(".fLLinks:eq("+indx+") + .dropMenu").css('display', 'inline');

		switch(indx) 
		{
			case 0: 
				if (!jQuery.browser.msie) 
				{
					$(".fLLinks:eq(0) + .dropMenu").css('left', '15px');
				} else {
					$(".fLLinks:eq(0) + .dropMenu").css('left', '15px');
				}
			case 1: 
				if (!jQuery.browser.msie) 
				{
					$(".fLLinks:eq(1) + .dropMenu").css('left', '127px');
				} else {
					$(".fLLinks:eq(1) + .dropMenu").css('left', '123.5px');
				}
			case 2: 
				if (!jQuery.browser.msie) 
				{
					$(".fLLinks:eq(2) + .dropMenu").css('left', '221px');
				} else {
					$(".fLLinks:eq(2) + .dropMenu").css('left', '213.5px');
				}
			case 3: 
				if (!jQuery.browser.msie) 
				{
					$(".fLLinks:eq(3) + .dropMenu").css('left', '347px');
				} else {
					$(".fLLinks:eq(3) + .dropMenu").css('left', '335.5px');
				}
			case 4: 
				if (!jQuery.browser.msie) 
				{
					$(".fLLinks:eq(4) + .dropMenu").css('left', '15px');
				} else {
					$(".fLLinks:eq(4) + .dropMenu").css('left', '15px');
				}
			case 5: 
				if (!jQuery.browser.msie) 
				{
					$(".fLLinks:eq(5) + .dropMenu").css('left', '162px');
				} else {
					$(".fLLinks:eq(5) + .dropMenu").css('left', '158px');
				}
			case 6: 
				if (!jQuery.browser.msie) 
				{
					$(".fLLinks:eq(6) + .dropMenu").css('left', '277.5px');
				} else {
					$(".fLLinks:eq(6) + .dropMenu").css('left', '269px');
				}
		}	
		$(this).css(
			{ 
				'background-color': 'black',
				'color': '#9CF'
			})
	}, function()
	{
		var indx = $('.fLLinks').index(this);
		$(".fLLinks:eq("+indx+") + .dropMenu").css(
			'display', 'none'
			)
		$(this).css(
		{
			'background-color': '#333',
			'color': '#CCC'
		})
	});				
	$(".dropMenu").hover(function()
	{
		var indx = $('.dropMenu').index(this);
		$(this).css(
		'display', 'inline'
		)
		$(".fLLinks:eq("+indx+")").css(
		{ 
			'background-color': 'black',
			'color': '#9CF'
		})
	}, function()
	{
		$(this).css(
		'display', 'none'
		)
		var indx = $('.dropMenu').index(this);
		$(".fLLinks:eq("+indx+")").css({
			'background-color': '#333',
			'color': '#CCC'
		})
	});	
	$(".subMenu, .noSubMenu, .subMenu1").hover(function()
	{
		$(this).css(
		{
			'background-color': '#369',
			'color': '#CCC'
		})
	}, function()
	{
		$(this).css(
		{
			'background-color': 'transparent',
			'color': '#CCC'
		})
	});
	$(".subMenu").hover(function()
	{
		var indx = $('.subMenu').index(this);
		$(".dropMenu1:eq("+indx+")").css(
			"display", "inline"
			)
		if (jQuery.support.boxModel) 
		{
			$(".dropMenu1").css('left', '130px');
		} else {
			$(".dropMenu1").css('left', '110px');
		}	
	}, function()
	{
		var indx = $('.subMenu').index(this);
		$(".dropMenu1:eq("+indx+")").css(
			"display", "none"
		)
	});
});

