﻿// JScript File

window.addEvent('domready', function(){
	    var data = {
	      '1.jpg': { caption: 'New Mexico Military Institute' }, 
	      '2.jpg': { caption: 'City of Roswell' }, 
	      '3.jpg': { caption: 'Bottomless Lake' }, 
	      '4.jpg': { caption: 'Courthouse' },
	      '5.jpg': { caption: 'Francisco Chaves Bust' },
	      '6.jpg': { caption: 'City of Roswell' },
	       '7.jpg': { caption: 'Census 2010' }
	    };
	    // Note the use of "linked: true" which tells Slideshow to auto-link all slides to the full-size image.
	    var myShow = new Slideshow('show', data, { captions: true, controller: true, delay: 3000, height: 250, hu: 'images/slideshow/', linked: true, width: 320 });
	    // Here we create the Lightbox instance.
	    // In this case we will use the "close" and "open" callbacks to pause our show while the modal window is visible.
      var box = new Lightbox({ 
			  'onClose': function(){ this.pause(false); }.bind(myShow), 
			  'onOpen': function(){ this.pause(true); }.bind(myShow) 
			});
		});