<!-- 
/*
------------------------------------------------------------------------------
File Name: image_lib.js
Company:  pH2 Enterprises
Author: Phillip J. Henslee II  <ph2@ph2enterprises.com>  ©2002 
Purpose: Image Scripts, Rollovers and other effects
Functions: None
Date Created: January 15, 2002
Last Modified: January 27, 2002
Dependent Files: config.js
File Status: Optional
------------------------------------------------------------------------------
*/

preLoadImages();

/* 
------------------------------------------------------------------------
Function preLoadImages()
Purpose: loads images(rollover events)
Arguments: 1
Arg 0: arrImages - array of images
------------------------------------------------------------------------
*/ 
	function preLoadImages(){

		var arrImages = new Array();

		arrImages[0] = 'images/bear.gif';
		arrImages[1] = 'images/space.gif';
		// add lines as needed


		arrImageList = new Array ();

		for (i in arrImages) {
		    arrImageList[i] = new Image();
		    arrImageList[i].src =  arrImages[i];
		}

	}


/* 
------------------------------------------------------------------------
Function loadImage
Purpose: loads images(rollover events)
Arguments: 2
Arg 0: imgObj - Name of the image (<img name=myimage ....)
Arg 1: image - Name of the image to change
------------------------------------------------------------------------
*/ 
function loadImage(imgObj,imageName){
	if (document.images){
		document.images[imgObj].src = imageName;
	}
}


/* 
------------------------------------------------------------------------
Function fadeImageIn
Purpose: fades image (works only in ie)
Arguments: 1
Arg 0: src - Name of the image (<img name=myimage ....)
------------------------------------------------------------------------
*/ 
var a=0  // starting opacity

function fadeImageIn(src){
if(document.all)
document.images[src].filters.alpha.opacity=0 + a
a++
thesrc = src
setTimeout("fadeImageIn(thesrc)",10)
}

// -->









