// TODO: PreCache images here

var obj = document.getElementById('obj1')
window.rotator = new Rotator(obj, 150, 16);
rotator.setCenter({ x: 600, y: 400 });

rotator.hookEvent('rotate', function(_evtArgs)
{
	var ri = _evtArgs.RotationIndex;
	this.getElement().className = 'rotation' + ri;
});
rotator.rotateTo(0);