//
// swap out an image based on input from an HTML page. 
// variables used:
//	* directory: the directory where the images are located
//	* imgName1: the name of the image
//	* state: off (1) or on (2)
//	* img1Type: image type, such as .gif, .jpg, or .png
//
// Filename: roll.js
// Copyright (c) 2001 by Blair Reyburn (blairr@ashlandagency.com)
// http://www.ashlandagency.com
//
//
// This program is free software. You can redistribute it and/or modify 
// it under the terms of the GNU General Public License as published by 
// the Free Software Foundation; either version 2 of the License. 
//
//
// Usage:
// make a call from the HTML document via the onMouseOver or
// onMouseOut event handlers.
// onMouseOver="roll('images','about','2','.gif');" 
// onMouseOut="roll('images','about','1','.gif');">
// 
// http://www.ashlandagency.com
//
// Build Revision v0.3
// Date: 4/26/2001
 function roll(directory, imgName1, state, img1Type) {
	document.images[imgName1].src =  directory + imgName1 + state + img1Type;
}