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;

   obj.style.right = document.body.clientWidth - arrow.offsetLeft;
   obj.style.top =arrow.offsetTop + arrow.offsetHeight-2 ;//- 2;
	
	//google browser - chrome
	if(navigator.vendor == "Google Inc.")//numbers according to MASHKAL site
	{		
		obj.style.right = parseInt(obj.style.right) - 296;
		obj.style.top = parseInt(obj.style.top) + 92;	
		//obj.height = 100;
	}   
   
   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';
}