	function imageList() {
		this.version = "2.1 [ICN Software, Alexandr Mrynsky]";
		this.preloadStatus = false;	
		this.imagesPath = "images";
		this.imagesExt = "gif";	
		this.overImages = new Array();
		this.outImages = new Array(); 
		this.preloadOverImages = new Array();
		this.preloadOutImages = new Array();
		
		this.imageName = getImageName;
		this.preload = preloadImages;
		this.mouseOver = onMouseOver;
		this.mouseOut = onMouseOut;  	
	}

	function preloadImages() {
		// Don't bother if there's no document.images		
		if (document.images) {			
			for(var index = 0; index < this.overImages.length; index++) {
				// For each arg, create a new image.
				this.preloadOutImages[index] = new Image();
				this.preloadOverImages[index] = new Image();
				// Then set the source of that image to the current argument.      
				this.preloadOverImages[index].src = this.imagesPath + '/' + this.overImages[index] + '.' + this.imagesExt;
				this.preloadOutImages[index].src = this.imagesPath + '/' + this.outImages[index] + '.' + this.imagesExt;				
			}
			this.preloadStatus = true;
		}
	}

	function onMouseOver(curImgName, newImgIndex) {
		if (document.images) {						
			if (this.preloadStatus) 								
				document.images[curImgName].src = this.preloadOverImages[newImgIndex].src;
			else
				document.images[curImgName].src = this.imagesPath + '/' + this.overImages[newImgIndex] + '.' + this.imagesExt;
		}
	}

	function onMouseOut(curImgName, newImgIndex) {		
		if (document.images) {
			if (this.preloadStatus)								
				document.images[curImgName].src = this.preloadOutImages[newImgIndex].src;
			else
				document.images[curImgName].src = this.imagesPath + '/' + this.outImages[newImgIndex] + '.' + this.imagesExt;				
		}
	}

	function getImageName(index) {
		var imgName;
		
		imgName = this.outImages[index] + '.' + this.imagesExt;
		return imgName;
	}
	
	
	
	
	
	