function Foo(bar)
{
this.bar = bar;
this.alertBar = function () {
alert(this.bar);
};
this.alertBarTimeout = function (ms){
var _self = this;
setTimeout(function(ms){
_self.alertBar();
}, ms);
};
}
foo = new Foo("show me");
foo.alertBarTimeout(1000);
http://fiddlerelf.com/2007/03/26/51/
интересная статья :)