<!-- 
	// Original:  Robert Bui (astrogate@hotmail.com)
	// Web Site:  http://astrogate.virtualave.net

//mb: added captions, (caption added at imageid_caption) see below


var interval = 3; // delay between rotating images (in seconds)
var random_display = 0; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
var caption=new Array()
image_list = new Array();
image_list[image_index++] = new imageItem("/rotatingimgs/01.jpg");
image_list[image_index++] = new imageItem("/rotatingimgs/02.jpg");
image_list[image_index++] = new imageItem("/rotatingimgs/03.jpg");
image_list[image_index++] = new imageItem("/rotatingimgs/04.jpg");
image_list[image_index++] = new imageItem("/rotatingimgs/05.jpg");
image_list[image_index++] = new imageItem("/rotatingimgs/06.jpg");
image_list[image_index++] = new imageItem("/rotatingimgs/07.jpg");

caption[0]="American Probe & Technologies manufactures several styles of probes from assorted materials"
caption[1]="The 73APT-100K Series of Kelvin probe with dual SSMC and 12um to 50 um pitch"
caption[2]="SEM Photo showing the radius of the 72X-G3/01 100nm probe"
caption[3]="Custom high temperature replaceable quartz surface thermal chuck with z-Lift option"
caption[4]="Triaxial 6 inch IsoChuck with <5pF of Guarded Capacitance"
caption[5]="74CJ-APT-KS Series of coaxial probeholders with 73CT and 70T Series replaceable Probes - ground Litz Wire"
caption[6]="LP600MB Micropositioner with course Z and tilt and swivel probe arm, shown with 74CJ Series Probeholder"

var number_of_image = image_list.length;

function imageItem(image_location) {
	this.image_item = new Image();
	this.image_item.src = image_location;
}
function get_ImageItemLocation(imageObj) {
	return(imageObj.image_item.src)
}
function generate(x, y) {
	var range = y - x + 1;
	return Math.floor(Math.random() * range) + x;
}
function getNextImage() {
	if (random_display) {
	image_index = generate(0, number_of_image-1);
	}
	else {
		image_index = (image_index+1) % number_of_image;
	}
	var new_image = get_ImageItemLocation(image_list[image_index]);
	return(new_image);
}
function rotateImage(place) {
	var new_image = getNextImage();
	document[place].src = new_image;
	
	//add caption (mb:27 Jan 05)
	if (document.getElementById) {
		if (document.getElementById(place + "_caption"))
			document.getElementById(place + "_caption").innerHTML= caption[image_index];
	}
	
	var recur_call = "rotateImage('"+place+"')";
	setTimeout(recur_call, interval);
}

//  End -->
