function scrollTextDef(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 = STPlay;
	this.stop = STStop;
	this.setText = STST;
	this.getText = STGT;
	this.setDelay = STSD;
	this.getDelay = STGD;
	this.getElementID = getElementID;
	this.elementResolved = elementResolved;
	this.elementID = null;
}

function STPlay() { if (this.elementResolved()) this.elementID.start(); }
function STStop() { if (this.elementResolved()) this.elementID.stop(); }
function STGT() { return (this.elementResolved() ? this.elementID.getText() : ""); } 
function STSD(theDelay) { if (this.elementResolved()) this.elementID.setDelay(theDelay); }
function STGD() { return (this.elementResolved() ? this.elementID.getDelay() : -1); }

function STST(theText) {
	var s = replaceAwithBinC("\r\n","<BR>",theText)
	if (this.elementResolved())
		this.elementID.setText(s);
}


