var Paradise = { state: "inactive", paradiseLost: function(){ function AddActiveMarker(index,obj){ alert(obj.state) } AddActiveMarker(0,this) } } Paradise.state=90; Paradise.paradiseLost()//90