﻿which_image_loaded = 0;NUM_IRIS_IMAGES= 5;position = 0;irisImageNames = new Object();irisImageNames.length = NUM_IRIS_IMAGES - 1;irisImageTitles = new Object();irisImageTitles.length = NUM_IRIS_IMAGES - 1;irisImageDescs = new Object();irisImageDescs.length = NUM_IRIS_IMAGES - 1;irisImageDescs[0]='Iris: Landscapes';irisImageDescs[1]='Iris: Recreational Facilities';irisImageDescs[2]='Iris: Sample Kitchen & Dining Area';irisImageDescs[3]='Iris: Sample Living Room';irisImageDescs[4]='Iris: Sample Bedroom';for (counter = 0; counter < NUM_IRIS_IMAGES; counter++){    file_number = counter + 1;    filename = ("images_dynamic/gallery/iris/image" + file_number + ".jpg");    irisImageNames[counter] = filename;}function changeImage(direction) {   which_image_loaded += direction;    if (which_image_loaded < 0)    	{    		which_image_loaded = 0;    		return;    	}    if (which_image_loaded == NUM_IRIS_IMAGES)        {        	which_image_loaded = NUM_IRIS_IMAGES - 1;        	return;        }    boxId = 'imagebox' + (which_image_loaded - direction + 1);    document.getElementById(boxId).src="images_static/gal_imagebutton.gif";    if (document.images)    {        document.getElementById('galimage').src = irisImageNames[which_image_loaded];        boxId = 'imagebox' + (which_image_loaded + 1);        document.getElementById(boxId).src="images_static/gal_currentbutton.gif";	}    ddequalcolumns.setHeights("reset");}function changeImageTo(imagenum) {	for(counter=0; counter < NUM_IRIS_IMAGES; counter ++){		if(counter != imagenum)		{			boxId = 'imagebox' + (counter + 1);			document.getElementById(boxId).src="images_static/gal_imagebutton.gif";		}	}    if (document.images)    {        document.getElementById('galimage').src = irisImageNames[imagenum];        boxId = 'imagebox' + (imagenum + 1);        document.getElementById(boxId).src="images_static/gal_currentbutton.gif";        which_image_loaded = imagenum;        document.getElementById('content').innerHTML = '<t1>'+irisImageDescs[imagenum]+'</t1>';	}    ddequalcolumns.setHeights("reset");}function loadIrisLightbox(imageName){	//position = pos;	image_number = which_image_loaded + 1;	//file_name = 'gallery_photos/original/chinesStrong.jpg';	file_name = imageName;	image_desc = irisImageDescs[which_image_loaded];	Lightbox.show(file_name, '');}function moveNext(){	position += 1;	if (viewLarger.length <= position)	{		position = 0;	}	file_name = viewLarger[position];	Lightbox.show(file_name, '');}function movePrev(){	position -= 1;	if (position < 0)	{		position = eval(viewLarger.length-1);	}		file_name = viewLarger[position];	Lightbox.show(file_name, '');}