﻿function initMenu() {

    $(".jButton").next("ul").hide();

    $(".jButton").click(
		function () {
		    $(this).next("ul").slideToggle("slow");
		    //$(this).next("ul").blindToggle('slow');  

		}
	);

}

function startSwitch() {
    activeItem = $("#accordion2 li:first");
    $(activeItem).addClass('active');
    $("#accordion2 li").hover(function () {
        $(activeItem).animate({ width: "50px" }, { duration: 300, queue: false });
        $(this).animate({ width: "420px" }, { duration: 300, queue: false });
        activeItem = this;
    });
}



$(document).ready(function () { initMenu(), startSwitch() });



