<!-- //Created by: Matt Titchener

		function preloadImages() { //BFA_matt_0.1v
						//if (document.images) {
							var a = preloadImages.arguments;
				 		 	if (a.length > 0) { //If preload arguments are supplied then...
						  	imgs = new Array(a.length);
						 		for (i = 0; i < a.length; i++) {
										imgs[i] = new Image;
						 		 		imgs[i].src = a[i];
						 		}
						 	}
						//} 
		}
		
		//function swapImage([name of image in HTML to restore], [source of new image])

		function swapImage(imgName, imgSrc) { //BFA_matt_0.1v
						 document.images[imgName].src = imgSrc;
		}
		
		//functon restoreImage([name of image in HTML to restore], [source of image to swap back again]) 

		/*function restoreImage(imgName, imgSrc) { //BFA_matt_0.2v
						document.images[imgName].src = imgSrc;
		}*/
		
		//show/hide element
				
		function invis(nr) {
						 vista = (document.getElementById(nr).style.visibility == 'hidden') ? 'visible' : 'hidden';
						 document.getElementById(nr).style.visibility = vista;
	  }
		
		//open/close element
		
		function block(nr) {
						 vista = (document.getElementById(nr).style.display == 'block') ? 'none' : 'block';
						 document.getElementById(nr).style.display = vista;
	}

//-->
