<!-- 
/*
------------------------------------------------------------------------------
File Name: pH2.image.js
Company:  ph2enterprises
Author: Phil Henslee <ph2@ph2.us>  ©2003 
Purpose: Image Scripts, Rollovers and other effects
Functions: None
Date Created: April 25, 2003
Last Modified: April 25, 2003
Required Files: pH2.config.js
File Status: Optional
------------------------------------------------------------------------------
*/

/*  ------------------------------------------
     ** Create ImageManager class 
    ------------------------------------------
*/ 

	 pH2.ImageManager = function(){
		 this.images = new Array();
	 };


/* 
------------------------------------------------------------------------
Method add
Purpose: add an image to ImageManager array
Arguments: 2
Arg 0: img (the img to add)

------------------------------------------------------------------------
*/ 
	pH2.ImageManager.prototype.add = function( img ){
		
		this.images[this.images.length] = new Image();
		this.images[this.images.length-1].src = img;

	};


/* 
------------------------------------------------------------------------
Method 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
------------------------------------------------------------------------
*/ 
	pH2.ImageManager.prototype.load = function(imgObj,image){
		if (document.images){
			document.images[imgObj].src = image;
		}
	};


// Create instance of ph2 ImageManager object
	pH2.Images = new pH2.ImageManager();

// -->










