
function __toTicker( container, delay )
{
    var items = $( container );
    
    if ( items.down !== undefined )
    {
    	items = items.down( 'ul' ).childElements();
    }
    else
    {
    	items = items.getElements( 'li' );
    }

    for ( var i = 0; i < items.length; i++ )
    {
    	if ( typeof ( items[ i ] ) !== 'function' )
    	{
            if ( items[ i ].style.display == '' )
            {
                var next = ( i < ( items.length - 1 ) ) ? i + 1 : 0;
            }

            items[ i ].style.display = 'none';
    	}
    }

    if ( items[ next ] ) 
    {
        if ( $( container ).down != undefined ) 
        {
        	new Effect.Appear( items[ next ] );
        }
        else
        {   
        	items[ next ].style.opacity = 0;
        	items[ next ].style.display = '';
        	
        	new Fx.Style( items[ next ], 'opacity' ).start( 1 );
        }
    }
    
    toTicker( container, delay );
}	


function toTicker( container, delay )
{
	setTimeout( '__toTicker( "'+ container +'", ' + delay + ' )', delay * 1000 );
}