var timeoutset;
function   getAbsPoint(e)
   {
   var   x   =   e.offsetLeft, y =e.offsetTop;
   while(e=e.offsetParent)
    {

	   x   +=   e.offsetLeft;
       y   +=   e.offsetTop;
    }
   getAbsPoint.prototype._x=x;
   getAbsPoint.prototype._y=y;
   }

function hideSecMenu()
{
	$("#secMenu").hide();
}
function hideThrMenu()
{
	$(".thrMenu").hide();
}

$(document).ready(function(){

    var xy=new getAbsPoint($(".lLink")[0]);

	$("#secMenu").mouseover(function(){
   	if(timeoutset){
	clearTimeout(timeoutset);}
    });

    $(".lLink").bind("mouseover",function(){
    if(timeoutset){clearTimeout(timeoutset);}
	$("#secMenu").show().css("left",xy._x+138).css("top",xy._y);

	});


	$("#secMenu ul > li").hover(
	  function () {
		$(this).attr("id","secMenu_child");
			$("#secMenu_child").mouseover(function(){

			var res=$("#secMenu_child a").attr("title");
	
		    if(timeoutset){clearTimeout(timeoutset);}
			$("#"+res).show().css("left",xy._x+150*2).css("top",xy._y);

			$("#"+res).mouseover(function()
					{
					$("#"+res).show().css("left",xy._x+150*2).css("top",xy._y);
					if(timeoutset){clearTimeout(timeoutset);}
					}
					);

		   $("#"+res).mouseout(function(){
					timeoutset=setTimeout(function(){hideSecMenu();hideThrMenu();},"1500");

										   });

	  } );

		   $("#secMenu_child").mouseout(function(){
						hideThrMenu();
					  }
				  );
	  },
	  function () {
		$(this).removeAttr("id","secMenu_child");
	  }
	);

	$("#secMenu").mouseout(function()
	{
	  timeoutset=setTimeout(function(){hideSecMenu();},"1500");
	});

});