// This class inherits ImageLoopItem and simply rewrites
// the attribute parsing part to really use the value given
// as "PAUSE" as an integer delay value.
//						-CvL

import java.io.InputStream;
import awt.*;
import browser.*;
import net.www.html.*;

public class NewImageLoop extends ImageLoopItem {
    public void init() {
	String at = getAttribute("img");
	dir = (at != null) ? at : "doc:/demo/images/duke";
	pause = 3900;
	at = getAttribute("pause");
	if (at != null) {
		try { pause = Integer.parseInt(at);
		} catch (NumberFormatException ee) { }
	}
    }
}
