-var showControls = new Class({
-
- getOptions: function(){
- return {
- next: $empty,
- prev: $empty,
- stop: $empty,
- play: $empty,
- exit: $empty,
- }
- },
-
- initialize: function(name,options){
- this.setOptions(this.getOptions(), options)
-
- this.container = $(name)
-
- var buttons = ['prev','stop','play','next','exit','comm']
- buttons.each(function(el){
- var sub = new Element('div')
- if (this.options[el]) {
- sub.addEvent('click', function() {
- this.options[el]()
- }.bind(this))
- }
- sub.addClass('controlButton').setProperties({
- id: el,
- name: el,
- }).injectInside(this.container)
- },this)
- },
-
-})
-showControls.implement(new Options)
-
-/* Make overlay window and start slideshow */
-function showImage(id,doplay) {
- var i=rimgs[id]
- /* alert('show id='+id+' index='+i+' doplay='+doplay) */
- showwin.show()
- show.play(i)
- if (!doplay) {
- show.stop()
- }
- return false
-}
-
-/* Stop slideshow and return to index page */
-function showStop() {
- show.quit()
- showwin.hide()
- return false
-}
-
-/* List of lists of img variations. Each image variation is a three-element */
-/* array: [width, height, url]. Index of the outer array is the global ID. */
-var vimgs=[]
-/*
- * [
- * [ id, title, [
- * [ width, height, url ]
- * ...
- * ]
- * ...
- * ]
- * ...
- * ]
-*/
-/* resolve string ID to index No which is the index in vimgs[] array */
-var rimgs=[]
-