function hideAll(current)
{
	$.each($("#offerings-links > div"), function()
		{
			//alert($(this).children("div")[0] == current);
			if($(this).children("div").length > 0 && $(this).children("div")[0] != current && $(this).children("div")[0].visible)
			{
				$(this).children("div").toggle();
				$(this).children("div")[0].visible = false;
			}
		}
	);
	$.each($("#infglobal-links > div"), function()
		{
			if($(this).children("div").length > 0 && $(this).children("div")[0] != current && $(this).children("div")[0].visible)
			{
				$(this).children("div").toggle();
				$(this).children("div")[0].visible = false;
			}
		}
	);
}

$.each($("#offerings-links > div"), function()
	{
		if($(this).children("a").length > 0 && $(this).children("div").length == 1)
		{
			$($(this).children("a")[0]).click(function()
				{
					$(this).next("div").toggle();
					if($(this).next("div")[0].visible)
						$(this).next("div")[0].visible = false;
					else
						$(this).next("div")[0].visible = true;

					var curr = $(this).next("div")[0];
					hideAll(curr);
					/* $.each($("#offerings-links > div"), function()
						{
							//alert($(this).children("div")[0] == current);
							if($(this).children("div").length > 0 && $(this).children("div")[0] != current && $(this).children("div")[0].visible)
							{
								$(this).children("div").toggle();
								$(this).children("div")[0].visible = false;
							}
						}
					); */
					return true;
				}
			);
		}
		if($(this).children("div").length > 0)
		{
			$(this).children("div")[0].visible = false;

		}
	}
);
$.each($("#infglobal-links > div"), function()
	{
		if($(this).children("a").length > 0 && $(this).children("div").length == 1)
		{
			$($(this).children("a")[0]).click(function()
				{
					$(this).next("div").toggle();
					if($(this).next("div")[0].visible)
						$(this).next("div")[0].visible = false;
					else
						$(this).next("div")[0].visible = true;

					var curr = $(this).next("div")[0];
					hideAll(curr);
					/* $.each($("#infglobal-links > div"), function()
						{
							if($(this).children("div").length > 0 && $(this).children("div")[0] != current && $(this).children("div")[0].visible)
							{
								$(this).children("div").toggle();
								$(this).children("div")[0].visible = false;
							}
						}
					); */
					return true;
				}
			);
		}
		if($(this).children("div").length > 0)
		{
			$(this).children("div")[0].visible = false;

		}
	}
);

