jQuery(function()
{
	jQuery('.switch').click(function()
	{
		if ($(this).attr("className")=="switch" || $(this).attr("className")=="switch on")
			{
				// Независимое раскрытие
				$(this).removeClass("on"); $(this).addClass("off");
				$(this).next().slideUp();
			}
		else
			{
                // Зависимое раскрытие (один развернут, другие свернуты)

				$(".switch").removeClass("on"); $(".switch").addClass("off");
				$(".switch").next().slideUp();

				// Независимое раскрытие
                $(this).removeClass("off"); $(this).addClass("on");
				$(this).next().slideDown();
			}
		return false;
	});
});

/* Выпадающее меню */
$(document).ready(function() {

$(".switch").hover(
	function()
		{
			$(this).css("text-decoration", "none");
		},
    function()
		{
            $(this).css("text-decoration", "underline");
		}
);

});

/*
$("#menu2").click(function()
	{
		var is_not_null;
        $(".up").each(function(i) {
			//alert($(this).attr("value"));
			if ($(this).attr("value")!='') {is_not_null=1;}
		});

		if (is_not_null)
		{
            if (confirm("Сохранить изменения в заказе?"))
				{
					$(".content form").submit();
					return false;
				}
			else
				{
				};
		}
	});
*/

