if (!window.AuIt)	window.AuIt = {};if (!AuIt.option)	AuIt.option={};if (!AuIt.option.ActionBox)	AuIt.option.ActionBox={		effectFkt:'Randomize'	};AuIt.ActionBox = Class.create();AuIt.ActionBox.prototype = {	lis : [],	idx : 0,	canp : true,	inplay : false,	parent : null,	getRandom:function( min, max ) {		return( min + parseInt( Math.random() * ( max-min+1 ) ) );	}, 		initialize : function(scroller) {		this.inplay=false;		this.canp=true;		this.parent = scroller;		this.effectFkt = AuIt.option.ActionBox.effectFkt;		this.lis = $(scroller).select('div.auit-actionbox-item-frame');		this.parent.observe("mouseover", this._mouseOver				.bindAsEventListener(this));		this.parent.observe("mouseout", this._mouseOut				.bindAsEventListener(this));		if ( scroller.getAttribute('auit:effect') )			this.effectFkt = scroller.getAttribute('auit:effect');	},	_mouseOver : function(event) {		this.stop();		Event.stop(event);	},	isChild : function(s, d) {		try{			while (s) {				if (s == d)					return true;				s = s.parentNode;			}		}catch ( e)		{					}		return false;	},	_mouseOut : function(event) {		var toElement = event.relatedTarget || event.toElement || false;		if (!this.isChild(toElement, this.parent)) {			this.canp = true;			this.play();			Event.stop(event);		}	},	stop : function() {		this.canp = false;		if (this.effect) {			this.effect.loop(this.effect.finishOn);		}	},	play : function() {		if (!this.canp || this.inplay) {			return;		}		this.inplay = true;		if (this.idx >= this.lis.length)			this.reset();		var PEff=['SlideUp','BlindUp','DropOut','Fade','Shrink','Pulsate'];		var nextFkt=this.effectFkt;		if ( this.effectFkt == 'Randomize')			nextFkt=PEff[this.getRandom( 0,PEff.length-1)];		if ( !Effect[nextFkt] )			nextFkt='SlideUp';		this.effect = Effect[nextFkt](this.lis[this.idx], {			duration : 2.0,			delay : 2,			afterFinish : function() {				this.effect = null;				this.THIS.inplay = false;				if (this.THIS.canp) {					$(this.THIS.lis[this.THIS.idx]).hide();					this.THIS.idx++;					this.THIS.play();				} else {					$(this.THIS.lis[this.THIS.idx]).show();				}			},			THIS : this		});	},	reset : function() {		this.idx = 0;		this.lis.each(function(li) {			$(li).show();		})	}};document.observe('dom:loaded', function() {	var scroller = $$('div.auit-actionbox-scroller');	for ( var i = 0; i < scroller.length; i++) {		var s = new AuIt.ActionBox(scroller[i]);		s.play();	}});