function animationDef(name,load,click,over,out) {	this.name = name;	this.type = "Applet";	this.onLoad = load;	this.onClick = click;	this.onMouseOver = over;	this.onMouseOut = out;	this.play = animPl;	this.stop = animS;	this.pause = animS;	this.getDelay = animGD;	this.setDelay = animSD;	this.isBackAndForth = animIBF;	this.setBackAndForth = animSBF;	this.getElementID = getElementID;	this.elementResolved = elementResolved;	this.elementID = null;}function animPl() { if (this.elementResolved()) this.elementID.start(); }function animS() { if (this.elementResolved()) this.elementID.stop(); }function animGD() { return (this.elementResolved() ? this.elementID.getDelay() : -1); }function animSD(d) { if (this.elementResolved()) this.elementID.setDelay(d); }function animIBF() { return (this.elementResolved() ? this.elementID.isBackAndForth() : false); }function animSBF(s) { if (this.elementResolved()) this.elementID.setBackAndForth(s); }