Fx.Properties = Fx.Styles.extend({
	increase: function(){
		for (var p in this.now) this.element[p] = this.now[p];
	}
});

Fx.FlyingScroller = Fx.Properties.extend({
	initialize: function(el, options){
		this.parent(el, options);
	},

	toElement: function(el){
		this.goTo(el.offsetLeft - (0), el.offsetTop - (0)); /* "0"はトップマージンからの距離 */
	},

	goTo: function(x, y){
		this.custom({
			'scrollLeft': [this.element.scrollLeft, x],
			'scrollTop': [this.element.scrollTop, y]
		})
	}
});




// global mouse variables
var activeFrameIndex = 1;
var maxFrameIndex    = 5;

function handle( delta ) {
    var s = delta + ": ";
    var activeFrameName = "content" + getNewFrameIndex( delta );
    panel.clearTimer().toElement($(activeFrameName));
}
