//@cc_on

function Mover (targetUL, step, interval) {
    var dc = document;
    var ul = dc.getElementById( targetUL );
    var li = ul.getElementsByTagName( 'LI' );
    var ct, o, x, xm = -1;

    ul.style.overflow = 'hidden';
    ul.style.position = 'absolute';
    Mover.stop[ targetUL ] = false;
    
    for (ct = 0; o = li[ ct++ ]; ) {
        o.style.position = 'absolute';
        o.style.top = ul.offsetHeight - o.offsetHeight + 'px';
        o.style.left = xm + 'px';
        xm += o.offsetWidth;
    }
    
    function LOOP () {
        if (! Mover.stop[targetUL]) {
            for (ct = 0; o = li[ ct ]; ct++) {
                x = o.offsetLeft - step;
                if (x + o.offsetWidth < 0) x= xm-o.offsetWidth;
                o.style.left = x + 'px';
            }
        }
        setTimeout( arguments.callee, interval );
    }
    LOOP();
}
Mover.stop = [];

Mover('loop_images', 1, 40);

document./*@if (@_jscript) attachEvent('on'+ @else@*/ addEventListener(/*@end@*/
    'mouseover', (function (getParent) {
        return function (evt) {
            var e = evt./*@if(@_jscript) srcElement @else@*/ target /*@end@*/;
            Mover.stop['loop_images'] = !!(('IMG' === e.nodeName) && getParent(e, 'id', 'loop_images'));
        };
    })(
        function (node, type, val) {
            return node ? (val == node[type]) ? node: arguments.callee(node.parentNode, type, val): null;
        }
    
    ), false);

