// JavaScript Document
function $(element){ 
return element = document.getElementById(element); 
} 
function $D(){ 
var d=$('zk001'); 
var h=d.offsetHeight; 
var maxh=330; 
function dmove(){ 
h+=150; //设置层展开的速度 
if(h>=maxh){ 
d.style.height=''; 
clearInterval(iIntervalId); 
}else{ 
d.style.display='block'; 
d.style.height=h+'px'; 
} 
} 
iIntervalId=setInterval(dmove,2); 
} 
function $D2(){ 
var d=$('zk001'); 
var h=d.offsetHeight; 
var maxh=330; 
function dmove(){ 
h-=100000;//设置层收缩的速度 
if(h<=0){ 
d.style.display='none'; 
clearInterval(iIntervalId); 
}else{ 
d.style.height=h+'px'; 
} 
} 
iIntervalId=setInterval(dmove,2); 
} 
function $use(){ 
var d=$('zk001'); 
var sb=$('stateBut'); 
if(d.style.display=='none'){ 
$D(); 
sb.innerHTML='.'; 
}else{ 
$D2(); 
sb.innerHTML='.'; 
} 
} 