FadeSlide = function(element, options)
{
Spry.Effect.Cluster.call(this, options);
var duration = 800;
var from = 0;
var to = 100;
var transition = Spry.sinusoidalTransition;
var toggle = false;
if (options)
{
if (options.duration != null) duration = options.duration;
if (options.from != null) from = options.from;
if (options.to != null) to = options.to;
if (options.transition != null) transition = options.transition;
if (options.toggle != null) toggle = options.toggle;
}
var fadeEffect = new Spry.Effect.Fade(element, {duration: duration, from: from, to: to, toggle: toggle});
var slideEffect = new Spry.Effect.Slide(element, {duration: duration, from: from, to: to, toggle: toggle, horizontal:true});
this.addParallelEffect(fadeEffect);
this.addParallelEffect(slideEffect);
};
FadeSlide.prototype = new Spry.Effect.Cluster();
FadeSlide.prototype.constructor = FadeSlide;
