I forgot to say: on script starting, all the text is loaded to arrays (by times). Just like you said me to do.
The time interval will be 1min, that should be enough, to do what I want.
Do you think it will consume too much memory/slow down the system?
Off topic:
How can I declare a multidimensional array? like array[x][y]?
I tried "var xyz = new array(,)" and "new array([],[])" but it seems that isn't working...
I've already tried to read some reference but it's kind of messy on that part.
Thanks a lot for all your help