function myObject(){
	this.greeting = null;
	this.count = 0;
	this.greet = function(){
		alert(this.greeting);
		this.count = this.count + 1;
		if(this.count < 2) {
			$('body').animate({"opacity":1}, 1000, function(){this.greet();});
		}
	}
}

function test(){
	test = new myObject();
	test.greeting = "monkey";
	test.greet();
}