$(function(){function getComputedStyle(elem,style){if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(elem,null)[style];}else{if(elem.currentStyle){return elem.currentStyle[style];}else{if(elem.style){return elem.style[style];}}}return"";}var nc=document.getElementById("newsInnerContent"),news={timer:false,step:6,delay:200,stopNews:function(){if(this.timer){clearInterval(this.timer);this.timer=null;}},slowNews:function(){news.step=0;},speedNews:function(){news.step=6;},scrollNews:function(){var top=parseInt(getComputedStyle(nc,"top"),10),bott=nc.offsetHeight;if(top+bott<0){top=nc.parentNode.offsetHeight+news.step;}else{top-=news.step;}nc.style.top=top+"px";}};$(nc).mouseover(news.slowNews);$(nc).mouseout(news.speedNews);news.timer=setInterval(news.scrollNews,news.delay);});
