<p>// ----------------------------------------------------------------------------------- // //	Lightbox v2.03 //	by Lokesh Dhakar - http://www.huddletogether.com //	4/9/06 // //	For more information on this script, visit: //	http://huddletogether.com/projects/lightbox2/ // //	Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/ //	 //	Credit also due to those who have helped, inspired, and made their code available to the public. //	Including: Scott Upton(uptonic.com), Peter-Paul Koch(quirksmode.org), Thomas Fuchs(mir.aculo.us), and others. // //	Lightbox v2.03a //	by Dynamicdrive.com- http://www.dynamicdrive.com //	Nov 29th, 2007 //	Added ability for the caption (&quot;title&quot; attr of link) to be optionally hyperlinked, by throwing in a &quot;rev&quot; attr containing the desired link // ----------------------------------------------------------------------------------- /*  	Table of Contents 	----------------- 	Configuration 	Global Variables  	Extending Built-in Objects	 	- Object.extend(Element) 	- Array.prototype.removeDuplicates() 	- Array.prototype.empty()  	Lightbox Class Declaration 	- initialize() 	- start() 	- changeImage() 	- resizeImageContainer() 	- showImage() 	- updateDetails() 	- updateNav() 	- enableKeyboardNav() 	- disableKeyboardNav() 	- keyboardAction() 	- preloadNeighborImages() 	- end() 	 	Miscellaneous Functions 	- getPageScroll() 	- getPageSize() 	- getKey() 	- listenKey() 	- showSelectBoxes() 	- hideSelectBoxes() 	- showFlash() 	- hideFlash() 	- pause() 	- initLightbox() 	 	Function Calls 	- addLoadEvent(initLightbox) 	 */ // -----------------------------------------------------------------------------------  // //	Configuration // var fileLoadingImage = &quot;images/loading.gif&quot;;		 var fileBottomNavCloseImage = &quot;images/closelabel.gif&quot;;  var animate = true;	// toggles resizing animations var resizeSpeed = 7;	// controls the speed of the image resizing animations (1=slowest and 10=fastest)  var borderSize = 10;	//if you adjust the padding in the CSS, you will need to update this variable  // -----------------------------------------------------------------------------------  // //	Global Variables // var imageArray = new Array; var activeImage;  if(animate == true){ 	overlayDuration = 0.2;	// shadow fade in/out duration 	if(resizeSpeed &gt; 10){ resizeSpeed = 10;} 	if(resizeSpeed &lt; 1){ resizeSpeed = 1;} 	resizeDuration = (11 - resizeSpeed) * 0.15; } else {  	overlayDuration = 0; 	resizeDuration = 0; }  // -----------------------------------------------------------------------------------  // //	Additional methods for Element added by SU, Couloir //	- further additions by Lokesh Dhakar (huddletogether.com) // Object.extend(Element, { 	getWidth: function(element) { 	   	element = $(element); 	   	return element.offsetWidth;  	}, 	setWidth: function(element,w) { 	   	element = $(element);     	element.style.width = w +&quot;px&quot;; 	}, 	setHeight: function(element,h) {    		element = $(element);     	element.style.height = h +&quot;px&quot;; 	}, 	setTop: function(element,t) { 	   	element = $(element);     	element.style.top = t +&quot;px&quot;; 	}, 	setSrc: function(element,src) {     	element = $(element);     	element.src = src;  	}, 	setHref: function(element,href) {     	element = $(element);     	element.href = href;  	}, 	setInnerHTML: function(element,content) { 		element = $(element); 		element.innerHTML = content; 	} });  // -----------------------------------------------------------------------------------  // //	Extending built-in Array object //	- array.removeDuplicates() //	- array.empty() // Array.prototype.removeDuplicates = function () {     for(i = 0; i &lt; this.length; i++){         for(j = this.length-1; j&gt;i; j--){                     if(this[i][0] == this[j][0]){                 this.splice(j,1);             }         }     } }  // -----------------------------------------------------------------------------------  Array.prototype.empty = function () { 	for(i = 0; i &lt;= this.length; i++){ 		this.shift(); 	} }  // -----------------------------------------------------------------------------------  // //	Lightbox Class Declaration //	- initialize() //	- start() //	- changeImage() //	- resizeImageContainer() //	- showImage() //	- updateDetails() //	- updateNav() //	- enableKeyboardNav() //	- disableKeyboardNav() //	- keyboardNavAction() //	- preloadNeighborImages() //	- end() // //	Structuring of code inspired by Scott Upton (http://www.uptonic.com/) // var Lightbox = Class.create();  Lightbox.prototype = { 	 	// initialize() 	// Constructor runs on completion of the DOM loading. Loops through anchor tags looking for  	// 'lightbox' references and applies onclick events to appropriate links. The 2nd section of 	// the function inserts html at the bottom of the page which is used to display the shadow  	// overlay and the image container. 	// 	initialize: function() {	 		if (!document.getElementsByTagName){ return; } 		var anchors = document.getElementsByTagName('a'); 		var areas = document.getElementsByTagName('area');  		// loop through all anchor tags 		for (var i=0; i</p>