var Cursor = Class.create();
Cursor.prototype = {

//
// Constructor
initialize: function(objectOptions)
	{
		ParseOptions(objectOptions, this);

		mSpaceApplication.Subscribe("Cursor.Change", this);
		mSpaceApplication.Subscribe("Cursor.Reset", this);
		mSpaceApplication.Subscribe("Cursor.Refresh", this);
	},
	
Notify: function(eventName, eventParams)
	{
		switch(eventName)
		{
			case 'Cursor.Change' : this.ChangeCursor(eventParams); break;		
			case 'Cursor.Reset' : this.ChangeCursor("auto"); break;	
			case 'Cursor.Refresh' : this.Refresh("auto"); break;	
			default: break;
		}
	},
	
Refresh: function()
	{
		this.ChangeCursor('auto');
	},

ChangeCursor: function(cursorName)
	{
		if(!HelpOn)
			document.body.style.cursor = cursorName;
		else
			document.body.style.cursor = 'help';
	}
}
