var FlashHistory = History;
FlashHistory.addChangeEventListener = function(flashObjectID, listenerName)
{
	var context = document.getElementById(flashObjectID);
	// this.addEventListener(HistoryEvent.HISTORY_CHANGE, function(event){alert(event.getType())});
	// this.addEventListener(HistoryEvent.HISTORY_CHANGE, createDelegate(context, context[listenerName]));
	// this.addEventListener(HistoryEvent.HISTORY_CHANGE, context[listenerName]);
	var callback = function(event){arguments.callee.context[arguments.callee.listenerName](event.getResourceIdentifier())}
	callback.context = context;
	callback.listenerName = listenerName;
	this.addEventListener(HistoryEvent.HISTORY_CHANGE, callback);
	//this.addEventListener(HistoryEvent.HISTORY_CHANGE, function(event){context[listenerName].apply(context, [event])});
	return true;
};