// JavaScript Document
     var obj;

function doRollDown(){  
  if(parseInt(obj.style.height)<63){
    obj.style.height=(parseInt(obj.style.height)+9)+"px";  
    setTimeout(doRollDown,2);
  };
};

function findPos(objj) {
	var curleft = curtop = 0;
	if (objj.offsetParent) do {
			curleft += objj.offsetLeft;
			curtop += objj.offsetTop;
		} while (objj = objj.offsetParent);
	return [curleft,curtop];
	}

  
    function onHladajFormButtonClick(){  
     Tlacitko=document.getElementById("hladaj_masera_button");     
     Kontajner=document.getElementById("balic");    
     obj=document.getElementById("hladaj_rolldown_menu");     
     if(obj.style.visibility=="hidden"){
       obj.style.visibility="visible";              
       var position=findPos(Tlacitko);
       var kontpos=findPos(Kontajner);                   
       obj.style.left=(position[0]-kontpos[0])+"px";
       obj.style.top=((position[1]-kontpos[1])+20)+"px";
/*       alert(obj.style.top);
       obj.style.left="0px";
       obj.style.top="0px";  */     
       doRollDown();    
     } else {
       obj.style.visibility="hidden";
       obj.style.height="0px";
     }
    };
