﻿function GetMenuItem(group,menuItem){
    PageMethods.GetMenu(group, menuItem,SucceededCallback);

}

function GetMenuGroup(group){
    PageMethods.GetMenuGroup(group,SucceededCallback);
    window.location='#' + group;
}

function SucceededCallback(result, eventArgs)
{
    // Page element to display feedback.
    //var item = document.getElementById("listMenu");
    //item.innerHTML = result;
    animate(result);
}

// Uses jQuery
function animate(html)
{
    $("#listMenu").fadeOut('slow', function() {
        $("#listMenu").html(html);
    });
    $("#listMenu").fadeIn('slow');
}

$(document).ready(
    function(){
    
        $("#listMenu").width(460);
    
	    $(".aniDT").mouseover(function(){
		    $(this).css("background-color","#A2937E");
		    $(this).css("cursor","hand");
		    $(this).css("cursor","pointer");
	    });

	    $(".aniDT").mouseout(function(){
		    $(this).css("background-color","#50392A");
	    });
    }
);

