+ prev: function(){
+ if (this.prevdisabled) { return; }
+ if (this.show.prev) { this.show.prev() }
+ else { alert('no method for "prev", file complaint with UN') }
+ },
+
+ stop: function(){
+ if (this.show.stop) { this.show.stop() }
+ else { alert('no method for "stop", file complaint with UN') }
+ },
+
+ play: function(){
+ if (this.show.play) { this.show.play() }
+ else { alert('no method for "play", file complaint with UN') }
+ },
+
+ next: function(){
+ if (this.nextdisabled) { return; }
+ if (this.show.next) { this.show.next() }
+ else { alert('no method for "next", file complaint with UN') }
+ },
+
+ 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;
+ }
+ },