function MoveDownInMenu(tbl_obj)
{
try
{
if(tbl_obj==null || tbl_obj.rows.length==0)
	return;
var anchor=tbl_obj.rows[0].cells[0].firstChild;

//var anchor=tbl_obj.rows[1].cells[0].firstChild;
anchor.focus();
//alert(anchor.innerHTML)
//td.style.backgroundColor='red';
	 /*if (!e) var e = window.event;

        if (e.keyCode)
        { code = e.keyCode; }
        else if (e.which)
        { code = e.which; }
        alert(code)*/
        }
        catch(e)
        {
        }
}

function ShowDiv1(obj, arrow, right) {
  for(var tt=1;tt<=4;tt++)
  {
	if( document.getElementById('DivMenu'+tt)!=null)
		document.getElementById('DivMenu'+tt).style.display='none';
  }
  
  if(obj==null)
  	return;

	var newRight = document.body.clientWidth -arrow.offsetLeft;

    obj.style.right= newRight + "px";
   
   var newTop = arrow.offsetTop + arrow.offsetHeight;
   
   obj.style.top = newTop +"px" ;//- 2;   
   
   if(navigator.appName == "Netscape")
   {
	   obj.style.top = (newTop - 10) + "px";//FF
   }
   else 
   {
   	   obj.style.top = parseInt(obj.style.top) - 8;//IE
    }  
     
    if(navigator.appName == "Netscape")
    {
    	if (right == 1)
	    obj.style.right = (newRight - arrow.offsetWidth) + "px" ;//-10
	   else
	    obj.style.right = (newRight - obj.clientWidth) + "px";
	}
	else
	{
	   if (right == 1)
	    obj.style.right = parseInt(obj.style.right) - arrow.offsetWidth ;//-10
	   else
	    obj.style.right = parseInt(obj.style.right) - obj.clientWidth;
	 }   
    obj.style.display='block';  
  }

function HideDiv1(obj)    
  {
  if(obj==null)
  	return;
   obj.style.display='none'; 
  }
  
  
  function HideFinalParentDiv(obj)
  {
  	HideDiv1(obj.parentNode.parentNode.parentNode.parentNode);
  }

function ShowHideSubMenu(obj)
{
  //document.getElementById('DivMenu'+tt).style.display='none';
  if(obj==null)
  	return;
  	if(obj.style.display=='block')
        obj.style.display='none';
    else
       obj.style.display='block';
}
