function DropDown(div, list){
 var divOver = document.getElementById(div);
 var divList = document.getElementById(list);
 var intervalOver;
 var intervalOut;
 var newHeight = 0;
 var normalHeight = divList.offsetHeight;

 var speed = 20;

 divList.style.display = 'none';
 divList.style.height = '20px';

 this.getOverDiv = function(){
 return divOver;
 }

 this.getHeight = function(){
 return normalHeight;
 }

 this.doScalingOver = function(){
 if(intervalOut)clearInterval(intervalOut);
 divList.style.display = 'block';
 scaleOver();
 intervalOver = setInterval(scaleOver, 10);
 }

 this.doScalingOut = function(){
 clearInterval(intervalOver);
 intervalOut = setInterval(scaleOut, 10);
 }

 this.setSpeed = function(inSpeed){
 speed = inSpeed;
 }

 function scaleOut(){
 if( newHeight > speed ){
 newHeight -= speed;
 divList.style.height = newHeight + 'px';
 }else{
 clearInterval(intervalOut);
 divList.style.display = 'none';
 divList.style.height = '20px';
 }
 }

function scaleOver(){
 if( newHeight + speed <= parseInt(normalHeight) ){
 newHeight += speed;
 divList.style.height = (newHeight) + 'px';
 }else{
 clearInterval(intervalOver);
 if(normalHeight > 2){
   divList.style.height = (normalHeight - 2) + 'px';
 }  
 }
 }
}
