Sleep or delay not working in IE

I like to have a sleep or delay function in javascript.
The Prototype library has a delay function.
It is working well in Firefox or Chrome but not IE.
Please help.

function sleep()
{
}

sleep.delay(0.1);

How about setTimeout ?