+ exit: function(){
+ if (this.show.exit) { this.show.exit() }
+ else { alert('no method for "exit", file complaint with UN') }
+ },
+
+ comm: function(){
+ if (this.show.comm) { this.show.comm() }
+ else { alert('no method for "comm", file complaint with UN') }
+ },
+
+ info: function(pos, max, ref, txt){
+ var p1 = pos + 1;
+ this.refbox.set('html',txt);
+ this.refbox.set('href',ref);
+ this.posbox.set('text',p1+' of '+max);
+ if (p1 < 2) {
+ this.prevbox.set('id', 'prevDisabled');
+ this.prevdisabled = true;
+ } else {
+ this.prevbox.set('id', 'prev');
+ this.prevdisabled = false;
+ }
+ if (p1 >= max) {
+ this.nextbox.set('id', 'nextDisabled');
+ this.nextdisabled = true;
+ } else {
+ this.nextbox.set('id', 'next');
+ this.nextdisabled = false;
+ }
+ },
+
+ running: function(isrunning){
+ if (isrunning) {
+ this.playbox.setStyle('display', 'none');
+ this.stopbox.setStyle('display', 'block');
+ } else {
+ this.stopbox.setStyle('display', 'none');
+ this.playbox.setStyle('display', 'block');
+ }
+ }