﻿			window.onload = function(){
				var ball = $E('#pen');
				var ballStyles = new Fx.Styles(ball, {duration: 800, transition: Fx.Transitions.elasticOut});
				new Drag.Move(ball, { 
					onComplete: function(){
						ballStyles.custom({'top': [this.element.getStyle('top').toInt(), 15], 'left': [this.element.getStyle('left').toInt(), 20]});
					}
				});
				
				galleryManager.setup();
			}