var time1

function divhide()   
  {   
		document.all.d1.style.display="none"; 
		document.all.d2.style.display="none"; 
  };   
 function divshow(aa)   
  { 	
   clearTimeout(time1); 
   if (aa == 1)
   {
	   document.all.d1.style.display="block";   
	   document.all.d2.style.display="none";   
   }
   else
   {
   		document.all.d2.style.display="block";   
   		document.all.d1.style.display="none";   
   }
  };   
 function getPos(cell)   
  {   
   var pos=new Array();   
   var t=cell.offsetTop;   
   var l=cell.offsetLeft;   
   while(cell=cell.offsetParent)   
    {   
     t+=cell.offsetTop;   
     l+=cell.offsetLeft;   
    }   
    pos[0]=t;   
    pos[1]=l;   
    return pos;   
  };   
function setPlace(cell, aa)     
  {   
    var arrPos = getPos(cell);   
	var oDiv;
  var tdwidth=cell.offsetWidth;   
  var tdheight=cell.offsetHeight;   
  var tdleft=arrPos[1];   
  var tdtop=arrPos[0];   
if (aa==1)
{
  oDiv = document.all.d1;     
	oDiv.style.width="340px"
	oDiv.style.height="131px"
	divshow(1);
}
else
{
  oDiv = document.all.d2;     
	oDiv.style.width="320px"
	oDiv.style.height="200px"
  divshow(2);
}
   
  oDiv.style.left=tdleft;   
  oDiv.style.top=tdtop+tdheight;   

};   
