
/**
 * Splits text into pieces.
 */


textsplitter = {
    
    currentid: 1,
    
    view: function( id /* int */, xtraid /* string */, inhtml /* string */ )
    {
        // Remove previous text.
        $('displ'+this.currentid).className = 'dontdisplay';
        
        // Display new text.
        $('displ'+id).className = 'dodisplay';
        
        // Insert some extra stuff.
        if ( xtraid != 'undefined' && inhtml != 'undefined' )
        {
            $(xtraid).innerHTML = inhtml;
        }
        
        // Set the current id as the id that has to be truncated next time.
        this.currentid = id;
    }
    
};