var n=0;
window.onload = function start(){
document.getElementById("news").onmouseover=Function('stop_this()');
document.getElementById("news").onmouseout=Function('start_this()');

if(document.getElementById('innerScroller')){
document.getElementById("Scroller_infinity").onmouseover=Function('stop_this2()');
document.getElementById("Scroller_infinity").onmouseout=Function('start_this2()');
var t=loop_news2(0,get_w(),"innerScroller");
}

var t=loop_news(0,get_h());
}

function stop_this(){
clearTimeout(g);
}

function start_this(){
var u=document.getElementById('news').style.marginTop;
var u=u.split('px');
loop_news(u[0],get_h());
}



function get_h(){
var a=document.getElementById('news_h').clientHeight;
return a-20;
}


var g;
function loop_news(n,h){
n=n-1;
if(n*-1>h){n=150;}
document.getElementById('news').style.marginTop=n+"px";
g=setTimeout('loop_news('+n+','+h+')',42);
}


function stop_this2(){
clearTimeout(g2);
}

function start_this2(){
var u=document.getElementById('Scroller_infinity').style.marginLeft;
var u=u.split('px');
loop_news2(u[0],get_w('innerScroller'),id);
}

var g2;
function get_w(){
var a=document.getElementById('innerScroller').clientWidth;
return a;
}

var id;
function loop_news2(n,h,id){
n=n-2;
if(n*-1>h){
n=0;
//if(id=='innerScroller'){id='innerScroller2';}else{id='innerScroller';}
}
//document.write(n+" "+h);
document.getElementById("Scroller_infinity").style.marginLeft=n+"px";
g2=setTimeout('loop_news2('+n+','+h+',"'+id+'")',42);
}

