Add some features to JS Progress bar

Job ID: 35696445

Budget: £10 – £20 GBP

I have this progress Bar that I am trying to add some control elements too. I have done some and removed them to keep understanding clear. It is a useful bar for all newbees to learn and understand and also apply in their work.

The progress bar works, when the click me button below is clicked it will start the progress bar and it wil stop on 100%.

Additional Functions required to the progress bar please, your help appreciated.

When the bar reaches between 70% and 90% please slow it down to setInterval(frame, 300);

When the progress bar reaches 90% stop it, wait 30seconds, click button B below) and show a custom time out message in the div below.

Create button B that fills the progress bar to 100% when clicked and resets the progress bar to empty. (ending the progress wait and also when data is returned from a ajax call.)
Related categories: JavaScript CSS jQuery / Prototype