jQuery(document).ready(function() {
    height = jQuery('#aticker').height();
    newy = 0;
    stop = 0;
    timeout = 50;
    timer = setTimeout ( "sf_ticker()" , timeout );
});
function sf_ticker(){
    newy--;
	  
    jQuery('#aticker').css('top',newy );
    topy = parseFloat(jQuery('#aticker').css('top'));
    //console.log ('top '+top);
    newh = (-1 * height);
    //console.log ('height '+newh);
    if (topy < newh){
        jQuery('#aticker').css('top','0px');
        newy=0;
    }
    if (!stop) timer = setTimeout ( "sf_ticker()" , timeout );
}

function stopt(){
    stop=1 ;
    clearTimeout ( timer );
}

function resume(){
    clearTimeout ( timer );
    stop=0;
    timer = setTimeout ( "sf_ticker()" , timeout );
}
	
