//------------------------------------------
var pullInt;
var bMoving=false;
function startpullout(e,h){
  /*if(!bMoving){
    var p = document.getElementById(e);
    if(parseInt(p.style.height)<h){
      bMoving=true;
      pullInt = setInterval("pullout('"+e+"',"+h+")",1);
    }else{
      //pullInt = setInterval("pullin('"+e+"',"+h+")",10);
    }
  }*/
  var p = document.getElementById(e);
  p.style.display='';
}
function startpullin(e,h){
  /*if(!bMoving){
    var p = document.getElementById(e);
    if(parseInt(p.style.height)<h){
    }else{
      bMoving=true;
      pullInt = setInterval("pullin('"+e+"',"+h+")",1);
    }
  }*/
  var p = document.getElementById(e);
  p.style.display='none';
}
function pullout(e,h){
  var p = document.getElementById(e);
  if(parseInt(p.style.height)<h){
    bMoving=true;
    p.style.display='';
    p.style.height=(parseInt(p.style.height)+10)+"px";
  }else{
    bMoving=false;
    clearInterval(pullInt);
  }
  
}
function pullin(e,h){
  var p = document.getElementById(e);
  if(parseInt(p.style.height)>1){
    bMoving=true;
    p.style.height=(parseInt(p.style.height)-10)+"px";
  }else{
    bMoving=false;
    p.style.display='none';
    clearInterval(pullInt);
  }
}
//------------------------------------------