just read your original post again Richard, and you're right sorry, I misinterpreted what you meant. just looked at your script again and though I don't really understand everything that's going on (though I will soon hopefully) I can see what it's trying to achieve, I'll play about with it and see what I can come up with, thanks.