$(document).ready(function(){
	$("li.parent").mouseenter(function(){
		$("ul.child",this).css("display", "block");
		$("a.m", this).addClass("hover");
    }).mouseleave(function(){
		$("ul.child",this).css("display", "none");
		$("a.m", this).removeClass("hover");
	});
	
	function showDialog(name, html, h, w)
		{
			$("#dialog-form").attr("title", name);
			var DialogOptions  = {
								autoOpen: false, 
								height: w, 
								width: h
							};
						
			$("#dialog-form").dialog(DialogOptions);
			$("#dialog-form").html(html);
			$("#dialog-form").dialog("open");
		}

	$("a.personalcab").click(function(){
		$.ajax({
				type: "POST", 
				url: "assets/modules/support/ajax/actions.php", 
				data: "c=user&a=login-form", 
				success: function(html){
					showDialog("Авторизация", html, 240, 140);
				}
			});
	});

		$("a.personalcabeng").click(function(){
		$.ajax({
				type: "POST", 
				url: "assets/modules/support/ajax/actions.php", 
				data: "c=user&a=login-form-eng", 
				success: function(html){
					showDialog("Authorization", html, 240, 140);
				}
			});
	});
});

 Authorization
