//var num_imgs = 1;  // must be equal to the total number of pic[x] entered below
//var pic = new Array(num_imgs + 1);

//pic[0] = new img_src("image17380_0_1.jpg", "image17380_0_2.jpg", 75, 75, 0);
// parameters:
// image_name_1    image_name_2    img_width    img_height    img_number

function img_src(img_name_1, img_name_2, img_width, img_height, img_number) 
{
	this.img_number = img_number;
	this.current_img = 1;
	
	this.img_1 = new Image(img_width, img_height);
	this.img_1.src = img_name_1;
	this.img_2 = new Image(img_width, img_height);
	this.img_2.src = img_name_2;

	this.set_img = set_img;
}

function set_img(n) 
{
	if (n == 1) 
	{
		document.images[this.img_number].src = this.img_1.src;
	} 
	else if (n == 2) 
	{
		document.images[this.img_number].src = this.img_2.src;
	} 
	return true;
}
