document.writeln("<script type=\"text\/javascript\">");
document.writeln("var intervalId = null;    ");
document.writeln("function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){    ");
document.writeln("  this.stayTime=nStayTime*500 || 1500;    ");
document.writeln("  this.maxHeigth=nMaxHth || 357;    ");
document.writeln("  this.minHeigth=nMinHth || 2.5;    ");
document.writeln("  this.state=sState || \"down\" ;    ");
document.writeln("  var obj = document.getElementById(id);    ");
document.writeln("  if(intervalId != null)window.clearInterval(intervalId);    ");
document.writeln("  function openBox(){    ");
document.writeln("   var h = obj.offsetHeight;    ");
document.writeln("   obj.style.height = ((this.state == \"down\") ? (h + 2) : (h - 2))+\"px\";    ");
document.writeln("    if(obj.offsetHeight>this.maxHeigth){    ");
document.writeln("    window.clearInterval(intervalId);    ");
document.writeln("    intervalId=window.setInterval(closeBox,this.stayTime);    ");
document.writeln("    }    ");
document.writeln("    if (obj.offsetHeight<this.minHeigth){    ");
document.writeln("    window.clearInterval(intervalId);    ");
document.writeln("    obj.style.display=\"none\";    ");
document.writeln("    }    ");
document.writeln("  }    ");
document.writeln("  function closeBox(){    ");
document.writeln("   slideAd(id,this.stayTime,\"up\",nMaxHth,nMinHth);    ");
document.writeln("  }    ");
document.writeln("  intervalId = window.setInterval(openBox,10);    ");
document.writeln("}   ");
document.writeln("<\/script>  ")

document.writeln("  <div id=\"MyMoveAd\" style=\"width:1000px;height:5px;background:#ff0000;overflow:hidden;\" >");
document.writeln("<img src=\"http:\/\/www.gongxue120.cn\/pic\/fff.jpg\" border=\"0\"\/>");
document.writeln("<\/div>  ")
    
document.writeln("<script type=\"text\/javascript\">    ");
document.writeln(" <!--   ");
document.writeln(" slideAd(\'MyMoveAd\',30);   ");
document.writeln("-->    ");
document.writeln("<\/script>")
